From f3ff9aeb72cfc0937291f3cbd686c61a283f2227 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 28 Nov 2023 15:09:05 -0500 Subject: [PATCH] - code-gen: ts inline request/response bodies fix --- src/admin/edge/index.ts | 4 +- src/admin/edge/internetExplorerMode/index.ts | 4 +- .../siteLists/count/index.ts | 2 +- .../internetExplorerMode/siteLists/index.ts | 8 +- .../siteLists/item/index.ts | 8 +- .../siteLists/item/publish/index.ts | 58 +- .../item/sharedCookies/count/index.ts | 2 +- .../siteLists/item/sharedCookies/index.ts | 8 +- .../item/sharedCookies/item/index.ts | 2 +- .../siteLists/item/sites/count/index.ts | 2 +- .../siteLists/item/sites/index.ts | 8 +- .../siteLists/item/sites/item/index.ts | 2 +- src/admin/index.ts | 10 +- src/admin/people/index.ts | 4 +- .../profileCardProperties/count/index.ts | 2 +- .../people/profileCardProperties/index.ts | 8 +- .../profileCardProperties/item/index.ts | 2 +- .../healthOverviews/count/index.ts | 2 +- .../healthOverviews/index.ts | 8 +- .../healthOverviews/item/index.ts | 4 +- .../item/issues/count/index.ts | 2 +- .../healthOverviews/item/issues/index.ts | 8 +- .../item/issues/item/incidentReport/index.ts | 2 +- .../healthOverviews/item/issues/item/index.ts | 4 +- src/admin/serviceAnnouncement/index.ts | 8 +- .../serviceAnnouncement/issues/count/index.ts | 2 +- src/admin/serviceAnnouncement/issues/index.ts | 8 +- .../issues/item/incidentReport/index.ts | 2 +- .../serviceAnnouncement/issues/item/index.ts | 4 +- .../messages/archive/index.ts | 80 +- .../messages/count/index.ts | 2 +- .../messages/favorite/favoritePostResponse.ts | 30 - .../messages/favorite/index.ts | 58 +- .../serviceAnnouncement/messages/index.ts | 20 +- .../messages/item/attachments/count/index.ts | 2 +- .../messages/item/attachments/index.ts | 8 +- .../item/attachments/item/content/index.ts | 4 +- .../messages/item/attachments/item/index.ts | 4 +- .../messages/item/attachmentsArchive/index.ts | 2 +- .../messages/item/index.ts | 6 +- .../messages/markRead/index.ts | 80 +- .../messages/markUnread/index.ts | 80 +- .../messages/unarchive/index.ts | 80 +- .../messages/unfavorite/index.ts | 80 +- src/admin/sharepoint/index.ts | 4 +- src/admin/sharepoint/settings/index.ts | 2 +- src/agreementAcceptances/index.ts | 6 +- src/agreementAcceptances/item/index.ts | 2 +- src/agreements/index.ts | 6 +- .../item/acceptances/count/index.ts | 2 +- src/agreements/item/acceptances/index.ts | 8 +- src/agreements/item/acceptances/item/index.ts | 2 +- src/agreements/item/file/index.ts | 4 +- .../item/file/localizations/count/index.ts | 2 +- .../item/file/localizations/index.ts | 8 +- .../item/file/localizations/item/index.ts | 4 +- .../item/versions/count/index.ts | 2 +- .../file/localizations/item/versions/index.ts | 8 +- .../localizations/item/versions/item/index.ts | 2 +- src/agreements/item/files/count/index.ts | 2 +- src/agreements/item/files/index.ts | 8 +- src/agreements/item/files/item/index.ts | 4 +- .../item/files/item/versions/count/index.ts | 2 +- .../item/files/item/versions/index.ts | 8 +- .../item/files/item/versions/item/index.ts | 2 +- src/agreements/item/index.ts | 8 +- src/appCatalogs/index.ts | 4 +- src/appCatalogs/teamsApps/count/index.ts | 2 +- src/appCatalogs/teamsApps/index.ts | 8 +- .../item/appDefinitions/count/index.ts | 2 +- .../teamsApps/item/appDefinitions/index.ts | 8 +- .../item/appDefinitions/item/bot/index.ts | 2 +- .../item/appDefinitions/item/index.ts | 4 +- src/appCatalogs/teamsApps/item/index.ts | 4 +- src/applicationTemplates/count/index.ts | 2 +- src/applicationTemplates/index.ts | 8 +- src/applicationTemplates/item/index.ts | 6 +- .../item/instantiate/index.ts | 28 +- .../instantiate/instantiatePostRequestBody.ts | 30 - src/applications/count/index.ts | 2 +- src/applications/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/applications/getByIds/index.ts | 58 +- src/applications/index.ts | 16 +- src/applications/item/addKey/index.ts | 59 +- src/applications/item/addPassword/index.ts | 59 +- .../item/appManagementPolicies/count/index.ts | 2 +- .../item/appManagementPolicies/index.ts | 10 +- .../item/appManagementPolicies/item/index.ts | 2 +- .../appManagementPolicies/item/ref/index.ts | 2 +- .../item/appManagementPolicies/ref/index.ts | 4 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../item/createdOnBehalfOf/index.ts | 4 +- .../item/extensionProperties/count/index.ts | 2 +- .../item/extensionProperties/index.ts | 8 +- .../item/extensionProperties/item/index.ts | 2 +- .../count/index.ts | 2 +- .../federatedIdentityCredentials/index.ts | 8 +- .../item/index.ts | 2 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- .../homeRealmDiscoveryPolicies/count/index.ts | 2 +- .../item/homeRealmDiscoveryPolicies/index.ts | 8 +- .../homeRealmDiscoveryPolicies/item/index.ts | 4 +- src/applications/item/index.ts | 44 +- src/applications/item/logo/index.ts | 2 +- src/applications/item/owners/count/index.ts | 2 +- .../graphAppRoleAssignment/count/index.ts | 2 +- .../owners/graphAppRoleAssignment/index.ts | 6 +- .../item/owners/graphEndpoint/count/index.ts | 2 +- .../item/owners/graphEndpoint/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../owners/graphServicePrincipal/index.ts | 6 +- .../item/owners/graphUser/count/index.ts | 2 +- .../item/owners/graphUser/index.ts | 6 +- src/applications/item/owners/index.ts | 18 +- .../item/graphAppRoleAssignment/index.ts | 4 +- .../item/owners/item/graphEndpoint/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/owners/item/graphUser/index.ts | 4 +- src/applications/item/owners/item/index.ts | 10 +- .../item/owners/item/ref/index.ts | 2 +- src/applications/item/owners/ref/index.ts | 4 +- src/applications/item/removeKey/index.ts | 35 +- .../removeKey/removeKeyPostRequestBody.ts | 37 - src/applications/item/removePassword/index.ts | 29 +- .../removePasswordPostRequestBody.ts | 31 - src/applications/item/restore/index.ts | 4 +- .../item/setVerifiedPublisher/index.ts | 56 +- .../acquireAccessTokenPostRequestBody.ts | 31 - .../acquireAccessToken/index.ts | 29 +- .../item/synchronization/index.ts | 10 +- .../item/synchronization/jobs/count/index.ts | 2 +- .../item/synchronization/jobs/index.ts | 10 +- .../item/synchronization/jobs/item/index.ts | 14 +- .../synchronization/jobs/item/pause/index.ts | 2 +- .../jobs/item/provisionOnDemand/index.ts | 58 +- .../jobs/item/restart/index.ts | 29 +- .../item/restart/restartPostRequestBody.ts | 31 - .../item/schema/directories/count/index.ts | 2 +- .../jobs/item/schema/directories/index.ts | 8 +- .../schema/directories/item/discover/index.ts | 4 +- .../item/schema/directories/item/index.ts | 4 +- .../jobs/item/schema/filterOperators/index.ts | 91 +-- .../schema/functions/functionsGetResponse.ts | 29 - .../jobs/item/schema/functions/index.ts | 28 +- .../synchronization/jobs/item/schema/index.ts | 10 +- .../jobs/item/schema/parseExpression/index.ts | 42 +- .../parseExpressionPostRequestBody.ts | 44 -- .../synchronization/jobs/item/start/index.ts | 2 +- .../jobs/item/validateCredentials/index.ts | 47 +- .../validateCredentialsPostRequestBody.ts | 49 -- .../jobs/validateCredentials/index.ts | 47 +- .../validateCredentialsPostRequestBody.ts | 49 -- .../synchronization/secrets/count/index.ts | 2 +- .../item/synchronization/secrets/index.ts | 4 +- .../synchronization/templates/count/index.ts | 2 +- .../item/synchronization/templates/index.ts | 8 +- .../synchronization/templates/item/index.ts | 4 +- .../item/schema/directories/count/index.ts | 2 +- .../item/schema/directories/index.ts | 8 +- .../schema/directories/item/discover/index.ts | 4 +- .../item/schema/directories/item/index.ts | 4 +- .../item/schema/filterOperators/index.ts | 91 +-- .../schema/functions/functionsGetResponse.ts | 29 - .../templates/item/schema/functions/index.ts | 28 +- .../templates/item/schema/index.ts | 10 +- .../item/schema/parseExpression/index.ts | 42 +- .../parseExpressionPostRequestBody.ts | 44 -- .../item/tokenIssuancePolicies/count/index.ts | 2 +- .../item/tokenIssuancePolicies/index.ts | 10 +- .../item/tokenIssuancePolicies/item/index.ts | 2 +- .../tokenIssuancePolicies/item/ref/index.ts | 2 +- .../item/tokenIssuancePolicies/ref/index.ts | 4 +- .../item/tokenLifetimePolicies/count/index.ts | 2 +- .../item/tokenLifetimePolicies/index.ts | 10 +- .../item/tokenLifetimePolicies/item/index.ts | 2 +- .../tokenLifetimePolicies/item/ref/index.ts | 2 +- .../item/tokenLifetimePolicies/ref/index.ts | 4 +- .../item/unsetVerifiedPublisher/index.ts | 2 +- src/applications/validateProperties/index.ts | 56 +- src/applicationsWithAppId/index.ts | 2 +- src/auditLogs/directoryAudits/count/index.ts | 2 +- src/auditLogs/directoryAudits/index.ts | 8 +- src/auditLogs/directoryAudits/item/index.ts | 2 +- src/auditLogs/index.ts | 8 +- src/auditLogs/provisioning/count/index.ts | 2 +- src/auditLogs/provisioning/index.ts | 8 +- src/auditLogs/provisioning/item/index.ts | 2 +- src/auditLogs/signIns/count/index.ts | 2 +- src/auditLogs/signIns/index.ts | 8 +- src/auditLogs/signIns/item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- src/authenticationMethodsPolicy/index.ts | 4 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- src/chats/count/index.ts | 2 +- src/chats/getAllMessages/index.ts | 95 +-- src/chats/index.ts | 10 +- .../hideForUser/hideForUserPostRequestBody.ts | 31 - src/chats/item/hideForUser/index.ts | 29 +- src/chats/item/index.ts | 26 +- src/chats/item/installedApps/count/index.ts | 2 +- src/chats/item/installedApps/index.ts | 8 +- src/chats/item/installedApps/item/index.ts | 8 +- .../item/installedApps/item/teamsApp/index.ts | 4 +- .../item/teamsAppDefinition/index.ts | 4 +- .../item/installedApps/item/upgrade/index.ts | 29 +- .../item/upgrade/upgradePostRequestBody.ts | 31 - src/chats/item/lastMessagePreview/index.ts | 2 +- src/chats/item/markChatReadForUser/index.ts | 29 +- .../markChatReadForUserPostRequestBody.ts | 31 - src/chats/item/markChatUnreadForUser/index.ts | 56 +- src/chats/item/members/add/index.ts | 81 +- src/chats/item/members/count/index.ts | 2 +- src/chats/item/members/index.ts | 10 +- src/chats/item/members/item/index.ts | 2 +- src/chats/item/messages/count/index.ts | 2 +- src/chats/item/messages/delta/index.ts | 91 +-- src/chats/item/messages/index.ts | 10 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- src/chats/item/messages/item/index.ts | 14 +- .../item/messages/item/replies/count/index.ts | 2 +- .../item/messages/item/replies/delta/index.ts | 91 +-- src/chats/item/messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../item/messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../item/messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../item/permissionGrants/count/index.ts | 2 +- src/chats/item/permissionGrants/index.ts | 8 +- src/chats/item/permissionGrants/item/index.ts | 2 +- src/chats/item/pinnedMessages/count/index.ts | 2 +- src/chats/item/pinnedMessages/index.ts | 8 +- src/chats/item/pinnedMessages/item/index.ts | 4 +- .../item/pinnedMessages/item/message/index.ts | 4 +- .../item/sendActivityNotification/index.ts | 62 +- ...sendActivityNotificationPostRequestBody.ts | 64 -- src/chats/item/tabs/count/index.ts | 2 +- src/chats/item/tabs/index.ts | 8 +- src/chats/item/tabs/item/index.ts | 4 +- src/chats/item/tabs/item/teamsApp/index.ts | 4 +- src/chats/item/unhideForUser/index.ts | 29 +- .../unhideForUserPostRequestBody.ts | 31 - src/communications/callRecords/count/index.ts | 2 +- src/communications/callRecords/index.ts | 12 +- src/communications/callRecords/item/index.ts | 4 +- .../callRecords/item/sessions/count/index.ts | 2 +- .../callRecords/item/sessions/index.ts | 8 +- .../callRecords/item/sessions/item/index.ts | 4 +- .../sessions/item/segments/count/index.ts | 2 +- .../item/sessions/item/segments/index.ts | 8 +- .../item/sessions/item/segments/item/index.ts | 2 +- ...thFromDateTimeWithToDateTimeGetResponse.ts | 29 - .../index.ts | 28 +- ...thFromDateTimeWithToDateTimeGetResponse.ts | 29 - .../index.ts | 28 +- src/communications/calls/count/index.ts | 2 +- src/communications/calls/index.ts | 10 +- .../addLargeGalleryViewPostRequestBody.ts | 30 - .../calls/item/addLargeGalleryView/index.ts | 58 +- src/communications/calls/item/answer/index.ts | 56 +- .../item/audioRoutingGroups/count/index.ts | 2 +- .../calls/item/audioRoutingGroups/index.ts | 8 +- .../item/audioRoutingGroups/item/index.ts | 2 +- .../cancelMediaProcessingPostRequestBody.ts | 30 - .../calls/item/cancelMediaProcessing/index.ts | 28 +- .../changeScreenSharingRolePostRequestBody.ts | 31 - .../item/changeScreenSharingRole/index.ts | 56 +- .../contentSharingSessions/count/index.ts | 2 +- .../item/contentSharingSessions/index.ts | 8 +- .../item/contentSharingSessions/item/index.ts | 2 +- src/communications/calls/item/index.ts | 38 +- .../calls/item/keepAlive/index.ts | 2 +- src/communications/calls/item/mute/index.ts | 58 +- .../calls/item/operations/count/index.ts | 2 +- .../calls/item/operations/index.ts | 8 +- .../calls/item/operations/item/index.ts | 2 +- .../calls/item/participants/count/index.ts | 2 +- .../calls/item/participants/index.ts | 10 +- .../calls/item/participants/invite/index.ts | 41 +- .../invite/invitePostRequestBody.ts | 37 - .../calls/item/participants/item/index.ts | 8 +- .../item/participants/item/mute/index.ts | 58 +- .../participants/item/startHoldMusic/index.ts | 35 +- .../startHoldMusicPostRequestBody.ts | 37 - .../participants/item/stopHoldMusic/index.ts | 58 +- .../calls/item/playPrompt/index.ts | 35 +- .../playPrompt/playPromptPostRequestBody.ts | 37 - .../calls/item/recordResponse/index.ts | 58 +- .../calls/item/redirect/index.ts | 41 +- .../item/redirect/redirectPostRequestBody.ts | 43 - src/communications/calls/item/reject/index.ts | 56 +- .../item/reject/rejectPostRequestBody.ts | 37 - .../calls/item/subscribeToTone/index.ts | 28 +- .../subscribeToTonePostRequestBody.ts | 30 - .../calls/item/transfer/index.ts | 56 +- src/communications/calls/item/unmute/index.ts | 28 +- .../item/unmute/unmutePostRequestBody.ts | 30 - .../calls/item/updateRecordingStatus/index.ts | 35 +- .../updateRecordingStatusPostRequestBody.ts | 37 - .../logTeleconferenceDeviceQuality/index.ts | 56 +- .../getPresencesByUserIdPostRequestBody.ts | 30 - .../getPresencesByUserIdPostResponse.ts | 29 - .../getPresencesByUserId/index.ts | 50 +- src/communications/index.ts | 12 +- .../onlineMeetings/count/index.ts | 2 +- .../onlineMeetings/createOrGet/index.ts | 58 +- src/communications/onlineMeetings/index.ts | 10 +- .../item/attendanceReports/count/index.ts | 2 +- .../item/attendanceReports/index.ts | 8 +- .../item/attendanceRecords/count/index.ts | 2 +- .../item/attendanceRecords/index.ts | 8 +- .../item/attendanceRecords/item/index.ts | 2 +- .../item/attendanceReports/item/index.ts | 4 +- .../item/attendeeReport/index.ts | 2 +- ...VirtualAppointmentJoinWebUrlGetResponse.ts | 30 - .../getVirtualAppointmentJoinWebUrl/index.ts | 29 +- .../onlineMeetings/item/index.ts | 12 +- .../item/recordings/count/index.ts | 2 +- .../onlineMeetings/item/recordings/index.ts | 8 +- .../item/recordings/item/content/index.ts | 4 +- .../item/recordings/item/index.ts | 4 +- .../item/transcripts/count/index.ts | 2 +- .../onlineMeetings/item/transcripts/index.ts | 8 +- .../item/transcripts/item/content/index.ts | 4 +- .../item/transcripts/item/index.ts | 6 +- .../transcripts/item/metadataContent/index.ts | 2 +- src/communications/presences/count/index.ts | 2 +- src/communications/presences/index.ts | 8 +- .../clearPresencePostRequestBody.ts | 30 - .../presences/item/clearPresence/index.ts | 28 +- .../item/clearUserPreferredPresence/index.ts | 2 +- src/communications/presences/item/index.ts | 12 +- .../presences/item/setPresence/index.ts | 46 +- .../setPresence/setPresencePostRequestBody.ts | 48 -- .../presences/item/setStatusMessage/index.ts | 56 +- .../item/setUserPreferredPresence/index.ts | 56 +- src/compliance/index.ts | 2 +- src/connections/count/index.ts | 2 +- src/connections/index.ts | 8 +- src/connections/item/groups/count/index.ts | 2 +- src/connections/item/groups/index.ts | 8 +- src/connections/item/groups/item/index.ts | 4 +- .../item/groups/item/members/count/index.ts | 2 +- .../item/groups/item/members/index.ts | 8 +- .../item/groups/item/members/item/index.ts | 2 +- src/connections/item/index.ts | 10 +- src/connections/item/items/count/index.ts | 2 +- src/connections/item/items/index.ts | 8 +- .../item/items/item/activities/count/index.ts | 2 +- .../item/items/item/activities/index.ts | 8 +- .../item/items/item/activities/item/index.ts | 4 +- .../item/activities/item/performedBy/index.ts | 4 +- src/connections/item/items/item/index.ts | 6 +- .../addActivitiesPostRequestBody.ts | 31 - .../addActivitiesPostResponse.ts | 29 - .../index.ts | 51 +- .../item/operations/count/index.ts | 2 +- src/connections/item/operations/index.ts | 8 +- src/connections/item/operations/item/index.ts | 2 +- src/connections/item/schema/index.ts | 2 +- src/contacts/count/index.ts | 2 +- src/contacts/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/contacts/getByIds/index.ts | 58 +- src/contacts/index.ts | 16 +- .../checkMemberGroupsPostRequestBody.ts | 30 - src/contacts/item/checkMemberGroups/index.ts | 58 +- src/contacts/item/checkMemberObjects/index.ts | 79 +- .../item/directReports/count/index.ts | 2 +- .../graphOrgContact/count/index.ts | 2 +- .../directReports/graphOrgContact/index.ts | 6 +- .../directReports/graphUser/count/index.ts | 2 +- .../item/directReports/graphUser/index.ts | 6 +- src/contacts/item/directReports/index.ts | 12 +- .../item/graphOrgContact/index.ts | 4 +- .../directReports/item/graphUser/index.ts | 4 +- src/contacts/item/directReports/item/index.ts | 8 +- .../getMemberGroupsPostResponse.ts | 28 - src/contacts/item/getMemberGroups/index.ts | 58 +- src/contacts/item/getMemberObjects/index.ts | 78 +- src/contacts/item/index.ts | 24 +- src/contacts/item/manager/index.ts | 4 +- src/contacts/item/memberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../memberOf/graphAdministrativeUnit/index.ts | 6 +- .../item/memberOf/graphGroup/count/index.ts | 2 +- .../item/memberOf/graphGroup/index.ts | 6 +- src/contacts/item/memberOf/index.ts | 12 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/memberOf/item/graphGroup/index.ts | 4 +- src/contacts/item/memberOf/item/index.ts | 8 +- src/contacts/item/restore/index.ts | 4 +- .../item/retryServiceProvisioning/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../item/transitiveMemberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../graphAdministrativeUnit/index.ts | 6 +- .../graphGroup/count/index.ts | 2 +- .../transitiveMemberOf/graphGroup/index.ts | 6 +- src/contacts/item/transitiveMemberOf/index.ts | 12 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/graphGroup/index.ts | 4 +- .../item/transitiveMemberOf/item/index.ts | 8 +- src/contacts/validateProperties/index.ts | 56 +- src/contracts/count/index.ts | 2 +- src/contracts/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/contracts/getByIds/index.ts | 58 +- src/contracts/index.ts | 16 +- .../checkMemberGroupsPostRequestBody.ts | 30 - src/contracts/item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../getMemberGroupsPostResponse.ts | 28 - src/contracts/item/getMemberGroups/index.ts | 58 +- src/contracts/item/getMemberObjects/index.ts | 78 +- src/contracts/item/index.ts | 12 +- src/contracts/item/restore/index.ts | 4 +- src/contracts/validateProperties/index.ts | 56 +- src/dataPolicyOperations/count/index.ts | 2 +- src/dataPolicyOperations/index.ts | 8 +- src/dataPolicyOperations/item/index.ts | 2 +- .../count/index.ts | 2 +- .../androidManagedAppProtections/index.ts | 8 +- .../item/apps/count/index.ts | 2 +- .../item/apps/index.ts | 8 +- .../item/apps/item/index.ts | 2 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../item/deploymentSummary/index.ts | 2 +- .../item/index.ts | 8 +- .../count/index.ts | 2 +- .../defaultManagedAppProtections/index.ts | 8 +- .../item/apps/count/index.ts | 2 +- .../item/apps/index.ts | 8 +- .../item/apps/item/index.ts | 2 +- .../item/deploymentSummary/index.ts | 2 +- .../item/index.ts | 6 +- src/deviceAppManagement/index.ts | 36 +- .../iosManagedAppProtections/count/index.ts | 2 +- .../iosManagedAppProtections/index.ts | 8 +- .../item/apps/count/index.ts | 2 +- .../item/apps/index.ts | 8 +- .../item/apps/item/index.ts | 2 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../item/deploymentSummary/index.ts | 2 +- .../iosManagedAppProtections/item/index.ts | 8 +- .../managedAppPolicies/count/index.ts | 2 +- .../managedAppPolicies/index.ts | 8 +- .../managedAppPolicies/item/index.ts | 10 +- .../item/targetApps/index.ts | 31 +- .../targetApps/targetAppsPostRequestBody.ts | 31 - .../managedAppRegistrations/count/index.ts | 2 +- ...dsWithFlaggedAppRegistrationGetResponse.ts | 28 - .../index.ts | 27 +- .../managedAppRegistrations/index.ts | 16 +- .../item/appliedPolicies/count/index.ts | 2 +- .../item/appliedPolicies/index.ts | 8 +- .../item/appliedPolicies/item/index.ts | 4 +- .../appliedPolicies/item/targetApps/index.ts | 31 +- .../targetApps/targetAppsPostRequestBody.ts | 31 - .../managedAppRegistrations/item/index.ts | 8 +- .../item/intendedPolicies/count/index.ts | 2 +- .../item/intendedPolicies/index.ts | 8 +- .../item/intendedPolicies/item/index.ts | 4 +- .../intendedPolicies/item/targetApps/index.ts | 31 +- .../targetApps/targetAppsPostRequestBody.ts | 31 - .../item/operations/count/index.ts | 2 +- .../item/operations/index.ts | 8 +- .../item/operations/item/index.ts | 2 +- .../managedAppStatuses/count/index.ts | 2 +- .../managedAppStatuses/index.ts | 8 +- .../managedAppStatuses/item/index.ts | 2 +- .../managedEBooks/count/index.ts | 2 +- .../managedEBooks/index.ts | 8 +- .../managedEBooks/item/assign/index.ts | 56 +- .../item/assignments/count/index.ts | 2 +- .../managedEBooks/item/assignments/index.ts | 20 +- .../item/assignments/item/index.ts | 2 +- .../item/deviceStates/count/index.ts | 2 +- .../managedEBooks/item/deviceStates/index.ts | 8 +- .../item/deviceStates/item/index.ts | 2 +- .../managedEBooks/item/index.ts | 12 +- .../item/installSummary/index.ts | 2 +- .../item/userStateSummary/count/index.ts | 2 +- .../item/userStateSummary/index.ts | 8 +- .../item/deviceStates/count/index.ts | 2 +- .../item/deviceStates/index.ts | 8 +- .../item/deviceStates/item/index.ts | 2 +- .../item/userStateSummary/item/index.ts | 4 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../item/exemptAppLockerFiles/count/index.ts | 2 +- .../item/exemptAppLockerFiles/index.ts | 8 +- .../item/exemptAppLockerFiles/item/index.ts | 2 +- .../item/index.ts | 8 +- .../protectedAppLockerFiles/count/index.ts | 2 +- .../item/protectedAppLockerFiles/index.ts | 8 +- .../protectedAppLockerFiles/item/index.ts | 2 +- .../mobileAppCategories/count/index.ts | 2 +- .../mobileAppCategories/index.ts | 8 +- .../mobileAppCategories/item/index.ts | 2 +- .../mobileAppConfigurations/count/index.ts | 2 +- .../mobileAppConfigurations/index.ts | 8 +- .../item/assign/index.ts | 56 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../item/deviceStatusSummary/index.ts | 2 +- .../item/deviceStatuses/count/index.ts | 2 +- .../item/deviceStatuses/index.ts | 8 +- .../item/deviceStatuses/item/index.ts | 2 +- .../mobileAppConfigurations/item/index.ts | 20 +- .../item/userStatusSummary/index.ts | 2 +- .../item/userStatuses/count/index.ts | 2 +- .../item/userStatuses/index.ts | 8 +- .../item/userStatuses/item/index.ts | 2 +- .../mobileApps/count/index.ts | 2 +- .../graphAndroidLobApp/count/index.ts | 2 +- .../mobileApps/graphAndroidLobApp/index.ts | 6 +- .../graphAndroidStoreApp/count/index.ts | 2 +- .../mobileApps/graphAndroidStoreApp/index.ts | 6 +- .../mobileApps/graphIosLobApp/count/index.ts | 2 +- .../mobileApps/graphIosLobApp/index.ts | 6 +- .../graphIosStoreApp/count/index.ts | 2 +- .../mobileApps/graphIosStoreApp/index.ts | 6 +- .../mobileApps/graphIosVppApp/count/index.ts | 2 +- .../mobileApps/graphIosVppApp/index.ts | 6 +- .../graphMacOSDmgApp/count/index.ts | 2 +- .../mobileApps/graphMacOSDmgApp/index.ts | 6 +- .../graphMacOSLobApp/count/index.ts | 2 +- .../mobileApps/graphMacOSLobApp/index.ts | 6 +- .../graphManagedAndroidLobApp/count/index.ts | 2 +- .../graphManagedAndroidLobApp/index.ts | 6 +- .../graphManagedIOSLobApp/count/index.ts | 2 +- .../mobileApps/graphManagedIOSLobApp/index.ts | 6 +- .../graphManagedMobileLobApp/count/index.ts | 2 +- .../graphManagedMobileLobApp/index.ts | 6 +- .../count/index.ts | 2 +- .../index.ts | 6 +- .../graphWin32LobApp/count/index.ts | 2 +- .../mobileApps/graphWin32LobApp/index.ts | 6 +- .../graphWindowsAppX/count/index.ts | 2 +- .../mobileApps/graphWindowsAppX/index.ts | 6 +- .../graphWindowsMobileMSI/count/index.ts | 2 +- .../mobileApps/graphWindowsMobileMSI/index.ts | 6 +- .../graphWindowsUniversalAppX/count/index.ts | 2 +- .../graphWindowsUniversalAppX/index.ts | 6 +- .../graphWindowsWebApp/count/index.ts | 2 +- .../mobileApps/graphWindowsWebApp/index.ts | 6 +- src/deviceAppManagement/mobileApps/index.ts | 52 +- .../mobileApps/item/assign/index.ts | 56 +- .../item/assignments/count/index.ts | 2 +- .../mobileApps/item/assignments/index.ts | 8 +- .../mobileApps/item/assignments/item/index.ts | 2 +- .../mobileApps/item/categories/count/index.ts | 2 +- .../mobileApps/item/categories/index.ts | 8 +- .../mobileApps/item/categories/item/index.ts | 4 +- .../assignments/count/index.ts | 2 +- .../graphAndroidLobApp/assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../graphAndroidLobApp/categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../item/graphAndroidLobApp/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../graphAndroidStoreApp/assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../graphAndroidStoreApp/categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../item/graphAndroidStoreApp/index.ts | 8 +- .../graphIosLobApp/assignments/count/index.ts | 2 +- .../item/graphIosLobApp/assignments/index.ts | 8 +- .../graphIosLobApp/assignments/item/index.ts | 2 +- .../graphIosLobApp/categories/count/index.ts | 2 +- .../item/graphIosLobApp/categories/index.ts | 8 +- .../graphIosLobApp/categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../graphIosLobApp/contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../mobileApps/item/graphIosLobApp/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../graphIosStoreApp/assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../item/graphIosStoreApp/categories/index.ts | 8 +- .../graphIosStoreApp/categories/item/index.ts | 4 +- .../mobileApps/item/graphIosStoreApp/index.ts | 8 +- .../graphIosVppApp/assignments/count/index.ts | 2 +- .../item/graphIosVppApp/assignments/index.ts | 8 +- .../graphIosVppApp/assignments/item/index.ts | 2 +- .../graphIosVppApp/categories/count/index.ts | 2 +- .../item/graphIosVppApp/categories/index.ts | 8 +- .../graphIosVppApp/categories/item/index.ts | 4 +- .../mobileApps/item/graphIosVppApp/index.ts | 8 +- .../assignments/count/index.ts | 2 +- .../graphMacOSDmgApp/assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../item/graphMacOSDmgApp/categories/index.ts | 8 +- .../graphMacOSDmgApp/categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../graphMacOSDmgApp/contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../mobileApps/item/graphMacOSDmgApp/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../graphMacOSLobApp/assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../item/graphMacOSLobApp/categories/index.ts | 8 +- .../graphMacOSLobApp/categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../graphMacOSLobApp/contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../mobileApps/item/graphMacOSLobApp/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../item/graphManagedAndroidLobApp/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../graphManagedIOSLobApp/categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../item/graphManagedIOSLobApp/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../item/graphManagedMobileLobApp/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../index.ts | 8 +- .../assignments/count/index.ts | 2 +- .../graphWin32LobApp/assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../item/graphWin32LobApp/categories/index.ts | 8 +- .../graphWin32LobApp/categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../graphWin32LobApp/contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../mobileApps/item/graphWin32LobApp/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../graphWindowsAppX/assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../item/graphWindowsAppX/categories/index.ts | 8 +- .../graphWindowsAppX/categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../graphWindowsAppX/contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../mobileApps/item/graphWindowsAppX/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../graphWindowsMobileMSI/categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../contentVersions/count/index.ts | 2 +- .../contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../item/graphWindowsMobileMSI/index.ts | 10 +- .../assignments/count/index.ts | 2 +- .../assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../committedContainedApps/count/index.ts | 2 +- .../committedContainedApps/index.ts | 8 +- .../committedContainedApps/item/index.ts | 2 +- .../contentVersions/count/index.ts | 2 +- .../contentVersions/index.ts | 8 +- .../item/containedApps/count/index.ts | 2 +- .../item/containedApps/index.ts | 8 +- .../item/containedApps/item/index.ts | 2 +- .../contentVersions/item/files/count/index.ts | 2 +- .../contentVersions/item/files/index.ts | 8 +- .../item/commit/commitPostRequestBody.ts | 31 - .../item/files/item/commit/index.ts | 29 +- .../contentVersions/item/files/item/index.ts | 6 +- .../item/files/item/renewUpload/index.ts | 2 +- .../contentVersions/item/index.ts | 6 +- .../item/graphWindowsUniversalAppX/index.ts | 12 +- .../assignments/count/index.ts | 2 +- .../graphWindowsWebApp/assignments/index.ts | 8 +- .../assignments/item/index.ts | 2 +- .../categories/count/index.ts | 2 +- .../graphWindowsWebApp/categories/index.ts | 8 +- .../categories/item/index.ts | 4 +- .../item/graphWindowsWebApp/index.ts | 8 +- .../mobileApps/item/index.ts | 52 +- .../index.ts | 2 +- .../count/index.ts | 2 +- .../targetedManagedAppConfigurations/index.ts | 8 +- .../item/apps/count/index.ts | 2 +- .../item/apps/index.ts | 8 +- .../item/apps/item/index.ts | 2 +- .../item/assign/index.ts | 56 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../item/deploymentSummary/index.ts | 2 +- .../item/index.ts | 12 +- .../item/targetApps/index.ts | 36 +- .../targetApps/targetAppsPostRequestBody.ts | 38 - .../vppTokens/count/index.ts | 2 +- src/deviceAppManagement/vppTokens/index.ts | 8 +- .../vppTokens/item/index.ts | 4 +- .../vppTokens/item/syncLicenses/index.ts | 4 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../item/exemptAppLockerFiles/count/index.ts | 2 +- .../item/exemptAppLockerFiles/index.ts | 8 +- .../item/exemptAppLockerFiles/item/index.ts | 2 +- .../item/index.ts | 8 +- .../protectedAppLockerFiles/count/index.ts | 2 +- .../item/protectedAppLockerFiles/index.ts | 8 +- .../protectedAppLockerFiles/item/index.ts | 2 +- .../index.ts | 52 +- .../applePushNotificationCertificate/index.ts | 4 +- .../auditEvents/count/index.ts | 2 +- ...ditActivityTypesWithCategoryGetResponse.ts | 28 - .../index.ts | 27 +- .../auditEvents/getAuditCategories/index.ts | 81 +- src/deviceManagement/auditEvents/index.ts | 12 +- .../auditEvents/item/index.ts | 2 +- .../count/index.ts | 2 +- .../complianceManagementPartners/index.ts | 8 +- .../item/index.ts | 2 +- .../conditionalAccessSettings/index.ts | 2 +- .../detectedApps/count/index.ts | 2 +- src/deviceManagement/detectedApps/index.ts | 8 +- .../detectedApps/item/index.ts | 4 +- .../item/managedDevices/count/index.ts | 2 +- .../detectedApps/item/managedDevices/index.ts | 8 +- .../item/managedDevices/item/index.ts | 4 +- .../deviceCategories/count/index.ts | 2 +- .../deviceCategories/index.ts | 8 +- .../deviceCategories/item/index.ts | 2 +- .../deviceCompliancePolicies/count/index.ts | 2 +- .../deviceCompliancePolicies/index.ts | 20 +- .../item/assign/index.ts | 80 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../count/index.ts | 2 +- .../item/deviceSettingStateSummaries/index.ts | 8 +- .../deviceSettingStateSummaries/item/index.ts | 2 +- .../item/deviceStatusOverview/index.ts | 2 +- .../item/deviceStatuses/count/index.ts | 2 +- .../item/deviceStatuses/index.ts | 8 +- .../item/deviceStatuses/item/index.ts | 2 +- .../deviceCompliancePolicies/item/index.ts | 32 +- .../item/scheduleActionsForRules/index.ts | 56 +- .../scheduledActionsForRule/count/index.ts | 2 +- .../item/scheduledActionsForRule/index.ts | 8 +- .../scheduledActionsForRule/item/index.ts | 4 +- .../count/index.ts | 2 +- .../scheduledActionConfigurations/index.ts | 8 +- .../item/index.ts | 2 +- .../item/userStatusOverview/index.ts | 2 +- .../item/userStatuses/count/index.ts | 2 +- .../item/userStatuses/index.ts | 8 +- .../item/userStatuses/item/index.ts | 2 +- .../index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../count/index.ts | 2 +- .../deviceComplianceSettingStates/index.ts | 8 +- .../item/index.ts | 2 +- .../item/index.ts | 4 +- .../index.ts | 2 +- .../deviceConfigurations/count/index.ts | 2 +- .../deviceConfigurations/index.ts | 20 +- .../deviceConfigurations/item/assign/index.ts | 80 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../count/index.ts | 2 +- .../item/deviceSettingStateSummaries/index.ts | 8 +- .../deviceSettingStateSummaries/item/index.ts | 2 +- .../item/deviceStatusOverview/index.ts | 2 +- .../item/deviceStatuses/count/index.ts | 2 +- .../item/deviceStatuses/index.ts | 8 +- .../item/deviceStatuses/item/index.ts | 2 +- .../index.ts | 54 +- .../deviceConfigurations/item/index.ts | 36 +- .../item/userStatusOverview/index.ts | 2 +- .../item/userStatuses/count/index.ts | 2 +- .../item/userStatuses/index.ts | 8 +- .../item/userStatuses/item/index.ts | 2 +- .../count/index.ts | 2 +- .../deviceEnrollmentConfigurations/index.ts | 14 +- .../item/assign/index.ts | 56 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../item/index.ts | 20 +- .../item/setPriority/index.ts | 28 +- .../setPriority/setPriorityPostRequestBody.ts | 30 - .../deviceManagementPartners/count/index.ts | 2 +- .../deviceManagementPartners/index.ts | 8 +- .../deviceManagementPartners/item/index.ts | 4 +- .../item/terminate/index.ts | 2 +- .../exchangeConnectors/count/index.ts | 2 +- .../exchangeConnectors/index.ts | 8 +- .../exchangeConnectors/item/index.ts | 4 +- .../exchangeConnectors/item/sync/index.ts | 56 +- ...ffectivePermissionsWithScopeGetResponse.ts | 29 - .../getEffectivePermissionsWithScope/index.ts | 28 +- .../count/index.ts | 2 +- .../importEscaped/importPostRequestBody.ts | 31 - .../importEscaped/importPostResponse.ts | 29 - .../importEscaped/index.ts | 50 +- .../index.ts | 10 +- .../item/index.ts | 2 +- src/deviceManagement/index.ts | 126 +-- .../iosUpdateStatuses/count/index.ts | 2 +- .../iosUpdateStatuses/index.ts | 8 +- .../iosUpdateStatuses/item/index.ts | 2 +- .../managedDeviceOverview/index.ts | 4 +- .../managedDevices/count/index.ts | 2 +- src/deviceManagement/managedDevices/index.ts | 8 +- .../item/bypassActivationLock/index.ts | 2 +- .../cleanWindowsDevicePostRequestBody.ts | 30 - .../item/cleanWindowsDevice/index.ts | 28 +- ...serFromSharedAppleDevicePostRequestBody.ts | 30 - .../deleteUserFromSharedAppleDevice/index.ts | 28 +- .../item/deviceCategory/index.ts | 2 +- .../count/index.ts | 2 +- .../deviceCompliancePolicyStates/index.ts | 8 +- .../item/index.ts | 2 +- .../deviceConfigurationStates/count/index.ts | 2 +- .../item/deviceConfigurationStates/index.ts | 8 +- .../deviceConfigurationStates/item/index.ts | 2 +- .../item/disableLostMode/index.ts | 2 +- .../managedDevices/item/index.ts | 50 +- .../managedDevices/item/locateDevice/index.ts | 2 +- .../item/logCollectionRequests/count/index.ts | 2 +- .../item/logCollectionRequests/index.ts | 8 +- .../createDownloadUrlPostResponse.ts | 30 - .../item/createDownloadUrl/index.ts | 52 +- .../item/logCollectionRequests/item/index.ts | 4 +- .../index.ts | 2 +- .../managedDevices/item/rebootNow/index.ts | 2 +- .../item/recoverPasscode/index.ts | 2 +- .../managedDevices/item/remoteLock/index.ts | 2 +- .../item/requestRemoteAssistance/index.ts | 2 +- .../item/resetPasscode/index.ts | 2 +- .../managedDevices/item/retire/index.ts | 2 +- .../managedDevices/item/shutDown/index.ts | 2 +- .../managedDevices/item/syncDevice/index.ts | 2 +- .../item/updateWindowsDeviceAccount/index.ts | 29 +- ...dateWindowsDeviceAccountPostRequestBody.ts | 31 - .../managedDevices/item/users/index.ts | 4 +- .../item/windowsDefenderScan/index.ts | 28 +- .../windowsDefenderScanPostRequestBody.ts | 30 - .../windowsDefenderUpdateSignatures/index.ts | 2 +- .../detectedMalwareState/count/index.ts | 2 +- .../detectedMalwareState/index.ts | 8 +- .../detectedMalwareState/item/index.ts | 2 +- .../item/windowsProtectionState/index.ts | 4 +- .../managedDevices/item/wipe/index.ts | 46 +- .../item/wipe/wipePostRequestBody.ts | 48 -- .../count/index.ts | 2 +- .../mobileAppTroubleshootingEvents/index.ts | 8 +- .../appLogCollectionRequests/count/index.ts | 2 +- .../item/appLogCollectionRequests/index.ts | 8 +- .../item/createDownloadUrl/index.ts | 4 +- .../appLogCollectionRequests/item/index.ts | 4 +- .../item/index.ts | 4 +- .../count/index.ts | 2 +- .../mobileThreatDefenseConnectors/index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../notificationMessageTemplates/index.ts | 8 +- .../item/index.ts | 6 +- .../count/index.ts | 2 +- .../localizedNotificationMessages/index.ts | 8 +- .../item/index.ts | 2 +- .../item/sendTestMessage/index.ts | 2 +- .../remoteAssistancePartners/count/index.ts | 2 +- .../remoteAssistancePartners/index.ts | 8 +- .../item/beginOnboarding/index.ts | 2 +- .../item/disconnect/index.ts | 2 +- .../remoteAssistancePartners/item/index.ts | 6 +- .../reports/exportJobs/count/index.ts | 2 +- .../reports/exportJobs/index.ts | 8 +- .../reports/exportJobs/item/index.ts | 2 +- .../reports/getCachedReport/index.ts | 57 +- .../index.ts | 57 +- .../index.ts | 57 +- .../index.ts | 57 +- ...olicyNonComplianceReportPostRequestBody.ts | 78 -- .../index.ts | 76 +- ...nComplianceSummaryReportPostRequestBody.ts | 78 -- .../index.ts | 76 +- ...ttingNonComplianceReportPostRequestBody.ts | 78 -- .../index.ts | 76 +- ...tingContributingProfilesPostRequestBody.ts | 78 -- .../index.ts | 76 +- .../index.ts | 57 +- .../getDeviceNonComplianceReport/index.ts | 57 +- ...utCompliancePolicyReportPostRequestBody.ts | 78 -- .../index.ts | 76 +- .../getHistoricalReportPostRequestBody.ts | 72 -- .../reports/getHistoricalReport/index.ts | 70 +- .../index.ts | 57 +- ...icyNonComplianceMetadataPostRequestBody.ts | 78 -- .../getPolicyNonComplianceMetadata/index.ts | 76 +- ...olicyNonComplianceReportPostRequestBody.ts | 78 -- .../getPolicyNonComplianceReport/index.ts | 76 +- ...nComplianceSummaryReportPostRequestBody.ts | 78 -- .../index.ts | 76 +- .../getReportFiltersPostRequestBody.ts | 78 -- .../reports/getReportFilters/index.ts | 76 +- ...ttingNonComplianceReportPostRequestBody.ts | 78 -- .../getSettingNonComplianceReport/index.ts | 76 +- src/deviceManagement/reports/index.ts | 40 +- .../resourceOperations/count/index.ts | 2 +- .../resourceOperations/index.ts | 8 +- .../resourceOperations/item/index.ts | 2 +- .../roleAssignments/count/index.ts | 2 +- src/deviceManagement/roleAssignments/index.ts | 8 +- .../roleAssignments/item/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../roleDefinitions/count/index.ts | 2 +- src/deviceManagement/roleDefinitions/index.ts | 14 +- .../roleDefinitions/item/index.ts | 10 +- .../item/roleAssignments/count/index.ts | 2 +- .../item/roleAssignments/index.ts | 8 +- .../item/roleAssignments/item/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../softwareUpdateStatusSummary/index.ts | 4 +- .../count/index.ts | 2 +- .../telecomExpenseManagementPartners/index.ts | 8 +- .../item/index.ts | 2 +- .../termsAndConditions/count/index.ts | 2 +- .../termsAndConditions/index.ts | 8 +- .../item/acceptanceStatuses/count/index.ts | 2 +- .../item/acceptanceStatuses/index.ts | 8 +- .../item/acceptanceStatuses/item/index.ts | 4 +- .../item/termsAndConditions/index.ts | 4 +- .../item/assignments/count/index.ts | 2 +- .../item/assignments/index.ts | 8 +- .../item/assignments/item/index.ts | 2 +- .../termsAndConditions/item/index.ts | 6 +- .../troubleshootingEvents/count/index.ts | 2 +- .../troubleshootingEvents/index.ts | 8 +- .../troubleshootingEvents/item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../index.ts | 4 +- .../metricValues/count/index.ts | 2 +- .../metricValues/index.ts | 8 +- .../metricValues/item/index.ts | 2 +- .../count/index.ts | 2 +- .../userExperienceAnalyticsBaselines/index.ts | 8 +- .../item/appHealthMetrics/index.ts | 4 +- .../item/batteryHealthMetrics/index.ts | 4 +- .../item/bestPracticesMetrics/index.ts | 4 +- .../deviceBootPerformanceMetrics/index.ts | 4 +- .../item/index.ts | 16 +- .../item/rebootAnalyticsMetrics/index.ts | 4 +- .../item/resourcePerformanceMetrics/index.ts | 4 +- .../item/workFromAnywhereMetrics/index.ts | 4 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 4 +- .../item/metricValues/count/index.ts | 2 +- .../item/metricValues/index.ts | 8 +- .../item/metricValues/item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 10 +- .../item/index.ts | 2 +- .../index.ts | 28 +- ...rmanceDevicesWithSummarizeByGetResponse.ts | 29 - .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../userExperienceAnalyticsOverview/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../index.ts | 4 +- .../index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 4 +- .../item/metricDevices/count/index.ts | 2 +- .../item/metricDevices/index.ts | 8 +- .../item/metricDevices/item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../index.ts | 54 +- .../count/index.ts | 2 +- .../windowsAutopilotDeviceIdentities/index.ts | 8 +- .../assignUserToDevicePostRequestBody.ts | 36 - .../item/assignUserToDevice/index.ts | 34 +- .../item/index.ts | 8 +- .../item/unassignUserFromDevice/index.ts | 2 +- .../item/updateDeviceProperties/index.ts | 46 +- .../updateDevicePropertiesPostRequestBody.ts | 48 -- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../windowsMalwareInformation/count/index.ts | 2 +- .../windowsMalwareInformation/index.ts | 8 +- .../item/deviceMalwareStates/count/index.ts | 2 +- .../item/deviceMalwareStates/index.ts | 8 +- .../item/deviceMalwareStates/item/index.ts | 2 +- .../windowsMalwareInformation/item/index.ts | 4 +- src/devices/count/index.ts | 2 +- src/devices/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/devices/getByIds/index.ts | 58 +- src/devices/index.ts | 16 +- .../checkMemberGroupsPostRequestBody.ts | 30 - src/devices/item/checkMemberGroups/index.ts | 58 +- src/devices/item/checkMemberObjects/index.ts | 79 +- src/devices/item/extensions/count/index.ts | 2 +- src/devices/item/extensions/index.ts | 8 +- src/devices/item/extensions/item/index.ts | 2 +- .../getMemberGroupsPostResponse.ts | 28 - src/devices/item/getMemberGroups/index.ts | 58 +- src/devices/item/getMemberObjects/index.ts | 78 +- src/devices/item/index.ts | 22 +- src/devices/item/memberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../memberOf/graphAdministrativeUnit/index.ts | 6 +- .../item/memberOf/graphGroup/count/index.ts | 2 +- src/devices/item/memberOf/graphGroup/index.ts | 6 +- src/devices/item/memberOf/index.ts | 12 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/memberOf/item/graphGroup/index.ts | 4 +- src/devices/item/memberOf/item/index.ts | 8 +- .../item/registeredOwners/count/index.ts | 2 +- .../graphAppRoleAssignment/count/index.ts | 2 +- .../graphAppRoleAssignment/index.ts | 6 +- .../graphEndpoint/count/index.ts | 2 +- .../registeredOwners/graphEndpoint/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- .../registeredOwners/graphUser/count/index.ts | 2 +- .../item/registeredOwners/graphUser/index.ts | 6 +- src/devices/item/registeredOwners/index.ts | 18 +- .../item/graphAppRoleAssignment/index.ts | 4 +- .../item/graphEndpoint/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../registeredOwners/item/graphUser/index.ts | 4 +- .../item/registeredOwners/item/index.ts | 10 +- .../item/registeredOwners/item/ref/index.ts | 2 +- .../item/registeredOwners/ref/index.ts | 4 +- .../item/registeredUsers/count/index.ts | 2 +- .../graphAppRoleAssignment/count/index.ts | 2 +- .../graphAppRoleAssignment/index.ts | 6 +- .../graphEndpoint/count/index.ts | 2 +- .../registeredUsers/graphEndpoint/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- .../registeredUsers/graphUser/count/index.ts | 2 +- .../item/registeredUsers/graphUser/index.ts | 6 +- src/devices/item/registeredUsers/index.ts | 18 +- .../item/graphAppRoleAssignment/index.ts | 4 +- .../item/graphEndpoint/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../registeredUsers/item/graphUser/index.ts | 4 +- .../item/registeredUsers/item/index.ts | 10 +- .../item/registeredUsers/item/ref/index.ts | 2 +- src/devices/item/registeredUsers/ref/index.ts | 4 +- src/devices/item/restore/index.ts | 4 +- .../item/transitiveMemberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../graphAdministrativeUnit/index.ts | 6 +- .../graphGroup/count/index.ts | 2 +- .../transitiveMemberOf/graphGroup/index.ts | 6 +- src/devices/item/transitiveMemberOf/index.ts | 12 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/graphGroup/index.ts | 4 +- .../item/transitiveMemberOf/item/index.ts | 8 +- src/devices/validateProperties/index.ts | 56 +- src/devicesWithDeviceId/index.ts | 2 +- .../administrativeUnits/count/index.ts | 2 +- .../administrativeUnits/delta/index.ts | 91 +-- src/directory/administrativeUnits/index.ts | 10 +- .../item/extensions/count/index.ts | 2 +- .../item/extensions/index.ts | 8 +- .../item/extensions/item/index.ts | 2 +- .../administrativeUnits/item/index.ts | 8 +- .../item/members/count/index.ts | 2 +- .../members/graphApplication/count/index.ts | 2 +- .../item/members/graphApplication/index.ts | 6 +- .../item/members/graphDevice/count/index.ts | 2 +- .../item/members/graphDevice/index.ts | 6 +- .../item/members/graphGroup/count/index.ts | 2 +- .../item/members/graphGroup/index.ts | 6 +- .../members/graphOrgContact/count/index.ts | 2 +- .../item/members/graphOrgContact/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../members/graphServicePrincipal/index.ts | 6 +- .../item/members/graphUser/count/index.ts | 2 +- .../item/members/graphUser/index.ts | 6 +- .../administrativeUnits/item/members/index.ts | 22 +- .../members/item/graphApplication/index.ts | 4 +- .../item/members/item/graphDevice/index.ts | 4 +- .../item/members/item/graphGroup/index.ts | 4 +- .../members/item/graphOrgContact/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/members/item/graphUser/index.ts | 4 +- .../item/members/item/index.ts | 14 +- .../item/members/item/ref/index.ts | 2 +- .../item/members/ref/index.ts | 4 +- .../item/scopedRoleMembers/count/index.ts | 2 +- .../item/scopedRoleMembers/index.ts | 8 +- .../item/scopedRoleMembers/item/index.ts | 2 +- src/directory/attributeSets/count/index.ts | 2 +- src/directory/attributeSets/index.ts | 8 +- src/directory/attributeSets/item/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/allowedValues/count/index.ts | 2 +- .../item/allowedValues/index.ts | 8 +- .../item/allowedValues/item/index.ts | 2 +- .../item/index.ts | 4 +- src/directory/deletedItems/count/index.ts | 2 +- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/directory/deletedItems/getByIds/index.ts | 58 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../graphAdministrativeUnit/index.ts | 6 +- .../graphApplication/count/index.ts | 2 +- .../deletedItems/graphApplication/index.ts | 6 +- .../deletedItems/graphDevice/count/index.ts | 2 +- .../deletedItems/graphDevice/index.ts | 6 +- .../deletedItems/graphGroup/count/index.ts | 2 +- .../deletedItems/graphGroup/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- .../deletedItems/graphUser/count/index.ts | 2 +- src/directory/deletedItems/graphUser/index.ts | 6 +- src/directory/deletedItems/index.ts | 26 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/graphApplication/index.ts | 4 +- .../deletedItems/item/graphDevice/index.ts | 4 +- .../deletedItems/item/graphGroup/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../deletedItems/item/graphUser/index.ts | 4 +- src/directory/deletedItems/item/index.ts | 26 +- .../deletedItems/item/restore/index.ts | 4 +- .../deletedItems/validateProperties/index.ts | 56 +- .../deviceLocalCredentials/count/index.ts | 2 +- src/directory/deviceLocalCredentials/index.ts | 8 +- .../deviceLocalCredentials/item/index.ts | 2 +- .../availableProviderTypesGetResponse.ts | 28 - .../availableProviderTypes/index.ts | 27 +- .../federationConfigurations/count/index.ts | 2 +- .../federationConfigurations/index.ts | 10 +- .../federationConfigurations/item/index.ts | 2 +- src/directory/index.ts | 16 +- .../onPremisesSynchronization/count/index.ts | 2 +- .../onPremisesSynchronization/index.ts | 8 +- .../onPremisesSynchronization/item/index.ts | 2 +- src/directoryObjects/count/index.ts | 2 +- src/directoryObjects/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/directoryObjects/getByIds/index.ts | 58 +- src/directoryObjects/index.ts | 16 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- src/directoryObjects/item/index.ts | 12 +- src/directoryObjects/item/restore/index.ts | 4 +- .../validateProperties/index.ts | 56 +- src/directoryRoleTemplates/count/index.ts | 2 +- src/directoryRoleTemplates/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/directoryRoleTemplates/getByIds/index.ts | 58 +- src/directoryRoleTemplates/index.ts | 16 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- src/directoryRoleTemplates/item/index.ts | 12 +- .../item/restore/index.ts | 4 +- .../validateProperties/index.ts | 56 +- src/directoryRoles/count/index.ts | 2 +- src/directoryRoles/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/directoryRoles/getByIds/index.ts | 58 +- src/directoryRoles/index.ts | 16 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- src/directoryRoles/item/index.ts | 16 +- .../item/members/count/index.ts | 2 +- .../members/graphApplication/count/index.ts | 2 +- .../item/members/graphApplication/index.ts | 6 +- .../item/members/graphDevice/count/index.ts | 2 +- .../item/members/graphDevice/index.ts | 6 +- .../item/members/graphGroup/count/index.ts | 2 +- .../item/members/graphGroup/index.ts | 6 +- .../members/graphOrgContact/count/index.ts | 2 +- .../item/members/graphOrgContact/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../members/graphServicePrincipal/index.ts | 6 +- .../item/members/graphUser/count/index.ts | 2 +- .../item/members/graphUser/index.ts | 6 +- src/directoryRoles/item/members/index.ts | 22 +- .../members/item/graphApplication/index.ts | 4 +- .../item/members/item/graphDevice/index.ts | 4 +- .../item/members/item/graphGroup/index.ts | 4 +- .../members/item/graphOrgContact/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/members/item/graphUser/index.ts | 4 +- src/directoryRoles/item/members/item/index.ts | 14 +- .../item/members/item/ref/index.ts | 2 +- src/directoryRoles/item/members/ref/index.ts | 4 +- src/directoryRoles/item/restore/index.ts | 4 +- .../item/scopedMembers/count/index.ts | 2 +- .../item/scopedMembers/index.ts | 8 +- .../item/scopedMembers/item/index.ts | 2 +- .../validateProperties/index.ts | 56 +- src/directoryRolesWithRoleTemplateId/index.ts | 2 +- src/domainDnsRecords/count/index.ts | 2 +- src/domainDnsRecords/index.ts | 8 +- src/domainDnsRecords/item/index.ts | 2 +- src/domains/count/index.ts | 2 +- src/domains/index.ts | 8 +- .../item/domainNameReferences/count/index.ts | 2 +- .../item/domainNameReferences/index.ts | 8 +- .../item/domainNameReferences/item/index.ts | 4 +- .../federationConfiguration/count/index.ts | 2 +- .../item/federationConfiguration/index.ts | 8 +- .../federationConfiguration/item/index.ts | 2 +- src/domains/item/forceDelete/index.ts | 56 +- src/domains/item/index.ts | 16 +- src/domains/item/promote/index.ts | 29 +- .../item/promote/promotePostResponse.ts | 30 - .../count/index.ts | 2 +- .../item/serviceConfigurationRecords/index.ts | 8 +- .../serviceConfigurationRecords/item/index.ts | 2 +- .../verificationDnsRecords/count/index.ts | 2 +- .../item/verificationDnsRecords/index.ts | 8 +- .../item/verificationDnsRecords/item/index.ts | 2 +- src/domains/item/verify/index.ts | 4 +- src/drives/index.ts | 6 +- src/drives/item/bundles/count/index.ts | 2 +- src/drives/item/bundles/index.ts | 8 +- src/drives/item/bundles/item/content/index.ts | 4 +- src/drives/item/bundles/item/index.ts | 6 +- src/drives/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/drives/item/following/count/index.ts | 2 +- src/drives/item/following/index.ts | 8 +- .../item/following/item/content/index.ts | 4 +- src/drives/item/following/item/index.ts | 6 +- src/drives/item/index.ts | 24 +- src/drives/item/items/count/index.ts | 2 +- src/drives/item/items/index.ts | 8 +- .../items/item/analytics/allTime/index.ts | 4 +- src/drives/item/items/item/analytics/index.ts | 8 +- .../itemActivityStats/count/index.ts | 2 +- .../item/analytics/itemActivityStats/index.ts | 8 +- .../item/activities/count/index.ts | 2 +- .../item/activities/index.ts | 8 +- .../item/driveItem/content/index.ts | 4 +- .../item/activities/item/driveItem/index.ts | 6 +- .../item/activities/item/index.ts | 4 +- .../analytics/itemActivityStats/item/index.ts | 4 +- .../item/analytics/lastSevenDays/index.ts | 4 +- .../item/assignSensitivityLabel/index.ts | 55 +- src/drives/item/items/item/checkin/index.ts | 56 +- src/drives/item/items/item/checkout/index.ts | 2 +- .../item/items/item/children/count/index.ts | 2 +- src/drives/item/items/item/children/index.ts | 8 +- .../items/item/children/item/content/index.ts | 4 +- .../item/items/item/children/item/index.ts | 6 +- src/drives/item/items/item/content/index.ts | 4 +- src/drives/item/items/item/copy/index.ts | 58 +- .../createLink/createLinkPostRequestBody.ts | 60 -- .../item/items/item/createLink/index.ts | 58 +- .../items/item/createUploadSession/index.ts | 57 +- .../item/items/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/drives/item/items/item/delta/index.ts | 91 +-- .../item/items/item/deltaWithToken/index.ts | 93 +-- .../item/extractSensitivityLabels/index.ts | 4 +- src/drives/item/items/item/follow/index.ts | 4 +- .../getActivitiesByIntervalGetResponse.ts | 29 - .../item/getActivitiesByInterval/index.ts | 28 +- .../index.ts | 97 +-- src/drives/item/items/item/index.ts | 64 +- src/drives/item/items/item/invite/index.ts | 58 +- .../item/invite/invitePostRequestBody.ts | 73 -- .../items/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/drives/item/items/item/listItem/index.ts | 4 +- .../item/items/item/permanentDelete/index.ts | 2 +- .../items/item/permissions/count/index.ts | 2 +- .../item/items/item/permissions/index.ts | 8 +- .../item/permissions/item/grant/index.ts | 87 +-- .../item/items/item/permissions/item/index.ts | 4 +- src/drives/item/items/item/preview/index.ts | 34 +- .../item/preview/previewPostRequestBody.ts | 36 - src/drives/item/items/item/restore/index.ts | 35 +- .../item/restore/restorePostRequestBody.ts | 37 - .../item/items/item/retentionLabel/index.ts | 8 +- .../item/items/item/searchWithQ/index.ts | 93 +-- .../items/item/subscriptions/count/index.ts | 2 +- .../item/items/item/subscriptions/index.ts | 8 +- .../items/item/subscriptions/item/index.ts | 4 +- .../subscriptions/item/reauthorize/index.ts | 2 +- .../item/items/item/thumbnails/count/index.ts | 2 +- .../item/items/item/thumbnails/index.ts | 8 +- .../item/items/item/thumbnails/item/index.ts | 2 +- src/drives/item/items/item/unfollow/index.ts | 2 +- .../items/item/validatePermission/index.ts | 55 +- .../item/items/item/versions/count/index.ts | 2 +- src/drives/item/items/item/versions/index.ts | 8 +- .../items/item/versions/item/content/index.ts | 4 +- .../item/items/item/versions/item/index.ts | 6 +- .../versions/item/restoreVersion/index.ts | 2 +- .../calculate/calculatePostRequestBody.ts | 30 - .../workbook/application/calculate/index.ts | 28 +- .../items/item/workbook/application/index.ts | 4 +- .../items/item/workbook/closeSession/index.ts | 2 +- .../item/workbook/comments/count/index.ts | 2 +- .../items/item/workbook/comments/index.ts | 8 +- .../item/workbook/comments/item/index.ts | 4 +- .../comments/item/replies/count/index.ts | 2 +- .../workbook/comments/item/replies/index.ts | 8 +- .../comments/item/replies/item/index.ts | 2 +- .../createSessionPostRequestBody.ts | 30 - .../item/workbook/createSession/index.ts | 28 +- .../item/workbook/functions/abs/index.ts | 57 +- .../item/workbook/functions/accrInt/index.ts | 57 +- .../item/workbook/functions/accrIntM/index.ts | 57 +- .../item/workbook/functions/acos/index.ts | 57 +- .../functions/acosh/acoshPostRequestBody.ts | 31 - .../item/workbook/functions/acosh/index.ts | 29 +- .../functions/acot/acotPostRequestBody.ts | 31 - .../item/workbook/functions/acot/index.ts | 29 +- .../functions/acoth/acothPostRequestBody.ts | 31 - .../item/workbook/functions/acoth/index.ts | 29 +- .../workbook/functions/amorDegrc/index.ts | 57 +- .../item/workbook/functions/amorLinc/index.ts | 57 +- .../item/workbook/functions/and/index.ts | 57 +- .../functions/arabic/arabicPostRequestBody.ts | 31 - .../item/workbook/functions/arabic/index.ts | 29 +- .../item/workbook/functions/areas/index.ts | 57 +- .../item/workbook/functions/asc/index.ts | 57 +- .../item/workbook/functions/asin/index.ts | 57 +- .../functions/asinh/asinhPostRequestBody.ts | 31 - .../item/workbook/functions/asinh/index.ts | 29 +- .../item/workbook/functions/atan/index.ts | 57 +- .../item/workbook/functions/atan2/index.ts | 57 +- .../functions/atanh/atanhPostRequestBody.ts | 31 - .../item/workbook/functions/atanh/index.ts | 29 +- .../item/workbook/functions/aveDev/index.ts | 57 +- .../item/workbook/functions/average/index.ts | 57 +- .../averageA/averageAPostRequestBody.ts | 31 - .../item/workbook/functions/averageA/index.ts | 29 +- .../workbook/functions/averageIf/index.ts | 57 +- .../averageIfs/averageIfsPostRequestBody.ts | 37 - .../workbook/functions/averageIfs/index.ts | 35 +- .../item/workbook/functions/bahtText/index.ts | 57 +- .../item/workbook/functions/base/index.ts | 57 +- .../item/workbook/functions/besselI/index.ts | 57 +- .../besselJ/besselJPostRequestBody.ts | 37 - .../item/workbook/functions/besselJ/index.ts | 35 +- .../item/workbook/functions/besselK/index.ts | 57 +- .../besselY/besselYPostRequestBody.ts | 37 - .../item/workbook/functions/besselY/index.ts | 35 +- .../beta_Dist/beta_DistPostRequestBody.ts | 61 -- .../workbook/functions/beta_Dist/index.ts | 59 +- .../beta_Inv/beta_InvPostRequestBody.ts | 55 -- .../item/workbook/functions/beta_Inv/index.ts | 53 +- .../item/workbook/functions/bin2Dec/index.ts | 57 +- .../bin2Hex/bin2HexPostRequestBody.ts | 37 - .../item/workbook/functions/bin2Hex/index.ts | 35 +- .../bin2Oct/bin2OctPostRequestBody.ts | 37 - .../item/workbook/functions/bin2Oct/index.ts | 35 +- .../binom_Dist/binom_DistPostRequestBody.ts | 49 -- .../workbook/functions/binom_Dist/index.ts | 47 +- .../binom_Dist_RangePostRequestBody.ts | 49 -- .../functions/binom_Dist_Range/index.ts | 47 +- .../workbook/functions/binom_Inv/index.ts | 57 +- .../functions/bitand/bitandPostRequestBody.ts | 37 - .../item/workbook/functions/bitand/index.ts | 35 +- .../workbook/functions/bitlshift/index.ts | 57 +- .../functions/bitor/bitorPostRequestBody.ts | 37 - .../item/workbook/functions/bitor/index.ts | 35 +- .../workbook/functions/bitrshift/index.ts | 57 +- .../item/workbook/functions/bitxor/index.ts | 57 +- .../ceiling_MathPostRequestBody.ts | 43 - .../workbook/functions/ceiling_Math/index.ts | 41 +- .../ceiling_PrecisePostRequestBody.ts | 37 - .../functions/ceiling_Precise/index.ts | 35 +- .../item/workbook/functions/char/index.ts | 57 +- .../workbook/functions/chiSq_Dist/index.ts | 57 +- .../workbook/functions/chiSq_Dist_RT/index.ts | 57 +- .../workbook/functions/chiSq_Inv/index.ts | 57 +- .../chiSq_Inv_RTPostRequestBody.ts | 37 - .../workbook/functions/chiSq_Inv_RT/index.ts | 35 +- .../item/workbook/functions/choose/index.ts | 57 +- .../item/workbook/functions/clean/index.ts | 57 +- .../item/workbook/functions/code/index.ts | 57 +- .../item/workbook/functions/columns/index.ts | 57 +- .../functions/combin/combinPostRequestBody.ts | 37 - .../item/workbook/functions/combin/index.ts | 35 +- .../combina/combinaPostRequestBody.ts | 37 - .../item/workbook/functions/combina/index.ts | 57 +- .../item/workbook/functions/complex/index.ts | 57 +- .../workbook/functions/concatenate/index.ts | 57 +- .../confidence_NormPostRequestBody.ts | 43 - .../functions/confidence_Norm/index.ts | 41 +- .../confidence_TPostRequestBody.ts | 43 - .../workbook/functions/confidence_T/index.ts | 41 +- .../item/workbook/functions/convert/index.ts | 57 +- .../item/workbook/functions/cos/index.ts | 57 +- .../item/workbook/functions/cosh/index.ts | 57 +- .../item/workbook/functions/cot/index.ts | 57 +- .../item/workbook/functions/coth/index.ts | 57 +- .../item/workbook/functions/count/index.ts | 57 +- .../functions/countA/countAPostRequestBody.ts | 31 - .../item/workbook/functions/countA/index.ts | 29 +- .../workbook/functions/countBlank/index.ts | 57 +- .../item/workbook/functions/countIf/index.ts | 57 +- .../countIfs/countIfsPostRequestBody.ts | 31 - .../item/workbook/functions/countIfs/index.ts | 29 +- .../workbook/functions/coupDayBs/index.ts | 57 +- .../coupDays/coupDaysPostRequestBody.ts | 49 -- .../item/workbook/functions/coupDays/index.ts | 47 +- .../coupDaysNc/coupDaysNcPostRequestBody.ts | 49 -- .../workbook/functions/coupDaysNc/index.ts | 47 +- .../item/workbook/functions/coupNcd/index.ts | 57 +- .../item/workbook/functions/coupNum/index.ts | 57 +- .../item/workbook/functions/coupPcd/index.ts | 57 +- .../functions/csc/cscPostRequestBody.ts | 31 - .../item/workbook/functions/csc/index.ts | 29 +- .../item/workbook/functions/csch/index.ts | 57 +- .../cumIPmt/cumIPmtPostRequestBody.ts | 61 -- .../item/workbook/functions/cumIPmt/index.ts | 59 +- .../item/workbook/functions/cumPrinc/index.ts | 57 +- .../item/workbook/functions/date/index.ts | 57 +- .../workbook/functions/datevalue/index.ts | 57 +- .../daverage/daveragePostRequestBody.ts | 43 - .../item/workbook/functions/daverage/index.ts | 41 +- .../item/workbook/functions/day/index.ts | 57 +- .../functions/days/daysPostRequestBody.ts | 37 - .../item/workbook/functions/days/index.ts | 35 +- .../item/workbook/functions/days360/index.ts | 57 +- .../items/item/workbook/functions/db/index.ts | 57 +- .../functions/dbcs/dbcsPostRequestBody.ts | 31 - .../item/workbook/functions/dbcs/index.ts | 57 +- .../functions/dcount/dcountPostRequestBody.ts | 43 - .../item/workbook/functions/dcount/index.ts | 41 +- .../item/workbook/functions/dcountA/index.ts | 57 +- .../functions/ddb/ddbPostRequestBody.ts | 55 -- .../item/workbook/functions/ddb/index.ts | 53 +- .../dec2Bin/dec2BinPostRequestBody.ts | 37 - .../item/workbook/functions/dec2Bin/index.ts | 35 +- .../item/workbook/functions/dec2Hex/index.ts | 57 +- .../dec2Oct/dec2OctPostRequestBody.ts | 37 - .../item/workbook/functions/dec2Oct/index.ts | 35 +- .../item/workbook/functions/decimal/index.ts | 57 +- .../degrees/degreesPostRequestBody.ts | 31 - .../item/workbook/functions/degrees/index.ts | 29 +- .../functions/delta/deltaPostRequestBody.ts | 37 - .../item/workbook/functions/delta/index.ts | 35 +- .../item/workbook/functions/devSq/index.ts | 57 +- .../functions/dget/dgetPostRequestBody.ts | 43 - .../item/workbook/functions/dget/index.ts | 41 +- .../item/workbook/functions/disc/index.ts | 57 +- .../item/workbook/functions/dmax/index.ts | 57 +- .../item/workbook/functions/dmin/index.ts | 57 +- .../item/workbook/functions/dollar/index.ts | 57 +- .../item/workbook/functions/dollarDe/index.ts | 57 +- .../item/workbook/functions/dollarFr/index.ts | 57 +- .../item/workbook/functions/dproduct/index.ts | 57 +- .../functions/dstDev/dstDevPostRequestBody.ts | 43 - .../item/workbook/functions/dstDev/index.ts | 41 +- .../item/workbook/functions/dstDevP/index.ts | 57 +- .../item/workbook/functions/dsum/index.ts | 57 +- .../item/workbook/functions/duration/index.ts | 57 +- .../functions/dvar/dvarPostRequestBody.ts | 43 - .../item/workbook/functions/dvar/index.ts | 41 +- .../item/workbook/functions/dvarP/index.ts | 57 +- .../ecma_CeilingPostRequestBody.ts | 37 - .../workbook/functions/ecma_Ceiling/index.ts | 35 +- .../item/workbook/functions/edate/index.ts | 57 +- .../functions/effect/effectPostRequestBody.ts | 37 - .../item/workbook/functions/effect/index.ts | 35 +- .../item/workbook/functions/eoMonth/index.ts | 57 +- .../functions/erf/erfPostRequestBody.ts | 37 - .../item/workbook/functions/erf/index.ts | 35 +- .../functions/erfC/erfCPostRequestBody.ts | 31 - .../item/workbook/functions/erfC/index.ts | 29 +- .../workbook/functions/erfC_Precise/index.ts | 57 +- .../workbook/functions/erf_Precise/index.ts | 57 +- .../workbook/functions/error_Type/index.ts | 57 +- .../item/workbook/functions/even/index.ts | 57 +- .../functions/exact/exactPostRequestBody.ts | 37 - .../item/workbook/functions/exact/index.ts | 35 +- .../functions/exp/expPostRequestBody.ts | 31 - .../item/workbook/functions/exp/index.ts | 29 +- .../expon_Dist/expon_DistPostRequestBody.ts | 43 - .../workbook/functions/expon_Dist/index.ts | 41 +- .../functions/f_Dist/f_DistPostRequestBody.ts | 49 -- .../item/workbook/functions/f_Dist/index.ts | 47 +- .../f_Dist_RT/f_Dist_RTPostRequestBody.ts | 43 - .../workbook/functions/f_Dist_RT/index.ts | 41 +- .../functions/f_Inv/f_InvPostRequestBody.ts | 43 - .../item/workbook/functions/f_Inv/index.ts | 41 +- .../f_Inv_RT/f_Inv_RTPostRequestBody.ts | 43 - .../item/workbook/functions/f_Inv_RT/index.ts | 41 +- .../functions/fact/factPostRequestBody.ts | 31 - .../item/workbook/functions/fact/index.ts | 29 +- .../workbook/functions/factDouble/index.ts | 57 +- .../workbook/functions/falseEscaped/index.ts | 4 +- .../item/workbook/functions/find/index.ts | 57 +- .../functions/findB/findBPostRequestBody.ts | 43 - .../item/workbook/functions/findB/index.ts | 41 +- .../item/workbook/functions/fisher/index.ts | 57 +- .../workbook/functions/fisherInv/index.ts | 57 +- .../item/workbook/functions/fixed/index.ts | 57 +- .../workbook/functions/floor_Math/index.ts | 57 +- .../floor_PrecisePostRequestBody.ts | 37 - .../workbook/functions/floor_Precise/index.ts | 35 +- .../items/item/workbook/functions/fv/index.ts | 57 +- .../fvschedule/fvschedulePostRequestBody.ts | 37 - .../workbook/functions/fvschedule/index.ts | 35 +- .../item/workbook/functions/gamma/index.ts | 57 +- .../item/workbook/functions/gammaLn/index.ts | 57 +- .../functions/gammaLn_Precise/index.ts | 57 +- .../gamma_Dist/gamma_DistPostRequestBody.ts | 49 -- .../workbook/functions/gamma_Dist/index.ts | 47 +- .../workbook/functions/gamma_Inv/index.ts | 57 +- .../item/workbook/functions/gauss/index.ts | 57 +- .../functions/gcd/gcdPostRequestBody.ts | 31 - .../item/workbook/functions/gcd/index.ts | 29 +- .../functions/geStep/geStepPostRequestBody.ts | 37 - .../item/workbook/functions/geStep/index.ts | 35 +- .../geoMean/geoMeanPostRequestBody.ts | 31 - .../item/workbook/functions/geoMean/index.ts | 57 +- .../harMean/harMeanPostRequestBody.ts | 31 - .../item/workbook/functions/harMean/index.ts | 29 +- .../item/workbook/functions/hex2Bin/index.ts | 57 +- .../hex2Dec/hex2DecPostRequestBody.ts | 31 - .../item/workbook/functions/hex2Dec/index.ts | 57 +- .../item/workbook/functions/hex2Oct/index.ts | 57 +- .../item/workbook/functions/hlookup/index.ts | 57 +- .../item/workbook/functions/hour/index.ts | 57 +- .../hypGeom_DistPostRequestBody.ts | 55 -- .../workbook/functions/hypGeom_Dist/index.ts | 53 +- .../hyperlink/hyperlinkPostRequestBody.ts | 37 - .../workbook/functions/hyperlink/index.ts | 35 +- .../functions/ifEscaped/ifPostRequestBody.ts | 43 - .../workbook/functions/ifEscaped/index.ts | 41 +- .../functions/imAbs/imAbsPostRequestBody.ts | 31 - .../item/workbook/functions/imAbs/index.ts | 29 +- .../workbook/functions/imArgument/index.ts | 57 +- .../workbook/functions/imConjugate/index.ts | 57 +- .../item/workbook/functions/imCos/index.ts | 57 +- .../functions/imCosh/imCoshPostRequestBody.ts | 31 - .../item/workbook/functions/imCosh/index.ts | 29 +- .../functions/imCot/imCotPostRequestBody.ts | 31 - .../item/workbook/functions/imCot/index.ts | 29 +- .../functions/imCsc/imCscPostRequestBody.ts | 31 - .../item/workbook/functions/imCsc/index.ts | 29 +- .../functions/imCsch/imCschPostRequestBody.ts | 31 - .../item/workbook/functions/imCsch/index.ts | 29 +- .../functions/imDiv/imDivPostRequestBody.ts | 37 - .../item/workbook/functions/imDiv/index.ts | 35 +- .../functions/imExp/imExpPostRequestBody.ts | 31 - .../item/workbook/functions/imExp/index.ts | 29 +- .../item/workbook/functions/imLn/index.ts | 57 +- .../imLog10/imLog10PostRequestBody.ts | 31 - .../item/workbook/functions/imLog10/index.ts | 29 +- .../functions/imLog2/imLog2PostRequestBody.ts | 31 - .../item/workbook/functions/imLog2/index.ts | 29 +- .../item/workbook/functions/imPower/index.ts | 57 +- .../workbook/functions/imProduct/index.ts | 57 +- .../item/workbook/functions/imReal/index.ts | 57 +- .../item/workbook/functions/imSec/index.ts | 57 +- .../item/workbook/functions/imSech/index.ts | 57 +- .../functions/imSin/imSinPostRequestBody.ts | 31 - .../item/workbook/functions/imSin/index.ts | 29 +- .../functions/imSinh/imSinhPostRequestBody.ts | 31 - .../item/workbook/functions/imSinh/index.ts | 29 +- .../item/workbook/functions/imSqrt/index.ts | 57 +- .../functions/imSub/imSubPostRequestBody.ts | 37 - .../item/workbook/functions/imSub/index.ts | 35 +- .../functions/imSum/imSumPostRequestBody.ts | 31 - .../item/workbook/functions/imSum/index.ts | 29 +- .../functions/imTan/imTanPostRequestBody.ts | 31 - .../item/workbook/functions/imTan/index.ts | 29 +- .../imaginary/imaginaryPostRequestBody.ts | 31 - .../workbook/functions/imaginary/index.ts | 29 +- .../items/item/workbook/functions/index.ts | 734 +++++++++--------- .../item/workbook/functions/int/index.ts | 29 +- .../functions/int/intPostRequestBody.ts | 31 - .../item/workbook/functions/intRate/index.ts | 57 +- .../intRate/intRatePostRequestBody.ts | 55 -- .../item/workbook/functions/ipmt/index.ts | 57 +- .../item/workbook/functions/irr/index.ts | 57 +- .../item/workbook/functions/isErr/index.ts | 57 +- .../item/workbook/functions/isError/index.ts | 29 +- .../isError/isErrorPostRequestBody.ts | 31 - .../item/workbook/functions/isEven/index.ts | 29 +- .../functions/isEven/isEvenPostRequestBody.ts | 31 - .../workbook/functions/isFormula/index.ts | 29 +- .../isFormula/isFormulaPostRequestBody.ts | 31 - .../workbook/functions/isLogical/index.ts | 29 +- .../isLogical/isLogicalPostRequestBody.ts | 31 - .../item/workbook/functions/isNA/index.ts | 29 +- .../functions/isNA/isNAPostRequestBody.ts | 31 - .../workbook/functions/isNonText/index.ts | 57 +- .../item/workbook/functions/isNumber/index.ts | 57 +- .../item/workbook/functions/isOdd/index.ts | 29 +- .../functions/isOdd/isOddPostRequestBody.ts | 31 - .../item/workbook/functions/isText/index.ts | 57 +- .../workbook/functions/isoWeekNum/index.ts | 57 +- .../workbook/functions/iso_Ceiling/index.ts | 35 +- .../iso_Ceiling/iso_CeilingPostRequestBody.ts | 37 - .../item/workbook/functions/ispmt/index.ts | 47 +- .../functions/ispmt/ispmtPostRequestBody.ts | 49 -- .../item/workbook/functions/isref/index.ts | 57 +- .../item/workbook/functions/kurt/index.ts | 29 +- .../functions/kurt/kurtPostRequestBody.ts | 31 - .../item/workbook/functions/large/index.ts | 57 +- .../item/workbook/functions/lcm/index.ts | 29 +- .../functions/lcm/lcmPostRequestBody.ts | 31 - .../item/workbook/functions/left/index.ts | 57 +- .../item/workbook/functions/leftb/index.ts | 35 +- .../functions/leftb/leftbPostRequestBody.ts | 37 - .../item/workbook/functions/len/index.ts | 57 +- .../item/workbook/functions/lenb/index.ts | 57 +- .../items/item/workbook/functions/ln/index.ts | 57 +- .../item/workbook/functions/log/index.ts | 35 +- .../functions/log/logPostRequestBody.ts | 37 - .../item/workbook/functions/log10/index.ts | 29 +- .../functions/log10/log10PostRequestBody.ts | 31 - .../workbook/functions/logNorm_Dist/index.ts | 57 +- .../workbook/functions/logNorm_Inv/index.ts | 41 +- .../logNorm_Inv/logNorm_InvPostRequestBody.ts | 43 - .../item/workbook/functions/lookup/index.ts | 41 +- .../functions/lookup/lookupPostRequestBody.ts | 43 - .../item/workbook/functions/lower/index.ts | 29 +- .../functions/lower/lowerPostRequestBody.ts | 31 - .../item/workbook/functions/match/index.ts | 41 +- .../functions/match/matchPostRequestBody.ts | 43 - .../item/workbook/functions/max/index.ts | 57 +- .../item/workbook/functions/maxA/index.ts | 57 +- .../workbook/functions/mduration/index.ts | 57 +- .../mduration/mdurationPostRequestBody.ts | 61 -- .../item/workbook/functions/median/index.ts | 29 +- .../functions/median/medianPostRequestBody.ts | 31 - .../item/workbook/functions/mid/index.ts | 41 +- .../functions/mid/midPostRequestBody.ts | 43 - .../item/workbook/functions/midb/index.ts | 41 +- .../functions/midb/midbPostRequestBody.ts | 43 - .../item/workbook/functions/min/index.ts | 57 +- .../item/workbook/functions/minA/index.ts | 29 +- .../functions/minA/minAPostRequestBody.ts | 31 - .../item/workbook/functions/minute/index.ts | 29 +- .../functions/minute/minutePostRequestBody.ts | 31 - .../item/workbook/functions/mirr/index.ts | 57 +- .../functions/mirr/mirrPostRequestBody.ts | 43 - .../item/workbook/functions/mod/index.ts | 35 +- .../functions/mod/modPostRequestBody.ts | 37 - .../item/workbook/functions/month/index.ts | 29 +- .../functions/month/monthPostRequestBody.ts | 31 - .../item/workbook/functions/mround/index.ts | 35 +- .../functions/mround/mroundPostRequestBody.ts | 37 - .../workbook/functions/multiNomial/index.ts | 29 +- .../multiNomial/multiNomialPostRequestBody.ts | 31 - .../items/item/workbook/functions/n/index.ts | 29 +- .../workbook/functions/n/nPostRequestBody.ts | 31 - .../items/item/workbook/functions/na/index.ts | 4 +- .../workbook/functions/negBinom_Dist/index.ts | 47 +- .../negBinom_DistPostRequestBody.ts | 49 -- .../workbook/functions/networkDays/index.ts | 57 +- .../functions/networkDays_Intl/index.ts | 57 +- .../item/workbook/functions/nominal/index.ts | 35 +- .../nominal/nominalPostRequestBody.ts | 37 - .../workbook/functions/norm_Dist/index.ts | 47 +- .../norm_Dist/norm_DistPostRequestBody.ts | 49 -- .../item/workbook/functions/norm_Inv/index.ts | 41 +- .../norm_Inv/norm_InvPostRequestBody.ts | 43 - .../workbook/functions/norm_S_Dist/index.ts | 57 +- .../workbook/functions/norm_S_Inv/index.ts | 57 +- .../item/workbook/functions/not/index.ts | 29 +- .../functions/not/notPostRequestBody.ts | 31 - .../item/workbook/functions/now/index.ts | 4 +- .../item/workbook/functions/nper/index.ts | 53 +- .../functions/nper/nperPostRequestBody.ts | 55 -- .../item/workbook/functions/npv/index.ts | 57 +- .../workbook/functions/numberValue/index.ts | 41 +- .../numberValue/numberValuePostRequestBody.ts | 43 - .../item/workbook/functions/oct2Bin/index.ts | 57 +- .../item/workbook/functions/oct2Dec/index.ts | 29 +- .../oct2Dec/oct2DecPostRequestBody.ts | 31 - .../item/workbook/functions/oct2Hex/index.ts | 35 +- .../oct2Hex/oct2HexPostRequestBody.ts | 37 - .../item/workbook/functions/odd/index.ts | 57 +- .../workbook/functions/oddFPrice/index.ts | 57 +- .../workbook/functions/oddFYield/index.ts | 57 +- .../workbook/functions/oddLPrice/index.ts | 57 +- .../workbook/functions/oddLYield/index.ts | 57 +- .../items/item/workbook/functions/or/index.ts | 57 +- .../workbook/functions/pduration/index.ts | 57 +- .../functions/percentRank_Exc/index.ts | 41 +- .../percentRank_ExcPostRequestBody.ts | 43 - .../functions/percentRank_Inc/index.ts | 41 +- .../percentRank_IncPostRequestBody.ts | 43 - .../functions/percentile_Exc/index.ts | 57 +- .../functions/percentile_Inc/index.ts | 57 +- .../item/workbook/functions/permut/index.ts | 35 +- .../functions/permut/permutPostRequestBody.ts | 37 - .../workbook/functions/permutationa/index.ts | 57 +- .../item/workbook/functions/phi/index.ts | 57 +- .../items/item/workbook/functions/pi/index.ts | 4 +- .../item/workbook/functions/pmt/index.ts | 57 +- .../workbook/functions/poisson_Dist/index.ts | 57 +- .../item/workbook/functions/power/index.ts | 35 +- .../functions/power/powerPostRequestBody.ts | 37 - .../item/workbook/functions/ppmt/index.ts | 59 +- .../functions/ppmt/ppmtPostRequestBody.ts | 61 -- .../item/workbook/functions/price/index.ts | 65 +- .../functions/price/pricePostRequestBody.ts | 67 -- .../workbook/functions/priceDisc/index.ts | 53 +- .../priceDisc/priceDiscPostRequestBody.ts | 55 -- .../item/workbook/functions/priceMat/index.ts | 59 +- .../priceMat/priceMatPostRequestBody.ts | 61 -- .../item/workbook/functions/product/index.ts | 29 +- .../product/productPostRequestBody.ts | 31 - .../item/workbook/functions/proper/index.ts | 29 +- .../functions/proper/properPostRequestBody.ts | 31 - .../items/item/workbook/functions/pv/index.ts | 57 +- .../workbook/functions/quartile_Exc/index.ts | 35 +- .../quartile_ExcPostRequestBody.ts | 37 - .../workbook/functions/quartile_Inc/index.ts | 57 +- .../item/workbook/functions/quotient/index.ts | 57 +- .../item/workbook/functions/radians/index.ts | 57 +- .../item/workbook/functions/rand/index.ts | 4 +- .../workbook/functions/randBetween/index.ts | 35 +- .../randBetween/randBetweenPostRequestBody.ts | 37 - .../item/workbook/functions/rank_Avg/index.ts | 57 +- .../item/workbook/functions/rank_Eq/index.ts | 57 +- .../item/workbook/functions/rate/index.ts | 59 +- .../functions/rate/ratePostRequestBody.ts | 61 -- .../item/workbook/functions/received/index.ts | 53 +- .../received/receivedPostRequestBody.ts | 55 -- .../item/workbook/functions/replace/index.ts | 47 +- .../replace/replacePostRequestBody.ts | 49 -- .../item/workbook/functions/replaceB/index.ts | 47 +- .../replaceB/replaceBPostRequestBody.ts | 49 -- .../item/workbook/functions/rept/index.ts | 57 +- .../item/workbook/functions/right/index.ts | 35 +- .../functions/right/rightPostRequestBody.ts | 37 - .../item/workbook/functions/rightb/index.ts | 35 +- .../functions/rightb/rightbPostRequestBody.ts | 37 - .../item/workbook/functions/roman/index.ts | 57 +- .../item/workbook/functions/round/index.ts | 57 +- .../workbook/functions/roundDown/index.ts | 57 +- .../item/workbook/functions/roundUp/index.ts | 57 +- .../item/workbook/functions/rows/index.ts | 29 +- .../functions/rows/rowsPostRequestBody.ts | 31 - .../item/workbook/functions/rri/index.ts | 57 +- .../item/workbook/functions/sec/index.ts | 29 +- .../functions/sec/secPostRequestBody.ts | 31 - .../item/workbook/functions/sech/index.ts | 29 +- .../functions/sech/sechPostRequestBody.ts | 31 - .../item/workbook/functions/second/index.ts | 57 +- .../workbook/functions/seriesSum/index.ts | 47 +- .../seriesSum/seriesSumPostRequestBody.ts | 49 -- .../item/workbook/functions/sheet/index.ts | 57 +- .../item/workbook/functions/sheets/index.ts | 57 +- .../item/workbook/functions/sign/index.ts | 57 +- .../item/workbook/functions/sin/index.ts | 29 +- .../functions/sin/sinPostRequestBody.ts | 31 - .../item/workbook/functions/sinh/index.ts | 29 +- .../functions/sinh/sinhPostRequestBody.ts | 31 - .../item/workbook/functions/skew/index.ts | 57 +- .../item/workbook/functions/skew_p/index.ts | 29 +- .../functions/skew_p/skew_pPostRequestBody.ts | 31 - .../item/workbook/functions/sln/index.ts | 57 +- .../item/workbook/functions/small/index.ts | 57 +- .../item/workbook/functions/sqrt/index.ts | 29 +- .../functions/sqrt/sqrtPostRequestBody.ts | 31 - .../item/workbook/functions/sqrtPi/index.ts | 57 +- .../item/workbook/functions/stDevA/index.ts | 29 +- .../functions/stDevA/stDevAPostRequestBody.ts | 31 - .../item/workbook/functions/stDevPA/index.ts | 29 +- .../stDevPA/stDevPAPostRequestBody.ts | 31 - .../item/workbook/functions/stDev_P/index.ts | 29 +- .../stDev_P/stDev_PPostRequestBody.ts | 31 - .../item/workbook/functions/stDev_S/index.ts | 57 +- .../workbook/functions/standardize/index.ts | 57 +- .../workbook/functions/substitute/index.ts | 57 +- .../item/workbook/functions/subtotal/index.ts | 35 +- .../subtotal/subtotalPostRequestBody.ts | 37 - .../item/workbook/functions/sum/index.ts | 29 +- .../functions/sum/sumPostRequestBody.ts | 31 - .../item/workbook/functions/sumIf/index.ts | 57 +- .../item/workbook/functions/sumIfs/index.ts | 57 +- .../item/workbook/functions/sumSq/index.ts | 57 +- .../item/workbook/functions/syd/index.ts | 57 +- .../items/item/workbook/functions/t/index.ts | 57 +- .../item/workbook/functions/t_Dist/index.ts | 41 +- .../functions/t_Dist/t_DistPostRequestBody.ts | 43 - .../workbook/functions/t_Dist_2T/index.ts | 35 +- .../t_Dist_2T/t_Dist_2TPostRequestBody.ts | 37 - .../workbook/functions/t_Dist_RT/index.ts | 57 +- .../item/workbook/functions/t_Inv/index.ts | 35 +- .../functions/t_Inv/t_InvPostRequestBody.ts | 37 - .../item/workbook/functions/t_Inv_2T/index.ts | 35 +- .../t_Inv_2T/t_Inv_2TPostRequestBody.ts | 37 - .../item/workbook/functions/tan/index.ts | 29 +- .../functions/tan/tanPostRequestBody.ts | 31 - .../item/workbook/functions/tanh/index.ts | 57 +- .../item/workbook/functions/tbillEq/index.ts | 57 +- .../workbook/functions/tbillPrice/index.ts | 57 +- .../workbook/functions/tbillYield/index.ts | 41 +- .../tbillYield/tbillYieldPostRequestBody.ts | 43 - .../item/workbook/functions/text/index.ts | 57 +- .../item/workbook/functions/time/index.ts | 41 +- .../functions/time/timePostRequestBody.ts | 43 - .../workbook/functions/timevalue/index.ts | 57 +- .../timevalue/timevaluePostRequestBody.ts | 31 - .../item/workbook/functions/today/index.ts | 4 +- .../item/workbook/functions/trim/index.ts | 57 +- .../item/workbook/functions/trimMean/index.ts | 57 +- .../workbook/functions/trueEscaped/index.ts | 4 +- .../item/workbook/functions/trunc/index.ts | 35 +- .../functions/trunc/truncPostRequestBody.ts | 37 - .../item/workbook/functions/type/index.ts | 57 +- .../item/workbook/functions/unichar/index.ts | 57 +- .../unichar/unicharPostRequestBody.ts | 31 - .../item/workbook/functions/unicode/index.ts | 29 +- .../unicode/unicodePostRequestBody.ts | 31 - .../item/workbook/functions/upper/index.ts | 29 +- .../functions/upper/upperPostRequestBody.ts | 31 - .../item/workbook/functions/usdollar/index.ts | 57 +- .../item/workbook/functions/value/index.ts | 57 +- .../item/workbook/functions/varA/index.ts | 57 +- .../item/workbook/functions/varPA/index.ts | 57 +- .../item/workbook/functions/var_P/index.ts | 57 +- .../item/workbook/functions/var_S/index.ts | 57 +- .../item/workbook/functions/vdb/index.ts | 65 +- .../functions/vdb/vdbPostRequestBody.ts | 67 -- .../item/workbook/functions/vlookup/index.ts | 57 +- .../item/workbook/functions/weekNum/index.ts | 57 +- .../item/workbook/functions/weekday/index.ts | 57 +- .../workbook/functions/weibull_Dist/index.ts | 57 +- .../item/workbook/functions/workDay/index.ts | 41 +- .../workDay/workDayPostRequestBody.ts | 43 - .../workbook/functions/workDay_Intl/index.ts | 57 +- .../workDay_IntlPostRequestBody.ts | 49 -- .../item/workbook/functions/xirr/index.ts | 57 +- .../item/workbook/functions/xnpv/index.ts | 57 +- .../item/workbook/functions/xor/index.ts | 29 +- .../functions/xor/xorPostRequestBody.ts | 31 - .../item/workbook/functions/year/index.ts | 29 +- .../functions/year/yearPostRequestBody.ts | 31 - .../item/workbook/functions/yearFrac/index.ts | 41 +- .../yearFrac/yearFracPostRequestBody.ts | 43 - .../item/workbook/functions/yield/index.ts | 65 +- .../functions/yield/yieldPostRequestBody.ts | 67 -- .../workbook/functions/yieldDisc/index.ts | 53 +- .../yieldDisc/yieldDiscPostRequestBody.ts | 55 -- .../item/workbook/functions/yieldMat/index.ts | 59 +- .../yieldMat/yieldMatPostRequestBody.ts | 61 -- .../item/workbook/functions/z_Test/index.ts | 41 +- .../functions/z_Test/z_TestPostRequestBody.ts | 43 - src/drives/item/items/item/workbook/index.ts | 26 +- .../items/item/workbook/names/add/index.ts | 58 +- .../workbook/names/addFormulaLocal/index.ts | 58 +- .../items/item/workbook/names/count/index.ts | 2 +- .../item/items/item/workbook/names/index.ts | 14 +- .../items/item/workbook/names/item/index.ts | 6 +- .../item/workbook/names/item/range/index.ts | 4 +- .../workbook/names/item/worksheet/index.ts | 4 +- .../item/workbook/operations/count/index.ts | 2 +- .../items/item/workbook/operations/index.ts | 8 +- .../item/workbook/operations/item/index.ts | 2 +- .../item/workbook/refreshSession/index.ts | 2 +- .../sessionInfoResourceWithKey/index.ts | 4 +- .../tableRowOperationResultWithKey/index.ts | 4 +- .../items/item/workbook/tables/add/index.ts | 58 +- .../items/item/workbook/tables/count/index.ts | 52 +- .../item/items/item/workbook/tables/index.ts | 12 +- .../tables/item/clearFilters/index.ts | 2 +- .../workbook/tables/item/columns/add/index.ts | 58 +- .../tables/item/columns/count/index.ts | 52 +- .../workbook/tables/item/columns/index.ts | 14 +- .../item/columns/item/dataBodyRange/index.ts | 4 +- .../item/filter/apply/applyPostRequestBody.ts | 31 - .../item/columns/item/filter/apply/index.ts | 29 +- .../applyBottomItemsFilterPostRequestBody.ts | 30 - .../filter/applyBottomItemsFilter/index.ts | 28 +- ...applyBottomPercentFilterPostRequestBody.ts | 30 - .../filter/applyBottomPercentFilter/index.ts | 28 +- .../applyCellColorFilterPostRequestBody.ts | 30 - .../item/filter/applyCellColorFilter/index.ts | 28 +- .../applyCustomFilterPostRequestBody.ts | 42 - .../item/filter/applyCustomFilter/index.ts | 40 +- .../item/filter/applyDynamicFilter/index.ts | 55 +- .../item/filter/applyFontColorFilter/index.ts | 55 +- .../applyIconFilterPostRequestBody.ts | 31 - .../item/filter/applyIconFilter/index.ts | 29 +- .../applyTopItemsFilterPostRequestBody.ts | 30 - .../item/filter/applyTopItemsFilter/index.ts | 28 +- .../applyTopPercentFilterPostRequestBody.ts | 30 - .../filter/applyTopPercentFilter/index.ts | 28 +- .../applyValuesFilterPostRequestBody.ts | 31 - .../item/filter/applyValuesFilter/index.ts | 29 +- .../item/columns/item/filter/clear/index.ts | 2 +- .../tables/item/columns/item/filter/index.ts | 26 +- .../item/columns/item/headerRowRange/index.ts | 4 +- .../tables/item/columns/item/index.ts | 12 +- .../tables/item/columns/item/range/index.ts | 4 +- .../item/columns/item/totalRowRange/index.ts | 4 +- .../item/columns/itemAtWithIndex/index.ts | 4 +- .../tables/item/convertToRange/index.ts | 4 +- .../tables/item/dataBodyRange/index.ts | 4 +- .../tables/item/headerRowRange/index.ts | 4 +- .../items/item/workbook/tables/item/index.ts | 24 +- .../item/workbook/tables/item/range/index.ts | 4 +- .../tables/item/reapplyFilters/index.ts | 2 +- .../workbook/tables/item/rows/add/index.ts | 58 +- .../workbook/tables/item/rows/count/index.ts | 52 +- .../item/workbook/tables/item/rows/index.ts | 12 +- .../workbook/tables/item/rows/item/index.ts | 4 +- .../tables/item/rows/item/range/index.ts | 4 +- .../tables/item/rows/itemAtWithIndex/index.ts | 4 +- .../item/sort/apply/applyPostRequestBody.ts | 43 - .../workbook/tables/item/sort/apply/index.ts | 41 +- .../workbook/tables/item/sort/clear/index.ts | 2 +- .../item/workbook/tables/item/sort/index.ts | 8 +- .../tables/item/sort/reapply/index.ts | 2 +- .../tables/item/totalRowRange/index.ts | 4 +- .../workbook/tables/item/worksheet/index.ts | 4 +- .../workbook/tables/itemAtWithIndex/index.ts | 4 +- .../item/workbook/worksheets/add/index.ts | 58 +- .../item/workbook/worksheets/count/index.ts | 2 +- .../items/item/workbook/worksheets/index.ts | 10 +- .../item/cellWithRowWithColumn/index.ts | 4 +- .../worksheets/item/charts/add/index.ts | 58 +- .../worksheets/item/charts/count/index.ts | 52 +- .../workbook/worksheets/item/charts/index.ts | 16 +- .../axes/categoryAxis/format/font/index.ts | 2 +- .../item/axes/categoryAxis/format/index.ts | 6 +- .../categoryAxis/format/line/clear/index.ts | 2 +- .../axes/categoryAxis/format/line/index.ts | 4 +- .../charts/item/axes/categoryAxis/index.ts | 10 +- .../majorGridlines/format/index.ts | 4 +- .../majorGridlines/format/line/clear/index.ts | 2 +- .../majorGridlines/format/line/index.ts | 4 +- .../axes/categoryAxis/majorGridlines/index.ts | 4 +- .../minorGridlines/format/index.ts | 4 +- .../minorGridlines/format/line/clear/index.ts | 2 +- .../minorGridlines/format/line/index.ts | 4 +- .../axes/categoryAxis/minorGridlines/index.ts | 4 +- .../categoryAxis/title/format/font/index.ts | 2 +- .../axes/categoryAxis/title/format/index.ts | 4 +- .../item/axes/categoryAxis/title/index.ts | 4 +- .../worksheets/item/charts/item/axes/index.ts | 8 +- .../item/axes/seriesAxis/format/font/index.ts | 2 +- .../item/axes/seriesAxis/format/index.ts | 6 +- .../seriesAxis/format/line/clear/index.ts | 2 +- .../item/axes/seriesAxis/format/line/index.ts | 4 +- .../item/charts/item/axes/seriesAxis/index.ts | 10 +- .../seriesAxis/majorGridlines/format/index.ts | 4 +- .../majorGridlines/format/line/clear/index.ts | 2 +- .../majorGridlines/format/line/index.ts | 4 +- .../axes/seriesAxis/majorGridlines/index.ts | 4 +- .../seriesAxis/minorGridlines/format/index.ts | 4 +- .../minorGridlines/format/line/clear/index.ts | 2 +- .../minorGridlines/format/line/index.ts | 4 +- .../axes/seriesAxis/minorGridlines/index.ts | 4 +- .../seriesAxis/title/format/font/index.ts | 2 +- .../axes/seriesAxis/title/format/index.ts | 4 +- .../item/axes/seriesAxis/title/index.ts | 4 +- .../item/axes/valueAxis/format/font/index.ts | 2 +- .../item/axes/valueAxis/format/index.ts | 6 +- .../axes/valueAxis/format/line/clear/index.ts | 2 +- .../item/axes/valueAxis/format/line/index.ts | 4 +- .../item/charts/item/axes/valueAxis/index.ts | 10 +- .../valueAxis/majorGridlines/format/index.ts | 4 +- .../majorGridlines/format/line/clear/index.ts | 2 +- .../majorGridlines/format/line/index.ts | 4 +- .../axes/valueAxis/majorGridlines/index.ts | 4 +- .../valueAxis/minorGridlines/format/index.ts | 4 +- .../minorGridlines/format/line/clear/index.ts | 2 +- .../minorGridlines/format/line/index.ts | 4 +- .../axes/valueAxis/minorGridlines/index.ts | 4 +- .../axes/valueAxis/title/format/font/index.ts | 2 +- .../item/axes/valueAxis/title/format/index.ts | 4 +- .../charts/item/axes/valueAxis/title/index.ts | 4 +- .../dataLabels/format/fill/clear/index.ts | 2 +- .../item/dataLabels/format/fill/index.ts | 6 +- .../format/fill/setSolidColor/index.ts | 28 +- .../setSolidColorPostRequestBody.ts | 30 - .../item/dataLabels/format/font/index.ts | 2 +- .../charts/item/dataLabels/format/index.ts | 6 +- .../item/charts/item/dataLabels/index.ts | 4 +- .../charts/item/format/fill/clear/index.ts | 2 +- .../item/charts/item/format/fill/index.ts | 6 +- .../item/format/fill/setSolidColor/index.ts | 28 +- .../setSolidColorPostRequestBody.ts | 30 - .../item/charts/item/format/font/index.ts | 2 +- .../item/charts/item/format/index.ts | 6 +- .../charts/item/image/imageGetResponse.ts | 30 - .../item/charts/item/image/index.ts | 29 +- .../imageWithWidthGetResponse.ts | 30 - .../item/charts/item/imageWithWidth/index.ts | 29 +- .../imageWithWidthWithHeightGetResponse.ts | 30 - .../item/imageWithWidthWithHeight/index.ts | 29 +- ...dthWithHeightWithFittingModeGetResponse.ts | 30 - .../index.ts | 29 +- .../worksheets/item/charts/item/index.ts | 28 +- .../item/legend/format/fill/clear/index.ts | 2 +- .../charts/item/legend/format/fill/index.ts | 6 +- .../legend/format/fill/setSolidColor/index.ts | 28 +- .../setSolidColorPostRequestBody.ts | 30 - .../charts/item/legend/format/font/index.ts | 2 +- .../item/charts/item/legend/format/index.ts | 6 +- .../item/charts/item/legend/index.ts | 4 +- .../item/charts/item/series/count/index.ts | 52 +- .../item/charts/item/series/index.ts | 10 +- .../series/item/format/fill/clear/index.ts | 2 +- .../item/series/item/format/fill/index.ts | 6 +- .../item/format/fill/setSolidColor/index.ts | 28 +- .../setSolidColorPostRequestBody.ts | 30 - .../charts/item/series/item/format/index.ts | 6 +- .../series/item/format/line/clear/index.ts | 2 +- .../item/series/item/format/line/index.ts | 4 +- .../item/charts/item/series/item/index.ts | 6 +- .../item/series/item/points/count/index.ts | 52 +- .../charts/item/series/item/points/index.ts | 10 +- .../points/item/format/fill/clear/index.ts | 2 +- .../item/points/item/format/fill/index.ts | 6 +- .../item/format/fill/setSolidColor/index.ts | 28 +- .../setSolidColorPostRequestBody.ts | 30 - .../series/item/points/item/format/index.ts | 4 +- .../item/series/item/points/item/index.ts | 4 +- .../item/points/itemAtWithIndex/index.ts | 4 +- .../item/series/itemAtWithIndex/index.ts | 4 +- .../item/charts/item/setData/index.ts | 35 +- .../item/setData/setDataPostRequestBody.ts | 37 - .../item/charts/item/setPosition/index.ts | 56 +- .../item/title/format/fill/clear/index.ts | 2 +- .../charts/item/title/format/fill/index.ts | 6 +- .../title/format/fill/setSolidColor/index.ts | 28 +- .../setSolidColorPostRequestBody.ts | 30 - .../charts/item/title/format/font/index.ts | 2 +- .../item/charts/item/title/format/index.ts | 6 +- .../item/charts/item/title/index.ts | 4 +- .../item/charts/item/worksheet/index.ts | 4 +- .../item/charts/itemAtWithIndex/index.ts | 4 +- .../item/charts/itemWithName/index.ts | 4 +- .../item/workbook/worksheets/item/index.ts | 22 +- .../worksheets/item/names/add/index.ts | 58 +- .../item/names/addFormulaLocal/index.ts | 58 +- .../worksheets/item/names/count/index.ts | 2 +- .../workbook/worksheets/item/names/index.ts | 12 +- .../worksheets/item/names/item/index.ts | 6 +- .../worksheets/item/names/item/range/index.ts | 4 +- .../item/names/item/worksheet/index.ts | 4 +- .../item/pivotTables/count/index.ts | 2 +- .../worksheets/item/pivotTables/index.ts | 10 +- .../worksheets/item/pivotTables/item/index.ts | 6 +- .../item/pivotTables/item/refresh/index.ts | 2 +- .../item/pivotTables/item/worksheet/index.ts | 4 +- .../item/pivotTables/refreshAll/index.ts | 2 +- .../worksheets/item/protection/index.ts | 6 +- .../item/protection/protect/index.ts | 56 +- .../item/protection/unprotect/index.ts | 2 +- .../workbook/worksheets/item/range/index.ts | 4 +- .../worksheets/item/rangeWithAddress/index.ts | 4 +- .../worksheets/item/tables/add/index.ts | 58 +- .../worksheets/item/tables/count/index.ts | 52 +- .../workbook/worksheets/item/tables/index.ts | 12 +- .../item/tables/item/clearFilters/index.ts | 2 +- .../item/tables/item/columns/add/index.ts | 58 +- .../item/tables/item/columns/count/index.ts | 52 +- .../item/tables/item/columns/index.ts | 14 +- .../item/columns/item/dataBodyRange/index.ts | 4 +- .../item/filter/apply/applyPostRequestBody.ts | 31 - .../item/columns/item/filter/apply/index.ts | 29 +- .../applyBottomItemsFilterPostRequestBody.ts | 30 - .../filter/applyBottomItemsFilter/index.ts | 28 +- ...applyBottomPercentFilterPostRequestBody.ts | 30 - .../filter/applyBottomPercentFilter/index.ts | 28 +- .../applyCellColorFilterPostRequestBody.ts | 30 - .../item/filter/applyCellColorFilter/index.ts | 28 +- .../applyCustomFilterPostRequestBody.ts | 42 - .../item/filter/applyCustomFilter/index.ts | 40 +- .../item/filter/applyDynamicFilter/index.ts | 55 +- .../item/filter/applyFontColorFilter/index.ts | 55 +- .../applyIconFilterPostRequestBody.ts | 31 - .../item/filter/applyIconFilter/index.ts | 29 +- .../applyTopItemsFilterPostRequestBody.ts | 30 - .../item/filter/applyTopItemsFilter/index.ts | 28 +- .../applyTopPercentFilterPostRequestBody.ts | 30 - .../filter/applyTopPercentFilter/index.ts | 28 +- .../applyValuesFilterPostRequestBody.ts | 31 - .../item/filter/applyValuesFilter/index.ts | 29 +- .../item/columns/item/filter/clear/index.ts | 2 +- .../tables/item/columns/item/filter/index.ts | 26 +- .../item/columns/item/headerRowRange/index.ts | 4 +- .../item/tables/item/columns/item/index.ts | 12 +- .../tables/item/columns/item/range/index.ts | 4 +- .../item/columns/item/totalRowRange/index.ts | 4 +- .../item/columns/itemAtWithIndex/index.ts | 4 +- .../item/tables/item/convertToRange/index.ts | 4 +- .../item/tables/item/dataBodyRange/index.ts | 4 +- .../item/tables/item/headerRowRange/index.ts | 4 +- .../worksheets/item/tables/item/index.ts | 24 +- .../item/tables/item/range/index.ts | 4 +- .../item/tables/item/reapplyFilters/index.ts | 2 +- .../item/tables/item/rows/add/index.ts | 58 +- .../item/tables/item/rows/count/index.ts | 52 +- .../worksheets/item/tables/item/rows/index.ts | 12 +- .../item/tables/item/rows/item/index.ts | 4 +- .../item/tables/item/rows/item/range/index.ts | 4 +- .../tables/item/rows/itemAtWithIndex/index.ts | 4 +- .../item/sort/apply/applyPostRequestBody.ts | 43 - .../item/tables/item/sort/apply/index.ts | 41 +- .../item/tables/item/sort/clear/index.ts | 2 +- .../worksheets/item/tables/item/sort/index.ts | 8 +- .../item/tables/item/sort/reapply/index.ts | 2 +- .../item/tables/item/totalRowRange/index.ts | 4 +- .../item/tables/item/worksheet/index.ts | 4 +- .../item/tables/itemAtWithIndex/index.ts | 4 +- .../worksheets/item/usedRange/index.ts | 4 +- .../item/usedRangeWithValuesOnly/index.ts | 4 +- src/drives/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/drives/item/list/columns/count/index.ts | 2 +- src/drives/item/list/columns/index.ts | 8 +- src/drives/item/list/columns/item/index.ts | 4 +- .../list/columns/item/sourceColumn/index.ts | 4 +- .../addCopy/addCopyPostRequestBody.ts | 30 - .../item/list/contentTypes/addCopy/index.ts | 28 +- .../addCopyFromContentTypeHub/index.ts | 58 +- .../item/list/contentTypes/count/index.ts | 2 +- ...getCompatibleHubContentTypesGetResponse.ts | 29 - .../getCompatibleHubContentTypes/index.ts | 28 +- src/drives/item/list/contentTypes/index.ts | 14 +- .../item/associateWithHubSites/index.ts | 56 +- .../item/list/contentTypes/item/base/index.ts | 4 +- .../item/baseTypes/count/index.ts | 2 +- .../list/contentTypes/item/baseTypes/index.ts | 8 +- .../contentTypes/item/baseTypes/item/index.ts | 4 +- .../item/columnLinks/count/index.ts | 2 +- .../contentTypes/item/columnLinks/index.ts | 8 +- .../item/columnLinks/item/index.ts | 2 +- .../item/columnPositions/count/index.ts | 2 +- .../item/columnPositions/index.ts | 8 +- .../item/columnPositions/item/index.ts | 4 +- .../contentTypes/item/columns/count/index.ts | 2 +- .../list/contentTypes/item/columns/index.ts | 8 +- .../contentTypes/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../copyToDefaultContentLocation/index.ts | 56 +- .../item/list/contentTypes/item/index.ts | 22 +- .../contentTypes/item/isPublished/index.ts | 29 +- .../isPublished/isPublishedGetResponse.ts | 30 - .../list/contentTypes/item/publish/index.ts | 2 +- .../list/contentTypes/item/unpublish/index.ts | 2 +- src/drives/item/list/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/drives/item/list/drive/index.ts | 4 +- src/drives/item/list/index.ts | 18 +- src/drives/item/list/items/count/index.ts | 2 +- src/drives/item/list/items/index.ts | 8 +- .../item/list/items/item/analytics/index.ts | 4 +- .../list/items/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/documentSetVersions/count/index.ts | 2 +- .../items/item/documentSetVersions/index.ts | 8 +- .../documentSetVersions/item/fields/index.ts | 2 +- .../item/documentSetVersions/item/index.ts | 6 +- .../documentSetVersions/item/restore/index.ts | 2 +- .../items/item/driveItem/content/index.ts | 4 +- .../item/list/items/item/driveItem/index.ts | 6 +- .../item/list/items/item/fields/index.ts | 2 +- .../getActivitiesByIntervalGetResponse.ts | 29 - .../item/getActivitiesByInterval/index.ts | 28 +- .../index.ts | 97 +-- src/drives/item/list/items/item/index.ts | 20 +- .../items/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../list/items/item/versions/count/index.ts | 2 +- .../item/list/items/item/versions/index.ts | 8 +- .../items/item/versions/item/fields/index.ts | 2 +- .../list/items/item/versions/item/index.ts | 6 +- .../versions/item/restoreVersion/index.ts | 2 +- .../item/list/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/list/operations/count/index.ts | 2 +- src/drives/item/list/operations/index.ts | 8 +- src/drives/item/list/operations/item/index.ts | 2 +- .../item/list/subscriptions/count/index.ts | 2 +- src/drives/item/list/subscriptions/index.ts | 8 +- .../item/list/subscriptions/item/index.ts | 4 +- .../subscriptions/item/reauthorize/index.ts | 2 +- src/drives/item/recent/index.ts | 91 +-- src/drives/item/root/content/index.ts | 4 +- src/drives/item/root/index.ts | 6 +- src/drives/item/searchWithQ/index.ts | 93 +-- src/drives/item/sharedWithMe/index.ts | 28 +- .../sharedWithMe/sharedWithMeGetResponse.ts | 29 - src/drives/item/special/count/index.ts | 2 +- src/drives/item/special/index.ts | 8 +- src/drives/item/special/item/content/index.ts | 4 +- src/drives/item/special/item/index.ts | 6 +- src/education/classes/count/index.ts | 2 +- src/education/classes/delta/index.ts | 91 +-- src/education/classes/index.ts | 10 +- .../item/assignmentCategories/count/index.ts | 2 +- .../item/assignmentCategories/delta/index.ts | 91 +-- .../item/assignmentCategories/index.ts | 10 +- .../item/assignmentCategories/item/index.ts | 2 +- .../classes/item/assignmentDefaults/index.ts | 2 +- .../classes/item/assignmentSettings/index.ts | 2 +- .../classes/item/assignments/count/index.ts | 2 +- .../classes/item/assignments/delta/index.ts | 91 +-- .../classes/item/assignments/index.ts | 10 +- .../item/categories/count/index.ts | 2 +- .../item/categories/delta/index.ts | 91 +-- .../item/assignments/item/categories/index.ts | 12 +- .../assignments/item/categories/item/index.ts | 2 +- .../item/categories/item/ref/index.ts | 2 +- .../assignments/item/categories/ref/index.ts | 4 +- .../classes/item/assignments/item/index.ts | 16 +- .../item/assignments/item/publish/index.ts | 4 +- .../assignments/item/resources/count/index.ts | 2 +- .../item/assignments/item/resources/index.ts | 8 +- .../assignments/item/resources/item/index.ts | 2 +- .../item/assignments/item/rubric/index.ts | 4 +- .../item/assignments/item/rubric/ref/index.ts | 2 +- .../setUpFeedbackResourcesFolder/index.ts | 4 +- .../item/setUpResourcesFolder/index.ts | 4 +- .../item/submissions/count/index.ts | 2 +- .../assignments/item/submissions/index.ts | 8 +- .../item/submissions/item/index.ts | 18 +- .../submissions/item/outcomes/count/index.ts | 2 +- .../item/submissions/item/outcomes/index.ts | 8 +- .../submissions/item/outcomes/item/index.ts | 2 +- .../item/submissions/item/reassign/index.ts | 4 +- .../submissions/item/resources/count/index.ts | 2 +- .../item/submissions/item/resources/index.ts | 8 +- .../submissions/item/resources/item/index.ts | 2 +- .../submissions/item/returnEscaped/index.ts | 4 +- .../item/setUpResourcesFolder/index.ts | 4 +- .../item/submissions/item/submit/index.ts | 4 +- .../item/submittedResources/count/index.ts | 2 +- .../item/submittedResources/index.ts | 8 +- .../item/submittedResources/item/index.ts | 2 +- .../item/submissions/item/unsubmit/index.ts | 4 +- src/education/classes/item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- src/education/classes/item/index.ts | 18 +- .../classes/item/members/count/index.ts | 2 +- src/education/classes/item/members/index.ts | 10 +- .../classes/item/members/item/index.ts | 2 +- .../classes/item/members/item/ref/index.ts | 2 +- .../classes/item/members/ref/index.ts | 4 +- .../classes/item/schools/count/index.ts | 2 +- src/education/classes/item/schools/index.ts | 8 +- .../classes/item/schools/item/index.ts | 4 +- .../classes/item/teachers/count/index.ts | 2 +- src/education/classes/item/teachers/index.ts | 10 +- .../classes/item/teachers/item/index.ts | 2 +- .../classes/item/teachers/item/ref/index.ts | 2 +- .../classes/item/teachers/ref/index.ts | 4 +- src/education/index.ts | 10 +- src/education/me/assignments/count/index.ts | 2 +- src/education/me/assignments/delta/index.ts | 91 +-- src/education/me/assignments/index.ts | 10 +- .../item/categories/count/index.ts | 2 +- .../item/categories/delta/index.ts | 91 +-- .../me/assignments/item/categories/index.ts | 12 +- .../assignments/item/categories/item/index.ts | 2 +- .../item/categories/item/ref/index.ts | 2 +- .../assignments/item/categories/ref/index.ts | 4 +- src/education/me/assignments/item/index.ts | 16 +- .../me/assignments/item/publish/index.ts | 4 +- .../assignments/item/resources/count/index.ts | 2 +- .../me/assignments/item/resources/index.ts | 8 +- .../assignments/item/resources/item/index.ts | 2 +- .../me/assignments/item/rubric/index.ts | 4 +- .../me/assignments/item/rubric/ref/index.ts | 2 +- .../setUpFeedbackResourcesFolder/index.ts | 4 +- .../item/setUpResourcesFolder/index.ts | 4 +- .../item/submissions/count/index.ts | 2 +- .../me/assignments/item/submissions/index.ts | 8 +- .../item/submissions/item/index.ts | 18 +- .../submissions/item/outcomes/count/index.ts | 2 +- .../item/submissions/item/outcomes/index.ts | 8 +- .../submissions/item/outcomes/item/index.ts | 2 +- .../item/submissions/item/reassign/index.ts | 4 +- .../submissions/item/resources/count/index.ts | 2 +- .../item/submissions/item/resources/index.ts | 8 +- .../submissions/item/resources/item/index.ts | 2 +- .../submissions/item/returnEscaped/index.ts | 4 +- .../item/setUpResourcesFolder/index.ts | 4 +- .../item/submissions/item/submit/index.ts | 4 +- .../item/submittedResources/count/index.ts | 2 +- .../item/submittedResources/index.ts | 8 +- .../item/submittedResources/item/index.ts | 2 +- .../item/submissions/item/unsubmit/index.ts | 4 +- src/education/me/classes/count/index.ts | 2 +- src/education/me/classes/index.ts | 8 +- src/education/me/classes/item/index.ts | 4 +- src/education/me/index.ts | 14 +- src/education/me/rubrics/count/index.ts | 2 +- src/education/me/rubrics/index.ts | 8 +- src/education/me/rubrics/item/index.ts | 2 +- src/education/me/schools/count/index.ts | 2 +- src/education/me/schools/index.ts | 8 +- src/education/me/schools/item/index.ts | 4 +- src/education/me/taughtClasses/count/index.ts | 2 +- src/education/me/taughtClasses/index.ts | 8 +- src/education/me/taughtClasses/item/index.ts | 4 +- src/education/me/user/index.ts | 8 +- .../me/user/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../user/serviceProvisioningErrors/index.ts | 6 +- src/education/schools/count/index.ts | 2 +- src/education/schools/delta/index.ts | 91 +-- src/education/schools/index.ts | 10 +- .../schools/item/administrativeUnit/index.ts | 2 +- .../schools/item/classes/count/index.ts | 2 +- src/education/schools/item/classes/index.ts | 10 +- .../schools/item/classes/item/index.ts | 2 +- .../schools/item/classes/item/ref/index.ts | 2 +- .../schools/item/classes/ref/index.ts | 4 +- src/education/schools/item/index.ts | 8 +- .../schools/item/users/count/index.ts | 2 +- src/education/schools/item/users/index.ts | 10 +- .../schools/item/users/item/index.ts | 2 +- .../schools/item/users/item/ref/index.ts | 2 +- src/education/schools/item/users/ref/index.ts | 4 +- src/education/users/count/index.ts | 2 +- src/education/users/delta/index.ts | 91 +-- src/education/users/index.ts | 10 +- .../users/item/assignments/count/index.ts | 2 +- .../users/item/assignments/delta/index.ts | 91 +-- src/education/users/item/assignments/index.ts | 10 +- .../item/categories/count/index.ts | 2 +- .../item/categories/delta/index.ts | 91 +-- .../item/assignments/item/categories/index.ts | 12 +- .../assignments/item/categories/item/index.ts | 2 +- .../item/categories/item/ref/index.ts | 2 +- .../assignments/item/categories/ref/index.ts | 4 +- .../users/item/assignments/item/index.ts | 16 +- .../item/assignments/item/publish/index.ts | 4 +- .../assignments/item/resources/count/index.ts | 2 +- .../item/assignments/item/resources/index.ts | 8 +- .../assignments/item/resources/item/index.ts | 2 +- .../item/assignments/item/rubric/index.ts | 4 +- .../item/assignments/item/rubric/ref/index.ts | 2 +- .../setUpFeedbackResourcesFolder/index.ts | 4 +- .../item/setUpResourcesFolder/index.ts | 4 +- .../item/submissions/count/index.ts | 2 +- .../assignments/item/submissions/index.ts | 8 +- .../item/submissions/item/index.ts | 18 +- .../submissions/item/outcomes/count/index.ts | 2 +- .../item/submissions/item/outcomes/index.ts | 8 +- .../submissions/item/outcomes/item/index.ts | 2 +- .../item/submissions/item/reassign/index.ts | 4 +- .../submissions/item/resources/count/index.ts | 2 +- .../item/submissions/item/resources/index.ts | 8 +- .../submissions/item/resources/item/index.ts | 2 +- .../submissions/item/returnEscaped/index.ts | 4 +- .../item/setUpResourcesFolder/index.ts | 4 +- .../item/submissions/item/submit/index.ts | 4 +- .../item/submittedResources/count/index.ts | 2 +- .../item/submittedResources/index.ts | 8 +- .../item/submittedResources/item/index.ts | 2 +- .../item/submissions/item/unsubmit/index.ts | 4 +- .../users/item/classes/count/index.ts | 2 +- src/education/users/item/classes/index.ts | 8 +- .../users/item/classes/item/index.ts | 4 +- src/education/users/item/index.ts | 14 +- .../users/item/rubrics/count/index.ts | 2 +- src/education/users/item/rubrics/index.ts | 8 +- .../users/item/rubrics/item/index.ts | 2 +- .../users/item/schools/count/index.ts | 2 +- src/education/users/item/schools/index.ts | 8 +- .../users/item/schools/item/index.ts | 4 +- .../users/item/taughtClasses/count/index.ts | 2 +- .../users/item/taughtClasses/index.ts | 8 +- .../users/item/taughtClasses/item/index.ts | 4 +- src/education/users/item/user/index.ts | 8 +- .../users/item/user/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../user/serviceProvisioningErrors/index.ts | 6 +- src/employeeExperience/index.ts | 6 +- .../learningCourseActivities/count/index.ts | 2 +- .../learningCourseActivities/index.ts | 8 +- .../learningCourseActivities/item/index.ts | 2 +- .../learningProviders/count/index.ts | 2 +- .../learningProviders/index.ts | 8 +- .../learningProviders/item/index.ts | 6 +- .../item/learningContents/count/index.ts | 2 +- .../item/learningContents/index.ts | 8 +- .../item/learningContents/item/index.ts | 2 +- .../learningCourseActivities/count/index.ts | 2 +- .../item/learningCourseActivities/index.ts | 8 +- .../learningCourseActivities/item/index.ts | 2 +- src/external/connections/count/index.ts | 2 +- src/external/connections/index.ts | 8 +- .../connections/item/groups/count/index.ts | 2 +- src/external/connections/item/groups/index.ts | 8 +- .../connections/item/groups/item/index.ts | 4 +- .../item/groups/item/members/count/index.ts | 2 +- .../item/groups/item/members/index.ts | 8 +- .../item/groups/item/members/item/index.ts | 2 +- src/external/connections/item/index.ts | 10 +- .../connections/item/items/count/index.ts | 2 +- src/external/connections/item/items/index.ts | 8 +- .../item/items/item/activities/count/index.ts | 2 +- .../item/items/item/activities/index.ts | 8 +- .../item/items/item/activities/item/index.ts | 4 +- .../item/activities/item/performedBy/index.ts | 4 +- .../connections/item/items/item/index.ts | 6 +- .../addActivitiesPostRequestBody.ts | 31 - .../addActivitiesPostResponse.ts | 29 - .../index.ts | 51 +- .../item/operations/count/index.ts | 2 +- .../connections/item/operations/index.ts | 8 +- .../connections/item/operations/item/index.ts | 2 +- src/external/connections/item/schema/index.ts | 2 +- src/external/index.ts | 4 +- src/filterOperators/count/index.ts | 2 +- src/filterOperators/index.ts | 8 +- src/filterOperators/item/index.ts | 2 +- src/functions/count/index.ts | 2 +- src/functions/index.ts | 8 +- src/functions/item/index.ts | 2 +- src/groupLifecyclePolicies/count/index.ts | 2 +- src/groupLifecyclePolicies/index.ts | 8 +- .../item/addGroup/index.ts | 80 +- src/groupLifecyclePolicies/item/index.ts | 6 +- .../item/removeGroup/index.ts | 58 +- .../removeGroup/removeGroupPostResponse.ts | 30 - src/groupSettingTemplates/count/index.ts | 2 +- src/groupSettingTemplates/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/groupSettingTemplates/getByIds/index.ts | 58 +- src/groupSettingTemplates/index.ts | 16 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- src/groupSettingTemplates/item/index.ts | 12 +- .../item/restore/index.ts | 4 +- .../validateProperties/index.ts | 56 +- src/groupSettings/count/index.ts | 2 +- src/groupSettings/index.ts | 8 +- src/groupSettings/item/index.ts | 2 +- src/groups/count/index.ts | 2 +- src/groups/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/groups/getByIds/index.ts | 58 +- src/groups/index.ts | 16 +- .../item/acceptedSenders/count/index.ts | 2 +- src/groups/item/acceptedSenders/index.ts | 10 +- src/groups/item/acceptedSenders/item/index.ts | 2 +- .../item/acceptedSenders/item/ref/index.ts | 2 +- src/groups/item/acceptedSenders/ref/index.ts | 4 +- src/groups/item/addFavorite/index.ts | 2 +- .../item/appRoleAssignments/count/index.ts | 2 +- src/groups/item/appRoleAssignments/index.ts | 8 +- .../item/appRoleAssignments/item/index.ts | 2 +- src/groups/item/assignLicense/index.ts | 58 +- .../index.ts | 83 +- .../calendarPermissions/count/index.ts | 2 +- .../calendar/calendarPermissions/index.ts | 8 +- .../calendarPermissions/item/index.ts | 2 +- .../item/calendar/calendarView/count/index.ts | 2 +- .../item/calendar/calendarView/delta/index.ts | 100 +-- .../item/calendar/calendarView/index.ts | 10 +- .../calendarView/item/accept/index.ts | 56 +- .../item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../calendarView/item/attachments/index.ts | 16 +- .../item/attachments/item/index.ts | 4 +- .../calendarView/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../calendarView/item/cancel/index.ts | 28 +- .../calendarView/item/decline/index.ts | 56 +- .../item/dismissReminder/index.ts | 2 +- .../item/extensions/count/index.ts | 2 +- .../calendarView/item/extensions/index.ts | 8 +- .../item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../calendarView/item/forward/index.ts | 35 +- .../item/calendar/calendarView/item/index.ts | 26 +- .../item/instances/count/index.ts | 2 +- .../item/instances/delta/index.ts | 100 +-- .../calendarView/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../calendarView/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../calendarView/item/snoozeReminder/index.ts | 56 +- .../item/tentativelyAccept/index.ts | 56 +- .../item/calendar/events/count/index.ts | 2 +- .../item/calendar/events/delta/index.ts | 100 +-- src/groups/item/calendar/events/index.ts | 10 +- .../item/calendar/events/item/accept/index.ts | 56 +- .../events/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../calendar/events/item/attachments/index.ts | 16 +- .../events/item/attachments/item/index.ts | 4 +- .../calendar/events/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/calendar/events/item/cancel/index.ts | 28 +- .../calendar/events/item/decline/index.ts | 56 +- .../events/item/dismissReminder/index.ts | 2 +- .../events/item/extensions/count/index.ts | 2 +- .../calendar/events/item/extensions/index.ts | 8 +- .../events/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../calendar/events/item/forward/index.ts | 35 +- src/groups/item/calendar/events/item/index.ts | 24 +- .../events/item/instances/count/index.ts | 2 +- .../events/item/instances/delta/index.ts | 100 +-- .../calendar/events/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../events/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../events/item/snoozeReminder/index.ts | 56 +- .../events/item/tentativelyAccept/index.ts | 56 +- .../getSchedule/getSchedulePostResponse.ts | 29 - src/groups/item/calendar/getSchedule/index.ts | 58 +- src/groups/item/calendar/index.ts | 14 +- src/groups/item/calendarView/count/index.ts | 2 +- src/groups/item/calendarView/delta/index.ts | 100 +-- src/groups/item/calendarView/index.ts | 10 +- .../item/calendarView/item/accept/index.ts | 56 +- .../item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../calendarView/item/attachments/index.ts | 16 +- .../item/attachments/item/index.ts | 4 +- .../item/calendarView/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/calendarView/item/cancel/index.ts | 28 +- .../item/calendarView/item/decline/index.ts | 56 +- .../item/dismissReminder/index.ts | 2 +- .../item/extensions/count/index.ts | 2 +- .../calendarView/item/extensions/index.ts | 8 +- .../item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/calendarView/item/forward/index.ts | 35 +- src/groups/item/calendarView/item/index.ts | 26 +- .../item/instances/count/index.ts | 2 +- .../item/instances/delta/index.ts | 100 +-- .../item/calendarView/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../calendarView/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../calendarView/item/snoozeReminder/index.ts | 56 +- .../item/tentativelyAccept/index.ts | 56 +- .../checkGrantedPermissionsForApp/index.ts | 52 +- .../checkMemberGroupsPostRequestBody.ts | 30 - src/groups/item/checkMemberGroups/index.ts | 58 +- src/groups/item/checkMemberObjects/index.ts | 79 +- src/groups/item/conversations/count/index.ts | 2 +- src/groups/item/conversations/index.ts | 8 +- src/groups/item/conversations/item/index.ts | 14 +- .../conversations/item/threads/count/index.ts | 2 +- .../item/conversations/item/threads/index.ts | 8 +- .../conversations/item/threads/item/index.ts | 6 +- .../item/threads/item/posts/count/index.ts | 2 +- .../item/threads/item/posts/index.ts | 8 +- .../posts/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/posts/item/attachments/index.ts | 10 +- .../item/posts/item/attachments/item/index.ts | 4 +- .../item/posts/item/extensions/count/index.ts | 2 +- .../item/posts/item/extensions/index.ts | 8 +- .../item/posts/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../threads/item/posts/item/forward/index.ts | 35 +- .../item/inReplyTo/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../posts/item/inReplyTo/attachments/index.ts | 10 +- .../item/inReplyTo/attachments/item/index.ts | 4 +- .../item/inReplyTo/extensions/count/index.ts | 2 +- .../posts/item/inReplyTo/extensions/index.ts | 8 +- .../item/inReplyTo/extensions/item/index.ts | 2 +- .../forward/forwardPostRequestBody.ts | 37 - .../posts/item/inReplyTo/forward/index.ts | 35 +- .../item/posts/item/inReplyTo/index.ts | 12 +- .../item/posts/item/inReplyTo/reply/index.ts | 35 +- .../inReplyTo/reply/replyPostRequestBody.ts | 31 - .../item/threads/item/posts/item/index.ts | 14 +- .../threads/item/posts/item/reply/index.ts | 35 +- .../posts/item/reply/replyPostRequestBody.ts | 31 - .../item/threads/item/reply/index.ts | 35 +- .../item/reply/replyPostRequestBody.ts | 31 - src/groups/item/createdOnBehalfOf/index.ts | 4 +- src/groups/item/drive/index.ts | 4 +- src/groups/item/drives/count/index.ts | 2 +- src/groups/item/drives/index.ts | 8 +- src/groups/item/drives/item/index.ts | 4 +- src/groups/item/events/count/index.ts | 2 +- src/groups/item/events/delta/index.ts | 100 +-- src/groups/item/events/index.ts | 10 +- src/groups/item/events/item/accept/index.ts | 56 +- .../events/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/events/item/attachments/index.ts | 16 +- .../events/item/attachments/item/index.ts | 4 +- src/groups/item/events/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - src/groups/item/events/item/cancel/index.ts | 28 +- src/groups/item/events/item/decline/index.ts | 56 +- .../item/events/item/dismissReminder/index.ts | 2 +- .../events/item/extensions/count/index.ts | 2 +- .../item/events/item/extensions/index.ts | 8 +- .../item/events/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - src/groups/item/events/item/forward/index.ts | 35 +- src/groups/item/events/item/index.ts | 24 +- .../item/events/item/instances/count/index.ts | 2 +- .../item/events/item/instances/delta/index.ts | 100 +-- .../item/events/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../item/events/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../item/events/item/snoozeReminder/index.ts | 56 +- .../events/item/tentativelyAccept/index.ts | 56 +- src/groups/item/extensions/count/index.ts | 2 +- src/groups/item/extensions/index.ts | 8 +- src/groups/item/extensions/item/index.ts | 2 +- .../getMemberGroupsPostResponse.ts | 28 - src/groups/item/getMemberGroups/index.ts | 58 +- src/groups/item/getMemberObjects/index.ts | 78 +- .../groupLifecyclePolicies/count/index.ts | 2 +- .../item/groupLifecyclePolicies/index.ts | 8 +- .../item/addGroup/index.ts | 80 +- .../item/groupLifecyclePolicies/item/index.ts | 6 +- .../item/removeGroup/index.ts | 58 +- .../removeGroup/removeGroupPostResponse.ts | 30 - src/groups/item/index.ts | 94 +-- src/groups/item/memberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../memberOf/graphAdministrativeUnit/index.ts | 6 +- .../item/memberOf/graphGroup/count/index.ts | 2 +- src/groups/item/memberOf/graphGroup/index.ts | 6 +- src/groups/item/memberOf/index.ts | 12 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/memberOf/item/graphGroup/index.ts | 4 +- src/groups/item/memberOf/item/index.ts | 8 +- src/groups/item/members/count/index.ts | 2 +- .../members/graphApplication/count/index.ts | 2 +- .../item/members/graphApplication/index.ts | 6 +- .../item/members/graphDevice/count/index.ts | 2 +- src/groups/item/members/graphDevice/index.ts | 6 +- .../item/members/graphGroup/count/index.ts | 2 +- src/groups/item/members/graphGroup/index.ts | 6 +- .../members/graphOrgContact/count/index.ts | 2 +- .../item/members/graphOrgContact/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../members/graphServicePrincipal/index.ts | 6 +- .../item/members/graphUser/count/index.ts | 2 +- src/groups/item/members/graphUser/index.ts | 6 +- src/groups/item/members/index.ts | 22 +- .../members/item/graphApplication/index.ts | 4 +- .../item/members/item/graphDevice/index.ts | 4 +- .../item/members/item/graphGroup/index.ts | 4 +- .../members/item/graphOrgContact/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/members/item/graphUser/index.ts | 4 +- src/groups/item/members/item/index.ts | 14 +- src/groups/item/members/item/ref/index.ts | 2 +- src/groups/item/members/ref/index.ts | 4 +- .../membersWithLicenseErrors/count/index.ts | 2 +- .../graphApplication/count/index.ts | 2 +- .../graphApplication/index.ts | 6 +- .../graphDevice/count/index.ts | 2 +- .../graphDevice/index.ts | 6 +- .../graphGroup/count/index.ts | 2 +- .../graphGroup/index.ts | 6 +- .../graphOrgContact/count/index.ts | 2 +- .../graphOrgContact/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- .../graphUser/count/index.ts | 2 +- .../graphUser/index.ts | 6 +- .../item/membersWithLicenseErrors/index.ts | 20 +- .../item/graphApplication/index.ts | 4 +- .../item/graphDevice/index.ts | 4 +- .../item/graphGroup/index.ts | 4 +- .../item/graphOrgContact/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/graphUser/index.ts | 4 +- .../membersWithLicenseErrors/item/index.ts | 16 +- src/groups/item/onenote/index.ts | 14 +- .../item/onenote/notebooks/count/index.ts | 2 +- .../getNotebookFromWebUrlPostRequestBody.ts | 30 - .../notebooks/getNotebookFromWebUrl/index.ts | 28 +- ...WithIncludePersonalNotebooksGetResponse.ts | 29 - .../index.ts | 28 +- src/groups/item/onenote/notebooks/index.ts | 12 +- .../notebooks/item/copyNotebook/index.ts | 58 +- .../item/onenote/notebooks/item/index.ts | 8 +- .../item/sectionGroups/count/index.ts | 2 +- .../notebooks/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 10 +- .../item/parentNotebook/index.ts | 4 +- .../item/parentSectionGroup/index.ts | 4 +- .../item/sectionGroups/count/index.ts | 2 +- .../sectionGroups/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 4 +- .../item/sections/count/index.ts | 2 +- .../item/sectionGroups/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sectionGroups/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../notebooks/item/sections/count/index.ts | 2 +- .../onenote/notebooks/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../notebooks/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/onenote/operations/count/index.ts | 2 +- src/groups/item/onenote/operations/index.ts | 8 +- .../item/onenote/operations/item/index.ts | 2 +- src/groups/item/onenote/pages/count/index.ts | 2 +- src/groups/item/onenote/pages/index.ts | 8 +- .../item/onenote/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../onenote/pages/item/copyToSection/index.ts | 46 +- src/groups/item/onenote/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../pages/item/parentNotebook/index.ts | 4 +- .../onenote/pages/item/parentSection/index.ts | 4 +- .../item/onenote/pages/item/preview/index.ts | 4 +- .../item/onenote/resources/count/index.ts | 2 +- src/groups/item/onenote/resources/index.ts | 8 +- .../onenote/resources/item/content/index.ts | 4 +- .../item/onenote/resources/item/index.ts | 4 +- .../item/onenote/sectionGroups/count/index.ts | 2 +- .../item/onenote/sectionGroups/index.ts | 8 +- .../item/onenote/sectionGroups/item/index.ts | 10 +- .../item/parentNotebook/index.ts | 4 +- .../item/parentSectionGroup/index.ts | 4 +- .../item/sectionGroups/count/index.ts | 2 +- .../sectionGroups/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 4 +- .../item/sections/count/index.ts | 2 +- .../sectionGroups/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sectionGroups/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/onenote/sections/count/index.ts | 2 +- src/groups/item/onenote/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../item/onenote/sections/item/index.ts | 12 +- .../sections/item/pages/count/index.ts | 2 +- .../item/onenote/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../onenote/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- src/groups/item/owners/count/index.ts | 2 +- .../owners/graphApplication/count/index.ts | 2 +- .../item/owners/graphApplication/index.ts | 6 +- .../item/owners/graphDevice/count/index.ts | 2 +- src/groups/item/owners/graphDevice/index.ts | 6 +- .../item/owners/graphGroup/count/index.ts | 2 +- src/groups/item/owners/graphGroup/index.ts | 6 +- .../owners/graphOrgContact/count/index.ts | 2 +- .../item/owners/graphOrgContact/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../owners/graphServicePrincipal/index.ts | 6 +- .../item/owners/graphUser/count/index.ts | 2 +- src/groups/item/owners/graphUser/index.ts | 6 +- src/groups/item/owners/index.ts | 22 +- .../owners/item/graphApplication/index.ts | 4 +- .../item/owners/item/graphDevice/index.ts | 4 +- .../item/owners/item/graphGroup/index.ts | 4 +- .../item/owners/item/graphOrgContact/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/owners/item/graphUser/index.ts | 4 +- src/groups/item/owners/item/index.ts | 14 +- src/groups/item/owners/item/ref/index.ts | 2 +- src/groups/item/owners/ref/index.ts | 4 +- .../item/permissionGrants/count/index.ts | 2 +- src/groups/item/permissionGrants/index.ts | 8 +- .../item/permissionGrants/item/index.ts | 2 +- src/groups/item/photo/index.ts | 4 +- src/groups/item/photo/value/index.ts | 2 +- src/groups/item/photos/index.ts | 6 +- src/groups/item/photos/item/index.ts | 6 +- src/groups/item/photos/item/value/index.ts | 2 +- src/groups/item/planner/index.ts | 4 +- src/groups/item/planner/plans/count/index.ts | 2 +- src/groups/item/planner/plans/index.ts | 8 +- .../planner/plans/item/buckets/count/index.ts | 2 +- .../item/planner/plans/item/buckets/index.ts | 8 +- .../planner/plans/item/buckets/item/index.ts | 4 +- .../item/buckets/item/tasks/count/index.ts | 2 +- .../plans/item/buckets/item/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- .../buckets/item/tasks/item/details/index.ts | 2 +- .../item/buckets/item/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- .../item/planner/plans/item/details/index.ts | 2 +- src/groups/item/planner/plans/item/index.ts | 8 +- .../planner/plans/item/tasks/count/index.ts | 2 +- .../item/planner/plans/item/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- .../plans/item/tasks/item/details/index.ts | 2 +- .../planner/plans/item/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- .../item/rejectedSenders/count/index.ts | 2 +- src/groups/item/rejectedSenders/index.ts | 10 +- src/groups/item/rejectedSenders/item/index.ts | 2 +- .../item/rejectedSenders/item/ref/index.ts | 2 +- src/groups/item/rejectedSenders/ref/index.ts | 4 +- src/groups/item/removeFavorite/index.ts | 2 +- src/groups/item/renew/index.ts | 2 +- src/groups/item/resetUnseenCount/index.ts | 2 +- src/groups/item/restore/index.ts | 4 +- .../item/retryServiceProvisioning/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- src/groups/item/settings/count/index.ts | 2 +- src/groups/item/settings/index.ts | 8 +- src/groups/item/settings/item/index.ts | 2 +- src/groups/item/sites/add/index.ts | 80 +- src/groups/item/sites/count/index.ts | 2 +- src/groups/item/sites/delta/index.ts | 91 +-- src/groups/item/sites/getAllSites/index.ts | 91 +-- src/groups/item/sites/index.ts | 16 +- .../sites/item/analytics/allTime/index.ts | 4 +- src/groups/item/sites/item/analytics/index.ts | 8 +- .../itemActivityStats/count/index.ts | 2 +- .../item/analytics/itemActivityStats/index.ts | 8 +- .../item/activities/count/index.ts | 2 +- .../item/activities/index.ts | 8 +- .../item/driveItem/content/index.ts | 4 +- .../item/activities/item/driveItem/index.ts | 6 +- .../item/activities/item/index.ts | 4 +- .../analytics/itemActivityStats/item/index.ts | 4 +- .../item/analytics/lastSevenDays/index.ts | 4 +- .../item/sites/item/columns/count/index.ts | 2 +- src/groups/item/sites/item/columns/index.ts | 8 +- .../item/sites/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../addCopy/addCopyPostRequestBody.ts | 30 - .../sites/item/contentTypes/addCopy/index.ts | 28 +- .../addCopyFromContentTypeHub/index.ts | 58 +- .../sites/item/contentTypes/count/index.ts | 2 +- ...getCompatibleHubContentTypesGetResponse.ts | 29 - .../getCompatibleHubContentTypes/index.ts | 28 +- .../item/sites/item/contentTypes/index.ts | 14 +- .../item/associateWithHubSites/index.ts | 56 +- .../item/contentTypes/item/base/index.ts | 4 +- .../item/baseTypes/count/index.ts | 2 +- .../item/contentTypes/item/baseTypes/index.ts | 8 +- .../contentTypes/item/baseTypes/item/index.ts | 4 +- .../item/columnLinks/count/index.ts | 2 +- .../contentTypes/item/columnLinks/index.ts | 8 +- .../item/columnLinks/item/index.ts | 2 +- .../item/columnPositions/count/index.ts | 2 +- .../item/columnPositions/index.ts | 8 +- .../item/columnPositions/item/index.ts | 4 +- .../contentTypes/item/columns/count/index.ts | 2 +- .../item/contentTypes/item/columns/index.ts | 8 +- .../contentTypes/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../copyToDefaultContentLocation/index.ts | 56 +- .../sites/item/contentTypes/item/index.ts | 22 +- .../contentTypes/item/isPublished/index.ts | 29 +- .../isPublished/isPublishedGetResponse.ts | 30 - .../item/contentTypes/item/publish/index.ts | 2 +- .../item/contentTypes/item/unpublish/index.ts | 2 +- .../item/sites/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/groups/item/sites/item/drive/index.ts | 4 +- .../item/sites/item/drives/count/index.ts | 2 +- src/groups/item/sites/item/drives/index.ts | 8 +- .../item/sites/item/drives/item/index.ts | 4 +- .../sites/item/externalColumns/count/index.ts | 2 +- .../item/sites/item/externalColumns/index.ts | 8 +- .../sites/item/externalColumns/item/index.ts | 4 +- .../getActivitiesByIntervalGetResponse.ts | 29 - .../item/getActivitiesByInterval/index.ts | 28 +- .../index.ts | 97 +-- ...ontentTypesForListWithListIdGetResponse.ts | 29 - .../index.ts | 28 +- .../sites/item/getByPathWithPath/index.ts | 4 +- src/groups/item/sites/item/index.ts | 42 +- .../item/sites/item/items/count/index.ts | 2 +- src/groups/item/sites/item/items/index.ts | 8 +- .../item/sites/item/items/item/index.ts | 4 +- .../sites/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/sites/item/lists/count/index.ts | 2 +- src/groups/item/sites/item/lists/index.ts | 8 +- .../item/lists/item/columns/count/index.ts | 2 +- .../sites/item/lists/item/columns/index.ts | 8 +- .../item/lists/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../addCopy/addCopyPostRequestBody.ts | 30 - .../lists/item/contentTypes/addCopy/index.ts | 28 +- .../addCopyFromContentTypeHub/index.ts | 58 +- .../lists/item/contentTypes/count/index.ts | 2 +- ...getCompatibleHubContentTypesGetResponse.ts | 29 - .../getCompatibleHubContentTypes/index.ts | 28 +- .../item/lists/item/contentTypes/index.ts | 14 +- .../item/associateWithHubSites/index.ts | 56 +- .../item/contentTypes/item/base/index.ts | 4 +- .../item/baseTypes/count/index.ts | 2 +- .../item/contentTypes/item/baseTypes/index.ts | 8 +- .../contentTypes/item/baseTypes/item/index.ts | 4 +- .../item/columnLinks/count/index.ts | 2 +- .../contentTypes/item/columnLinks/index.ts | 8 +- .../item/columnLinks/item/index.ts | 2 +- .../item/columnPositions/count/index.ts | 2 +- .../item/columnPositions/index.ts | 8 +- .../item/columnPositions/item/index.ts | 4 +- .../contentTypes/item/columns/count/index.ts | 2 +- .../item/contentTypes/item/columns/index.ts | 8 +- .../contentTypes/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../copyToDefaultContentLocation/index.ts | 56 +- .../lists/item/contentTypes/item/index.ts | 22 +- .../contentTypes/item/isPublished/index.ts | 29 +- .../isPublished/isPublishedGetResponse.ts | 30 - .../item/contentTypes/item/publish/index.ts | 2 +- .../item/contentTypes/item/unpublish/index.ts | 2 +- .../item/lists/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/sites/item/lists/item/drive/index.ts | 4 +- .../item/sites/item/lists/item/index.ts | 24 +- .../item/sites/item/lists/item/items/index.ts | 6 +- .../lists/item/items/item/analytics/index.ts | 4 +- .../item/items/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/documentSetVersions/count/index.ts | 2 +- .../items/item/documentSetVersions/index.ts | 8 +- .../documentSetVersions/item/fields/index.ts | 2 +- .../item/documentSetVersions/item/index.ts | 6 +- .../documentSetVersions/item/restore/index.ts | 2 +- .../items/item/driveItem/content/index.ts | 4 +- .../lists/item/items/item/driveItem/index.ts | 6 +- .../lists/item/items/item/fields/index.ts | 2 +- .../getActivitiesByIntervalGetResponse.ts | 29 - .../item/getActivitiesByInterval/index.ts | 28 +- .../index.ts | 97 +-- .../sites/item/lists/item/items/item/index.ts | 20 +- .../items/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/items/item/versions/count/index.ts | 2 +- .../lists/item/items/item/versions/index.ts | 8 +- .../items/item/versions/item/fields/index.ts | 2 +- .../item/items/item/versions/item/index.ts | 6 +- .../versions/item/restoreVersion/index.ts | 2 +- .../lists/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/lists/item/operations/count/index.ts | 2 +- .../sites/item/lists/item/operations/index.ts | 8 +- .../item/lists/item/operations/item/index.ts | 2 +- .../lists/item/subscriptions/count/index.ts | 2 +- .../item/lists/item/subscriptions/index.ts | 8 +- .../lists/item/subscriptions/item/index.ts | 4 +- .../subscriptions/item/reauthorize/index.ts | 2 +- src/groups/item/sites/item/onenote/index.ts | 14 +- .../item/onenote/notebooks/count/index.ts | 2 +- .../getNotebookFromWebUrlPostRequestBody.ts | 30 - .../notebooks/getNotebookFromWebUrl/index.ts | 28 +- ...WithIncludePersonalNotebooksGetResponse.ts | 29 - .../index.ts | 28 +- .../sites/item/onenote/notebooks/index.ts | 12 +- .../notebooks/item/copyNotebook/index.ts | 58 +- .../item/onenote/notebooks/item/index.ts | 8 +- .../item/sectionGroups/count/index.ts | 2 +- .../notebooks/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 10 +- .../item/parentNotebook/index.ts | 4 +- .../item/parentSectionGroup/index.ts | 4 +- .../item/sectionGroups/count/index.ts | 2 +- .../sectionGroups/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 4 +- .../item/sections/count/index.ts | 2 +- .../item/sectionGroups/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sectionGroups/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../notebooks/item/sections/count/index.ts | 2 +- .../onenote/notebooks/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../notebooks/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/onenote/operations/count/index.ts | 2 +- .../sites/item/onenote/operations/index.ts | 8 +- .../item/onenote/operations/item/index.ts | 2 +- .../sites/item/onenote/pages/count/index.ts | 2 +- .../item/sites/item/onenote/pages/index.ts | 8 +- .../item/onenote/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../onenote/pages/item/copyToSection/index.ts | 46 +- .../sites/item/onenote/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../pages/item/parentNotebook/index.ts | 4 +- .../onenote/pages/item/parentSection/index.ts | 4 +- .../item/onenote/pages/item/preview/index.ts | 4 +- .../item/onenote/resources/count/index.ts | 2 +- .../sites/item/onenote/resources/index.ts | 8 +- .../onenote/resources/item/content/index.ts | 4 +- .../item/onenote/resources/item/index.ts | 4 +- .../item/onenote/sectionGroups/count/index.ts | 2 +- .../sites/item/onenote/sectionGroups/index.ts | 8 +- .../item/onenote/sectionGroups/item/index.ts | 10 +- .../item/parentNotebook/index.ts | 4 +- .../item/parentSectionGroup/index.ts | 4 +- .../item/sectionGroups/count/index.ts | 2 +- .../sectionGroups/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 4 +- .../item/sections/count/index.ts | 2 +- .../sectionGroups/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sectionGroups/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/onenote/sections/count/index.ts | 2 +- .../item/sites/item/onenote/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sites/item/onenote/sections/item/index.ts | 12 +- .../sections/item/pages/count/index.ts | 2 +- .../item/onenote/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../onenote/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/sites/item/operations/count/index.ts | 2 +- .../item/sites/item/operations/index.ts | 8 +- .../item/sites/item/operations/item/index.ts | 2 +- .../sites/item/permissions/count/index.ts | 2 +- .../item/sites/item/permissions/index.ts | 8 +- .../item/permissions/item/grant/index.ts | 87 +-- .../item/sites/item/permissions/item/index.ts | 4 +- .../item/sites/item/sites/count/index.ts | 2 +- src/groups/item/sites/item/sites/index.ts | 8 +- .../item/sites/item/sites/item/index.ts | 4 +- .../item/termStore/groups/count/index.ts | 2 +- .../item/sites/item/termStore/groups/index.ts | 8 +- .../sites/item/termStore/groups/item/index.ts | 4 +- .../termStore/groups/item/sets/count/index.ts | 2 +- .../item/termStore/groups/item/sets/index.ts | 8 +- .../item/sets/item/children/count/index.ts | 2 +- .../groups/item/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../item/sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/children/item/set/index.ts | 4 +- .../termStore/groups/item/sets/item/index.ts | 10 +- .../item/sets/item/parentGroup/index.ts | 2 +- .../item/sets/item/relations/count/index.ts | 2 +- .../groups/item/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/count/index.ts | 2 +- .../groups/item/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../groups/item/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/item/set/index.ts | 4 +- src/groups/item/sites/item/termStore/index.ts | 6 +- .../sites/item/termStore/sets/count/index.ts | 2 +- .../item/sites/item/termStore/sets/index.ts | 8 +- .../sets/item/children/count/index.ts | 2 +- .../termStore/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../sets/item/children/item/set/index.ts | 4 +- .../sites/item/termStore/sets/item/index.ts | 10 +- .../termStore/sets/item/parentGroup/index.ts | 4 +- .../sets/item/parentGroup/sets/count/index.ts | 2 +- .../sets/item/parentGroup/sets/index.ts | 8 +- .../sets/item/children/count/index.ts | 2 +- .../parentGroup/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../sets/item/children/item/set/index.ts | 4 +- .../sets/item/parentGroup/sets/item/index.ts | 8 +- .../sets/item/relations/count/index.ts | 2 +- .../parentGroup/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/count/index.ts | 2 +- .../item/parentGroup/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../parentGroup/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/item/set/index.ts | 4 +- .../sets/item/relations/count/index.ts | 2 +- .../termStore/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../termStore/sets/item/terms/count/index.ts | 2 +- .../item/termStore/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../termStore/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/item/set/index.ts | 4 +- .../item/sites/item/termStores/count/index.ts | 2 +- .../item/sites/item/termStores/index.ts | 8 +- .../termStores/item/groups/count/index.ts | 2 +- .../item/termStores/item/groups/index.ts | 8 +- .../item/termStores/item/groups/item/index.ts | 4 +- .../item/groups/item/sets/count/index.ts | 2 +- .../termStores/item/groups/item/sets/index.ts | 8 +- .../item/sets/item/children/count/index.ts | 2 +- .../groups/item/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../item/sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/children/item/set/index.ts | 4 +- .../item/groups/item/sets/item/index.ts | 10 +- .../item/sets/item/parentGroup/index.ts | 2 +- .../item/sets/item/relations/count/index.ts | 2 +- .../groups/item/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/count/index.ts | 2 +- .../item/groups/item/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../groups/item/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/item/set/index.ts | 4 +- .../item/sites/item/termStores/item/index.ts | 6 +- .../item/termStores/item/sets/count/index.ts | 2 +- .../sites/item/termStores/item/sets/index.ts | 8 +- .../item/sets/item/children/count/index.ts | 2 +- .../item/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../item/sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/children/item/set/index.ts | 4 +- .../item/termStores/item/sets/item/index.ts | 10 +- .../item/sets/item/parentGroup/index.ts | 4 +- .../sets/item/parentGroup/sets/count/index.ts | 2 +- .../item/sets/item/parentGroup/sets/index.ts | 8 +- .../sets/item/children/count/index.ts | 2 +- .../parentGroup/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../sets/item/children/item/set/index.ts | 4 +- .../sets/item/parentGroup/sets/item/index.ts | 8 +- .../sets/item/relations/count/index.ts | 2 +- .../parentGroup/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/count/index.ts | 2 +- .../item/parentGroup/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../parentGroup/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/item/set/index.ts | 4 +- .../item/sets/item/relations/count/index.ts | 2 +- .../item/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/count/index.ts | 2 +- .../termStores/item/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../item/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/item/set/index.ts | 4 +- src/groups/item/sites/remove/index.ts | 50 +- .../sites/remove/removePostRequestBody.ts | 31 - .../item/sites/remove/removePostResponse.ts | 29 - src/groups/item/subscribeByMail/index.ts | 2 +- .../item/team/allChannels/count/index.ts | 2 +- src/groups/item/team/allChannels/index.ts | 8 +- .../item/team/allChannels/item/index.ts | 4 +- src/groups/item/team/archive/index.ts | 56 +- src/groups/item/team/channels/count/index.ts | 2 +- .../team/channels/getAllMessages/index.ts | 95 +-- src/groups/item/team/channels/index.ts | 10 +- .../channels/item/completeMigration/index.ts | 2 +- ...incipalNameUserPrincipalNameGetResponse.ts | 30 - .../index.ts | 29 +- .../item/filesFolder/content/index.ts | 4 +- .../team/channels/item/filesFolder/index.ts | 6 +- src/groups/item/team/channels/item/index.ts | 20 +- .../team/channels/item/members/add/index.ts | 81 +- .../team/channels/item/members/count/index.ts | 2 +- .../item/team/channels/item/members/index.ts | 16 +- .../team/channels/item/members/item/index.ts | 14 +- .../channels/item/messages/count/index.ts | 2 +- .../channels/item/messages/delta/index.ts | 91 +-- .../item/team/channels/item/messages/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../team/channels/item/messages/item/index.ts | 14 +- .../item/messages/item/replies/count/index.ts | 2 +- .../item/messages/item/replies/delta/index.ts | 91 +-- .../item/messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../item/messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../item/messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../channels/item/provisionEmail/index.ts | 4 +- .../team/channels/item/removeEmail/index.ts | 2 +- .../item/sharedWithTeams/count/index.ts | 2 +- .../channels/item/sharedWithTeams/index.ts | 8 +- .../item/allowedMembers/count/index.ts | 2 +- .../item/allowedMembers/index.ts | 8 +- .../item/allowedMembers/item/index.ts | 4 +- .../item/sharedWithTeams/item/index.ts | 6 +- .../item/sharedWithTeams/item/team/index.ts | 4 +- .../team/channels/item/tabs/count/index.ts | 2 +- .../item/team/channels/item/tabs/index.ts | 12 +- .../team/channels/item/tabs/item/index.ts | 4 +- .../channels/item/tabs/item/teamsApp/index.ts | 4 +- .../item/team/clone/clonePostRequestBody.ts | 62 -- src/groups/item/team/clone/index.ts | 60 +- .../item/team/completeMigration/index.ts | 2 +- src/groups/item/team/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../item/team/incomingChannels/count/index.ts | 2 +- .../item/team/incomingChannels/index.ts | 8 +- .../item/team/incomingChannels/item/index.ts | 4 +- src/groups/item/team/index.ts | 38 +- .../item/team/installedApps/count/index.ts | 2 +- src/groups/item/team/installedApps/index.ts | 8 +- .../item/team/installedApps/item/index.ts | 8 +- .../team/installedApps/item/teamsApp/index.ts | 4 +- .../item/teamsAppDefinition/index.ts | 4 +- .../team/installedApps/item/upgrade/index.ts | 29 +- .../item/upgrade/upgradePostRequestBody.ts | 31 - src/groups/item/team/members/add/index.ts | 81 +- src/groups/item/team/members/count/index.ts | 2 +- src/groups/item/team/members/index.ts | 10 +- src/groups/item/team/members/item/index.ts | 2 +- .../item/team/operations/count/index.ts | 2 +- src/groups/item/team/operations/index.ts | 8 +- src/groups/item/team/operations/item/index.ts | 2 +- .../item/team/permissionGrants/count/index.ts | 2 +- .../item/team/permissionGrants/index.ts | 8 +- .../item/team/permissionGrants/item/index.ts | 2 +- src/groups/item/team/photo/index.ts | 4 +- src/groups/item/team/photo/value/index.ts | 2 +- .../primaryChannel/completeMigration/index.ts | 2 +- ...incipalNameUserPrincipalNameGetResponse.ts | 30 - .../index.ts | 29 +- .../filesFolder/content/index.ts | 4 +- .../team/primaryChannel/filesFolder/index.ts | 6 +- src/groups/item/team/primaryChannel/index.ts | 20 +- .../team/primaryChannel/members/add/index.ts | 81 +- .../primaryChannel/members/count/index.ts | 2 +- .../item/team/primaryChannel/members/index.ts | 16 +- .../team/primaryChannel/members/item/index.ts | 14 +- .../primaryChannel/messages/count/index.ts | 2 +- .../primaryChannel/messages/delta/index.ts | 91 +-- .../team/primaryChannel/messages/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../primaryChannel/messages/item/index.ts | 14 +- .../messages/item/replies/count/index.ts | 2 +- .../messages/item/replies/delta/index.ts | 91 +-- .../messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../primaryChannel/provisionEmail/index.ts | 4 +- .../team/primaryChannel/removeEmail/index.ts | 2 +- .../sharedWithTeams/count/index.ts | 2 +- .../primaryChannel/sharedWithTeams/index.ts | 8 +- .../item/allowedMembers/count/index.ts | 2 +- .../item/allowedMembers/index.ts | 8 +- .../item/allowedMembers/item/index.ts | 4 +- .../sharedWithTeams/item/index.ts | 6 +- .../sharedWithTeams/item/team/index.ts | 4 +- .../team/primaryChannel/tabs/count/index.ts | 2 +- .../item/team/primaryChannel/tabs/index.ts | 12 +- .../team/primaryChannel/tabs/item/index.ts | 4 +- .../tabs/item/teamsApp/index.ts | 4 +- src/groups/item/team/schedule/index.ts | 22 +- .../offerShiftRequests/count/index.ts | 2 +- .../team/schedule/offerShiftRequests/index.ts | 8 +- .../schedule/offerShiftRequests/item/index.ts | 2 +- .../openShiftChangeRequests/count/index.ts | 2 +- .../schedule/openShiftChangeRequests/index.ts | 8 +- .../openShiftChangeRequests/item/index.ts | 2 +- .../team/schedule/openShifts/count/index.ts | 2 +- .../item/team/schedule/openShifts/index.ts | 8 +- .../team/schedule/openShifts/item/index.ts | 2 +- .../schedule/schedulingGroups/count/index.ts | 2 +- .../team/schedule/schedulingGroups/index.ts | 8 +- .../schedule/schedulingGroups/item/index.ts | 2 +- src/groups/item/team/schedule/share/index.ts | 40 +- .../schedule/share/sharePostRequestBody.ts | 42 - .../item/team/schedule/shifts/count/index.ts | 2 +- src/groups/item/team/schedule/shifts/index.ts | 8 +- .../item/team/schedule/shifts/item/index.ts | 2 +- .../swapShiftsChangeRequests/count/index.ts | 2 +- .../swapShiftsChangeRequests/index.ts | 8 +- .../swapShiftsChangeRequests/item/index.ts | 2 +- .../schedule/timeOffReasons/count/index.ts | 2 +- .../team/schedule/timeOffReasons/index.ts | 8 +- .../schedule/timeOffReasons/item/index.ts | 2 +- .../schedule/timeOffRequests/count/index.ts | 2 +- .../team/schedule/timeOffRequests/index.ts | 8 +- .../schedule/timeOffRequests/item/index.ts | 2 +- .../team/schedule/timesOff/count/index.ts | 2 +- .../item/team/schedule/timesOff/index.ts | 8 +- .../item/team/schedule/timesOff/item/index.ts | 2 +- .../team/sendActivityNotification/index.ts | 62 +- ...sendActivityNotificationPostRequestBody.ts | 64 -- src/groups/item/team/tags/count/index.ts | 2 +- src/groups/item/team/tags/index.ts | 8 +- src/groups/item/team/tags/item/index.ts | 4 +- .../team/tags/item/members/count/index.ts | 2 +- .../item/team/tags/item/members/index.ts | 8 +- .../item/team/tags/item/members/item/index.ts | 2 +- src/groups/item/team/template/index.ts | 4 +- src/groups/item/team/unarchive/index.ts | 2 +- src/groups/item/threads/count/index.ts | 2 +- src/groups/item/threads/index.ts | 8 +- src/groups/item/threads/item/index.ts | 12 +- .../item/threads/item/posts/count/index.ts | 2 +- src/groups/item/threads/item/posts/index.ts | 8 +- .../posts/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/posts/item/attachments/index.ts | 10 +- .../item/posts/item/attachments/item/index.ts | 4 +- .../item/posts/item/extensions/count/index.ts | 2 +- .../item/posts/item/extensions/index.ts | 8 +- .../item/posts/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../threads/item/posts/item/forward/index.ts | 35 +- .../item/inReplyTo/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../posts/item/inReplyTo/attachments/index.ts | 10 +- .../item/inReplyTo/attachments/item/index.ts | 4 +- .../item/inReplyTo/extensions/count/index.ts | 2 +- .../posts/item/inReplyTo/extensions/index.ts | 8 +- .../item/inReplyTo/extensions/item/index.ts | 2 +- .../forward/forwardPostRequestBody.ts | 37 - .../posts/item/inReplyTo/forward/index.ts | 35 +- .../item/posts/item/inReplyTo/index.ts | 12 +- .../item/posts/item/inReplyTo/reply/index.ts | 35 +- .../inReplyTo/reply/replyPostRequestBody.ts | 31 - .../item/threads/item/posts/item/index.ts | 14 +- .../threads/item/posts/item/reply/index.ts | 35 +- .../posts/item/reply/replyPostRequestBody.ts | 31 - src/groups/item/threads/item/reply/index.ts | 35 +- .../item/reply/replyPostRequestBody.ts | 31 - .../item/transitiveMemberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../graphAdministrativeUnit/index.ts | 6 +- .../graphGroup/count/index.ts | 2 +- .../transitiveMemberOf/graphGroup/index.ts | 6 +- src/groups/item/transitiveMemberOf/index.ts | 12 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/graphGroup/index.ts | 4 +- .../item/transitiveMemberOf/item/index.ts | 8 +- .../item/transitiveMembers/count/index.ts | 2 +- .../graphApplication/count/index.ts | 2 +- .../graphApplication/index.ts | 6 +- .../graphDevice/count/index.ts | 2 +- .../transitiveMembers/graphDevice/index.ts | 6 +- .../graphGroup/count/index.ts | 2 +- .../transitiveMembers/graphGroup/index.ts | 6 +- .../graphOrgContact/count/index.ts | 2 +- .../graphOrgContact/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- .../graphUser/count/index.ts | 2 +- .../item/transitiveMembers/graphUser/index.ts | 6 +- src/groups/item/transitiveMembers/index.ts | 20 +- .../item/graphApplication/index.ts | 4 +- .../item/graphDevice/index.ts | 4 +- .../item/graphGroup/index.ts | 4 +- .../item/graphOrgContact/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../transitiveMembers/item/graphUser/index.ts | 4 +- .../item/transitiveMembers/item/index.ts | 16 +- src/groups/item/unsubscribeByMail/index.ts | 2 +- src/groups/item/validateProperties/index.ts | 56 +- src/groups/validateProperties/index.ts | 56 +- src/identity/apiConnectors/count/index.ts | 2 +- src/identity/apiConnectors/index.ts | 8 +- src/identity/apiConnectors/item/index.ts | 4 +- .../item/uploadClientCertificate/index.ts | 58 +- .../uploadClientCertificatePostRequestBody.ts | 36 - src/identity/b2xUserFlows/count/index.ts | 2 +- src/identity/b2xUserFlows/index.ts | 8 +- .../item/apiConnectorConfiguration/index.ts | 8 +- .../postAttributeCollection/index.ts | 6 +- .../postAttributeCollection/ref/index.ts | 2 +- .../uploadClientCertificate/index.ts | 58 +- .../uploadClientCertificatePostRequestBody.ts | 36 - .../postFederationSignup/index.ts | 6 +- .../postFederationSignup/ref/index.ts | 2 +- .../uploadClientCertificate/index.ts | 58 +- .../uploadClientCertificatePostRequestBody.ts | 36 - .../item/identityProviders/count/index.ts | 2 +- .../item/identityProviders/index.ts | 8 +- .../item/identityProviders/item/index.ts | 4 +- src/identity/b2xUserFlows/item/index.ts | 12 +- .../item/languages/count/index.ts | 2 +- .../b2xUserFlows/item/languages/index.ts | 8 +- .../item/defaultPages/count/index.ts | 2 +- .../item/languages/item/defaultPages/index.ts | 8 +- .../languages/item/defaultPages/item/index.ts | 4 +- .../item/defaultPages/item/value/index.ts | 2 +- .../b2xUserFlows/item/languages/item/index.ts | 6 +- .../item/overridesPages/count/index.ts | 2 +- .../languages/item/overridesPages/index.ts | 8 +- .../item/overridesPages/item/index.ts | 4 +- .../item/overridesPages/item/value/index.ts | 2 +- .../userAttributeAssignments/count/index.ts | 2 +- .../getOrder/index.ts | 4 +- .../item/userAttributeAssignments/index.ts | 12 +- .../userAttributeAssignments/item/index.ts | 4 +- .../item/userAttribute/index.ts | 4 +- .../setOrder/index.ts | 56 +- .../userFlowIdentityProviders/count/index.ts | 2 +- .../item/userFlowIdentityProviders/index.ts | 10 +- .../userFlowIdentityProviders/item/index.ts | 2 +- .../item/ref/index.ts | 2 +- .../userFlowIdentityProviders/ref/index.ts | 4 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../authenticationMethodModes/count/index.ts | 2 +- .../authenticationMethodModes/index.ts | 8 +- .../authenticationMethodModes/item/index.ts | 2 +- .../authenticationStrength/index.ts | 6 +- .../policies/count/index.ts | 2 +- .../authenticationStrength/policies/index.ts | 8 +- .../combinationConfigurations/count/index.ts | 2 +- .../item/combinationConfigurations/index.ts | 8 +- .../combinationConfigurations/item/index.ts | 2 +- .../policies/item/index.ts | 8 +- .../item/updateAllowedCombinations/index.ts | 58 +- .../policies/item/usage/index.ts | 4 +- src/identity/conditionalAccess/index.ts | 12 +- .../namedLocations/count/index.ts | 2 +- .../conditionalAccess/namedLocations/index.ts | 8 +- .../namedLocations/item/index.ts | 8 +- .../conditionalAccess/policies/count/index.ts | 2 +- .../conditionalAccess/policies/index.ts | 8 +- .../conditionalAccess/policies/item/index.ts | 2 +- .../templates/count/index.ts | 2 +- .../conditionalAccess/templates/index.ts | 8 +- .../conditionalAccess/templates/item/index.ts | 4 +- .../availableProviderTypesGetResponse.ts | 28 - .../availableProviderTypes/index.ts | 27 +- src/identity/identityProviders/count/index.ts | 2 +- src/identity/identityProviders/index.ts | 10 +- src/identity/identityProviders/item/index.ts | 2 +- src/identity/index.ts | 12 +- .../userFlowAttributes/count/index.ts | 2 +- src/identity/userFlowAttributes/index.ts | 8 +- src/identity/userFlowAttributes/item/index.ts | 2 +- .../accessReviews/definitions/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../accessReviews/definitions/index.ts | 10 +- .../accessReviews/definitions/item/index.ts | 6 +- .../definitions/item/instances/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../definitions/item/instances/index.ts | 10 +- .../item/acceptRecommendations/index.ts | 2 +- .../instances/item/applyDecisions/index.ts | 2 +- .../item/batchRecordDecisions/index.ts | 56 +- .../item/contactedReviewers/count/index.ts | 2 +- .../item/contactedReviewers/index.ts | 8 +- .../item/contactedReviewers/item/index.ts | 2 +- .../instances/item/decisions/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../item/instances/item/decisions/index.ts | 10 +- .../instances/item/decisions/item/index.ts | 4 +- .../decisions/item/insights/count/index.ts | 2 +- .../item/decisions/item/insights/index.ts | 8 +- .../decisions/item/insights/item/index.ts | 2 +- .../definitions/item/instances/item/index.ts | 20 +- .../instances/item/resetDecisions/index.ts | 2 +- .../item/instances/item/sendReminder/index.ts | 2 +- .../item/instances/item/stages/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../stages/filterByCurrentUserWithOn/index.ts | 28 +- .../item/instances/item/stages/index.ts | 10 +- .../item/stages/item/decisions/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../item/stages/item/decisions/index.ts | 10 +- .../item/stages/item/decisions/item/index.ts | 4 +- .../decisions/item/insights/count/index.ts | 2 +- .../item/decisions/item/insights/index.ts | 8 +- .../decisions/item/insights/item/index.ts | 2 +- .../item/instances/item/stages/item/index.ts | 6 +- .../instances/item/stages/item/stop/index.ts | 2 +- .../item/instances/item/stop/index.ts | 2 +- .../definitions/item/stop/index.ts | 2 +- .../historyDefinitions/count/index.ts | 2 +- .../accessReviews/historyDefinitions/index.ts | 8 +- .../historyDefinitions/item/index.ts | 4 +- .../item/instances/count/index.ts | 2 +- .../item/instances/index.ts | 8 +- .../item/generateDownloadUri/index.ts | 4 +- .../item/instances/item/index.ts | 4 +- src/identityGovernance/accessReviews/index.ts | 6 +- .../appConsentRequests/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../appConsent/appConsentRequests/index.ts | 10 +- .../appConsentRequests/item/index.ts | 4 +- .../item/userConsentRequests/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../item/userConsentRequests/index.ts | 10 +- .../item/approval/index.ts | 4 +- .../item/approval/stages/count/index.ts | 2 +- .../item/approval/stages/index.ts | 8 +- .../item/approval/stages/item/index.ts | 2 +- .../item/userConsentRequests/item/index.ts | 4 +- src/identityGovernance/appConsent/index.ts | 4 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../accessPackageAssignmentApprovals/index.ts | 10 +- .../item/index.ts | 4 +- .../item/stages/count/index.ts | 2 +- .../item/stages/index.ts | 8 +- .../item/stages/item/index.ts | 2 +- .../accessPackages/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../accessPackages/index.ts | 10 +- .../count/index.ts | 2 +- .../accessPackagesIncompatibleWith/index.ts | 8 +- .../item/index.ts | 4 +- .../item/assignmentPolicies/count/index.ts | 2 +- .../item/assignmentPolicies/index.ts | 8 +- .../item/accessPackage/index.ts | 4 +- .../assignmentPolicies/item/catalog/index.ts | 4 +- .../count/index.ts | 2 +- .../customExtensionStageSettings/index.ts | 8 +- .../item/customExtension/index.ts | 4 +- .../item/index.ts | 4 +- .../item/assignmentPolicies/item/index.ts | 10 +- .../item/questions/count/index.ts | 2 +- .../item/questions/index.ts | 8 +- .../item/questions/item/index.ts | 2 +- .../accessPackages/item/catalog/index.ts | 4 +- .../getApplicablePolicyRequirements/index.ts | 53 +- .../incompatibleAccessPackages/count/index.ts | 2 +- .../item/incompatibleAccessPackages/index.ts | 10 +- .../incompatibleAccessPackages/item/index.ts | 2 +- .../item/ref/index.ts | 2 +- .../incompatibleAccessPackages/ref/index.ts | 4 +- .../item/incompatibleGroups/count/index.ts | 2 +- .../item/incompatibleGroups/index.ts | 10 +- .../item/incompatibleGroups/item/index.ts | 4 +- .../item/incompatibleGroups/item/ref/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../item/incompatibleGroups/ref/index.ts | 4 +- .../accessPackages/item/index.ts | 22 +- .../item/resourceRoleScopes/count/index.ts | 2 +- .../item/resourceRoleScopes/index.ts | 8 +- .../item/resourceRoleScopes/item/index.ts | 6 +- .../resourceRoleScopes/item/role/index.ts | 4 +- .../item/role/resource/environment/index.ts | 4 +- .../item/role/resource/index.ts | 8 +- .../item/role/resource/roles/count/index.ts | 2 +- .../item/role/resource/roles/index.ts | 8 +- .../item/role/resource/roles/item/index.ts | 2 +- .../item/role/resource/scopes/count/index.ts | 2 +- .../item/role/resource/scopes/index.ts | 8 +- .../item/role/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 2 +- .../resourceRoleScopes/item/scope/index.ts | 4 +- .../item/scope/resource/environment/index.ts | 4 +- .../item/scope/resource/index.ts | 8 +- .../item/scope/resource/roles/count/index.ts | 2 +- .../item/scope/resource/roles/index.ts | 8 +- .../item/scope/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 2 +- .../item/scope/resource/scopes/count/index.ts | 2 +- .../item/scope/resource/scopes/index.ts | 8 +- .../item/scope/resource/scopes/item/index.ts | 2 +- .../assignmentPolicies/count/index.ts | 2 +- .../assignmentPolicies/index.ts | 8 +- .../item/accessPackage/index.ts | 4 +- .../assignmentPolicies/item/catalog/index.ts | 4 +- .../count/index.ts | 2 +- .../customExtensionStageSettings/index.ts | 8 +- .../item/customExtension/index.ts | 4 +- .../item/index.ts | 4 +- .../assignmentPolicies/item/index.ts | 10 +- .../item/questions/count/index.ts | 2 +- .../item/questions/index.ts | 8 +- .../item/questions/item/index.ts | 2 +- .../assignmentRequests/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../assignmentRequests/index.ts | 10 +- .../item/accessPackage/index.ts | 4 +- .../item/assignment/index.ts | 4 +- .../assignmentRequests/item/cancel/index.ts | 2 +- .../assignmentRequests/item/index.ts | 14 +- .../item/reprocess/index.ts | 2 +- .../item/requestor/index.ts | 4 +- .../assignmentRequests/item/resume/index.ts | 41 +- .../item/resume/resumePostRequestBody.ts | 43 - .../additionalAccessGetResponse.ts | 29 - .../assignments/additionalAccess/index.ts | 28 +- ...hIncompatibleAccessPackageIdGetResponse.ts | 29 - .../index.ts | 28 +- .../assignments/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../assignments/index.ts | 14 +- .../assignments/item/accessPackage/index.ts | 4 +- .../item/assignmentPolicy/index.ts | 4 +- .../assignments/item/index.ts | 10 +- .../assignments/item/reprocess/index.ts | 2 +- .../assignments/item/target/index.ts | 4 +- .../catalogs/count/index.ts | 2 +- .../entitlementManagement/catalogs/index.ts | 8 +- .../item/accessPackages/count/index.ts | 2 +- .../catalogs/item/accessPackages/index.ts | 8 +- .../item/accessPackages/item/index.ts | 4 +- .../customWorkflowExtensions/count/index.ts | 2 +- .../item/customWorkflowExtensions/index.ts | 8 +- .../customWorkflowExtensions/item/index.ts | 8 +- .../catalogs/item/index.ts | 12 +- .../item/resourceRoles/count/index.ts | 2 +- .../catalogs/item/resourceRoles/index.ts | 8 +- .../catalogs/item/resourceRoles/item/index.ts | 4 +- .../item/resource/environment/index.ts | 4 +- .../item/resourceRoles/item/resource/index.ts | 8 +- .../item/resource/roles/count/index.ts | 2 +- .../item/resource/roles/index.ts | 8 +- .../item/resource/roles/item/index.ts | 2 +- .../item/resource/scopes/count/index.ts | 2 +- .../item/resource/scopes/index.ts | 8 +- .../item/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 2 +- .../item/resourceScopes/count/index.ts | 2 +- .../catalogs/item/resourceScopes/index.ts | 8 +- .../item/resourceScopes/item/index.ts | 4 +- .../item/resource/environment/index.ts | 4 +- .../resourceScopes/item/resource/index.ts | 8 +- .../item/resource/roles/count/index.ts | 2 +- .../item/resource/roles/index.ts | 8 +- .../item/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 2 +- .../item/resource/scopes/count/index.ts | 2 +- .../item/resource/scopes/index.ts | 8 +- .../item/resource/scopes/item/index.ts | 2 +- .../catalogs/item/resources/count/index.ts | 2 +- .../catalogs/item/resources/index.ts | 8 +- .../item/resources/item/environment/index.ts | 4 +- .../catalogs/item/resources/item/index.ts | 8 +- .../item/resources/item/roles/count/index.ts | 2 +- .../item/resources/item/roles/index.ts | 8 +- .../item/resources/item/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../item/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../item/roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 4 +- .../item/resources/item/scopes/count/index.ts | 2 +- .../item/resources/item/scopes/index.ts | 8 +- .../item/resources/item/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../item/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../item/scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 4 +- .../connectedOrganizations/count/index.ts | 2 +- .../connectedOrganizations/index.ts | 8 +- .../item/externalSponsors/count/index.ts | 2 +- .../item/externalSponsors/index.ts | 10 +- .../item/externalSponsors/item/index.ts | 2 +- .../item/externalSponsors/item/ref/index.ts | 2 +- .../item/externalSponsors/ref/index.ts | 4 +- .../connectedOrganizations/item/index.ts | 6 +- .../item/internalSponsors/count/index.ts | 2 +- .../item/internalSponsors/index.ts | 10 +- .../item/internalSponsors/item/index.ts | 2 +- .../item/internalSponsors/item/ref/index.ts | 2 +- .../item/internalSponsors/ref/index.ts | 4 +- .../entitlementManagement/index.ts | 26 +- .../resourceEnvironments/count/index.ts | 2 +- .../resourceEnvironments/index.ts | 8 +- .../resourceEnvironments/item/index.ts | 4 +- .../item/resources/count/index.ts | 2 +- .../item/resources/index.ts | 8 +- .../item/resources/item/environment/index.ts | 4 +- .../item/resources/item/index.ts | 8 +- .../item/resources/item/roles/count/index.ts | 2 +- .../item/resources/item/roles/index.ts | 8 +- .../item/resources/item/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../item/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../item/roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 4 +- .../item/resources/item/scopes/count/index.ts | 2 +- .../item/resources/item/scopes/index.ts | 8 +- .../item/resources/item/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../item/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../item/scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 4 +- .../resourceRequests/count/index.ts | 2 +- .../resourceRequests/index.ts | 8 +- .../catalog/accessPackages/count/index.ts | 2 +- .../item/catalog/accessPackages/index.ts | 8 +- .../item/catalog/accessPackages/item/index.ts | 4 +- .../customWorkflowExtensions/count/index.ts | 2 +- .../catalog/customWorkflowExtensions/index.ts | 8 +- .../customWorkflowExtensions/item/index.ts | 8 +- .../resourceRequests/item/catalog/index.ts | 12 +- .../item/catalog/resourceRoles/count/index.ts | 2 +- .../item/catalog/resourceRoles/index.ts | 8 +- .../item/catalog/resourceRoles/item/index.ts | 4 +- .../item/resource/environment/index.ts | 4 +- .../resourceRoles/item/resource/index.ts | 8 +- .../item/resource/roles/count/index.ts | 2 +- .../item/resource/roles/index.ts | 8 +- .../item/resource/roles/item/index.ts | 2 +- .../item/resource/scopes/count/index.ts | 2 +- .../item/resource/scopes/index.ts | 8 +- .../item/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 2 +- .../catalog/resourceScopes/count/index.ts | 2 +- .../item/catalog/resourceScopes/index.ts | 8 +- .../item/catalog/resourceScopes/item/index.ts | 4 +- .../item/resource/environment/index.ts | 4 +- .../resourceScopes/item/resource/index.ts | 8 +- .../item/resource/roles/count/index.ts | 2 +- .../item/resource/roles/index.ts | 8 +- .../item/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 2 +- .../item/resource/scopes/count/index.ts | 2 +- .../item/resource/scopes/index.ts | 8 +- .../item/resource/scopes/item/index.ts | 2 +- .../item/catalog/resources/count/index.ts | 2 +- .../item/catalog/resources/index.ts | 8 +- .../resources/item/environment/index.ts | 4 +- .../item/catalog/resources/item/index.ts | 8 +- .../resources/item/roles/count/index.ts | 2 +- .../catalog/resources/item/roles/index.ts | 8 +- .../resources/item/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../item/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../item/roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 4 +- .../resources/item/scopes/count/index.ts | 2 +- .../catalog/resources/item/scopes/index.ts | 8 +- .../resources/item/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../item/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../item/scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 4 +- .../resourceRequests/item/index.ts | 6 +- .../item/resource/environment/index.ts | 4 +- .../resourceRequests/item/resource/index.ts | 8 +- .../item/resource/roles/count/index.ts | 2 +- .../item/resource/roles/index.ts | 8 +- .../item/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 4 +- .../item/resource/scopes/count/index.ts | 2 +- .../item/resource/scopes/index.ts | 8 +- .../item/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 4 +- .../resourceRoleScopes/count/index.ts | 2 +- .../resourceRoleScopes/index.ts | 8 +- .../resourceRoleScopes/item/index.ts | 6 +- .../resourceRoleScopes/item/role/index.ts | 4 +- .../item/role/resource/environment/index.ts | 4 +- .../item/role/resource/index.ts | 8 +- .../item/role/resource/roles/count/index.ts | 2 +- .../item/role/resource/roles/index.ts | 8 +- .../item/role/resource/roles/item/index.ts | 2 +- .../item/role/resource/scopes/count/index.ts | 2 +- .../item/role/resource/scopes/index.ts | 8 +- .../item/role/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 2 +- .../resourceRoleScopes/item/scope/index.ts | 4 +- .../item/scope/resource/environment/index.ts | 4 +- .../item/scope/resource/index.ts | 8 +- .../item/scope/resource/roles/count/index.ts | 2 +- .../item/scope/resource/roles/index.ts | 8 +- .../item/scope/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 2 +- .../item/scope/resource/scopes/count/index.ts | 2 +- .../item/scope/resource/scopes/index.ts | 8 +- .../item/scope/resource/scopes/item/index.ts | 2 +- .../resources/count/index.ts | 2 +- .../entitlementManagement/resources/index.ts | 8 +- .../resources/item/environment/index.ts | 4 +- .../resources/item/index.ts | 8 +- .../resources/item/roles/count/index.ts | 2 +- .../resources/item/roles/index.ts | 8 +- .../resources/item/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../item/roles/item/resource/index.ts | 6 +- .../roles/item/resource/scopes/count/index.ts | 2 +- .../item/roles/item/resource/scopes/index.ts | 8 +- .../roles/item/resource/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../resource/scopes/item/resource/index.ts | 4 +- .../resources/item/scopes/count/index.ts | 2 +- .../resources/item/scopes/index.ts | 8 +- .../resources/item/scopes/item/index.ts | 4 +- .../scopes/item/resource/environment/index.ts | 4 +- .../item/scopes/item/resource/index.ts | 6 +- .../scopes/item/resource/roles/count/index.ts | 2 +- .../item/scopes/item/resource/roles/index.ts | 8 +- .../scopes/item/resource/roles/item/index.ts | 4 +- .../roles/item/resource/environment/index.ts | 4 +- .../resource/roles/item/resource/index.ts | 4 +- .../entitlementManagement/settings/index.ts | 2 +- src/identityGovernance/index.ts | 14 +- .../customTaskExtensions/count/index.ts | 2 +- .../customTaskExtensions/index.ts | 8 +- .../item/createdBy/index.ts | 8 +- .../item/createdBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../customTaskExtensions/item/index.ts | 6 +- .../item/lastModifiedBy/index.ts | 8 +- .../lastModifiedBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../lifecycleWorkflows/deletedItems/index.ts | 6 +- .../deletedItems/workflows/count/index.ts | 2 +- .../deletedItems/workflows/index.ts | 8 +- .../workflows/item/createdBy/index.ts | 8 +- .../item/createdBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/executionScope/count/index.ts | 2 +- .../workflows/item/executionScope/index.ts | 8 +- .../item/executionScope/item/index.ts | 4 +- .../deletedItems/workflows/item/index.ts | 26 +- .../workflows/item/lastModifiedBy/index.ts | 8 +- .../lastModifiedBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../activatePostRequestBody.ts | 31 - .../index.ts | 29 +- .../index.ts | 59 +- .../index.ts | 4 +- .../workflows/item/runs/count/index.ts | 2 +- .../deletedItems/workflows/item/runs/index.ts | 10 +- .../workflows/item/runs/item/index.ts | 8 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../runs/item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../item/userProcessingResults/count/index.ts | 2 +- .../runs/item/userProcessingResults/index.ts | 10 +- .../item/userProcessingResults/item/index.ts | 8 +- .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../index.ts | 4 +- .../index.ts | 4 +- .../workflows/item/taskReports/count/index.ts | 2 +- .../workflows/item/taskReports/index.ts | 10 +- .../workflows/item/taskReports/item/index.ts | 10 +- .../item/taskReports/item/task/index.ts | 4 +- .../taskReports/item/taskDefinition/index.ts | 4 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../index.ts | 4 +- .../workflows/item/tasks/count/index.ts | 2 +- .../workflows/item/tasks/index.ts | 8 +- .../workflows/item/tasks/item/index.ts | 4 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../tasks/item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../item/userProcessingResults/count/index.ts | 2 +- .../item/userProcessingResults/index.ts | 10 +- .../item/userProcessingResults/item/index.ts | 8 +- .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../index.ts | 4 +- .../workflows/item/versions/count/index.ts | 2 +- .../workflows/item/versions/index.ts | 8 +- .../item/versions/item/createdBy/index.ts | 8 +- .../item/createdBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../workflows/item/versions/item/index.ts | 10 +- .../versions/item/lastModifiedBy/index.ts | 8 +- .../lastModifiedBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/versions/item/tasks/count/index.ts | 2 +- .../item/versions/item/tasks/index.ts | 8 +- .../item/versions/item/tasks/item/index.ts | 4 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../tasks/item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../lifecycleWorkflows/index.ts | 14 +- .../lifecycleWorkflows/settings/index.ts | 2 +- .../taskDefinitions/count/index.ts | 2 +- .../taskDefinitions/index.ts | 8 +- .../taskDefinitions/item/index.ts | 4 +- .../workflowTemplates/count/index.ts | 2 +- .../workflowTemplates/index.ts | 8 +- .../workflowTemplates/item/index.ts | 6 +- .../item/tasks/count/index.ts | 2 +- .../workflowTemplates/item/tasks/index.ts | 8 +- .../item/tasks/item/index.ts | 6 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../tasks/item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../workflows/count/index.ts | 2 +- .../lifecycleWorkflows/workflows/index.ts | 8 +- .../workflows/item/createdBy/index.ts | 8 +- .../item/createdBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/executionScope/count/index.ts | 2 +- .../workflows/item/executionScope/index.ts | 8 +- .../item/executionScope/item/index.ts | 4 +- .../workflows/item/index.ts | 24 +- .../workflows/item/lastModifiedBy/index.ts | 8 +- .../lastModifiedBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../activatePostRequestBody.ts | 31 - .../index.ts | 29 +- .../index.ts | 59 +- .../index.ts | 4 +- .../workflows/item/runs/count/index.ts | 2 +- .../workflows/item/runs/index.ts | 10 +- .../workflows/item/runs/item/index.ts | 8 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../runs/item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../item/userProcessingResults/count/index.ts | 2 +- .../runs/item/userProcessingResults/index.ts | 10 +- .../item/userProcessingResults/item/index.ts | 8 +- .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../index.ts | 4 +- .../index.ts | 4 +- .../workflows/item/taskReports/count/index.ts | 2 +- .../workflows/item/taskReports/index.ts | 10 +- .../workflows/item/taskReports/item/index.ts | 10 +- .../item/taskReports/item/task/index.ts | 4 +- .../taskReports/item/taskDefinition/index.ts | 4 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../index.ts | 4 +- .../workflows/item/tasks/count/index.ts | 2 +- .../workflows/item/tasks/index.ts | 8 +- .../workflows/item/tasks/item/index.ts | 4 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../tasks/item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../item/userProcessingResults/count/index.ts | 2 +- .../item/userProcessingResults/index.ts | 10 +- .../item/userProcessingResults/item/index.ts | 8 +- .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../index.ts | 4 +- .../workflows/item/versions/count/index.ts | 2 +- .../workflows/item/versions/index.ts | 8 +- .../item/versions/item/createdBy/index.ts | 8 +- .../item/createdBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../workflows/item/versions/item/index.ts | 10 +- .../versions/item/lastModifiedBy/index.ts | 8 +- .../lastModifiedBy/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/versions/item/tasks/count/index.ts | 2 +- .../item/versions/item/tasks/index.ts | 8 +- .../item/versions/item/tasks/item/index.ts | 4 +- .../item/taskProcessingResults/count/index.ts | 2 +- .../tasks/item/taskProcessingResults/index.ts | 8 +- .../item/taskProcessingResults/item/index.ts | 10 +- .../index.ts | 41 +- .../resumePostRequestBody.ts | 43 - .../item/subject/index.ts | 8 +- .../item/subject/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../taskProcessingResults/item/task/index.ts | 4 +- .../group/assignmentApprovals/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../group/assignmentApprovals/index.ts | 10 +- .../group/assignmentApprovals/item/index.ts | 4 +- .../item/stages/count/index.ts | 2 +- .../assignmentApprovals/item/stages/index.ts | 8 +- .../item/stages/item/index.ts | 2 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../assignmentScheduleInstances/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../assignmentScheduleInstances/item/index.ts | 8 +- .../item/principal/index.ts | 4 +- .../assignmentScheduleRequests/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../group/assignmentScheduleRequests/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../item/cancel/index.ts | 2 +- .../item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../assignmentScheduleRequests/item/index.ts | 12 +- .../item/principal/index.ts | 4 +- .../item/targetSchedule/index.ts | 4 +- .../group/assignmentSchedules/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../group/assignmentSchedules/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../assignmentSchedules/item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../group/assignmentSchedules/item/index.ts | 8 +- .../item/principal/index.ts | 4 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../eligibilityScheduleInstances/index.ts | 10 +- .../item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../item/index.ts | 6 +- .../item/principal/index.ts | 4 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../eligibilityScheduleRequests/index.ts | 10 +- .../item/cancel/index.ts | 2 +- .../item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../eligibilityScheduleRequests/item/index.ts | 10 +- .../item/principal/index.ts | 4 +- .../item/targetSchedule/index.ts | 4 +- .../group/eligibilitySchedules/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../group/eligibilitySchedules/index.ts | 10 +- .../eligibilitySchedules/item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../group/eligibilitySchedules/item/index.ts | 6 +- .../item/principal/index.ts | 4 +- .../privilegedAccess/group/index.ts | 16 +- .../privilegedAccess/index.ts | 4 +- .../agreementAcceptances/count/index.ts | 2 +- .../termsOfUse/agreementAcceptances/index.ts | 8 +- .../agreementAcceptances/item/index.ts | 2 +- .../termsOfUse/agreements/count/index.ts | 2 +- .../termsOfUse/agreements/index.ts | 8 +- .../item/acceptances/count/index.ts | 2 +- .../agreements/item/acceptances/index.ts | 8 +- .../agreements/item/acceptances/item/index.ts | 2 +- .../termsOfUse/agreements/item/file/index.ts | 4 +- .../item/file/localizations/count/index.ts | 2 +- .../item/file/localizations/index.ts | 8 +- .../item/file/localizations/item/index.ts | 4 +- .../item/versions/count/index.ts | 2 +- .../file/localizations/item/versions/index.ts | 8 +- .../localizations/item/versions/item/index.ts | 2 +- .../agreements/item/files/count/index.ts | 2 +- .../termsOfUse/agreements/item/files/index.ts | 8 +- .../agreements/item/files/item/index.ts | 4 +- .../item/files/item/versions/count/index.ts | 2 +- .../item/files/item/versions/index.ts | 8 +- .../item/files/item/versions/item/index.ts | 2 +- .../termsOfUse/agreements/item/index.ts | 8 +- src/identityGovernance/termsOfUse/index.ts | 6 +- src/identityProtection/index.ts | 10 +- .../riskDetections/count/index.ts | 2 +- .../riskDetections/index.ts | 8 +- .../riskDetections/item/index.ts | 2 +- .../confirmCompromised/index.ts | 56 +- .../riskyServicePrincipals/count/index.ts | 2 +- .../dismiss/dismissPostRequestBody.ts | 30 - .../riskyServicePrincipals/dismiss/index.ts | 28 +- .../riskyServicePrincipals/index.ts | 12 +- .../item/history/count/index.ts | 2 +- .../item/history/index.ts | 8 +- .../item/history/item/index.ts | 2 +- .../riskyServicePrincipals/item/index.ts | 4 +- .../riskyUsers/confirmCompromised/index.ts | 56 +- .../riskyUsers/count/index.ts | 2 +- .../dismiss/dismissPostRequestBody.ts | 30 - .../riskyUsers/dismiss/index.ts | 28 +- src/identityProtection/riskyUsers/index.ts | 12 +- .../riskyUsers/item/history/count/index.ts | 2 +- .../riskyUsers/item/history/index.ts | 8 +- .../riskyUsers/item/history/item/index.ts | 2 +- .../riskyUsers/item/index.ts | 4 +- .../count/index.ts | 2 +- .../servicePrincipalRiskDetections/index.ts | 8 +- .../item/index.ts | 2 +- .../availableProviderTypesGetResponse.ts | 28 - .../availableProviderTypes/index.ts | 27 +- src/identityProviders/count/index.ts | 2 +- src/identityProviders/index.ts | 10 +- src/identityProviders/item/index.ts | 2 +- src/index.ts | 142 ++-- src/informationProtection/bitlocker/index.ts | 6 +- .../bitlocker/recoveryKeys/count/index.ts | 2 +- .../bitlocker/recoveryKeys/index.ts | 8 +- .../bitlocker/recoveryKeys/item/index.ts | 4 +- src/informationProtection/index.ts | 6 +- .../threatAssessmentRequests/count/index.ts | 2 +- .../threatAssessmentRequests/index.ts | 8 +- .../threatAssessmentRequests/item/index.ts | 4 +- .../item/results/count/index.ts | 2 +- .../item/results/index.ts | 8 +- .../item/results/item/index.ts | 2 +- src/invitations/count/index.ts | 2 +- src/invitations/index.ts | 8 +- src/invitations/item/index.ts | 4 +- src/invitations/item/invitedUser/index.ts | 8 +- .../item/invitedUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/kiota-lock.json | 7 +- src/models/customCalloutExtension.ts | 2 +- .../customExtensionCallbackConfiguration.ts | 2 +- src/models/customExtensionData.ts | 2 +- src/models/entity.ts | 11 +- src/models/subjectSet.ts | 2 +- src/oauth2PermissionGrants/count/index.ts | 2 +- src/oauth2PermissionGrants/delta/index.ts | 91 +-- src/oauth2PermissionGrants/index.ts | 10 +- src/oauth2PermissionGrants/item/index.ts | 2 +- src/organization/count/index.ts | 2 +- src/organization/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/organization/getByIds/index.ts | 58 +- src/organization/index.ts | 22 +- .../item/branding/backgroundImage/index.ts | 2 +- .../item/branding/bannerLogo/index.ts | 2 +- .../item/branding/customCSS/index.ts | 2 +- .../item/branding/favicon/index.ts | 2 +- .../item/branding/headerLogo/index.ts | 2 +- src/organization/item/branding/index.ts | 18 +- .../branding/localizations/count/index.ts | 2 +- .../item/branding/localizations/index.ts | 8 +- .../item/backgroundImage/index.ts | 2 +- .../localizations/item/bannerLogo/index.ts | 2 +- .../localizations/item/customCSS/index.ts | 2 +- .../localizations/item/favicon/index.ts | 2 +- .../localizations/item/headerLogo/index.ts | 2 +- .../item/branding/localizations/item/index.ts | 16 +- .../localizations/item/squareLogo/index.ts | 2 +- .../item/squareLogoDark/index.ts | 2 +- .../item/branding/squareLogo/index.ts | 2 +- .../item/branding/squareLogoDark/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 4 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../item/extensions/count/index.ts | 2 +- src/organization/item/extensions/index.ts | 8 +- .../item/extensions/item/index.ts | 2 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- src/organization/item/index.ts | 26 +- src/organization/item/restore/index.ts | 4 +- .../index.ts | 53 +- src/organization/validateProperties/index.ts | 56 +- src/permissionGrants/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/permissionGrants/getByIds/index.ts | 58 +- src/permissionGrants/index.ts | 14 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- src/permissionGrants/item/index.ts | 12 +- src/permissionGrants/item/restore/index.ts | 4 +- .../validateProperties/index.ts | 56 +- src/places/count/index.ts | 2 +- src/places/graphRoom/count/index.ts | 2 +- src/places/graphRoom/index.ts | 6 +- src/places/graphRoomList/count/index.ts | 2 +- src/places/graphRoomList/index.ts | 6 +- src/places/index.ts | 8 +- src/places/item/graphRoom/index.ts | 4 +- src/places/item/graphRoomList/index.ts | 6 +- .../item/graphRoomList/rooms/count/index.ts | 2 +- src/places/item/graphRoomList/rooms/index.ts | 8 +- .../item/graphRoomList/rooms/item/index.ts | 2 +- src/places/item/index.ts | 6 +- src/planner/buckets/count/index.ts | 2 +- src/planner/buckets/index.ts | 8 +- src/planner/buckets/item/index.ts | 4 +- src/planner/buckets/item/tasks/count/index.ts | 2 +- src/planner/buckets/item/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- .../buckets/item/tasks/item/details/index.ts | 2 +- src/planner/buckets/item/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- src/planner/index.ts | 8 +- src/planner/plans/count/index.ts | 2 +- src/planner/plans/index.ts | 8 +- src/planner/plans/item/buckets/count/index.ts | 2 +- src/planner/plans/item/buckets/index.ts | 8 +- src/planner/plans/item/buckets/item/index.ts | 4 +- .../item/buckets/item/tasks/count/index.ts | 2 +- .../plans/item/buckets/item/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- .../buckets/item/tasks/item/details/index.ts | 2 +- .../item/buckets/item/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- src/planner/plans/item/details/index.ts | 2 +- src/planner/plans/item/index.ts | 8 +- src/planner/plans/item/tasks/count/index.ts | 2 +- src/planner/plans/item/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- .../plans/item/tasks/item/details/index.ts | 2 +- src/planner/plans/item/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- src/planner/tasks/count/index.ts | 2 +- src/planner/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- src/planner/tasks/item/details/index.ts | 2 +- src/planner/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- .../count/index.ts | 2 +- .../activityBasedTimeoutPolicies/index.ts | 8 +- .../item/appliesTo/count/index.ts | 2 +- .../item/appliesTo/index.ts | 8 +- .../item/appliesTo/item/index.ts | 4 +- .../item/index.ts | 4 +- .../adminConsentRequestPolicy/index.ts | 2 +- .../appManagementPolicies/count/index.ts | 2 +- src/policies/appManagementPolicies/index.ts | 8 +- .../item/appliesTo/count/index.ts | 2 +- .../item/appliesTo/index.ts | 8 +- .../item/appliesTo/item/index.ts | 4 +- .../appManagementPolicies/item/index.ts | 4 +- .../authenticationFlowsPolicy/index.ts | 2 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../authenticationMethodsPolicy/index.ts | 4 +- .../count/index.ts | 2 +- .../authenticationStrengthPolicies/index.ts | 8 +- .../combinationConfigurations/count/index.ts | 2 +- .../item/combinationConfigurations/index.ts | 8 +- .../combinationConfigurations/item/index.ts | 2 +- .../item/index.ts | 8 +- .../item/updateAllowedCombinations/index.ts | 58 +- .../item/usage/index.ts | 4 +- src/policies/authorizationPolicy/index.ts | 2 +- .../claimsMappingPolicies/count/index.ts | 2 +- src/policies/claimsMappingPolicies/index.ts | 8 +- .../item/appliesTo/count/index.ts | 2 +- .../item/appliesTo/index.ts | 8 +- .../item/appliesTo/item/index.ts | 4 +- .../claimsMappingPolicies/item/index.ts | 4 +- .../conditionalAccessPolicies/count/index.ts | 2 +- .../conditionalAccessPolicies/index.ts | 8 +- .../conditionalAccessPolicies/item/index.ts | 2 +- .../defaultEscaped/index.ts | 4 +- .../resetToSystemDefault/index.ts | 2 +- src/policies/crossTenantAccessPolicy/index.ts | 6 +- .../partners/count/index.ts | 2 +- .../crossTenantAccessPolicy/partners/index.ts | 8 +- .../item/identitySynchronization/index.ts | 2 +- .../partners/item/index.ts | 4 +- .../defaultAppManagementPolicy/index.ts | 2 +- .../featureRolloutPolicies/count/index.ts | 2 +- src/policies/featureRolloutPolicies/index.ts | 8 +- .../item/appliesTo/count/index.ts | 2 +- .../item/appliesTo/index.ts | 10 +- .../item/appliesTo/item/index.ts | 2 +- .../item/appliesTo/item/ref/index.ts | 2 +- .../item/appliesTo/ref/index.ts | 4 +- .../featureRolloutPolicies/item/index.ts | 4 +- .../homeRealmDiscoveryPolicies/count/index.ts | 2 +- .../homeRealmDiscoveryPolicies/index.ts | 8 +- .../item/appliesTo/count/index.ts | 2 +- .../item/appliesTo/index.ts | 8 +- .../item/appliesTo/item/index.ts | 4 +- .../homeRealmDiscoveryPolicies/item/index.ts | 4 +- .../index.ts | 2 +- src/policies/index.ts | 40 +- .../permissionGrantPolicies/count/index.ts | 2 +- src/policies/permissionGrantPolicies/index.ts | 8 +- .../item/excludes/count/index.ts | 2 +- .../item/excludes/index.ts | 8 +- .../item/excludes/item/index.ts | 2 +- .../item/includes/count/index.ts | 2 +- .../item/includes/index.ts | 8 +- .../item/includes/item/index.ts | 2 +- .../permissionGrantPolicies/item/index.ts | 6 +- .../roleManagementPolicies/count/index.ts | 2 +- src/policies/roleManagementPolicies/index.ts | 8 +- .../item/effectiveRules/count/index.ts | 2 +- .../item/effectiveRules/index.ts | 8 +- .../item/effectiveRules/item/index.ts | 2 +- .../roleManagementPolicies/item/index.ts | 6 +- .../item/rules/count/index.ts | 2 +- .../item/rules/index.ts | 8 +- .../item/rules/item/index.ts | 2 +- .../count/index.ts | 2 +- .../roleManagementPolicyAssignments/index.ts | 8 +- .../item/index.ts | 4 +- .../item/policy/index.ts | 4 +- .../tokenIssuancePolicies/count/index.ts | 2 +- src/policies/tokenIssuancePolicies/index.ts | 8 +- .../item/appliesTo/count/index.ts | 2 +- .../item/appliesTo/index.ts | 8 +- .../item/appliesTo/item/index.ts | 4 +- .../tokenIssuancePolicies/item/index.ts | 4 +- .../tokenLifetimePolicies/count/index.ts | 2 +- src/policies/tokenLifetimePolicies/index.ts | 8 +- .../item/appliesTo/count/index.ts | 2 +- .../item/appliesTo/index.ts | 8 +- .../item/appliesTo/item/index.ts | 4 +- .../tokenLifetimePolicies/item/index.ts | 4 +- src/print/connectors/count/index.ts | 2 +- src/print/connectors/index.ts | 8 +- src/print/connectors/item/index.ts | 2 +- src/print/index.ts | 14 +- src/print/operations/count/index.ts | 2 +- src/print/operations/index.ts | 8 +- src/print/operations/item/index.ts | 2 +- src/print/printers/count/index.ts | 2 +- .../printers/create/createPostRequestBody.ts | 67 -- src/print/printers/create/index.ts | 65 +- src/print/printers/index.ts | 10 +- .../printers/item/connectors/count/index.ts | 2 +- src/print/printers/item/connectors/index.ts | 8 +- .../printers/item/connectors/item/index.ts | 4 +- src/print/printers/item/index.ts | 12 +- src/print/printers/item/jobs/count/index.ts | 2 +- src/print/printers/item/jobs/index.ts | 8 +- .../printers/item/jobs/item/abort/index.ts | 56 +- .../printers/item/jobs/item/cancel/index.ts | 2 +- .../item/jobs/item/documents/count/index.ts | 2 +- .../item/jobs/item/documents/index.ts | 8 +- .../item/createUploadSession/index.ts | 58 +- .../item/jobs/item/documents/item/index.ts | 6 +- .../jobs/item/documents/item/value/index.ts | 2 +- src/print/printers/item/jobs/item/index.ts | 14 +- .../printers/item/jobs/item/redirect/index.ts | 35 +- .../item/redirect/redirectPostRequestBody.ts | 37 - .../printers/item/jobs/item/start/index.ts | 4 +- .../item/jobs/item/tasks/count/index.ts | 2 +- .../printers/item/jobs/item/tasks/index.ts | 8 +- .../jobs/item/tasks/item/definition/index.ts | 4 +- .../item/jobs/item/tasks/item/index.ts | 6 +- .../jobs/item/tasks/item/trigger/index.ts | 4 +- .../item/restoreFactoryDefaults/index.ts | 2 +- src/print/printers/item/shares/count/index.ts | 2 +- src/print/printers/item/shares/index.ts | 8 +- src/print/printers/item/shares/item/index.ts | 4 +- .../printers/item/taskTriggers/count/index.ts | 2 +- src/print/printers/item/taskTriggers/index.ts | 8 +- .../taskTriggers/item/definition/index.ts | 4 +- .../printers/item/taskTriggers/item/index.ts | 4 +- src/print/services/count/index.ts | 2 +- src/print/services/index.ts | 8 +- .../services/item/endpoints/count/index.ts | 2 +- src/print/services/item/endpoints/index.ts | 8 +- .../services/item/endpoints/item/index.ts | 2 +- src/print/services/item/index.ts | 4 +- src/print/shares/count/index.ts | 2 +- src/print/shares/index.ts | 8 +- .../shares/item/allowedGroups/count/index.ts | 2 +- src/print/shares/item/allowedGroups/index.ts | 10 +- .../shares/item/allowedGroups/item/index.ts | 4 +- .../item/allowedGroups/item/ref/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../shares/item/allowedGroups/ref/index.ts | 4 +- .../shares/item/allowedUsers/count/index.ts | 2 +- src/print/shares/item/allowedUsers/index.ts | 10 +- .../shares/item/allowedUsers/item/index.ts | 6 +- .../item/mailboxSettings/index.ts | 2 +- .../item/allowedUsers/item/ref/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../shares/item/allowedUsers/ref/index.ts | 4 +- src/print/shares/item/index.ts | 10 +- src/print/shares/item/jobs/count/index.ts | 2 +- src/print/shares/item/jobs/index.ts | 8 +- .../shares/item/jobs/item/abort/index.ts | 56 +- .../shares/item/jobs/item/cancel/index.ts | 2 +- .../item/jobs/item/documents/count/index.ts | 2 +- .../shares/item/jobs/item/documents/index.ts | 8 +- .../item/createUploadSession/index.ts | 58 +- .../item/jobs/item/documents/item/index.ts | 6 +- .../jobs/item/documents/item/value/index.ts | 2 +- src/print/shares/item/jobs/item/index.ts | 14 +- .../shares/item/jobs/item/redirect/index.ts | 35 +- .../item/redirect/redirectPostRequestBody.ts | 37 - .../shares/item/jobs/item/start/index.ts | 4 +- .../item/jobs/item/tasks/count/index.ts | 2 +- .../shares/item/jobs/item/tasks/index.ts | 8 +- .../jobs/item/tasks/item/definition/index.ts | 4 +- .../shares/item/jobs/item/tasks/item/index.ts | 6 +- .../jobs/item/tasks/item/trigger/index.ts | 4 +- src/print/shares/item/printer/index.ts | 4 +- src/print/taskDefinitions/count/index.ts | 2 +- src/print/taskDefinitions/index.ts | 8 +- src/print/taskDefinitions/item/index.ts | 4 +- .../taskDefinitions/item/tasks/count/index.ts | 2 +- src/print/taskDefinitions/item/tasks/index.ts | 8 +- .../item/tasks/item/definition/index.ts | 4 +- .../taskDefinitions/item/tasks/item/index.ts | 6 +- .../item/tasks/item/trigger/index.ts | 4 +- src/privacy/index.ts | 4 +- .../subjectRightsRequests/count/index.ts | 2 +- src/privacy/subjectRightsRequests/index.ts | 8 +- .../item/approvers/count/index.ts | 2 +- .../item/approvers/index.ts | 8 +- .../item/approvers/item/index.ts | 8 +- .../approvers/item/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../item/collaborators/count/index.ts | 2 +- .../item/collaborators/index.ts | 8 +- .../item/collaborators/item/index.ts | 8 +- .../item/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../item/getFinalAttachment/index.ts | 2 +- .../item/getFinalReport/index.ts | 2 +- .../subjectRightsRequests/item/index.ts | 14 +- .../item/notes/count/index.ts | 2 +- .../subjectRightsRequests/item/notes/index.ts | 8 +- .../item/notes/item/index.ts | 2 +- .../subjectRightsRequests/item/team/index.ts | 4 +- src/reports/authenticationMethods/index.ts | 12 +- .../userRegistrationDetails/count/index.ts | 2 +- .../userRegistrationDetails/index.ts | 8 +- .../userRegistrationDetails/item/index.ts | 2 +- .../usersRegisteredByFeature/index.ts | 4 +- .../index.ts | 4 +- .../usersRegisteredByMethod/index.ts | 4 +- .../index.ts | 4 +- .../dailyPrintUsageByPrinter/count/index.ts | 2 +- src/reports/dailyPrintUsageByPrinter/index.ts | 8 +- .../dailyPrintUsageByPrinter/item/index.ts | 2 +- .../dailyPrintUsageByUser/count/index.ts | 2 +- src/reports/dailyPrintUsageByUser/index.ts | 8 +- .../dailyPrintUsageByUser/item/index.ts | 2 +- .../index.ts | 4 +- .../deviceConfigurationUserActivity/index.ts | 4 +- .../getEmailActivityCountsWithPeriod/index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- ...StartDateTimeWithEndDateTimeGetResponse.ts | 29 - .../index.ts | 28 +- .../index.ts | 2 +- .../getM365AppUserCountsWithPeriod/index.ts | 2 +- .../getM365AppUserDetailWithDate/index.ts | 2 +- .../getM365AppUserDetailWithPeriod/index.ts | 2 +- .../getMailboxUsageDetailWithPeriod/index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../getMailboxUsageStorageWithPeriod/index.ts | 2 +- .../getOffice365ActivationCounts/index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 87 +-- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../getTeamsTeamCountsWithPeriod/index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 87 +-- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- src/reports/index.ts | 216 +++--- .../index.ts | 4 +- .../index.ts | 4 +- .../index.ts | 4 +- .../index.ts | 4 +- .../monthlyPrintUsageByPrinter/count/index.ts | 2 +- .../monthlyPrintUsageByPrinter/index.ts | 8 +- .../monthlyPrintUsageByPrinter/item/index.ts | 2 +- .../monthlyPrintUsageByUser/count/index.ts | 2 +- src/reports/monthlyPrintUsageByUser/index.ts | 8 +- .../monthlyPrintUsageByUser/item/index.ts | 2 +- ...ackSimulationRepeatOffendersGetResponse.ts | 29 - .../index.ts | 28 +- ...lationSimulationUserCoverageGetResponse.ts | 29 - .../index.ts | 28 +- .../index.ts | 81 +- src/reports/security/index.ts | 8 +- src/roleManagement/directory/index.ts | 20 +- .../resourceNamespaces/count/index.ts | 2 +- .../directory/resourceNamespaces/index.ts | 8 +- .../resourceNamespaces/item/index.ts | 4 +- .../item/resourceActions/count/index.ts | 2 +- .../item/resourceActions/index.ts | 8 +- .../item/resourceActions/item/index.ts | 2 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleAssignmentScheduleInstances/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../item/appScope/index.ts | 4 +- .../item/directoryScope/index.ts | 4 +- .../item/index.ts | 12 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleAssignmentScheduleRequests/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../item/appScope/index.ts | 4 +- .../item/cancel/index.ts | 2 +- .../item/directoryScope/index.ts | 4 +- .../item/index.ts | 16 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../item/targetSchedule/index.ts | 4 +- .../roleAssignmentSchedules/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleAssignmentSchedules/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../item/appScope/index.ts | 4 +- .../item/directoryScope/index.ts | 4 +- .../roleAssignmentSchedules/item/index.ts | 12 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../directory/roleAssignments/count/index.ts | 2 +- .../directory/roleAssignments/index.ts | 8 +- .../roleAssignments/item/appScope/index.ts | 2 +- .../item/directoryScope/index.ts | 4 +- .../directory/roleAssignments/item/index.ts | 10 +- .../roleAssignments/item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../directory/roleDefinitions/count/index.ts | 2 +- .../directory/roleDefinitions/index.ts | 8 +- .../directory/roleDefinitions/item/index.ts | 4 +- .../inheritsPermissionsFrom/count/index.ts | 2 +- .../item/inheritsPermissionsFrom/index.ts | 8 +- .../inheritsPermissionsFrom/item/index.ts | 2 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleEligibilityScheduleInstances/index.ts | 10 +- .../item/appScope/index.ts | 4 +- .../item/directoryScope/index.ts | 4 +- .../item/index.ts | 10 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleEligibilityScheduleRequests/index.ts | 10 +- .../item/appScope/index.ts | 4 +- .../item/cancel/index.ts | 2 +- .../item/directoryScope/index.ts | 4 +- .../item/index.ts | 14 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../item/targetSchedule/index.ts | 4 +- .../roleEligibilitySchedules/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleEligibilitySchedules/index.ts | 10 +- .../item/appScope/index.ts | 4 +- .../item/directoryScope/index.ts | 4 +- .../roleEligibilitySchedules/item/index.ts | 10 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../entitlementManagement/index.ts | 20 +- .../resourceNamespaces/count/index.ts | 2 +- .../resourceNamespaces/index.ts | 8 +- .../resourceNamespaces/item/index.ts | 4 +- .../item/resourceActions/count/index.ts | 2 +- .../item/resourceActions/index.ts | 8 +- .../item/resourceActions/item/index.ts | 2 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleAssignmentScheduleInstances/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../item/appScope/index.ts | 4 +- .../item/directoryScope/index.ts | 4 +- .../item/index.ts | 12 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleAssignmentScheduleRequests/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../item/appScope/index.ts | 4 +- .../item/cancel/index.ts | 2 +- .../item/directoryScope/index.ts | 4 +- .../item/index.ts | 16 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../item/targetSchedule/index.ts | 4 +- .../roleAssignmentSchedules/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleAssignmentSchedules/index.ts | 10 +- .../item/activatedUsing/index.ts | 4 +- .../item/appScope/index.ts | 4 +- .../item/directoryScope/index.ts | 4 +- .../roleAssignmentSchedules/item/index.ts | 12 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../roleAssignments/count/index.ts | 2 +- .../roleAssignments/index.ts | 8 +- .../roleAssignments/item/appScope/index.ts | 2 +- .../item/directoryScope/index.ts | 4 +- .../roleAssignments/item/index.ts | 10 +- .../roleAssignments/item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../roleDefinitions/count/index.ts | 2 +- .../roleDefinitions/index.ts | 8 +- .../roleDefinitions/item/index.ts | 4 +- .../inheritsPermissionsFrom/count/index.ts | 2 +- .../item/inheritsPermissionsFrom/index.ts | 8 +- .../inheritsPermissionsFrom/item/index.ts | 2 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleEligibilityScheduleInstances/index.ts | 10 +- .../item/appScope/index.ts | 4 +- .../item/directoryScope/index.ts | 4 +- .../item/index.ts | 10 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleEligibilityScheduleRequests/index.ts | 10 +- .../item/appScope/index.ts | 4 +- .../item/cancel/index.ts | 2 +- .../item/directoryScope/index.ts | 4 +- .../item/index.ts | 14 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- .../item/targetSchedule/index.ts | 4 +- .../roleEligibilitySchedules/count/index.ts | 2 +- .../filterByCurrentUserWithOnGetResponse.ts | 29 - .../filterByCurrentUserWithOn/index.ts | 28 +- .../roleEligibilitySchedules/index.ts | 10 +- .../item/appScope/index.ts | 4 +- .../item/directoryScope/index.ts | 4 +- .../roleEligibilitySchedules/item/index.ts | 10 +- .../item/principal/index.ts | 4 +- .../item/roleDefinition/index.ts | 4 +- src/roleManagement/index.ts | 6 +- src/schemaExtensions/count/index.ts | 2 +- src/schemaExtensions/index.ts | 8 +- src/schemaExtensions/item/index.ts | 2 +- src/scopedRoleMemberships/count/index.ts | 2 +- src/scopedRoleMemberships/index.ts | 8 +- src/scopedRoleMemberships/item/index.ts | 2 +- src/search/index.ts | 4 +- src/search/query/index.ts | 51 +- src/search/query/queryPostRequestBody.ts | 31 - src/search/query/queryPostResponse.ts | 29 - src/security/alerts/count/index.ts | 2 +- src/security/alerts/index.ts | 8 +- src/security/alerts/item/index.ts | 2 +- src/security/alerts_v2/count/index.ts | 2 +- src/security/alerts_v2/index.ts | 8 +- .../alerts_v2/item/comments/count/index.ts | 2 +- src/security/alerts_v2/item/comments/index.ts | 4 +- src/security/alerts_v2/item/index.ts | 4 +- .../endUserNotifications/count/index.ts | 2 +- .../endUserNotifications/index.ts | 8 +- .../item/details/count/index.ts | 2 +- .../item/details/index.ts | 8 +- .../item/details/item/index.ts | 2 +- .../endUserNotifications/item/index.ts | 4 +- src/security/attackSimulation/index.ts | 18 +- .../landingPages/count/index.ts | 2 +- .../attackSimulation/landingPages/index.ts | 8 +- .../landingPages/item/details/count/index.ts | 2 +- .../landingPages/item/details/index.ts | 8 +- .../landingPages/item/details/item/index.ts | 2 +- .../landingPages/item/index.ts | 4 +- .../loginPages/count/index.ts | 2 +- .../attackSimulation/loginPages/index.ts | 8 +- .../attackSimulation/loginPages/item/index.ts | 2 +- .../operations/count/index.ts | 2 +- .../attackSimulation/operations/index.ts | 8 +- .../attackSimulation/operations/item/index.ts | 2 +- .../attackSimulation/payloads/count/index.ts | 2 +- .../attackSimulation/payloads/index.ts | 8 +- .../attackSimulation/payloads/item/index.ts | 2 +- .../simulationAutomations/count/index.ts | 2 +- .../simulationAutomations/index.ts | 8 +- .../simulationAutomations/item/index.ts | 4 +- .../item/runs/count/index.ts | 2 +- .../simulationAutomations/item/runs/index.ts | 8 +- .../item/runs/item/index.ts | 2 +- .../simulations/count/index.ts | 2 +- .../attackSimulation/simulations/index.ts | 8 +- .../simulations/item/index.ts | 8 +- .../simulations/item/landingPage/index.ts | 4 +- .../simulations/item/loginPage/index.ts | 4 +- .../simulations/item/payload/index.ts | 4 +- .../attackSimulation/trainings/count/index.ts | 2 +- .../attackSimulation/trainings/index.ts | 8 +- .../attackSimulation/trainings/item/index.ts | 4 +- .../item/languageDetails/count/index.ts | 2 +- .../trainings/item/languageDetails/index.ts | 8 +- .../item/languageDetails/item/index.ts | 2 +- .../cases/ediscoveryCases/count/index.ts | 2 +- src/security/cases/ediscoveryCases/index.ts | 8 +- .../item/custodians/count/index.ts | 2 +- .../ediscoveryCases/item/custodians/index.ts | 12 +- .../item/custodians/item/index.ts | 20 +- .../item/lastIndexOperation/index.ts | 4 +- .../microsoftGraphSecurityActivate/index.ts | 2 +- .../microsoftGraphSecurityApplyHold/index.ts | 2 +- .../microsoftGraphSecurityRelease/index.ts | 2 +- .../microsoftGraphSecurityRemoveHold/index.ts | 2 +- .../index.ts | 2 +- .../item/siteSources/count/index.ts | 2 +- .../item/custodians/item/siteSources/index.ts | 8 +- .../custodians/item/siteSources/item/index.ts | 4 +- .../item/siteSources/item/site/index.ts | 4 +- .../item/unifiedGroupSources/count/index.ts | 2 +- .../item/unifiedGroupSources/index.ts | 8 +- .../unifiedGroupSources/item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../item/unifiedGroupSources/item/index.ts | 4 +- .../item/userSources/count/index.ts | 2 +- .../item/custodians/item/userSources/index.ts | 8 +- .../custodians/item/userSources/item/index.ts | 2 +- .../applyHoldPostRequestBody.ts | 30 - .../microsoftGraphSecurityApplyHold/index.ts | 28 +- .../microsoftGraphSecurityRemoveHold/index.ts | 28 +- .../removeHoldPostRequestBody.ts | 30 - .../cases/ediscoveryCases/item/index.ts | 20 +- .../item/microsoftGraphSecurityClose/index.ts | 2 +- .../microsoftGraphSecurityReopen/index.ts | 2 +- .../noncustodialDataSources/count/index.ts | 2 +- .../item/noncustodialDataSources/index.ts | 12 +- .../item/dataSource/index.ts | 2 +- .../noncustodialDataSources/item/index.ts | 14 +- .../item/lastIndexOperation/index.ts | 4 +- .../microsoftGraphSecurityApplyHold/index.ts | 2 +- .../microsoftGraphSecurityRelease/index.ts | 2 +- .../microsoftGraphSecurityRemoveHold/index.ts | 2 +- .../index.ts | 2 +- .../applyHoldPostRequestBody.ts | 30 - .../microsoftGraphSecurityApplyHold/index.ts | 28 +- .../microsoftGraphSecurityRemoveHold/index.ts | 28 +- .../removeHoldPostRequestBody.ts | 30 - .../item/operations/count/index.ts | 2 +- .../ediscoveryCases/item/operations/index.ts | 8 +- .../item/operations/item/index.ts | 2 +- .../item/reviewSets/count/index.ts | 2 +- .../ediscoveryCases/item/reviewSets/index.ts | 8 +- .../item/reviewSets/item/index.ts | 8 +- .../addToReviewSetPostRequestBody.ts | 38 - .../index.ts | 56 +- .../microsoftGraphSecurityExport/index.ts | 56 +- .../reviewSets/item/queries/count/index.ts | 2 +- .../item/reviewSets/item/queries/index.ts | 8 +- .../reviewSets/item/queries/item/index.ts | 6 +- .../microsoftGraphSecurityApplyTags/index.ts | 56 +- .../microsoftGraphSecurityExport/index.ts | 56 +- .../item/searches/count/index.ts | 2 +- .../ediscoveryCases/item/searches/index.ts | 8 +- .../item/addToReviewSetOperation/index.ts | 4 +- .../item/additionalSources/count/index.ts | 2 +- .../searches/item/additionalSources/index.ts | 8 +- .../item/additionalSources/item/index.ts | 2 +- .../item/custodianSources/count/index.ts | 2 +- .../searches/item/custodianSources/index.ts | 8 +- .../item/custodianSources/item/index.ts | 4 +- .../item/searches/item/index.ts | 16 +- .../lastEstimateStatisticsOperation/index.ts | 4 +- .../index.ts | 2 +- .../microsoftGraphSecurityPurgeData/index.ts | 36 +- .../purgeDataPostRequestBody.ts | 38 - .../item/noncustodialSources/count/index.ts | 2 +- .../item/noncustodialSources/index.ts | 8 +- .../item/noncustodialSources/item/index.ts | 4 +- .../ediscoveryCases/item/settings/index.ts | 4 +- .../index.ts | 2 +- .../ediscoveryCases/item/tags/count/index.ts | 2 +- .../cases/ediscoveryCases/item/tags/index.ts | 10 +- .../item/tags/item/childTags/count/index.ts | 2 +- .../item/tags/item/childTags/index.ts | 8 +- .../item/tags/item/childTags/item/index.ts | 4 +- .../ediscoveryCases/item/tags/item/index.ts | 6 +- .../item/tags/item/parent/index.ts | 4 +- .../asHierarchyGetResponse.ts | 29 - .../index.ts | 28 +- src/security/cases/index.ts | 4 +- src/security/incidents/count/index.ts | 2 +- src/security/incidents/index.ts | 8 +- .../incidents/item/alerts/count/index.ts | 2 +- src/security/incidents/item/alerts/index.ts | 8 +- .../item/alerts/item/comments/count/index.ts | 2 +- .../item/alerts/item/comments/index.ts | 4 +- .../incidents/item/alerts/item/index.ts | 6 +- src/security/incidents/item/index.ts | 4 +- src/security/index.ts | 26 +- .../index.ts | 28 +- .../runHuntingQueryPostRequestBody.ts | 30 - .../secureScoreControlProfiles/count/index.ts | 2 +- .../secureScoreControlProfiles/index.ts | 8 +- .../secureScoreControlProfiles/item/index.ts | 2 +- src/security/secureScores/count/index.ts | 2 +- src/security/secureScores/index.ts | 8 +- src/security/secureScores/item/index.ts | 2 +- .../subjectRightsRequests/count/index.ts | 2 +- src/security/subjectRightsRequests/index.ts | 8 +- .../item/approvers/count/index.ts | 2 +- .../item/approvers/index.ts | 8 +- .../item/approvers/item/index.ts | 8 +- .../approvers/item/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../item/collaborators/count/index.ts | 2 +- .../item/collaborators/index.ts | 8 +- .../item/collaborators/item/index.ts | 8 +- .../item/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../item/getFinalAttachment/index.ts | 2 +- .../item/getFinalReport/index.ts | 2 +- .../subjectRightsRequests/item/index.ts | 14 +- .../item/notes/count/index.ts | 2 +- .../subjectRightsRequests/item/notes/index.ts | 8 +- .../item/notes/item/index.ts | 2 +- .../subjectRightsRequests/item/team/index.ts | 4 +- .../articleIndicators/count/index.ts | 2 +- .../articleIndicators/index.ts | 8 +- .../articleIndicators/item/artifact/index.ts | 4 +- .../articleIndicators/item/index.ts | 4 +- .../articles/count/index.ts | 2 +- .../threatIntelligence/articles/index.ts | 8 +- .../threatIntelligence/articles/item/index.ts | 4 +- .../articles/item/indicators/count/index.ts | 2 +- .../articles/item/indicators/index.ts | 8 +- .../articles/item/indicators/item/index.ts | 4 +- .../hostComponents/count/index.ts | 2 +- .../hostComponents/index.ts | 8 +- .../hostComponents/item/host/index.ts | 4 +- .../hostComponents/item/index.ts | 4 +- .../hostCookies/count/index.ts | 2 +- .../threatIntelligence/hostCookies/index.ts | 8 +- .../hostCookies/item/host/index.ts | 4 +- .../hostCookies/item/index.ts | 4 +- .../hostPairs/count/index.ts | 2 +- .../threatIntelligence/hostPairs/index.ts | 8 +- .../hostPairs/item/childHost/index.ts | 4 +- .../hostPairs/item/index.ts | 6 +- .../hostPairs/item/parentHost/index.ts | 4 +- .../hostPorts/count/index.ts | 2 +- .../threatIntelligence/hostPorts/index.ts | 8 +- .../hostPorts/item/host/index.ts | 4 +- .../hostPorts/item/index.ts | 6 +- .../item/mostRecentSslCertificate/index.ts | 4 +- .../hostSslCertificates/count/index.ts | 2 +- .../hostSslCertificates/index.ts | 8 +- .../hostSslCertificates/item/host/index.ts | 4 +- .../hostSslCertificates/item/index.ts | 6 +- .../item/sslCertificate/index.ts | 4 +- .../hostTrackers/count/index.ts | 2 +- .../threatIntelligence/hostTrackers/index.ts | 8 +- .../hostTrackers/item/host/index.ts | 4 +- .../hostTrackers/item/index.ts | 4 +- .../threatIntelligence/hosts/count/index.ts | 2 +- .../threatIntelligence/hosts/index.ts | 8 +- .../hosts/item/childHostPairs/count/index.ts | 2 +- .../hosts/item/childHostPairs/index.ts | 8 +- .../hosts/item/childHostPairs/item/index.ts | 4 +- .../hosts/item/components/count/index.ts | 2 +- .../hosts/item/components/index.ts | 8 +- .../hosts/item/components/item/index.ts | 4 +- .../hosts/item/cookies/count/index.ts | 2 +- .../hosts/item/cookies/index.ts | 8 +- .../hosts/item/cookies/item/index.ts | 4 +- .../hosts/item/hostPairs/count/index.ts | 2 +- .../hosts/item/hostPairs/index.ts | 8 +- .../hosts/item/hostPairs/item/index.ts | 4 +- .../threatIntelligence/hosts/item/index.ts | 28 +- .../hosts/item/parentHostPairs/count/index.ts | 2 +- .../hosts/item/parentHostPairs/index.ts | 8 +- .../hosts/item/parentHostPairs/item/index.ts | 4 +- .../hosts/item/passiveDns/count/index.ts | 2 +- .../hosts/item/passiveDns/index.ts | 8 +- .../hosts/item/passiveDns/item/index.ts | 4 +- .../item/passiveDnsReverse/count/index.ts | 2 +- .../hosts/item/passiveDnsReverse/index.ts | 8 +- .../item/passiveDnsReverse/item/index.ts | 4 +- .../hosts/item/ports/count/index.ts | 2 +- .../hosts/item/ports/index.ts | 8 +- .../hosts/item/ports/item/index.ts | 4 +- .../hosts/item/reputation/index.ts | 2 +- .../hosts/item/sslCertificates/count/index.ts | 2 +- .../hosts/item/sslCertificates/index.ts | 8 +- .../hosts/item/sslCertificates/item/index.ts | 4 +- .../hosts/item/subdomains/count/index.ts | 2 +- .../hosts/item/subdomains/index.ts | 8 +- .../hosts/item/subdomains/item/index.ts | 4 +- .../hosts/item/trackers/count/index.ts | 2 +- .../hosts/item/trackers/index.ts | 8 +- .../hosts/item/trackers/item/index.ts | 4 +- .../hosts/item/whois/index.ts | 4 +- src/security/threatIntelligence/index.ts | 36 +- .../intelProfiles/count/index.ts | 2 +- .../threatIntelligence/intelProfiles/index.ts | 8 +- .../intelProfiles/item/index.ts | 4 +- .../item/indicators/count/index.ts | 2 +- .../intelProfiles/item/indicators/index.ts | 8 +- .../item/indicators/item/index.ts | 4 +- .../count/index.ts | 2 +- .../intelligenceProfileIndicators/index.ts | 8 +- .../item/artifact/index.ts | 4 +- .../item/index.ts | 4 +- .../passiveDnsRecords/count/index.ts | 2 +- .../passiveDnsRecords/index.ts | 8 +- .../passiveDnsRecords/item/artifact/index.ts | 4 +- .../passiveDnsRecords/item/index.ts | 6 +- .../item/parentHost/index.ts | 4 +- .../sslCertificates/count/index.ts | 2 +- .../sslCertificates/index.ts | 8 +- .../sslCertificates/item/index.ts | 4 +- .../item/relatedHosts/count/index.ts | 2 +- .../item/relatedHosts/index.ts | 8 +- .../item/relatedHosts/item/index.ts | 4 +- .../subdomains/count/index.ts | 2 +- .../threatIntelligence/subdomains/index.ts | 8 +- .../subdomains/item/host/index.ts | 4 +- .../subdomains/item/index.ts | 4 +- .../vulnerabilities/count/index.ts | 2 +- .../vulnerabilities/index.ts | 8 +- .../item/articles/count/index.ts | 2 +- .../vulnerabilities/item/articles/index.ts | 8 +- .../item/articles/item/index.ts | 4 +- .../item/components/count/index.ts | 2 +- .../vulnerabilities/item/components/index.ts | 8 +- .../item/components/item/index.ts | 2 +- .../vulnerabilities/item/index.ts | 6 +- .../whoisHistoryRecords/count/index.ts | 2 +- .../whoisHistoryRecords/index.ts | 8 +- .../whoisHistoryRecords/item/host/index.ts | 4 +- .../whoisHistoryRecords/item/index.ts | 4 +- .../whoisRecords/count/index.ts | 2 +- .../threatIntelligence/whoisRecords/index.ts | 8 +- .../whoisRecords/item/history/count/index.ts | 2 +- .../whoisRecords/item/history/index.ts | 8 +- .../whoisRecords/item/history/item/index.ts | 4 +- .../whoisRecords/item/host/index.ts | 4 +- .../whoisRecords/item/index.ts | 6 +- src/security/triggerTypes/index.ts | 4 +- .../retentionEventTypes/count/index.ts | 2 +- .../triggerTypes/retentionEventTypes/index.ts | 8 +- .../retentionEventTypes/item/index.ts | 2 +- src/security/triggers/index.ts | 4 +- .../triggers/retentionEvents/count/index.ts | 2 +- .../triggers/retentionEvents/index.ts | 8 +- .../triggers/retentionEvents/item/index.ts | 4 +- .../item/retentionEventType/index.ts | 4 +- src/servicePrincipals/count/index.ts | 2 +- src/servicePrincipals/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- .../getByIds/getByIdsPostRequestBody.ts | 36 - src/servicePrincipals/getByIds/index.ts | 58 +- src/servicePrincipals/index.ts | 16 +- src/servicePrincipals/item/addKey/index.ts | 59 +- .../item/addPassword/index.ts | 59 +- .../item/addTokenSigningCertificate/index.ts | 58 +- .../item/appManagementPolicies/count/index.ts | 2 +- .../item/appManagementPolicies/index.ts | 8 +- .../item/appManagementPolicies/item/index.ts | 4 +- .../item/appRoleAssignedTo/count/index.ts | 2 +- .../item/appRoleAssignedTo/index.ts | 8 +- .../item/appRoleAssignedTo/item/index.ts | 2 +- .../item/appRoleAssignments/count/index.ts | 2 +- .../item/appRoleAssignments/index.ts | 8 +- .../item/appRoleAssignments/item/index.ts | 2 +- .../checkMemberGroupsPostRequestBody.ts | 30 - .../item/checkMemberGroups/index.ts | 58 +- .../item/checkMemberObjects/index.ts | 79 +- .../item/claimsMappingPolicies/count/index.ts | 2 +- .../item/claimsMappingPolicies/index.ts | 10 +- .../item/claimsMappingPolicies/item/index.ts | 2 +- .../claimsMappingPolicies/item/ref/index.ts | 2 +- .../item/claimsMappingPolicies/ref/index.ts | 4 +- .../item/createdObjects/count/index.ts | 2 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- .../item/createdObjects/index.ts | 10 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/createdObjects/item/index.ts | 6 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- .../item/endpoints/count/index.ts | 2 +- src/servicePrincipals/item/endpoints/index.ts | 8 +- .../item/endpoints/item/index.ts | 2 +- .../count/index.ts | 2 +- .../federatedIdentityCredentials/index.ts | 8 +- .../item/index.ts | 2 +- .../getMemberGroupsPostResponse.ts | 28 - .../item/getMemberGroups/index.ts | 58 +- .../item/getMemberObjects/index.ts | 78 +- .../homeRealmDiscoveryPolicies/count/index.ts | 2 +- .../item/homeRealmDiscoveryPolicies/index.ts | 10 +- .../homeRealmDiscoveryPolicies/item/index.ts | 2 +- .../item/ref/index.ts | 2 +- .../homeRealmDiscoveryPolicies/ref/index.ts | 4 +- src/servicePrincipals/item/index.ts | 58 +- .../item/memberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../memberOf/graphAdministrativeUnit/index.ts | 6 +- .../graphDirectoryRole/count/index.ts | 2 +- .../item/memberOf/graphDirectoryRole/index.ts | 6 +- .../item/memberOf/graphGroup/count/index.ts | 2 +- .../item/memberOf/graphGroup/index.ts | 6 +- src/servicePrincipals/item/memberOf/index.ts | 14 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../memberOf/item/graphDirectoryRole/index.ts | 4 +- .../item/memberOf/item/graphGroup/index.ts | 4 +- .../item/memberOf/item/index.ts | 10 +- .../oauth2PermissionGrants/count/index.ts | 2 +- .../item/oauth2PermissionGrants/index.ts | 8 +- .../item/oauth2PermissionGrants/item/index.ts | 4 +- .../item/ownedObjects/count/index.ts | 2 +- .../graphAppRoleAssignment/count/index.ts | 2 +- .../graphAppRoleAssignment/index.ts | 6 +- .../graphApplication/count/index.ts | 2 +- .../ownedObjects/graphApplication/index.ts | 6 +- .../ownedObjects/graphEndpoint/count/index.ts | 2 +- .../item/ownedObjects/graphEndpoint/index.ts | 6 +- .../ownedObjects/graphGroup/count/index.ts | 2 +- .../item/ownedObjects/graphGroup/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- .../item/ownedObjects/index.ts | 18 +- .../item/graphAppRoleAssignment/index.ts | 4 +- .../item/graphApplication/index.ts | 4 +- .../ownedObjects/item/graphEndpoint/index.ts | 4 +- .../ownedObjects/item/graphGroup/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/ownedObjects/item/index.ts | 14 +- .../item/owners/count/index.ts | 2 +- .../graphAppRoleAssignment/count/index.ts | 2 +- .../owners/graphAppRoleAssignment/index.ts | 6 +- .../item/owners/graphEndpoint/count/index.ts | 2 +- .../item/owners/graphEndpoint/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../owners/graphServicePrincipal/index.ts | 6 +- .../item/owners/graphUser/count/index.ts | 2 +- .../item/owners/graphUser/index.ts | 6 +- src/servicePrincipals/item/owners/index.ts | 18 +- .../item/graphAppRoleAssignment/index.ts | 4 +- .../item/owners/item/graphEndpoint/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- .../item/owners/item/graphUser/index.ts | 4 +- .../item/owners/item/index.ts | 10 +- .../item/owners/item/ref/index.ts | 2 +- .../item/owners/ref/index.ts | 4 +- .../index.ts | 4 +- .../targetDeviceGroups/count/index.ts | 2 +- .../targetDeviceGroups/index.ts | 8 +- .../targetDeviceGroups/item/index.ts | 2 +- src/servicePrincipals/item/removeKey/index.ts | 35 +- .../removeKey/removeKeyPostRequestBody.ts | 37 - .../item/removePassword/index.ts | 29 +- .../removePasswordPostRequestBody.ts | 31 - src/servicePrincipals/item/restore/index.ts | 4 +- .../acquireAccessTokenPostRequestBody.ts | 31 - .../acquireAccessToken/index.ts | 29 +- .../item/synchronization/index.ts | 10 +- .../item/synchronization/jobs/count/index.ts | 2 +- .../item/synchronization/jobs/index.ts | 10 +- .../item/synchronization/jobs/item/index.ts | 14 +- .../synchronization/jobs/item/pause/index.ts | 2 +- .../jobs/item/provisionOnDemand/index.ts | 58 +- .../jobs/item/restart/index.ts | 29 +- .../item/restart/restartPostRequestBody.ts | 31 - .../item/schema/directories/count/index.ts | 2 +- .../jobs/item/schema/directories/index.ts | 8 +- .../schema/directories/item/discover/index.ts | 4 +- .../item/schema/directories/item/index.ts | 4 +- .../jobs/item/schema/filterOperators/index.ts | 91 +-- .../schema/functions/functionsGetResponse.ts | 29 - .../jobs/item/schema/functions/index.ts | 28 +- .../synchronization/jobs/item/schema/index.ts | 10 +- .../jobs/item/schema/parseExpression/index.ts | 42 +- .../parseExpressionPostRequestBody.ts | 44 -- .../synchronization/jobs/item/start/index.ts | 2 +- .../jobs/item/validateCredentials/index.ts | 47 +- .../validateCredentialsPostRequestBody.ts | 49 -- .../jobs/validateCredentials/index.ts | 47 +- .../validateCredentialsPostRequestBody.ts | 49 -- .../synchronization/secrets/count/index.ts | 2 +- .../item/synchronization/secrets/index.ts | 4 +- .../synchronization/templates/count/index.ts | 2 +- .../item/synchronization/templates/index.ts | 8 +- .../synchronization/templates/item/index.ts | 4 +- .../item/schema/directories/count/index.ts | 2 +- .../item/schema/directories/index.ts | 8 +- .../schema/directories/item/discover/index.ts | 4 +- .../item/schema/directories/item/index.ts | 4 +- .../item/schema/filterOperators/index.ts | 91 +-- .../schema/functions/functionsGetResponse.ts | 29 - .../templates/item/schema/functions/index.ts | 28 +- .../templates/item/schema/index.ts | 10 +- .../item/schema/parseExpression/index.ts | 42 +- .../parseExpressionPostRequestBody.ts | 44 -- .../item/tokenIssuancePolicies/count/index.ts | 2 +- .../item/tokenIssuancePolicies/index.ts | 8 +- .../item/tokenIssuancePolicies/item/index.ts | 4 +- .../item/tokenLifetimePolicies/count/index.ts | 2 +- .../item/tokenLifetimePolicies/index.ts | 8 +- .../item/tokenLifetimePolicies/item/index.ts | 4 +- .../item/transitiveMemberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../graphAdministrativeUnit/index.ts | 6 +- .../graphDirectoryRole/count/index.ts | 2 +- .../graphDirectoryRole/index.ts | 6 +- .../graphGroup/count/index.ts | 2 +- .../transitiveMemberOf/graphGroup/index.ts | 6 +- .../item/transitiveMemberOf/index.ts | 14 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/graphDirectoryRole/index.ts | 4 +- .../item/graphGroup/index.ts | 4 +- .../item/transitiveMemberOf/item/index.ts | 10 +- .../validateProperties/index.ts | 56 +- src/servicePrincipalsWithAppId/index.ts | 2 +- src/shares/count/index.ts | 2 +- src/shares/index.ts | 8 +- src/shares/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/shares/item/driveItem/content/index.ts | 4 +- src/shares/item/driveItem/index.ts | 6 +- src/shares/item/index.ts | 20 +- src/shares/item/items/count/index.ts | 2 +- src/shares/item/items/index.ts | 8 +- src/shares/item/items/item/content/index.ts | 4 +- src/shares/item/items/item/index.ts | 6 +- src/shares/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/shares/item/list/columns/count/index.ts | 2 +- src/shares/item/list/columns/index.ts | 8 +- src/shares/item/list/columns/item/index.ts | 4 +- .../list/columns/item/sourceColumn/index.ts | 4 +- .../addCopy/addCopyPostRequestBody.ts | 30 - .../item/list/contentTypes/addCopy/index.ts | 28 +- .../addCopyFromContentTypeHub/index.ts | 58 +- .../item/list/contentTypes/count/index.ts | 2 +- ...getCompatibleHubContentTypesGetResponse.ts | 29 - .../getCompatibleHubContentTypes/index.ts | 28 +- src/shares/item/list/contentTypes/index.ts | 14 +- .../item/associateWithHubSites/index.ts | 56 +- .../item/list/contentTypes/item/base/index.ts | 4 +- .../item/baseTypes/count/index.ts | 2 +- .../list/contentTypes/item/baseTypes/index.ts | 8 +- .../contentTypes/item/baseTypes/item/index.ts | 4 +- .../item/columnLinks/count/index.ts | 2 +- .../contentTypes/item/columnLinks/index.ts | 8 +- .../item/columnLinks/item/index.ts | 2 +- .../item/columnPositions/count/index.ts | 2 +- .../item/columnPositions/index.ts | 8 +- .../item/columnPositions/item/index.ts | 4 +- .../contentTypes/item/columns/count/index.ts | 2 +- .../list/contentTypes/item/columns/index.ts | 8 +- .../contentTypes/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../copyToDefaultContentLocation/index.ts | 56 +- .../item/list/contentTypes/item/index.ts | 22 +- .../contentTypes/item/isPublished/index.ts | 29 +- .../isPublished/isPublishedGetResponse.ts | 30 - .../list/contentTypes/item/publish/index.ts | 2 +- .../list/contentTypes/item/unpublish/index.ts | 2 +- src/shares/item/list/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/shares/item/list/drive/index.ts | 4 +- src/shares/item/list/index.ts | 18 +- src/shares/item/list/items/index.ts | 6 +- .../item/list/items/item/analytics/index.ts | 4 +- .../list/items/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/documentSetVersions/count/index.ts | 2 +- .../items/item/documentSetVersions/index.ts | 8 +- .../documentSetVersions/item/fields/index.ts | 2 +- .../item/documentSetVersions/item/index.ts | 6 +- .../documentSetVersions/item/restore/index.ts | 2 +- .../items/item/driveItem/content/index.ts | 4 +- .../item/list/items/item/driveItem/index.ts | 6 +- .../item/list/items/item/fields/index.ts | 2 +- .../getActivitiesByIntervalGetResponse.ts | 29 - .../item/getActivitiesByInterval/index.ts | 28 +- .../index.ts | 97 +-- src/shares/item/list/items/item/index.ts | 20 +- .../items/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../list/items/item/versions/count/index.ts | 2 +- .../item/list/items/item/versions/index.ts | 8 +- .../items/item/versions/item/fields/index.ts | 2 +- .../list/items/item/versions/item/index.ts | 6 +- .../versions/item/restoreVersion/index.ts | 2 +- .../item/list/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/list/operations/count/index.ts | 2 +- src/shares/item/list/operations/index.ts | 8 +- src/shares/item/list/operations/item/index.ts | 2 +- .../item/list/subscriptions/count/index.ts | 2 +- src/shares/item/list/subscriptions/index.ts | 8 +- .../item/list/subscriptions/item/index.ts | 4 +- .../subscriptions/item/reauthorize/index.ts | 2 +- src/shares/item/listItem/index.ts | 4 +- src/shares/item/permission/grant/index.ts | 87 +-- src/shares/item/permission/index.ts | 4 +- src/shares/item/root/content/index.ts | 4 +- src/shares/item/root/index.ts | 6 +- src/shares/item/site/index.ts | 4 +- src/sites/add/index.ts | 80 +- src/sites/count/index.ts | 2 +- src/sites/delta/index.ts | 91 +-- src/sites/getAllSites/index.ts | 91 +-- src/sites/index.ts | 22 +- src/sites/item/analytics/allTime/index.ts | 4 +- src/sites/item/analytics/index.ts | 8 +- .../itemActivityStats/count/index.ts | 2 +- .../item/analytics/itemActivityStats/index.ts | 8 +- .../item/activities/count/index.ts | 2 +- .../item/activities/index.ts | 8 +- .../item/driveItem/content/index.ts | 4 +- .../item/activities/item/driveItem/index.ts | 6 +- .../item/activities/item/index.ts | 4 +- .../analytics/itemActivityStats/item/index.ts | 4 +- .../item/analytics/lastSevenDays/index.ts | 4 +- src/sites/item/columns/count/index.ts | 2 +- src/sites/item/columns/index.ts | 8 +- src/sites/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../addCopy/addCopyPostRequestBody.ts | 30 - src/sites/item/contentTypes/addCopy/index.ts | 28 +- .../addCopyFromContentTypeHub/index.ts | 58 +- src/sites/item/contentTypes/count/index.ts | 2 +- ...getCompatibleHubContentTypesGetResponse.ts | 29 - .../getCompatibleHubContentTypes/index.ts | 28 +- src/sites/item/contentTypes/index.ts | 14 +- .../item/associateWithHubSites/index.ts | 56 +- .../item/contentTypes/item/base/index.ts | 4 +- .../item/baseTypes/count/index.ts | 2 +- .../item/contentTypes/item/baseTypes/index.ts | 8 +- .../contentTypes/item/baseTypes/item/index.ts | 4 +- .../item/columnLinks/count/index.ts | 2 +- .../contentTypes/item/columnLinks/index.ts | 8 +- .../item/columnLinks/item/index.ts | 2 +- .../item/columnPositions/count/index.ts | 2 +- .../item/columnPositions/index.ts | 8 +- .../item/columnPositions/item/index.ts | 4 +- .../contentTypes/item/columns/count/index.ts | 2 +- .../item/contentTypes/item/columns/index.ts | 8 +- .../contentTypes/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../copyToDefaultContentLocation/index.ts | 56 +- src/sites/item/contentTypes/item/index.ts | 22 +- .../contentTypes/item/isPublished/index.ts | 29 +- .../isPublished/isPublishedGetResponse.ts | 30 - .../item/contentTypes/item/publish/index.ts | 2 +- .../item/contentTypes/item/unpublish/index.ts | 2 +- src/sites/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/sites/item/drive/index.ts | 4 +- src/sites/item/drives/count/index.ts | 2 +- src/sites/item/drives/index.ts | 8 +- src/sites/item/drives/item/index.ts | 4 +- src/sites/item/externalColumns/count/index.ts | 2 +- src/sites/item/externalColumns/index.ts | 8 +- src/sites/item/externalColumns/item/index.ts | 4 +- .../getActivitiesByIntervalGetResponse.ts | 29 - .../item/getActivitiesByInterval/index.ts | 28 +- .../index.ts | 97 +-- ...ontentTypesForListWithListIdGetResponse.ts | 29 - .../index.ts | 28 +- src/sites/item/getByPathWithPath/index.ts | 4 +- src/sites/item/index.ts | 42 +- src/sites/item/items/count/index.ts | 2 +- src/sites/item/items/index.ts | 8 +- src/sites/item/items/item/index.ts | 4 +- src/sites/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/sites/item/lists/count/index.ts | 2 +- src/sites/item/lists/index.ts | 8 +- .../item/lists/item/columns/count/index.ts | 2 +- src/sites/item/lists/item/columns/index.ts | 8 +- .../item/lists/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../addCopy/addCopyPostRequestBody.ts | 30 - .../lists/item/contentTypes/addCopy/index.ts | 28 +- .../addCopyFromContentTypeHub/index.ts | 58 +- .../lists/item/contentTypes/count/index.ts | 2 +- ...getCompatibleHubContentTypesGetResponse.ts | 29 - .../getCompatibleHubContentTypes/index.ts | 28 +- .../item/lists/item/contentTypes/index.ts | 14 +- .../item/associateWithHubSites/index.ts | 56 +- .../item/contentTypes/item/base/index.ts | 4 +- .../item/baseTypes/count/index.ts | 2 +- .../item/contentTypes/item/baseTypes/index.ts | 8 +- .../contentTypes/item/baseTypes/item/index.ts | 4 +- .../item/columnLinks/count/index.ts | 2 +- .../contentTypes/item/columnLinks/index.ts | 8 +- .../item/columnLinks/item/index.ts | 2 +- .../item/columnPositions/count/index.ts | 2 +- .../item/columnPositions/index.ts | 8 +- .../item/columnPositions/item/index.ts | 4 +- .../contentTypes/item/columns/count/index.ts | 2 +- .../item/contentTypes/item/columns/index.ts | 8 +- .../contentTypes/item/columns/item/index.ts | 4 +- .../item/columns/item/sourceColumn/index.ts | 4 +- .../copyToDefaultContentLocation/index.ts | 56 +- .../lists/item/contentTypes/item/index.ts | 22 +- .../contentTypes/item/isPublished/index.ts | 29 +- .../isPublished/isPublishedGetResponse.ts | 30 - .../item/contentTypes/item/publish/index.ts | 2 +- .../item/contentTypes/item/unpublish/index.ts | 2 +- .../item/lists/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- src/sites/item/lists/item/drive/index.ts | 4 +- src/sites/item/lists/item/index.ts | 24 +- src/sites/item/lists/item/items/index.ts | 6 +- .../lists/item/items/item/analytics/index.ts | 4 +- .../item/items/item/createdByUser/index.ts | 8 +- .../createdByUser/mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/documentSetVersions/count/index.ts | 2 +- .../items/item/documentSetVersions/index.ts | 8 +- .../documentSetVersions/item/fields/index.ts | 2 +- .../item/documentSetVersions/item/index.ts | 6 +- .../documentSetVersions/item/restore/index.ts | 2 +- .../items/item/driveItem/content/index.ts | 4 +- .../lists/item/items/item/driveItem/index.ts | 6 +- .../lists/item/items/item/fields/index.ts | 2 +- .../getActivitiesByIntervalGetResponse.ts | 29 - .../item/getActivitiesByInterval/index.ts | 28 +- .../index.ts | 97 +-- src/sites/item/lists/item/items/item/index.ts | 20 +- .../items/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/items/item/versions/count/index.ts | 2 +- .../lists/item/items/item/versions/index.ts | 8 +- .../items/item/versions/item/fields/index.ts | 2 +- .../item/items/item/versions/item/index.ts | 6 +- .../versions/item/restoreVersion/index.ts | 2 +- .../lists/item/lastModifiedByUser/index.ts | 8 +- .../mailboxSettings/index.ts | 2 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../serviceProvisioningErrors/index.ts | 6 +- .../item/lists/item/operations/count/index.ts | 2 +- src/sites/item/lists/item/operations/index.ts | 8 +- .../item/lists/item/operations/item/index.ts | 2 +- .../lists/item/subscriptions/count/index.ts | 2 +- .../item/lists/item/subscriptions/index.ts | 8 +- .../lists/item/subscriptions/item/index.ts | 4 +- .../subscriptions/item/reauthorize/index.ts | 2 +- src/sites/item/onenote/index.ts | 14 +- .../item/onenote/notebooks/count/index.ts | 2 +- .../getNotebookFromWebUrlPostRequestBody.ts | 30 - .../notebooks/getNotebookFromWebUrl/index.ts | 28 +- ...WithIncludePersonalNotebooksGetResponse.ts | 29 - .../index.ts | 28 +- src/sites/item/onenote/notebooks/index.ts | 12 +- .../notebooks/item/copyNotebook/index.ts | 58 +- .../item/onenote/notebooks/item/index.ts | 8 +- .../item/sectionGroups/count/index.ts | 2 +- .../notebooks/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 10 +- .../item/parentNotebook/index.ts | 4 +- .../item/parentSectionGroup/index.ts | 4 +- .../item/sectionGroups/count/index.ts | 2 +- .../sectionGroups/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 4 +- .../item/sections/count/index.ts | 2 +- .../item/sectionGroups/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sectionGroups/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../notebooks/item/sections/count/index.ts | 2 +- .../onenote/notebooks/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../notebooks/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/onenote/operations/count/index.ts | 2 +- src/sites/item/onenote/operations/index.ts | 8 +- .../item/onenote/operations/item/index.ts | 2 +- src/sites/item/onenote/pages/count/index.ts | 2 +- src/sites/item/onenote/pages/index.ts | 8 +- .../item/onenote/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../onenote/pages/item/copyToSection/index.ts | 46 +- src/sites/item/onenote/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../pages/item/parentNotebook/index.ts | 4 +- .../onenote/pages/item/parentSection/index.ts | 4 +- .../item/onenote/pages/item/preview/index.ts | 4 +- .../item/onenote/resources/count/index.ts | 2 +- src/sites/item/onenote/resources/index.ts | 8 +- .../onenote/resources/item/content/index.ts | 4 +- .../item/onenote/resources/item/index.ts | 4 +- .../item/onenote/sectionGroups/count/index.ts | 2 +- src/sites/item/onenote/sectionGroups/index.ts | 8 +- .../item/onenote/sectionGroups/item/index.ts | 10 +- .../item/parentNotebook/index.ts | 4 +- .../item/parentSectionGroup/index.ts | 4 +- .../item/sectionGroups/count/index.ts | 2 +- .../sectionGroups/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 4 +- .../item/sections/count/index.ts | 2 +- .../sectionGroups/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sectionGroups/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/onenote/sections/count/index.ts | 2 +- src/sites/item/onenote/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- src/sites/item/onenote/sections/item/index.ts | 12 +- .../sections/item/pages/count/index.ts | 2 +- .../item/onenote/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../onenote/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- src/sites/item/operations/count/index.ts | 2 +- src/sites/item/operations/index.ts | 8 +- src/sites/item/operations/item/index.ts | 2 +- src/sites/item/permissions/count/index.ts | 2 +- src/sites/item/permissions/index.ts | 8 +- .../item/permissions/item/grant/index.ts | 87 +-- src/sites/item/permissions/item/index.ts | 4 +- src/sites/item/sites/count/index.ts | 2 +- src/sites/item/sites/index.ts | 8 +- src/sites/item/sites/item/index.ts | 4 +- .../item/termStore/groups/count/index.ts | 2 +- src/sites/item/termStore/groups/index.ts | 8 +- src/sites/item/termStore/groups/item/index.ts | 4 +- .../termStore/groups/item/sets/count/index.ts | 2 +- .../item/termStore/groups/item/sets/index.ts | 8 +- .../item/sets/item/children/count/index.ts | 2 +- .../groups/item/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../item/sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/children/item/set/index.ts | 4 +- .../termStore/groups/item/sets/item/index.ts | 10 +- .../item/sets/item/parentGroup/index.ts | 2 +- .../item/sets/item/relations/count/index.ts | 2 +- .../groups/item/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/count/index.ts | 2 +- .../groups/item/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../groups/item/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/item/set/index.ts | 4 +- src/sites/item/termStore/index.ts | 6 +- src/sites/item/termStore/sets/count/index.ts | 2 +- src/sites/item/termStore/sets/index.ts | 8 +- .../sets/item/children/count/index.ts | 2 +- .../termStore/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../sets/item/children/item/set/index.ts | 4 +- src/sites/item/termStore/sets/item/index.ts | 10 +- .../termStore/sets/item/parentGroup/index.ts | 4 +- .../sets/item/parentGroup/sets/count/index.ts | 2 +- .../sets/item/parentGroup/sets/index.ts | 8 +- .../sets/item/children/count/index.ts | 2 +- .../parentGroup/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../sets/item/children/item/set/index.ts | 4 +- .../sets/item/parentGroup/sets/item/index.ts | 8 +- .../sets/item/relations/count/index.ts | 2 +- .../parentGroup/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/count/index.ts | 2 +- .../item/parentGroup/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../parentGroup/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/item/set/index.ts | 4 +- .../sets/item/relations/count/index.ts | 2 +- .../termStore/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../termStore/sets/item/terms/count/index.ts | 2 +- .../item/termStore/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../termStore/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/item/set/index.ts | 4 +- src/sites/item/termStores/count/index.ts | 2 +- src/sites/item/termStores/index.ts | 8 +- .../termStores/item/groups/count/index.ts | 2 +- .../item/termStores/item/groups/index.ts | 8 +- .../item/termStores/item/groups/item/index.ts | 4 +- .../item/groups/item/sets/count/index.ts | 2 +- .../termStores/item/groups/item/sets/index.ts | 8 +- .../item/sets/item/children/count/index.ts | 2 +- .../groups/item/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../item/sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/children/item/set/index.ts | 4 +- .../item/groups/item/sets/item/index.ts | 10 +- .../item/sets/item/parentGroup/index.ts | 2 +- .../item/sets/item/relations/count/index.ts | 2 +- .../groups/item/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/count/index.ts | 2 +- .../item/groups/item/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../groups/item/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/item/set/index.ts | 4 +- src/sites/item/termStores/item/index.ts | 6 +- .../item/termStores/item/sets/count/index.ts | 2 +- src/sites/item/termStores/item/sets/index.ts | 8 +- .../item/sets/item/children/count/index.ts | 2 +- .../item/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../item/sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/children/item/set/index.ts | 4 +- .../item/termStores/item/sets/item/index.ts | 10 +- .../item/sets/item/parentGroup/index.ts | 4 +- .../sets/item/parentGroup/sets/count/index.ts | 2 +- .../item/sets/item/parentGroup/sets/index.ts | 8 +- .../sets/item/children/count/index.ts | 2 +- .../parentGroup/sets/item/children/index.ts | 8 +- .../children/item/children/count/index.ts | 2 +- .../sets/item/children/item/children/index.ts | 8 +- .../item/children/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../children/item/children/item/set/index.ts | 4 +- .../sets/item/children/item/index.ts | 8 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../sets/item/children/item/set/index.ts | 4 +- .../sets/item/parentGroup/sets/item/index.ts | 8 +- .../sets/item/relations/count/index.ts | 2 +- .../parentGroup/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/count/index.ts | 2 +- .../item/parentGroup/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../parentGroup/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../sets/item/terms/item/set/index.ts | 4 +- .../item/sets/item/relations/count/index.ts | 2 +- .../item/sets/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/sets/item/relations/item/index.ts | 8 +- .../sets/item/relations/item/set/index.ts | 4 +- .../sets/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/count/index.ts | 2 +- .../termStores/item/sets/item/terms/index.ts | 8 +- .../item/terms/item/children/count/index.ts | 2 +- .../sets/item/terms/item/children/index.ts | 8 +- .../item/terms/item/children/item/index.ts | 6 +- .../children/item/relations/count/index.ts | 2 +- .../item/children/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../children/item/relations/item/index.ts | 8 +- .../children/item/relations/item/set/index.ts | 4 +- .../item/relations/item/toTerm/index.ts | 4 +- .../terms/item/children/item/set/index.ts | 4 +- .../item/sets/item/terms/item/index.ts | 8 +- .../item/terms/item/relations/count/index.ts | 2 +- .../sets/item/terms/item/relations/index.ts | 8 +- .../item/relations/item/fromTerm/index.ts | 4 +- .../item/terms/item/relations/item/index.ts | 8 +- .../terms/item/relations/item/set/index.ts | 4 +- .../terms/item/relations/item/toTerm/index.ts | 4 +- .../item/sets/item/terms/item/set/index.ts | 4 +- src/sites/remove/index.ts | 50 +- src/sites/remove/removePostRequestBody.ts | 31 - src/sites/remove/removePostResponse.ts | 29 - .../bookingBusinesses/count/index.ts | 2 +- src/solutions/bookingBusinesses/index.ts | 8 +- .../item/appointments/count/index.ts | 2 +- .../item/appointments/index.ts | 8 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/appointments/item/cancel/index.ts | 28 +- .../item/appointments/item/index.ts | 4 +- .../item/calendarView/count/index.ts | 2 +- .../item/calendarView/index.ts | 8 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/calendarView/item/cancel/index.ts | 28 +- .../item/calendarView/item/index.ts | 4 +- .../item/customQuestions/count/index.ts | 2 +- .../item/customQuestions/index.ts | 8 +- .../item/customQuestions/item/index.ts | 2 +- .../item/customers/count/index.ts | 2 +- .../bookingBusinesses/item/customers/index.ts | 8 +- .../item/customers/item/index.ts | 2 +- .../getStaffAvailabilityPostRequestBody.ts | 43 - .../getStaffAvailabilityPostResponse.ts | 29 - .../item/getStaffAvailability/index.ts | 93 ++- src/solutions/bookingBusinesses/item/index.ts | 20 +- .../bookingBusinesses/item/publish/index.ts | 2 +- .../item/services/count/index.ts | 2 +- .../bookingBusinesses/item/services/index.ts | 8 +- .../item/services/item/index.ts | 2 +- .../item/staffMembers/count/index.ts | 2 +- .../item/staffMembers/index.ts | 8 +- .../item/staffMembers/item/index.ts | 2 +- .../bookingBusinesses/item/unpublish/index.ts | 2 +- .../bookingCurrencies/count/index.ts | 2 +- src/solutions/bookingCurrencies/index.ts | 8 +- src/solutions/bookingCurrencies/item/index.ts | 2 +- src/solutions/index.ts | 8 +- .../virtualEvents/events/count/index.ts | 2 +- src/solutions/virtualEvents/events/index.ts | 8 +- .../virtualEvents/events/item/index.ts | 4 +- .../events/item/sessions/count/index.ts | 2 +- .../events/item/sessions/index.ts | 8 +- .../item/attendanceReports/count/index.ts | 2 +- .../sessions/item/attendanceReports/index.ts | 8 +- .../item/attendanceRecords/count/index.ts | 2 +- .../item/attendanceRecords/index.ts | 8 +- .../item/attendanceRecords/item/index.ts | 2 +- .../item/attendanceReports/item/index.ts | 4 +- .../events/item/sessions/item/index.ts | 4 +- src/solutions/virtualEvents/index.ts | 6 +- .../virtualEvents/webinars/count/index.ts | 2 +- ...rIdAndRoleWithUserIdWithRoleGetResponse.ts | 29 - .../index.ts | 28 +- .../webinars/getByUserRoleWithRole/index.ts | 93 +-- src/solutions/virtualEvents/webinars/index.ts | 12 +- .../virtualEvents/webinars/item/index.ts | 6 +- .../item/registrations/count/index.ts | 2 +- .../webinars/item/registrations/index.ts | 8 +- .../webinars/item/registrations/item/index.ts | 2 +- .../webinars/item/sessions/count/index.ts | 2 +- .../webinars/item/sessions/index.ts | 8 +- .../item/attendanceReports/count/index.ts | 2 +- .../sessions/item/attendanceReports/index.ts | 8 +- .../item/attendanceRecords/count/index.ts | 2 +- .../item/attendanceRecords/index.ts | 8 +- .../item/attendanceRecords/item/index.ts | 2 +- .../item/attendanceReports/item/index.ts | 4 +- .../webinars/item/sessions/item/index.ts | 4 +- src/subscribedSkus/index.ts | 6 +- src/subscribedSkus/item/index.ts | 2 +- src/subscriptions/index.ts | 6 +- src/subscriptions/item/index.ts | 4 +- src/subscriptions/item/reauthorize/index.ts | 2 +- src/teams/count/index.ts | 2 +- src/teams/getAllMessages/index.ts | 95 +-- src/teams/index.ts | 10 +- src/teams/item/allChannels/count/index.ts | 2 +- src/teams/item/allChannels/index.ts | 8 +- src/teams/item/allChannels/item/index.ts | 4 +- src/teams/item/archive/index.ts | 56 +- src/teams/item/channels/count/index.ts | 2 +- .../item/channels/getAllMessages/index.ts | 95 +-- src/teams/item/channels/index.ts | 10 +- .../channels/item/completeMigration/index.ts | 2 +- ...incipalNameUserPrincipalNameGetResponse.ts | 30 - .../index.ts | 29 +- .../item/filesFolder/content/index.ts | 4 +- .../item/channels/item/filesFolder/index.ts | 6 +- src/teams/item/channels/item/index.ts | 20 +- .../item/channels/item/members/add/index.ts | 81 +- .../item/channels/item/members/count/index.ts | 2 +- src/teams/item/channels/item/members/index.ts | 16 +- .../item/channels/item/members/item/index.ts | 14 +- .../channels/item/messages/count/index.ts | 2 +- .../channels/item/messages/delta/index.ts | 91 +-- .../item/channels/item/messages/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/channels/item/messages/item/index.ts | 14 +- .../item/messages/item/replies/count/index.ts | 2 +- .../item/messages/item/replies/delta/index.ts | 91 +-- .../item/messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../item/messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../item/messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../channels/item/provisionEmail/index.ts | 4 +- .../item/channels/item/removeEmail/index.ts | 2 +- .../item/sharedWithTeams/count/index.ts | 2 +- .../channels/item/sharedWithTeams/index.ts | 8 +- .../item/allowedMembers/count/index.ts | 2 +- .../item/allowedMembers/index.ts | 8 +- .../item/allowedMembers/item/index.ts | 4 +- .../item/sharedWithTeams/item/index.ts | 6 +- .../item/sharedWithTeams/item/team/index.ts | 4 +- .../item/channels/item/tabs/count/index.ts | 2 +- src/teams/item/channels/item/tabs/index.ts | 12 +- .../item/channels/item/tabs/item/index.ts | 4 +- .../channels/item/tabs/item/teamsApp/index.ts | 4 +- src/teams/item/clone/clonePostRequestBody.ts | 62 -- src/teams/item/clone/index.ts | 60 +- src/teams/item/completeMigration/index.ts | 2 +- src/teams/item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../item/incomingChannels/count/index.ts | 2 +- src/teams/item/incomingChannels/index.ts | 8 +- src/teams/item/incomingChannels/item/index.ts | 4 +- src/teams/item/index.ts | 38 +- src/teams/item/installedApps/count/index.ts | 2 +- src/teams/item/installedApps/index.ts | 8 +- src/teams/item/installedApps/item/index.ts | 8 +- .../item/installedApps/item/teamsApp/index.ts | 4 +- .../item/teamsAppDefinition/index.ts | 4 +- .../item/installedApps/item/upgrade/index.ts | 29 +- .../item/upgrade/upgradePostRequestBody.ts | 31 - src/teams/item/members/add/index.ts | 81 +- src/teams/item/members/count/index.ts | 2 +- src/teams/item/members/index.ts | 10 +- src/teams/item/members/item/index.ts | 2 +- src/teams/item/operations/count/index.ts | 2 +- src/teams/item/operations/index.ts | 8 +- src/teams/item/operations/item/index.ts | 2 +- .../item/permissionGrants/count/index.ts | 2 +- src/teams/item/permissionGrants/index.ts | 8 +- src/teams/item/permissionGrants/item/index.ts | 2 +- src/teams/item/photo/index.ts | 4 +- src/teams/item/photo/value/index.ts | 2 +- .../primaryChannel/completeMigration/index.ts | 2 +- ...incipalNameUserPrincipalNameGetResponse.ts | 30 - .../index.ts | 29 +- .../filesFolder/content/index.ts | 4 +- .../item/primaryChannel/filesFolder/index.ts | 6 +- src/teams/item/primaryChannel/index.ts | 20 +- .../item/primaryChannel/members/add/index.ts | 81 +- .../primaryChannel/members/count/index.ts | 2 +- .../item/primaryChannel/members/index.ts | 16 +- .../item/primaryChannel/members/item/index.ts | 14 +- .../primaryChannel/messages/count/index.ts | 2 +- .../primaryChannel/messages/delta/index.ts | 91 +-- .../item/primaryChannel/messages/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../primaryChannel/messages/item/index.ts | 14 +- .../messages/item/replies/count/index.ts | 2 +- .../messages/item/replies/delta/index.ts | 91 +-- .../messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../primaryChannel/provisionEmail/index.ts | 4 +- .../item/primaryChannel/removeEmail/index.ts | 2 +- .../sharedWithTeams/count/index.ts | 2 +- .../primaryChannel/sharedWithTeams/index.ts | 8 +- .../item/allowedMembers/count/index.ts | 2 +- .../item/allowedMembers/index.ts | 8 +- .../item/allowedMembers/item/index.ts | 4 +- .../sharedWithTeams/item/index.ts | 6 +- .../sharedWithTeams/item/team/index.ts | 4 +- .../item/primaryChannel/tabs/count/index.ts | 2 +- src/teams/item/primaryChannel/tabs/index.ts | 12 +- .../item/primaryChannel/tabs/item/index.ts | 4 +- .../tabs/item/teamsApp/index.ts | 4 +- src/teams/item/schedule/index.ts | 22 +- .../offerShiftRequests/count/index.ts | 2 +- .../item/schedule/offerShiftRequests/index.ts | 8 +- .../schedule/offerShiftRequests/item/index.ts | 2 +- .../openShiftChangeRequests/count/index.ts | 2 +- .../schedule/openShiftChangeRequests/index.ts | 8 +- .../openShiftChangeRequests/item/index.ts | 2 +- .../item/schedule/openShifts/count/index.ts | 2 +- src/teams/item/schedule/openShifts/index.ts | 8 +- .../item/schedule/openShifts/item/index.ts | 2 +- .../schedule/schedulingGroups/count/index.ts | 2 +- .../item/schedule/schedulingGroups/index.ts | 8 +- .../schedule/schedulingGroups/item/index.ts | 2 +- src/teams/item/schedule/share/index.ts | 40 +- .../schedule/share/sharePostRequestBody.ts | 42 - src/teams/item/schedule/shifts/count/index.ts | 2 +- src/teams/item/schedule/shifts/index.ts | 8 +- src/teams/item/schedule/shifts/item/index.ts | 2 +- .../swapShiftsChangeRequests/count/index.ts | 2 +- .../swapShiftsChangeRequests/index.ts | 8 +- .../swapShiftsChangeRequests/item/index.ts | 2 +- .../schedule/timeOffReasons/count/index.ts | 2 +- .../item/schedule/timeOffReasons/index.ts | 8 +- .../schedule/timeOffReasons/item/index.ts | 2 +- .../schedule/timeOffRequests/count/index.ts | 2 +- .../item/schedule/timeOffRequests/index.ts | 8 +- .../schedule/timeOffRequests/item/index.ts | 2 +- .../item/schedule/timesOff/count/index.ts | 2 +- src/teams/item/schedule/timesOff/index.ts | 8 +- .../item/schedule/timesOff/item/index.ts | 2 +- .../item/sendActivityNotification/index.ts | 62 +- ...sendActivityNotificationPostRequestBody.ts | 64 -- src/teams/item/tags/count/index.ts | 2 +- src/teams/item/tags/index.ts | 8 +- src/teams/item/tags/item/index.ts | 4 +- .../item/tags/item/members/count/index.ts | 2 +- src/teams/item/tags/item/members/index.ts | 8 +- .../item/tags/item/members/item/index.ts | 2 +- src/teams/item/template/index.ts | 4 +- src/teams/item/unarchive/index.ts | 2 +- src/teamsTemplates/count/index.ts | 2 +- src/teamsTemplates/index.ts | 8 +- src/teamsTemplates/item/index.ts | 2 +- src/teamwork/deletedTeams/count/index.ts | 2 +- .../deletedTeams/getAllMessages/index.ts | 95 +-- src/teamwork/deletedTeams/index.ts | 10 +- .../deletedTeams/item/channels/count/index.ts | 2 +- .../item/channels/getAllMessages/index.ts | 95 +-- .../deletedTeams/item/channels/index.ts | 10 +- .../channels/item/completeMigration/index.ts | 2 +- ...incipalNameUserPrincipalNameGetResponse.ts | 30 - .../index.ts | 29 +- .../item/filesFolder/content/index.ts | 4 +- .../item/channels/item/filesFolder/index.ts | 6 +- .../deletedTeams/item/channels/item/index.ts | 20 +- .../item/channels/item/members/add/index.ts | 81 +- .../item/channels/item/members/count/index.ts | 2 +- .../item/channels/item/members/index.ts | 16 +- .../item/channels/item/members/item/index.ts | 14 +- .../channels/item/messages/count/index.ts | 2 +- .../channels/item/messages/delta/index.ts | 91 +-- .../item/channels/item/messages/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/channels/item/messages/item/index.ts | 14 +- .../item/messages/item/replies/count/index.ts | 2 +- .../item/messages/item/replies/delta/index.ts | 91 +-- .../item/messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../item/messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../item/messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../channels/item/provisionEmail/index.ts | 4 +- .../item/channels/item/removeEmail/index.ts | 2 +- .../item/sharedWithTeams/count/index.ts | 2 +- .../channels/item/sharedWithTeams/index.ts | 8 +- .../item/allowedMembers/count/index.ts | 2 +- .../item/allowedMembers/index.ts | 8 +- .../item/allowedMembers/item/index.ts | 4 +- .../item/sharedWithTeams/item/index.ts | 6 +- .../item/sharedWithTeams/item/team/index.ts | 4 +- .../item/channels/item/tabs/count/index.ts | 2 +- .../item/channels/item/tabs/index.ts | 12 +- .../item/channels/item/tabs/item/index.ts | 4 +- .../channels/item/tabs/item/teamsApp/index.ts | 4 +- src/teamwork/deletedTeams/item/index.ts | 4 +- src/teamwork/index.ts | 10 +- .../index.ts | 56 +- src/teamwork/teamsAppSettings/index.ts | 2 +- .../workforceIntegrations/count/index.ts | 2 +- src/teamwork/workforceIntegrations/index.ts | 8 +- .../workforceIntegrations/item/index.ts | 2 +- .../delegatedAdminCustomers/count/index.ts | 2 +- .../delegatedAdminCustomers/index.ts | 8 +- .../delegatedAdminCustomers/item/index.ts | 4 +- .../serviceManagementDetails/count/index.ts | 2 +- .../item/serviceManagementDetails/index.ts | 8 +- .../serviceManagementDetails/item/index.ts | 2 +- .../count/index.ts | 2 +- .../delegatedAdminRelationships/index.ts | 8 +- .../item/accessAssignments/count/index.ts | 2 +- .../item/accessAssignments/index.ts | 8 +- .../item/accessAssignments/item/index.ts | 2 +- .../delegatedAdminRelationships/item/index.ts | 8 +- .../item/operations/count/index.ts | 2 +- .../item/operations/index.ts | 8 +- .../item/operations/item/index.ts | 2 +- .../item/requests/count/index.ts | 2 +- .../item/requests/index.ts | 8 +- .../item/requests/item/index.ts | 2 +- .../index.ts | 4 +- .../index.ts | 4 +- src/tenantRelationships/index.ts | 10 +- src/users/count/index.ts | 2 +- src/users/delta/index.ts | 91 +-- .../getAvailableExtensionProperties/index.ts | 79 +- src/users/getByIds/getByIdsPostRequestBody.ts | 36 - src/users/getByIds/index.ts | 58 +- src/users/index.ts | 22 +- src/users/item/activities/count/index.ts | 2 +- src/users/item/activities/index.ts | 10 +- .../item/historyItems/count/index.ts | 2 +- .../activities/item/historyItems/index.ts | 8 +- .../item/historyItems/item/activity/index.ts | 4 +- .../item/historyItems/item/index.ts | 10 +- src/users/item/activities/item/index.ts | 4 +- src/users/item/activities/recent/index.ts | 92 +-- .../item/agreementAcceptances/count/index.ts | 2 +- src/users/item/agreementAcceptances/index.ts | 8 +- .../item/agreementAcceptances/item/index.ts | 4 +- .../item/appRoleAssignments/count/index.ts | 2 +- src/users/item/appRoleAssignments/index.ts | 8 +- .../item/appRoleAssignments/item/index.ts | 2 +- src/users/item/assignLicense/index.ts | 58 +- .../emailMethods/count/index.ts | 2 +- .../item/authentication/emailMethods/index.ts | 8 +- .../authentication/emailMethods/item/index.ts | 2 +- .../fido2Methods/count/index.ts | 2 +- .../item/authentication/fido2Methods/index.ts | 8 +- .../authentication/fido2Methods/item/index.ts | 4 +- src/users/item/authentication/index.ts | 22 +- .../authentication/methods/count/index.ts | 2 +- .../item/authentication/methods/index.ts | 8 +- .../item/authentication/methods/item/index.ts | 4 +- .../methods/item/resetPassword/index.ts | 28 +- .../resetPasswordPostRequestBody.ts | 30 - .../count/index.ts | 2 +- .../microsoftAuthenticatorMethods/index.ts | 8 +- .../item/device/index.ts | 4 +- .../item/index.ts | 6 +- .../authentication/operations/count/index.ts | 2 +- .../item/authentication/operations/index.ts | 8 +- .../authentication/operations/item/index.ts | 2 +- .../passwordMethods/count/index.ts | 2 +- .../authentication/passwordMethods/index.ts | 8 +- .../passwordMethods/item/index.ts | 4 +- .../phoneMethods/count/index.ts | 2 +- .../item/authentication/phoneMethods/index.ts | 8 +- .../item/disableSmsSignIn/index.ts | 2 +- .../item/enableSmsSignIn/index.ts | 2 +- .../authentication/phoneMethods/item/index.ts | 6 +- .../softwareOathMethods/count/index.ts | 2 +- .../softwareOathMethods/index.ts | 8 +- .../softwareOathMethods/item/index.ts | 4 +- .../temporaryAccessPassMethods/count/index.ts | 2 +- .../temporaryAccessPassMethods/index.ts | 8 +- .../temporaryAccessPassMethods/item/index.ts | 4 +- .../count/index.ts | 2 +- .../windowsHelloForBusinessMethods/index.ts | 8 +- .../item/device/index.ts | 4 +- .../item/index.ts | 6 +- .../index.ts | 83 +- .../calendarPermissions/count/index.ts | 2 +- .../calendar/calendarPermissions/index.ts | 8 +- .../calendarPermissions/item/index.ts | 2 +- .../item/calendar/calendarView/count/index.ts | 2 +- .../item/calendar/calendarView/delta/index.ts | 100 +-- src/users/item/calendar/calendarView/index.ts | 10 +- .../calendarView/item/accept/index.ts | 56 +- .../item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../calendarView/item/attachments/index.ts | 16 +- .../item/attachments/item/index.ts | 4 +- .../calendarView/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../calendarView/item/cancel/index.ts | 28 +- .../calendarView/item/decline/index.ts | 56 +- .../item/dismissReminder/index.ts | 2 +- .../item/extensions/count/index.ts | 2 +- .../calendarView/item/extensions/index.ts | 8 +- .../item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../calendarView/item/forward/index.ts | 35 +- .../item/calendar/calendarView/item/index.ts | 26 +- .../item/instances/count/index.ts | 2 +- .../item/instances/delta/index.ts | 100 +-- .../calendarView/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../calendarView/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../calendarView/item/snoozeReminder/index.ts | 56 +- .../item/tentativelyAccept/index.ts | 56 +- src/users/item/calendar/events/count/index.ts | 2 +- src/users/item/calendar/events/delta/index.ts | 100 +-- src/users/item/calendar/events/index.ts | 10 +- .../item/calendar/events/item/accept/index.ts | 56 +- .../events/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../calendar/events/item/attachments/index.ts | 16 +- .../events/item/attachments/item/index.ts | 4 +- .../calendar/events/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/calendar/events/item/cancel/index.ts | 28 +- .../calendar/events/item/decline/index.ts | 56 +- .../events/item/dismissReminder/index.ts | 2 +- .../events/item/extensions/count/index.ts | 2 +- .../calendar/events/item/extensions/index.ts | 8 +- .../events/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../calendar/events/item/forward/index.ts | 35 +- src/users/item/calendar/events/item/index.ts | 24 +- .../events/item/instances/count/index.ts | 2 +- .../events/item/instances/delta/index.ts | 100 +-- .../calendar/events/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../events/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../events/item/snoozeReminder/index.ts | 56 +- .../events/item/tentativelyAccept/index.ts | 56 +- .../getSchedule/getSchedulePostResponse.ts | 29 - src/users/item/calendar/getSchedule/index.ts | 58 +- src/users/item/calendar/index.ts | 12 +- src/users/item/calendarGroups/count/index.ts | 2 +- src/users/item/calendarGroups/index.ts | 8 +- .../item/calendars/count/index.ts | 2 +- .../calendarGroups/item/calendars/index.ts | 8 +- .../index.ts | 83 +- .../item/calendarPermissions/count/index.ts | 2 +- .../item/calendarPermissions/index.ts | 8 +- .../item/calendarPermissions/item/index.ts | 2 +- .../item/calendarView/count/index.ts | 2 +- .../item/calendarView/delta/index.ts | 100 +-- .../item/calendars/item/calendarView/index.ts | 10 +- .../item/calendarView/item/accept/index.ts | 56 +- .../item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../calendarView/item/attachments/index.ts | 16 +- .../item/attachments/item/index.ts | 4 +- .../item/calendarView/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/calendarView/item/cancel/index.ts | 28 +- .../item/calendarView/item/decline/index.ts | 56 +- .../item/dismissReminder/index.ts | 2 +- .../item/extensions/count/index.ts | 2 +- .../calendarView/item/extensions/index.ts | 8 +- .../item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/calendarView/item/forward/index.ts | 35 +- .../calendars/item/calendarView/item/index.ts | 26 +- .../item/instances/count/index.ts | 2 +- .../item/instances/delta/index.ts | 100 +-- .../item/calendarView/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../calendarView/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../calendarView/item/snoozeReminder/index.ts | 56 +- .../item/tentativelyAccept/index.ts | 56 +- .../item/calendars/item/events/count/index.ts | 2 +- .../item/calendars/item/events/delta/index.ts | 100 +-- .../item/calendars/item/events/index.ts | 10 +- .../item/events/item/accept/index.ts | 56 +- .../events/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/events/item/attachments/index.ts | 16 +- .../events/item/attachments/item/index.ts | 4 +- .../item/events/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/events/item/cancel/index.ts | 28 +- .../item/events/item/decline/index.ts | 56 +- .../item/events/item/dismissReminder/index.ts | 2 +- .../events/item/extensions/count/index.ts | 2 +- .../item/events/item/extensions/index.ts | 8 +- .../item/events/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/events/item/forward/index.ts | 35 +- .../item/calendars/item/events/item/index.ts | 24 +- .../item/events/item/instances/count/index.ts | 2 +- .../item/events/item/instances/delta/index.ts | 100 +-- .../item/events/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../item/events/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../item/events/item/snoozeReminder/index.ts | 56 +- .../events/item/tentativelyAccept/index.ts | 56 +- .../getSchedule/getSchedulePostResponse.ts | 29 - .../item/calendars/item/getSchedule/index.ts | 58 +- .../item/calendars/item/index.ts | 12 +- src/users/item/calendarGroups/item/index.ts | 4 +- src/users/item/calendarView/count/index.ts | 2 +- src/users/item/calendarView/delta/index.ts | 100 +-- src/users/item/calendarView/index.ts | 10 +- .../item/calendarView/item/accept/index.ts | 56 +- .../item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../calendarView/item/attachments/index.ts | 16 +- .../item/attachments/item/index.ts | 4 +- .../item/calendarView/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/calendarView/item/cancel/index.ts | 28 +- .../item/calendarView/item/decline/index.ts | 56 +- .../item/dismissReminder/index.ts | 2 +- .../item/extensions/count/index.ts | 2 +- .../calendarView/item/extensions/index.ts | 8 +- .../item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/calendarView/item/forward/index.ts | 35 +- src/users/item/calendarView/item/index.ts | 26 +- .../item/instances/count/index.ts | 2 +- .../item/instances/delta/index.ts | 100 +-- .../item/calendarView/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../calendarView/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../calendarView/item/snoozeReminder/index.ts | 56 +- .../item/tentativelyAccept/index.ts | 56 +- src/users/item/calendars/count/index.ts | 2 +- src/users/item/calendars/index.ts | 8 +- .../index.ts | 83 +- .../item/calendarPermissions/count/index.ts | 2 +- .../item/calendarPermissions/index.ts | 8 +- .../item/calendarPermissions/item/index.ts | 2 +- .../item/calendarView/count/index.ts | 2 +- .../item/calendarView/delta/index.ts | 100 +-- .../item/calendars/item/calendarView/index.ts | 10 +- .../item/calendarView/item/accept/index.ts | 56 +- .../item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../calendarView/item/attachments/index.ts | 16 +- .../item/attachments/item/index.ts | 4 +- .../item/calendarView/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/calendarView/item/cancel/index.ts | 28 +- .../item/calendarView/item/decline/index.ts | 56 +- .../item/dismissReminder/index.ts | 2 +- .../item/extensions/count/index.ts | 2 +- .../calendarView/item/extensions/index.ts | 8 +- .../item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/calendarView/item/forward/index.ts | 35 +- .../calendars/item/calendarView/item/index.ts | 26 +- .../item/instances/count/index.ts | 2 +- .../item/instances/delta/index.ts | 100 +-- .../item/calendarView/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../calendarView/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../calendarView/item/snoozeReminder/index.ts | 56 +- .../item/tentativelyAccept/index.ts | 56 +- .../item/calendars/item/events/count/index.ts | 2 +- .../item/calendars/item/events/delta/index.ts | 100 +-- src/users/item/calendars/item/events/index.ts | 10 +- .../item/events/item/accept/index.ts | 56 +- .../events/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/events/item/attachments/index.ts | 16 +- .../events/item/attachments/item/index.ts | 4 +- .../item/events/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/events/item/cancel/index.ts | 28 +- .../item/events/item/decline/index.ts | 56 +- .../item/events/item/dismissReminder/index.ts | 2 +- .../events/item/extensions/count/index.ts | 2 +- .../item/events/item/extensions/index.ts | 8 +- .../item/events/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/events/item/forward/index.ts | 35 +- .../item/calendars/item/events/item/index.ts | 24 +- .../item/events/item/instances/count/index.ts | 2 +- .../item/events/item/instances/delta/index.ts | 100 +-- .../item/events/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../item/events/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../item/events/item/snoozeReminder/index.ts | 56 +- .../events/item/tentativelyAccept/index.ts | 56 +- .../getSchedule/getSchedulePostResponse.ts | 29 - .../item/calendars/item/getSchedule/index.ts | 58 +- src/users/item/calendars/item/index.ts | 12 +- src/users/item/changePassword/index.ts | 56 +- src/users/item/chats/count/index.ts | 2 +- src/users/item/chats/getAllMessages/index.ts | 95 +-- src/users/item/chats/index.ts | 10 +- .../hideForUser/hideForUserPostRequestBody.ts | 31 - .../item/chats/item/hideForUser/index.ts | 29 +- src/users/item/chats/item/index.ts | 26 +- .../chats/item/installedApps/count/index.ts | 2 +- .../item/chats/item/installedApps/index.ts | 8 +- .../chats/item/installedApps/item/index.ts | 8 +- .../item/installedApps/item/teamsApp/index.ts | 4 +- .../item/teamsAppDefinition/index.ts | 4 +- .../item/installedApps/item/upgrade/index.ts | 29 +- .../item/upgrade/upgradePostRequestBody.ts | 31 - .../chats/item/lastMessagePreview/index.ts | 2 +- .../chats/item/markChatReadForUser/index.ts | 29 +- .../markChatReadForUserPostRequestBody.ts | 31 - .../chats/item/markChatUnreadForUser/index.ts | 56 +- .../item/chats/item/members/add/index.ts | 81 +- .../item/chats/item/members/count/index.ts | 2 +- src/users/item/chats/item/members/index.ts | 10 +- .../item/chats/item/members/item/index.ts | 2 +- .../item/chats/item/messages/count/index.ts | 2 +- .../item/chats/item/messages/delta/index.ts | 91 +-- src/users/item/chats/item/messages/index.ts | 10 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/chats/item/messages/item/index.ts | 14 +- .../item/messages/item/replies/count/index.ts | 2 +- .../item/messages/item/replies/delta/index.ts | 91 +-- .../chats/item/messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../item/messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../item/messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../item/permissionGrants/count/index.ts | 2 +- .../item/chats/item/permissionGrants/index.ts | 8 +- .../chats/item/permissionGrants/item/index.ts | 2 +- .../chats/item/pinnedMessages/count/index.ts | 2 +- .../item/chats/item/pinnedMessages/index.ts | 8 +- .../chats/item/pinnedMessages/item/index.ts | 4 +- .../item/pinnedMessages/item/message/index.ts | 4 +- .../item/sendActivityNotification/index.ts | 62 +- ...sendActivityNotificationPostRequestBody.ts | 64 -- src/users/item/chats/item/tabs/count/index.ts | 2 +- src/users/item/chats/item/tabs/index.ts | 8 +- src/users/item/chats/item/tabs/item/index.ts | 4 +- .../chats/item/tabs/item/teamsApp/index.ts | 4 +- .../item/chats/item/unhideForUser/index.ts | 29 +- .../unhideForUserPostRequestBody.ts | 31 - .../checkMemberGroupsPostRequestBody.ts | 30 - src/users/item/checkMemberGroups/index.ts | 58 +- src/users/item/checkMemberObjects/index.ts | 79 +- src/users/item/contactFolders/count/index.ts | 2 +- src/users/item/contactFolders/delta/index.ts | 92 +-- src/users/item/contactFolders/index.ts | 10 +- .../item/childFolders/count/index.ts | 2 +- .../item/childFolders/delta/index.ts | 92 +-- .../contactFolders/item/childFolders/index.ts | 10 +- .../childFolders/item/contacts/count/index.ts | 2 +- .../childFolders/item/contacts/delta/index.ts | 92 +-- .../item/childFolders/item/contacts/index.ts | 10 +- .../contacts/item/extensions/count/index.ts | 2 +- .../item/contacts/item/extensions/index.ts | 8 +- .../contacts/item/extensions/item/index.ts | 2 +- .../childFolders/item/contacts/item/index.ts | 6 +- .../item/contacts/item/photo/index.ts | 4 +- .../item/contacts/item/photo/value/index.ts | 2 +- .../item/childFolders/item/index.ts | 4 +- .../item/contacts/count/index.ts | 2 +- .../item/contacts/delta/index.ts | 92 +-- .../contactFolders/item/contacts/index.ts | 10 +- .../contacts/item/extensions/count/index.ts | 2 +- .../item/contacts/item/extensions/index.ts | 8 +- .../contacts/item/extensions/item/index.ts | 2 +- .../item/contacts/item/index.ts | 6 +- .../item/contacts/item/photo/index.ts | 4 +- .../item/contacts/item/photo/value/index.ts | 2 +- src/users/item/contactFolders/item/index.ts | 6 +- src/users/item/contacts/count/index.ts | 2 +- src/users/item/contacts/delta/index.ts | 92 +-- src/users/item/contacts/index.ts | 10 +- .../contacts/item/extensions/count/index.ts | 2 +- .../item/contacts/item/extensions/index.ts | 8 +- .../contacts/item/extensions/item/index.ts | 2 +- src/users/item/contacts/item/index.ts | 6 +- src/users/item/contacts/item/photo/index.ts | 4 +- .../item/contacts/item/photo/value/index.ts | 2 +- src/users/item/createdObjects/count/index.ts | 2 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- src/users/item/createdObjects/index.ts | 10 +- .../item/graphServicePrincipal/index.ts | 4 +- src/users/item/createdObjects/item/index.ts | 6 +- .../count/index.ts | 2 +- .../index.ts | 8 +- .../item/index.ts | 2 +- src/users/item/directReports/count/index.ts | 2 +- .../graphOrgContact/count/index.ts | 2 +- .../directReports/graphOrgContact/index.ts | 6 +- .../directReports/graphUser/count/index.ts | 2 +- .../item/directReports/graphUser/index.ts | 6 +- src/users/item/directReports/index.ts | 12 +- .../item/graphOrgContact/index.ts | 4 +- .../directReports/item/graphUser/index.ts | 4 +- src/users/item/directReports/item/index.ts | 8 +- src/users/item/drive/index.ts | 4 +- src/users/item/drives/count/index.ts | 2 +- src/users/item/drives/index.ts | 8 +- src/users/item/drives/item/index.ts | 4 +- src/users/item/employeeExperience/index.ts | 4 +- .../learningCourseActivities/count/index.ts | 2 +- .../learningCourseActivities/index.ts | 8 +- .../learningCourseActivities/item/index.ts | 4 +- src/users/item/events/count/index.ts | 2 +- src/users/item/events/delta/index.ts | 100 +-- src/users/item/events/index.ts | 10 +- src/users/item/events/item/accept/index.ts | 56 +- .../events/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/events/item/attachments/index.ts | 16 +- .../events/item/attachments/item/index.ts | 4 +- src/users/item/events/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - src/users/item/events/item/cancel/index.ts | 28 +- src/users/item/events/item/decline/index.ts | 56 +- .../item/events/item/dismissReminder/index.ts | 2 +- .../events/item/extensions/count/index.ts | 2 +- .../item/events/item/extensions/index.ts | 8 +- .../item/events/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - src/users/item/events/item/forward/index.ts | 35 +- src/users/item/events/item/index.ts | 24 +- .../item/events/item/instances/count/index.ts | 2 +- .../item/events/item/instances/delta/index.ts | 100 +-- src/users/item/events/item/instances/index.ts | 10 +- .../item/instances/item/accept/index.ts | 56 +- .../instances/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/instances/item/attachments/index.ts | 16 +- .../instances/item/attachments/item/index.ts | 4 +- .../item/instances/item/calendar/index.ts | 4 +- .../item/cancel/cancelPostRequestBody.ts | 30 - .../item/instances/item/cancel/index.ts | 28 +- .../item/instances/item/decline/index.ts | 56 +- .../instances/item/dismissReminder/index.ts | 2 +- .../instances/item/extensions/count/index.ts | 2 +- .../item/instances/item/extensions/index.ts | 8 +- .../instances/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 37 - .../item/instances/item/forward/index.ts | 35 +- .../item/events/item/instances/item/index.ts | 24 +- .../instances/item/snoozeReminder/index.ts | 56 +- .../instances/item/tentativelyAccept/index.ts | 56 +- .../item/events/item/snoozeReminder/index.ts | 56 +- .../events/item/tentativelyAccept/index.ts | 56 +- .../exportDeviceAndAppManagementData/index.ts | 4 +- .../index.ts | 4 +- src/users/item/exportPersonalData/index.ts | 56 +- src/users/item/extensions/count/index.ts | 2 +- src/users/item/extensions/index.ts | 8 +- src/users/item/extensions/item/index.ts | 2 +- .../findMeetingTimesPostRequestBody.ts | 75 -- src/users/item/findMeetingTimes/index.ts | 73 +- src/users/item/followedSites/count/index.ts | 2 +- src/users/item/followedSites/index.ts | 8 +- src/users/item/followedSites/item/index.ts | 4 +- .../getMailTips/getMailTipsPostRequestBody.ts | 37 - src/users/item/getMailTips/index.ts | 58 +- .../getManagedAppDiagnosticStatuses/index.ts | 81 +- src/users/item/getManagedAppPolicies/index.ts | 91 +-- ...anagedDevicesWithAppFailuresGetResponse.ts | 28 - .../getManagedDevicesWithAppFailures/index.ts | 27 +- .../getMemberGroupsPostResponse.ts | 28 - src/users/item/getMemberGroups/index.ts | 58 +- src/users/item/getMemberObjects/index.ts | 78 +- src/users/item/index.ts | 152 ++-- .../item/inferenceClassification/index.ts | 4 +- .../overrides/count/index.ts | 2 +- .../overrides/index.ts | 8 +- .../overrides/item/index.ts | 2 +- src/users/item/insights/index.ts | 8 +- src/users/item/insights/shared/count/index.ts | 2 +- src/users/item/insights/shared/index.ts | 8 +- src/users/item/insights/shared/item/index.ts | 6 +- .../shared/item/lastSharedMethod/index.ts | 4 +- .../insights/shared/item/resource/index.ts | 4 +- .../item/insights/trending/count/index.ts | 2 +- src/users/item/insights/trending/index.ts | 8 +- .../item/insights/trending/item/index.ts | 4 +- .../insights/trending/item/resource/index.ts | 4 +- src/users/item/insights/used/count/index.ts | 2 +- src/users/item/insights/used/index.ts | 8 +- src/users/item/insights/used/item/index.ts | 4 +- .../item/insights/used/item/resource/index.ts | 4 +- src/users/item/joinedTeams/count/index.ts | 2 +- .../item/joinedTeams/getAllMessages/index.ts | 95 +-- src/users/item/joinedTeams/index.ts | 10 +- .../item/allChannels/count/index.ts | 2 +- .../joinedTeams/item/allChannels/index.ts | 8 +- .../item/allChannels/item/index.ts | 4 +- .../item/joinedTeams/item/archive/index.ts | 56 +- .../joinedTeams/item/channels/count/index.ts | 2 +- .../item/channels/getAllMessages/index.ts | 95 +-- .../item/joinedTeams/item/channels/index.ts | 10 +- .../channels/item/completeMigration/index.ts | 2 +- ...incipalNameUserPrincipalNameGetResponse.ts | 30 - .../index.ts | 29 +- .../item/filesFolder/content/index.ts | 4 +- .../item/channels/item/filesFolder/index.ts | 6 +- .../joinedTeams/item/channels/item/index.ts | 20 +- .../item/channels/item/members/add/index.ts | 81 +- .../item/channels/item/members/count/index.ts | 2 +- .../item/channels/item/members/index.ts | 16 +- .../item/channels/item/members/item/index.ts | 14 +- .../channels/item/messages/count/index.ts | 2 +- .../channels/item/messages/delta/index.ts | 91 +-- .../item/channels/item/messages/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/channels/item/messages/item/index.ts | 14 +- .../item/messages/item/replies/count/index.ts | 2 +- .../item/messages/item/replies/delta/index.ts | 91 +-- .../item/messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../item/messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../item/messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../item/messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../channels/item/provisionEmail/index.ts | 4 +- .../item/channels/item/removeEmail/index.ts | 2 +- .../item/sharedWithTeams/count/index.ts | 2 +- .../channels/item/sharedWithTeams/index.ts | 8 +- .../item/allowedMembers/count/index.ts | 2 +- .../item/allowedMembers/index.ts | 8 +- .../item/allowedMembers/item/index.ts | 4 +- .../item/sharedWithTeams/item/index.ts | 6 +- .../item/sharedWithTeams/item/team/index.ts | 4 +- .../item/channels/item/tabs/count/index.ts | 2 +- .../item/channels/item/tabs/index.ts | 12 +- .../item/channels/item/tabs/item/index.ts | 4 +- .../channels/item/tabs/item/teamsApp/index.ts | 4 +- .../item/clone/clonePostRequestBody.ts | 62 -- .../item/joinedTeams/item/clone/index.ts | 60 +- .../item/completeMigration/index.ts | 2 +- .../item/joinedTeams/item/group/index.ts | 6 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../group/serviceProvisioningErrors/index.ts | 6 +- .../item/incomingChannels/count/index.ts | 2 +- .../item/incomingChannels/index.ts | 8 +- .../item/incomingChannels/item/index.ts | 4 +- src/users/item/joinedTeams/item/index.ts | 38 +- .../item/installedApps/count/index.ts | 2 +- .../joinedTeams/item/installedApps/index.ts | 8 +- .../item/installedApps/item/index.ts | 8 +- .../item/installedApps/item/teamsApp/index.ts | 4 +- .../item/teamsAppDefinition/index.ts | 4 +- .../item/installedApps/item/upgrade/index.ts | 29 +- .../item/upgrade/upgradePostRequestBody.ts | 31 - .../joinedTeams/item/members/add/index.ts | 81 +- .../joinedTeams/item/members/count/index.ts | 2 +- .../item/joinedTeams/item/members/index.ts | 10 +- .../joinedTeams/item/members/item/index.ts | 2 +- .../item/operations/count/index.ts | 2 +- .../item/joinedTeams/item/operations/index.ts | 8 +- .../joinedTeams/item/operations/item/index.ts | 2 +- .../item/permissionGrants/count/index.ts | 2 +- .../item/permissionGrants/index.ts | 8 +- .../item/permissionGrants/item/index.ts | 2 +- .../item/joinedTeams/item/photo/index.ts | 4 +- .../joinedTeams/item/photo/value/index.ts | 2 +- .../primaryChannel/completeMigration/index.ts | 2 +- ...incipalNameUserPrincipalNameGetResponse.ts | 30 - .../index.ts | 29 +- .../filesFolder/content/index.ts | 4 +- .../item/primaryChannel/filesFolder/index.ts | 6 +- .../joinedTeams/item/primaryChannel/index.ts | 20 +- .../item/primaryChannel/members/add/index.ts | 81 +- .../primaryChannel/members/count/index.ts | 2 +- .../item/primaryChannel/members/index.ts | 16 +- .../item/primaryChannel/members/item/index.ts | 14 +- .../primaryChannel/messages/count/index.ts | 2 +- .../primaryChannel/messages/delta/index.ts | 91 +-- .../item/primaryChannel/messages/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../messages/item/hostedContents/index.ts | 8 +- .../item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../primaryChannel/messages/item/index.ts | 14 +- .../messages/item/replies/count/index.ts | 2 +- .../messages/item/replies/delta/index.ts | 91 +-- .../messages/item/replies/index.ts | 16 +- .../item/hostedContents/count/index.ts | 2 +- .../item/replies/item/hostedContents/index.ts | 8 +- .../replies/item/hostedContents/item/index.ts | 4 +- .../item/hostedContents/item/value/index.ts | 2 +- .../messages/item/replies/item/index.ts | 12 +- .../item/replies/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../item/replies/item/softDelete/index.ts | 2 +- .../item/replies/item/undoSoftDelete/index.ts | 2 +- .../item/replies/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../messages/item/setReaction/index.ts | 28 +- .../setReaction/setReactionPostRequestBody.ts | 30 - .../messages/item/softDelete/index.ts | 2 +- .../messages/item/undoSoftDelete/index.ts | 2 +- .../messages/item/unsetReaction/index.ts | 28 +- .../unsetReactionPostRequestBody.ts | 30 - .../primaryChannel/provisionEmail/index.ts | 4 +- .../item/primaryChannel/removeEmail/index.ts | 2 +- .../sharedWithTeams/count/index.ts | 2 +- .../primaryChannel/sharedWithTeams/index.ts | 8 +- .../item/allowedMembers/count/index.ts | 2 +- .../item/allowedMembers/index.ts | 8 +- .../item/allowedMembers/item/index.ts | 4 +- .../sharedWithTeams/item/index.ts | 6 +- .../sharedWithTeams/item/team/index.ts | 4 +- .../item/primaryChannel/tabs/count/index.ts | 2 +- .../item/primaryChannel/tabs/index.ts | 12 +- .../item/primaryChannel/tabs/item/index.ts | 4 +- .../tabs/item/teamsApp/index.ts | 4 +- .../item/joinedTeams/item/schedule/index.ts | 22 +- .../offerShiftRequests/count/index.ts | 2 +- .../item/schedule/offerShiftRequests/index.ts | 8 +- .../schedule/offerShiftRequests/item/index.ts | 2 +- .../openShiftChangeRequests/count/index.ts | 2 +- .../schedule/openShiftChangeRequests/index.ts | 8 +- .../openShiftChangeRequests/item/index.ts | 2 +- .../item/schedule/openShifts/count/index.ts | 2 +- .../item/schedule/openShifts/index.ts | 8 +- .../item/schedule/openShifts/item/index.ts | 2 +- .../schedule/schedulingGroups/count/index.ts | 2 +- .../item/schedule/schedulingGroups/index.ts | 8 +- .../schedule/schedulingGroups/item/index.ts | 2 +- .../joinedTeams/item/schedule/share/index.ts | 40 +- .../schedule/share/sharePostRequestBody.ts | 42 - .../item/schedule/shifts/count/index.ts | 2 +- .../joinedTeams/item/schedule/shifts/index.ts | 8 +- .../item/schedule/shifts/item/index.ts | 2 +- .../swapShiftsChangeRequests/count/index.ts | 2 +- .../swapShiftsChangeRequests/index.ts | 8 +- .../swapShiftsChangeRequests/item/index.ts | 2 +- .../schedule/timeOffReasons/count/index.ts | 2 +- .../item/schedule/timeOffReasons/index.ts | 8 +- .../schedule/timeOffReasons/item/index.ts | 2 +- .../schedule/timeOffRequests/count/index.ts | 2 +- .../item/schedule/timeOffRequests/index.ts | 8 +- .../schedule/timeOffRequests/item/index.ts | 2 +- .../item/schedule/timesOff/count/index.ts | 2 +- .../item/schedule/timesOff/index.ts | 8 +- .../item/schedule/timesOff/item/index.ts | 2 +- .../item/sendActivityNotification/index.ts | 62 +- ...sendActivityNotificationPostRequestBody.ts | 64 -- .../item/joinedTeams/item/tags/count/index.ts | 2 +- src/users/item/joinedTeams/item/tags/index.ts | 8 +- .../item/joinedTeams/item/tags/item/index.ts | 4 +- .../item/tags/item/members/count/index.ts | 2 +- .../item/tags/item/members/index.ts | 8 +- .../item/tags/item/members/item/index.ts | 2 +- .../item/joinedTeams/item/template/index.ts | 4 +- .../item/joinedTeams/item/unarchive/index.ts | 2 +- src/users/item/licenseDetails/count/index.ts | 2 +- src/users/item/licenseDetails/index.ts | 8 +- src/users/item/licenseDetails/item/index.ts | 2 +- src/users/item/mailFolders/count/index.ts | 2 +- src/users/item/mailFolders/delta/index.ts | 92 +-- src/users/item/mailFolders/index.ts | 10 +- .../item/childFolders/count/index.ts | 2 +- .../item/childFolders/delta/index.ts | 92 +-- .../mailFolders/item/childFolders/index.ts | 16 +- .../item/childFolders/item/copy/index.ts | 58 +- .../item/childFolders/item/index.ts | 10 +- .../item/messageRules/count/index.ts | 2 +- .../childFolders/item/messageRules/index.ts | 8 +- .../item/messageRules/item/index.ts | 2 +- .../childFolders/item/messages/count/index.ts | 2 +- .../childFolders/item/messages/delta/index.ts | 96 +-- .../item/childFolders/item/messages/index.ts | 10 +- .../messages/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/messages/item/attachments/index.ts | 10 +- .../messages/item/attachments/item/index.ts | 4 +- .../item/messages/item/copy/index.ts | 58 +- .../item/messages/item/createForward/index.ts | 59 +- .../item/messages/item/createReply/index.ts | 59 +- .../createReplyAllPostRequestBody.ts | 37 - .../messages/item/createReplyAll/index.ts | 34 +- .../messages/item/extensions/count/index.ts | 2 +- .../item/messages/item/extensions/index.ts | 8 +- .../messages/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 44 -- .../item/messages/item/forward/index.ts | 42 +- .../childFolders/item/messages/item/index.ts | 26 +- .../item/messages/item/move/index.ts | 28 +- .../messages/item/move/movePostRequestBody.ts | 30 - .../item/messages/item/reply/index.ts | 35 +- .../item/reply/replyPostRequestBody.ts | 37 - .../item/messages/item/replyAll/index.ts | 56 +- .../item/messages/item/send/index.ts | 2 +- .../item/messages/item/value/index.ts | 2 +- .../item/childFolders/item/move/index.ts | 28 +- .../item/move/movePostRequestBody.ts | 30 - src/users/item/mailFolders/item/copy/index.ts | 58 +- src/users/item/mailFolders/item/index.ts | 18 +- .../item/messageRules/count/index.ts | 2 +- .../mailFolders/item/messageRules/index.ts | 8 +- .../item/messageRules/item/index.ts | 2 +- .../mailFolders/item/messages/count/index.ts | 2 +- .../mailFolders/item/messages/delta/index.ts | 96 +-- .../item/mailFolders/item/messages/index.ts | 10 +- .../messages/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/messages/item/attachments/index.ts | 10 +- .../messages/item/attachments/item/index.ts | 4 +- .../item/messages/item/copy/index.ts | 58 +- .../item/messages/item/createForward/index.ts | 59 +- .../item/messages/item/createReply/index.ts | 59 +- .../createReplyAllPostRequestBody.ts | 37 - .../messages/item/createReplyAll/index.ts | 34 +- .../messages/item/extensions/count/index.ts | 2 +- .../item/messages/item/extensions/index.ts | 8 +- .../messages/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 44 -- .../item/messages/item/forward/index.ts | 42 +- .../mailFolders/item/messages/item/index.ts | 26 +- .../item/messages/item/move/index.ts | 28 +- .../messages/item/move/movePostRequestBody.ts | 30 - .../item/messages/item/reply/index.ts | 35 +- .../item/reply/replyPostRequestBody.ts | 37 - .../item/messages/item/replyAll/index.ts | 56 +- .../item/messages/item/send/index.ts | 2 +- .../item/messages/item/value/index.ts | 2 +- src/users/item/mailFolders/item/move/index.ts | 28 +- .../item/move/movePostRequestBody.ts | 30 - src/users/item/mailboxSettings/index.ts | 2 +- .../managedAppRegistrations/count/index.ts | 2 +- .../item/managedAppRegistrations/index.ts | 8 +- .../managedAppRegistrations/item/index.ts | 4 +- src/users/item/managedDevices/count/index.ts | 2 +- src/users/item/managedDevices/index.ts | 8 +- .../item/bypassActivationLock/index.ts | 2 +- .../cleanWindowsDevicePostRequestBody.ts | 30 - .../item/cleanWindowsDevice/index.ts | 28 +- ...serFromSharedAppleDevicePostRequestBody.ts | 30 - .../deleteUserFromSharedAppleDevice/index.ts | 28 +- .../item/deviceCategory/index.ts | 2 +- .../count/index.ts | 2 +- .../deviceCompliancePolicyStates/index.ts | 8 +- .../item/index.ts | 2 +- .../deviceConfigurationStates/count/index.ts | 2 +- .../item/deviceConfigurationStates/index.ts | 8 +- .../deviceConfigurationStates/item/index.ts | 2 +- .../item/disableLostMode/index.ts | 2 +- src/users/item/managedDevices/item/index.ts | 50 +- .../managedDevices/item/locateDevice/index.ts | 2 +- .../item/logCollectionRequests/count/index.ts | 2 +- .../item/logCollectionRequests/index.ts | 8 +- .../createDownloadUrlPostResponse.ts | 30 - .../item/createDownloadUrl/index.ts | 52 +- .../item/logCollectionRequests/item/index.ts | 4 +- .../index.ts | 2 +- .../managedDevices/item/rebootNow/index.ts | 2 +- .../item/recoverPasscode/index.ts | 2 +- .../managedDevices/item/remoteLock/index.ts | 2 +- .../item/requestRemoteAssistance/index.ts | 2 +- .../item/resetPasscode/index.ts | 2 +- .../item/managedDevices/item/retire/index.ts | 2 +- .../managedDevices/item/shutDown/index.ts | 2 +- .../managedDevices/item/syncDevice/index.ts | 2 +- .../item/updateWindowsDeviceAccount/index.ts | 29 +- ...dateWindowsDeviceAccountPostRequestBody.ts | 31 - .../item/managedDevices/item/users/index.ts | 4 +- .../item/windowsDefenderScan/index.ts | 28 +- .../windowsDefenderScanPostRequestBody.ts | 30 - .../windowsDefenderUpdateSignatures/index.ts | 2 +- .../detectedMalwareState/count/index.ts | 2 +- .../detectedMalwareState/index.ts | 8 +- .../detectedMalwareState/item/index.ts | 2 +- .../item/windowsProtectionState/index.ts | 4 +- .../item/managedDevices/item/wipe/index.ts | 46 +- .../item/wipe/wipePostRequestBody.ts | 48 -- src/users/item/manager/index.ts | 6 +- src/users/item/manager/ref/index.ts | 2 +- src/users/item/memberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../memberOf/graphAdministrativeUnit/index.ts | 6 +- .../graphDirectoryRole/count/index.ts | 2 +- .../item/memberOf/graphDirectoryRole/index.ts | 6 +- .../item/memberOf/graphGroup/count/index.ts | 2 +- src/users/item/memberOf/graphGroup/index.ts | 6 +- src/users/item/memberOf/index.ts | 14 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../memberOf/item/graphDirectoryRole/index.ts | 4 +- .../item/memberOf/item/graphGroup/index.ts | 4 +- src/users/item/memberOf/item/index.ts | 10 +- src/users/item/messages/count/index.ts | 2 +- src/users/item/messages/delta/index.ts | 96 +-- src/users/item/messages/index.ts | 10 +- .../messages/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/messages/item/attachments/index.ts | 10 +- .../messages/item/attachments/item/index.ts | 4 +- src/users/item/messages/item/copy/index.ts | 58 +- .../item/messages/item/createForward/index.ts | 59 +- .../item/messages/item/createReply/index.ts | 59 +- .../createReplyAllPostRequestBody.ts | 37 - .../messages/item/createReplyAll/index.ts | 34 +- .../messages/item/extensions/count/index.ts | 2 +- .../item/messages/item/extensions/index.ts | 8 +- .../messages/item/extensions/item/index.ts | 2 +- .../item/forward/forwardPostRequestBody.ts | 44 -- src/users/item/messages/item/forward/index.ts | 42 +- src/users/item/messages/item/index.ts | 40 +- src/users/item/messages/item/move/index.ts | 28 +- .../messages/item/move/movePostRequestBody.ts | 30 - src/users/item/messages/item/reply/index.ts | 35 +- .../item/reply/replyPostRequestBody.ts | 37 - .../item/messages/item/replyAll/index.ts | 56 +- src/users/item/messages/item/send/index.ts | 2 +- src/users/item/messages/item/value/index.ts | 2 +- .../oauth2PermissionGrants/count/index.ts | 2 +- .../item/oauth2PermissionGrants/index.ts | 8 +- .../item/oauth2PermissionGrants/item/index.ts | 4 +- src/users/item/onenote/index.ts | 14 +- .../item/onenote/notebooks/count/index.ts | 2 +- .../getNotebookFromWebUrlPostRequestBody.ts | 30 - .../notebooks/getNotebookFromWebUrl/index.ts | 28 +- ...WithIncludePersonalNotebooksGetResponse.ts | 29 - .../index.ts | 28 +- src/users/item/onenote/notebooks/index.ts | 12 +- .../notebooks/item/copyNotebook/index.ts | 58 +- .../item/onenote/notebooks/item/index.ts | 8 +- .../item/sectionGroups/count/index.ts | 2 +- .../notebooks/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 10 +- .../item/parentNotebook/index.ts | 4 +- .../item/parentSectionGroup/index.ts | 4 +- .../item/sectionGroups/count/index.ts | 2 +- .../sectionGroups/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 4 +- .../item/sections/count/index.ts | 2 +- .../item/sectionGroups/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sectionGroups/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../notebooks/item/sections/count/index.ts | 2 +- .../onenote/notebooks/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../notebooks/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/onenote/operations/count/index.ts | 2 +- src/users/item/onenote/operations/index.ts | 8 +- .../item/onenote/operations/item/index.ts | 2 +- src/users/item/onenote/pages/count/index.ts | 2 +- src/users/item/onenote/pages/index.ts | 8 +- .../item/onenote/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../onenote/pages/item/copyToSection/index.ts | 46 +- src/users/item/onenote/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../pages/item/parentNotebook/index.ts | 4 +- .../onenote/pages/item/parentSection/index.ts | 4 +- .../item/onenote/pages/item/preview/index.ts | 4 +- .../item/onenote/resources/count/index.ts | 2 +- src/users/item/onenote/resources/index.ts | 8 +- .../onenote/resources/item/content/index.ts | 4 +- .../item/onenote/resources/item/index.ts | 4 +- .../item/onenote/sectionGroups/count/index.ts | 2 +- src/users/item/onenote/sectionGroups/index.ts | 8 +- .../item/onenote/sectionGroups/item/index.ts | 10 +- .../item/parentNotebook/index.ts | 4 +- .../item/parentSectionGroup/index.ts | 4 +- .../item/sectionGroups/count/index.ts | 2 +- .../sectionGroups/item/sectionGroups/index.ts | 8 +- .../item/sectionGroups/item/index.ts | 4 +- .../item/sections/count/index.ts | 2 +- .../sectionGroups/item/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- .../sectionGroups/item/sections/item/index.ts | 12 +- .../item/sections/item/pages/count/index.ts | 2 +- .../item/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../item/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- .../item/onenote/sections/count/index.ts | 2 +- src/users/item/onenote/sections/index.ts | 8 +- .../copyToNotebookPostRequestBody.ts | 54 -- .../sections/item/copyToNotebook/index.ts | 52 +- .../sections/item/copyToSectionGroup/index.ts | 58 +- src/users/item/onenote/sections/item/index.ts | 12 +- .../sections/item/pages/count/index.ts | 2 +- .../item/onenote/sections/item/pages/index.ts | 8 +- .../sections/item/pages/item/content/index.ts | 4 +- .../copyToSectionPostRequestBody.ts | 48 -- .../item/pages/item/copyToSection/index.ts | 46 +- .../onenote/sections/item/pages/item/index.ts | 14 +- .../pages/item/onenotePatchContent/index.ts | 29 +- .../onenotePatchContentPostRequestBody.ts | 31 - .../item/pages/item/parentNotebook/index.ts | 4 +- .../item/pages/item/parentSection/index.ts | 4 +- .../sections/item/pages/item/preview/index.ts | 4 +- .../sections/item/parentNotebook/index.ts | 4 +- .../sections/item/parentSectionGroup/index.ts | 4 +- src/users/item/onlineMeetings/count/index.ts | 2 +- .../item/onlineMeetings/createOrGet/index.ts | 58 +- src/users/item/onlineMeetings/index.ts | 10 +- .../item/attendanceReports/count/index.ts | 2 +- .../item/attendanceReports/index.ts | 8 +- .../item/attendanceRecords/count/index.ts | 2 +- .../item/attendanceRecords/index.ts | 8 +- .../item/attendanceRecords/item/index.ts | 2 +- .../item/attendanceReports/item/index.ts | 4 +- .../item/attendeeReport/index.ts | 2 +- ...VirtualAppointmentJoinWebUrlGetResponse.ts | 30 - .../getVirtualAppointmentJoinWebUrl/index.ts | 29 +- src/users/item/onlineMeetings/item/index.ts | 12 +- .../item/recordings/count/index.ts | 2 +- .../onlineMeetings/item/recordings/index.ts | 8 +- .../item/recordings/item/content/index.ts | 4 +- .../item/recordings/item/index.ts | 4 +- .../item/transcripts/count/index.ts | 2 +- .../onlineMeetings/item/transcripts/index.ts | 8 +- .../item/transcripts/item/content/index.ts | 4 +- .../item/transcripts/item/index.ts | 6 +- .../transcripts/item/metadataContent/index.ts | 2 +- src/users/item/outlook/index.ts | 12 +- .../outlook/masterCategories/count/index.ts | 2 +- .../item/outlook/masterCategories/index.ts | 8 +- .../outlook/masterCategories/item/index.ts | 2 +- .../item/outlook/supportedLanguages/index.ts | 28 +- .../supportedLanguagesGetResponse.ts | 29 - .../item/outlook/supportedTimeZones/index.ts | 81 +- .../index.ts | 28 +- ...imeZonesWithTimeZoneStandardGetResponse.ts | 29 - src/users/item/ownedDevices/count/index.ts | 2 +- .../graphAppRoleAssignment/count/index.ts | 2 +- .../graphAppRoleAssignment/index.ts | 6 +- .../ownedDevices/graphDevice/count/index.ts | 2 +- .../item/ownedDevices/graphDevice/index.ts | 6 +- .../ownedDevices/graphEndpoint/count/index.ts | 2 +- .../item/ownedDevices/graphEndpoint/index.ts | 6 +- src/users/item/ownedDevices/index.ts | 14 +- .../item/graphAppRoleAssignment/index.ts | 4 +- .../ownedDevices/item/graphDevice/index.ts | 4 +- .../ownedDevices/item/graphEndpoint/index.ts | 4 +- src/users/item/ownedDevices/item/index.ts | 10 +- src/users/item/ownedObjects/count/index.ts | 2 +- .../graphApplication/count/index.ts | 2 +- .../ownedObjects/graphApplication/index.ts | 6 +- .../ownedObjects/graphGroup/count/index.ts | 2 +- .../item/ownedObjects/graphGroup/index.ts | 6 +- .../graphServicePrincipal/count/index.ts | 2 +- .../graphServicePrincipal/index.ts | 6 +- src/users/item/ownedObjects/index.ts | 14 +- .../item/graphApplication/index.ts | 4 +- .../ownedObjects/item/graphGroup/index.ts | 4 +- .../item/graphServicePrincipal/index.ts | 4 +- src/users/item/ownedObjects/item/index.ts | 10 +- src/users/item/people/count/index.ts | 2 +- src/users/item/people/index.ts | 8 +- src/users/item/people/item/index.ts | 4 +- src/users/item/photo/index.ts | 4 +- src/users/item/photo/value/index.ts | 2 +- src/users/item/photos/index.ts | 6 +- src/users/item/photos/item/index.ts | 6 +- src/users/item/photos/item/value/index.ts | 2 +- src/users/item/planner/index.ts | 6 +- src/users/item/planner/plans/count/index.ts | 2 +- src/users/item/planner/plans/index.ts | 8 +- .../planner/plans/item/buckets/count/index.ts | 2 +- .../item/planner/plans/item/buckets/index.ts | 8 +- .../planner/plans/item/buckets/item/index.ts | 4 +- .../item/buckets/item/tasks/count/index.ts | 2 +- .../plans/item/buckets/item/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- .../buckets/item/tasks/item/details/index.ts | 2 +- .../item/buckets/item/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- .../item/planner/plans/item/details/index.ts | 2 +- src/users/item/planner/plans/item/index.ts | 8 +- .../planner/plans/item/tasks/count/index.ts | 2 +- .../item/planner/plans/item/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- .../plans/item/tasks/item/details/index.ts | 2 +- .../planner/plans/item/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- src/users/item/planner/tasks/count/index.ts | 2 +- src/users/item/planner/tasks/index.ts | 8 +- .../item/assignedToTaskBoardFormat/index.ts | 2 +- .../tasks/item/bucketTaskBoardFormat/index.ts | 2 +- .../item/planner/tasks/item/details/index.ts | 2 +- src/users/item/planner/tasks/item/index.ts | 10 +- .../item/progressTaskBoardFormat/index.ts | 2 +- .../clearPresencePostRequestBody.ts | 30 - .../item/presence/clearPresence/index.ts | 28 +- .../clearUserPreferredPresence/index.ts | 2 +- src/users/item/presence/index.ts | 12 +- src/users/item/presence/setPresence/index.ts | 46 +- .../setPresence/setPresencePostRequestBody.ts | 48 -- .../item/presence/setStatusMessage/index.ts | 56 +- .../setUserPreferredPresence/index.ts | 56 +- .../item/registeredDevices/count/index.ts | 2 +- .../graphAppRoleAssignment/count/index.ts | 2 +- .../graphAppRoleAssignment/index.ts | 6 +- .../graphDevice/count/index.ts | 2 +- .../registeredDevices/graphDevice/index.ts | 6 +- .../graphEndpoint/count/index.ts | 2 +- .../registeredDevices/graphEndpoint/index.ts | 6 +- src/users/item/registeredDevices/index.ts | 14 +- .../item/graphAppRoleAssignment/index.ts | 4 +- .../item/graphDevice/index.ts | 4 +- .../item/graphEndpoint/index.ts | 4 +- .../item/registeredDevices/item/index.ts | 10 +- .../index.ts | 28 +- ...StartDateTimeWithEndDateTimeGetResponse.ts | 29 - .../removeAllDevicesFromManagement/index.ts | 2 +- .../item/reprocessLicenseAssignment/index.ts | 4 +- src/users/item/restore/index.ts | 4 +- .../item/retryServiceProvisioning/index.ts | 2 +- src/users/item/revokeSignInSessions/index.ts | 29 +- .../revokeSignInSessionsPostResponse.ts | 30 - .../item/scopedRoleMemberOf/count/index.ts | 2 +- src/users/item/scopedRoleMemberOf/index.ts | 8 +- .../item/scopedRoleMemberOf/item/index.ts | 2 +- src/users/item/sendMail/index.ts | 56 +- .../serviceProvisioningErrors/count/index.ts | 2 +- .../item/serviceProvisioningErrors/index.ts | 6 +- src/users/item/settings/index.ts | 4 +- .../item/settings/shiftPreferences/index.ts | 2 +- .../teamwork/associatedTeams/count/index.ts | 2 +- .../item/teamwork/associatedTeams/index.ts | 8 +- .../teamwork/associatedTeams/item/index.ts | 4 +- .../associatedTeams/item/team/index.ts | 4 +- src/users/item/teamwork/index.ts | 8 +- .../teamwork/installedApps/count/index.ts | 2 +- .../item/teamwork/installedApps/index.ts | 8 +- .../teamwork/installedApps/item/chat/index.ts | 4 +- .../item/teamwork/installedApps/item/index.ts | 8 +- .../installedApps/item/teamsApp/index.ts | 4 +- .../item/teamsAppDefinition/index.ts | 4 +- .../sendActivityNotification/index.ts | 55 +- ...sendActivityNotificationPostRequestBody.ts | 57 -- src/users/item/todo/index.ts | 4 +- src/users/item/todo/lists/count/index.ts | 2 +- src/users/item/todo/lists/delta/index.ts | 91 +-- src/users/item/todo/lists/index.ts | 10 +- .../todo/lists/item/extensions/count/index.ts | 2 +- .../item/todo/lists/item/extensions/index.ts | 8 +- .../todo/lists/item/extensions/item/index.ts | 2 +- src/users/item/todo/lists/item/index.ts | 6 +- .../item/todo/lists/item/tasks/count/index.ts | 2 +- .../item/todo/lists/item/tasks/delta/index.ts | 91 +-- src/users/item/todo/lists/item/tasks/index.ts | 10 +- .../item/attachmentSessions/count/index.ts | 2 +- .../tasks/item/attachmentSessions/index.ts | 8 +- .../attachmentSessions/item/content/index.ts | 4 +- .../item/attachmentSessions/item/index.ts | 4 +- .../tasks/item/attachments/count/index.ts | 2 +- .../attachments/createUploadSession/index.ts | 58 +- .../item/tasks/item/attachments/index.ts | 10 +- .../item/tasks/item/attachments/item/index.ts | 6 +- .../item/attachments/item/value/index.ts | 2 +- .../tasks/item/checklistItems/count/index.ts | 2 +- .../item/tasks/item/checklistItems/index.ts | 8 +- .../tasks/item/checklistItems/item/index.ts | 2 +- .../item/tasks/item/extensions/count/index.ts | 2 +- .../lists/item/tasks/item/extensions/index.ts | 8 +- .../item/tasks/item/extensions/item/index.ts | 2 +- .../item/todo/lists/item/tasks/item/index.ts | 12 +- .../tasks/item/linkedResources/count/index.ts | 2 +- .../item/tasks/item/linkedResources/index.ts | 8 +- .../tasks/item/linkedResources/item/index.ts | 2 +- .../item/transitiveMemberOf/count/index.ts | 2 +- .../graphAdministrativeUnit/count/index.ts | 2 +- .../graphAdministrativeUnit/index.ts | 6 +- .../graphDirectoryRole/count/index.ts | 2 +- .../graphDirectoryRole/index.ts | 6 +- .../graphGroup/count/index.ts | 2 +- .../transitiveMemberOf/graphGroup/index.ts | 6 +- src/users/item/transitiveMemberOf/index.ts | 14 +- .../item/graphAdministrativeUnit/index.ts | 4 +- .../item/graphDirectoryRole/index.ts | 4 +- .../item/graphGroup/index.ts | 4 +- .../item/transitiveMemberOf/item/index.ts | 10 +- src/users/item/translateExchangeIds/index.ts | 63 +- .../translateExchangeIdsPostRequestBody.ts | 43 - .../translateExchangeIdsPostResponse.ts | 29 - .../index.ts | 28 +- ...RegistrationsByDeviceTagPostRequestBody.ts | 30 - src/users/validateProperties/index.ts | 56 +- 8308 files changed, 38069 insertions(+), 89765 deletions(-) delete mode 100644 src/admin/serviceAnnouncement/messages/favorite/favoritePostResponse.ts delete mode 100644 src/applicationTemplates/item/instantiate/instantiatePostRequestBody.ts delete mode 100644 src/applications/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/applications/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/applications/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/applications/item/removeKey/removeKeyPostRequestBody.ts delete mode 100644 src/applications/item/removePassword/removePasswordPostRequestBody.ts delete mode 100644 src/applications/item/synchronization/acquireAccessToken/acquireAccessTokenPostRequestBody.ts delete mode 100644 src/applications/item/synchronization/jobs/item/restart/restartPostRequestBody.ts delete mode 100644 src/applications/item/synchronization/jobs/item/schema/functions/functionsGetResponse.ts delete mode 100644 src/applications/item/synchronization/jobs/item/schema/parseExpression/parseExpressionPostRequestBody.ts delete mode 100644 src/applications/item/synchronization/jobs/item/validateCredentials/validateCredentialsPostRequestBody.ts delete mode 100644 src/applications/item/synchronization/jobs/validateCredentials/validateCredentialsPostRequestBody.ts delete mode 100644 src/applications/item/synchronization/templates/item/schema/functions/functionsGetResponse.ts delete mode 100644 src/applications/item/synchronization/templates/item/schema/parseExpression/parseExpressionPostRequestBody.ts delete mode 100644 src/chats/item/hideForUser/hideForUserPostRequestBody.ts delete mode 100644 src/chats/item/installedApps/item/upgrade/upgradePostRequestBody.ts delete mode 100644 src/chats/item/markChatReadForUser/markChatReadForUserPostRequestBody.ts delete mode 100644 src/chats/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/chats/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/chats/item/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/chats/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/chats/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts delete mode 100644 src/chats/item/unhideForUser/unhideForUserPostRequestBody.ts delete mode 100644 src/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.ts delete mode 100644 src/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/getPstnCallsWithFromDateTimeWithToDateTimeGetResponse.ts delete mode 100644 src/communications/calls/item/addLargeGalleryView/addLargeGalleryViewPostRequestBody.ts delete mode 100644 src/communications/calls/item/cancelMediaProcessing/cancelMediaProcessingPostRequestBody.ts delete mode 100644 src/communications/calls/item/changeScreenSharingRole/changeScreenSharingRolePostRequestBody.ts delete mode 100644 src/communications/calls/item/participants/invite/invitePostRequestBody.ts delete mode 100644 src/communications/calls/item/participants/item/startHoldMusic/startHoldMusicPostRequestBody.ts delete mode 100644 src/communications/calls/item/playPrompt/playPromptPostRequestBody.ts delete mode 100644 src/communications/calls/item/redirect/redirectPostRequestBody.ts delete mode 100644 src/communications/calls/item/reject/rejectPostRequestBody.ts delete mode 100644 src/communications/calls/item/subscribeToTone/subscribeToTonePostRequestBody.ts delete mode 100644 src/communications/calls/item/unmute/unmutePostRequestBody.ts delete mode 100644 src/communications/calls/item/updateRecordingStatus/updateRecordingStatusPostRequestBody.ts delete mode 100644 src/communications/getPresencesByUserId/getPresencesByUserIdPostRequestBody.ts delete mode 100644 src/communications/getPresencesByUserId/getPresencesByUserIdPostResponse.ts delete mode 100644 src/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/getVirtualAppointmentJoinWebUrlGetResponse.ts delete mode 100644 src/communications/presences/item/clearPresence/clearPresencePostRequestBody.ts delete mode 100644 src/communications/presences/item/setPresence/setPresencePostRequestBody.ts delete mode 100644 src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostRequestBody.ts delete mode 100644 src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostResponse.ts delete mode 100644 src/contacts/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/contacts/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/contacts/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/contracts/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/contracts/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/contracts/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/deviceAppManagement/managedAppPolicies/item/targetApps/targetAppsPostRequestBody.ts delete mode 100644 src/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration/getUserIdsWithFlaggedAppRegistrationGetResponse.ts delete mode 100644 src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/targetAppsPostRequestBody.ts delete mode 100644 src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/targetAppsPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/commit/commitPostRequestBody.ts delete mode 100644 src/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps/targetAppsPostRequestBody.ts delete mode 100644 src/deviceManagement/auditEvents/getAuditActivityTypesWithCategory/getAuditActivityTypesWithCategoryGetResponse.ts delete mode 100644 src/deviceManagement/deviceEnrollmentConfigurations/item/setPriority/setPriorityPostRequestBody.ts delete mode 100644 src/deviceManagement/getEffectivePermissionsWithScope/getEffectivePermissionsWithScopeGetResponse.ts delete mode 100644 src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/importPostRequestBody.ts delete mode 100644 src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/importPostResponse.ts delete mode 100644 src/deviceManagement/managedDevices/item/cleanWindowsDevice/cleanWindowsDevicePostRequestBody.ts delete mode 100644 src/deviceManagement/managedDevices/item/deleteUserFromSharedAppleDevice/deleteUserFromSharedAppleDevicePostRequestBody.ts delete mode 100644 src/deviceManagement/managedDevices/item/logCollectionRequests/item/createDownloadUrl/createDownloadUrlPostResponse.ts delete mode 100644 src/deviceManagement/managedDevices/item/updateWindowsDeviceAccount/updateWindowsDeviceAccountPostRequestBody.ts delete mode 100644 src/deviceManagement/managedDevices/item/windowsDefenderScan/windowsDefenderScanPostRequestBody.ts delete mode 100644 src/deviceManagement/managedDevices/item/wipe/wipePostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getConfigurationPolicyNonComplianceReport/getConfigurationPolicyNonComplianceReportPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport/getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getConfigurationSettingNonComplianceReport/getConfigurationSettingNonComplianceReportPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles/getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport/getDevicesWithoutCompliancePolicyReportPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getHistoricalReport/getHistoricalReportPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getPolicyNonComplianceMetadata/getPolicyNonComplianceMetadataPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getPolicyNonComplianceReport/getPolicyNonComplianceReportPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getPolicyNonComplianceSummaryReport/getPolicyNonComplianceSummaryReportPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getReportFilters/getReportFiltersPostRequestBody.ts delete mode 100644 src/deviceManagement/reports/getSettingNonComplianceReport/getSettingNonComplianceReportPostRequestBody.ts delete mode 100644 src/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevicesWithSummarizeBy/summarizeDevicePerformanceDevicesWithSummarizeByGetResponse.ts delete mode 100644 src/deviceManagement/windowsAutopilotDeviceIdentities/item/assignUserToDevice/assignUserToDevicePostRequestBody.ts delete mode 100644 src/deviceManagement/windowsAutopilotDeviceIdentities/item/updateDeviceProperties/updateDevicePropertiesPostRequestBody.ts delete mode 100644 src/devices/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/devices/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/devices/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/directory/deletedItems/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/directory/deletedItems/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/directory/deletedItems/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/directory/federationConfigurations/availableProviderTypes/availableProviderTypesGetResponse.ts delete mode 100644 src/directoryObjects/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/directoryObjects/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/directoryObjects/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/directoryRoleTemplates/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/directoryRoleTemplates/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/directoryRoleTemplates/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/directoryRoles/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/directoryRoles/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/directoryRoles/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/domains/item/promote/promotePostResponse.ts delete mode 100644 src/drives/item/items/item/createLink/createLinkPostRequestBody.ts delete mode 100644 src/drives/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts delete mode 100644 src/drives/item/items/item/invite/invitePostRequestBody.ts delete mode 100644 src/drives/item/items/item/preview/previewPostRequestBody.ts delete mode 100644 src/drives/item/items/item/restore/restorePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/application/calculate/calculatePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/createSession/createSessionPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/acosh/acoshPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/acot/acotPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/acoth/acothPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/arabic/arabicPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/asinh/asinhPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/atanh/atanhPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/averageA/averageAPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/averageIfs/averageIfsPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/besselJ/besselJPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/besselY/besselYPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/beta_Dist/beta_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/beta_Inv/beta_InvPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/bin2Hex/bin2HexPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/bin2Oct/bin2OctPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/binom_Dist/binom_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/binom_Dist_Range/binom_Dist_RangePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/bitand/bitandPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/bitor/bitorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/ceiling_Math/ceiling_MathPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/ceiling_Precise/ceiling_PrecisePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/chiSq_Inv_RT/chiSq_Inv_RTPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/combin/combinPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/combina/combinaPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/confidence_Norm/confidence_NormPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/confidence_T/confidence_TPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/countA/countAPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/countIfs/countIfsPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/coupDays/coupDaysPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/coupDaysNc/coupDaysNcPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/csc/cscPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/cumIPmt/cumIPmtPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/daverage/daveragePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/days/daysPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/dbcs/dbcsPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/dcount/dcountPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/ddb/ddbPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/dec2Bin/dec2BinPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/dec2Oct/dec2OctPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/degrees/degreesPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/delta/deltaPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/dget/dgetPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/dstDev/dstDevPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/dvar/dvarPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/ecma_Ceiling/ecma_CeilingPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/effect/effectPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/erf/erfPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/erfC/erfCPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/exact/exactPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/exp/expPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/expon_Dist/expon_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/f_Dist/f_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/f_Dist_RT/f_Dist_RTPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/f_Inv/f_InvPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/f_Inv_RT/f_Inv_RTPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/fact/factPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/findB/findBPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/floor_Precise/floor_PrecisePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/fvschedule/fvschedulePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/gamma_Dist/gamma_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/gcd/gcdPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/geStep/geStepPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/geoMean/geoMeanPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/harMean/harMeanPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/hex2Dec/hex2DecPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/hypGeom_Dist/hypGeom_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/hyperlink/hyperlinkPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/ifEscaped/ifPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imAbs/imAbsPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imCosh/imCoshPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imCot/imCotPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imCsc/imCscPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imCsch/imCschPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imDiv/imDivPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imExp/imExpPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imLog10/imLog10PostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imLog2/imLog2PostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imSin/imSinPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imSinh/imSinhPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imSub/imSubPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imSum/imSumPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imTan/imTanPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/imaginary/imaginaryPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/int/intPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/intRate/intRatePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/isError/isErrorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/isEven/isEvenPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/isFormula/isFormulaPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/isLogical/isLogicalPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/isNA/isNAPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/isOdd/isOddPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/iso_Ceiling/iso_CeilingPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/ispmt/ispmtPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/kurt/kurtPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/lcm/lcmPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/leftb/leftbPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/log/logPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/log10/log10PostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/logNorm_Inv/logNorm_InvPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/lookup/lookupPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/lower/lowerPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/match/matchPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/mduration/mdurationPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/median/medianPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/mid/midPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/midb/midbPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/minA/minAPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/minute/minutePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/mirr/mirrPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/mod/modPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/month/monthPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/mround/mroundPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/multiNomial/multiNomialPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/n/nPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/negBinom_Dist/negBinom_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/nominal/nominalPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/norm_Dist/norm_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/norm_Inv/norm_InvPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/not/notPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/nper/nperPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/numberValue/numberValuePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/oct2Dec/oct2DecPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/oct2Hex/oct2HexPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/percentRank_Exc/percentRank_ExcPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/percentRank_Inc/percentRank_IncPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/permut/permutPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/power/powerPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/ppmt/ppmtPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/price/pricePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/priceDisc/priceDiscPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/priceMat/priceMatPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/product/productPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/proper/properPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/quartile_Exc/quartile_ExcPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/randBetween/randBetweenPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/rate/ratePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/received/receivedPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/replace/replacePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/replaceB/replaceBPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/right/rightPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/rightb/rightbPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/rows/rowsPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/sec/secPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/sech/sechPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/seriesSum/seriesSumPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/sin/sinPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/sinh/sinhPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/skew_p/skew_pPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/sqrt/sqrtPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/stDevA/stDevAPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/stDevPA/stDevPAPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/stDev_P/stDev_PPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/subtotal/subtotalPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/sum/sumPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/t_Dist/t_DistPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/t_Dist_2T/t_Dist_2TPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/t_Inv/t_InvPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/t_Inv_2T/t_Inv_2TPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/tan/tanPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/tbillYield/tbillYieldPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/time/timePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/timevalue/timevaluePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/trunc/truncPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/unichar/unicharPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/unicode/unicodePostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/upper/upperPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/vdb/vdbPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/workDay/workDayPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/workDay_Intl/workDay_IntlPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/xor/xorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/year/yearPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/yearFrac/yearFracPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/yield/yieldPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/yieldDisc/yieldDiscPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/yieldMat/yieldMatPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/functions/z_Test/z_TestPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/applyPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomItemsFilter/applyBottomItemsFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomPercentFilter/applyBottomPercentFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCellColorFilter/applyCellColorFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCustomFilter/applyCustomFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyIconFilter/applyIconFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopItemsFilter/applyTopItemsFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopPercentFilter/applyTopPercentFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyValuesFilter/applyValuesFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/tables/item/sort/apply/applyPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/setSolidColor/setSolidColorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/image/imageGetResponse.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidth/imageWithWidthGetResponse.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeight/imageWithWidthWithHeightGetResponse.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeightWithFittingMode/imageWithWidthWithHeightWithFittingModeGetResponse.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setSolidColor/setSolidColorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/setData/setDataPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/setSolidColor/setSolidColorPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/applyPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomItemsFilter/applyBottomItemsFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomPercentFilter/applyBottomPercentFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCellColorFilter/applyCellColorFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCustomFilter/applyCustomFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyIconFilter/applyIconFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopItemsFilter/applyTopItemsFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopPercentFilter/applyTopPercentFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyValuesFilter/applyValuesFilterPostRequestBody.ts delete mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/applyPostRequestBody.ts delete mode 100644 src/drives/item/list/contentTypes/addCopy/addCopyPostRequestBody.ts delete mode 100644 src/drives/item/list/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts delete mode 100644 src/drives/item/list/contentTypes/item/isPublished/isPublishedGetResponse.ts delete mode 100644 src/drives/item/list/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts delete mode 100644 src/drives/item/sharedWithMe/sharedWithMeGetResponse.ts delete mode 100644 src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostRequestBody.ts delete mode 100644 src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostResponse.ts delete mode 100644 src/groupLifecyclePolicies/item/removeGroup/removeGroupPostResponse.ts delete mode 100644 src/groupSettingTemplates/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/groupSettingTemplates/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/groupSettingTemplates/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/groups/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/groups/item/calendar/calendarView/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/groups/item/calendar/calendarView/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/calendar/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/groups/item/calendar/calendarView/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/calendar/events/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/groups/item/calendar/events/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/calendar/events/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/groups/item/calendar/events/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/calendar/getSchedule/getSchedulePostResponse.ts delete mode 100644 src/groups/item/calendarView/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/groups/item/calendarView/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/groups/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/groups/item/conversations/item/threads/item/posts/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/replyPostRequestBody.ts delete mode 100644 src/groups/item/conversations/item/threads/item/posts/item/reply/replyPostRequestBody.ts delete mode 100644 src/groups/item/conversations/item/threads/item/reply/replyPostRequestBody.ts delete mode 100644 src/groups/item/events/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/groups/item/events/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/events/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/groups/item/events/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/groups/item/groupLifecyclePolicies/item/removeGroup/removeGroupPostResponse.ts delete mode 100644 src/groups/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts delete mode 100644 src/groups/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts delete mode 100644 src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/groups/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/groups/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/contentTypes/addCopy/addCopyPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts delete mode 100644 src/groups/item/sites/item/contentTypes/item/isPublished/isPublishedGetResponse.ts delete mode 100644 src/groups/item/sites/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts delete mode 100644 src/groups/item/sites/item/getApplicableContentTypesForListWithListId/getApplicableContentTypesForListWithListIdGetResponse.ts delete mode 100644 src/groups/item/sites/item/lists/item/contentTypes/addCopy/addCopyPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts delete mode 100644 src/groups/item/sites/item/lists/item/contentTypes/item/isPublished/isPublishedGetResponse.ts delete mode 100644 src/groups/item/sites/item/lists/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts delete mode 100644 src/groups/item/sites/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts delete mode 100644 src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/groups/item/sites/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/groups/item/sites/remove/removePostRequestBody.ts delete mode 100644 src/groups/item/sites/remove/removePostResponse.ts delete mode 100644 src/groups/item/team/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts delete mode 100644 src/groups/item/team/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/groups/item/team/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/groups/item/team/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/groups/item/team/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/groups/item/team/clone/clonePostRequestBody.ts delete mode 100644 src/groups/item/team/installedApps/item/upgrade/upgradePostRequestBody.ts delete mode 100644 src/groups/item/team/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts delete mode 100644 src/groups/item/team/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/groups/item/team/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/groups/item/team/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/groups/item/team/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/groups/item/team/schedule/share/sharePostRequestBody.ts delete mode 100644 src/groups/item/team/sendActivityNotification/sendActivityNotificationPostRequestBody.ts delete mode 100644 src/groups/item/threads/item/posts/item/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/threads/item/posts/item/inReplyTo/forward/forwardPostRequestBody.ts delete mode 100644 src/groups/item/threads/item/posts/item/inReplyTo/reply/replyPostRequestBody.ts delete mode 100644 src/groups/item/threads/item/posts/item/reply/replyPostRequestBody.ts delete mode 100644 src/groups/item/threads/item/reply/replyPostRequestBody.ts delete mode 100644 src/identity/apiConnectors/item/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts delete mode 100644 src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts delete mode 100644 src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts delete mode 100644 src/identity/identityProviders/availableProviderTypes/availableProviderTypesGetResponse.ts delete mode 100644 src/identityGovernance/accessReviews/definitions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/accessReviews/definitions/item/instances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/accessReviews/definitions/item/instances/item/stages/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/appConsent/appConsentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/entitlementManagement/assignmentRequests/item/resume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/entitlementManagement/assignments/additionalAccess/additionalAccessGetResponse.ts delete mode 100644 src/identityGovernance/entitlementManagement/assignments/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.ts delete mode 100644 src/identityGovernance/entitlementManagement/assignments/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceActivate/activatePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceActivate/activatePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts delete mode 100644 src/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/identityProtection/riskyServicePrincipals/dismiss/dismissPostRequestBody.ts delete mode 100644 src/identityProtection/riskyUsers/dismiss/dismissPostRequestBody.ts delete mode 100644 src/identityProviders/availableProviderTypes/availableProviderTypesGetResponse.ts delete mode 100644 src/organization/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/organization/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/organization/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/permissionGrants/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/permissionGrants/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/permissionGrants/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/print/printers/create/createPostRequestBody.ts delete mode 100644 src/print/printers/item/jobs/item/redirect/redirectPostRequestBody.ts delete mode 100644 src/print/shares/item/jobs/item/redirect/redirectPostRequestBody.ts delete mode 100644 src/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.ts delete mode 100644 src/reports/security/getAttackSimulationRepeatOffenders/getAttackSimulationRepeatOffendersGetResponse.ts delete mode 100644 src/reports/security/getAttackSimulationSimulationUserCoverage/getAttackSimulationSimulationUserCoverageGetResponse.ts delete mode 100644 src/roleManagement/directory/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/directory/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/directory/roleAssignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/directory/roleEligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/entitlementManagement/roleAssignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/roleManagement/entitlementManagement/roleEligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts delete mode 100644 src/search/query/queryPostRequestBody.ts delete mode 100644 src/search/query/queryPostResponse.ts delete mode 100644 src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/applyHoldPostRequestBody.ts delete mode 100644 src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/removeHoldPostRequestBody.ts delete mode 100644 src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/applyHoldPostRequestBody.ts delete mode 100644 src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/removeHoldPostRequestBody.ts delete mode 100644 src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/addToReviewSetPostRequestBody.ts delete mode 100644 src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/purgeDataPostRequestBody.ts delete mode 100644 src/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/asHierarchyGetResponse.ts delete mode 100644 src/security/microsoftGraphSecurityRunHuntingQuery/runHuntingQueryPostRequestBody.ts delete mode 100644 src/servicePrincipals/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/servicePrincipals/item/removeKey/removeKeyPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/removePassword/removePasswordPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/synchronization/acquireAccessToken/acquireAccessTokenPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/synchronization/jobs/item/restart/restartPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/synchronization/jobs/item/schema/functions/functionsGetResponse.ts delete mode 100644 src/servicePrincipals/item/synchronization/jobs/item/schema/parseExpression/parseExpressionPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/synchronization/jobs/item/validateCredentials/validateCredentialsPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/synchronization/jobs/validateCredentials/validateCredentialsPostRequestBody.ts delete mode 100644 src/servicePrincipals/item/synchronization/templates/item/schema/functions/functionsGetResponse.ts delete mode 100644 src/servicePrincipals/item/synchronization/templates/item/schema/parseExpression/parseExpressionPostRequestBody.ts delete mode 100644 src/shares/item/list/contentTypes/addCopy/addCopyPostRequestBody.ts delete mode 100644 src/shares/item/list/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts delete mode 100644 src/shares/item/list/contentTypes/item/isPublished/isPublishedGetResponse.ts delete mode 100644 src/shares/item/list/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts delete mode 100644 src/sites/item/contentTypes/addCopy/addCopyPostRequestBody.ts delete mode 100644 src/sites/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts delete mode 100644 src/sites/item/contentTypes/item/isPublished/isPublishedGetResponse.ts delete mode 100644 src/sites/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts delete mode 100644 src/sites/item/getApplicableContentTypesForListWithListId/getApplicableContentTypesForListWithListIdGetResponse.ts delete mode 100644 src/sites/item/lists/item/contentTypes/addCopy/addCopyPostRequestBody.ts delete mode 100644 src/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts delete mode 100644 src/sites/item/lists/item/contentTypes/item/isPublished/isPublishedGetResponse.ts delete mode 100644 src/sites/item/lists/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts delete mode 100644 src/sites/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts delete mode 100644 src/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts delete mode 100644 src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/sites/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/sites/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/sites/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/sites/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/sites/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/sites/remove/removePostRequestBody.ts delete mode 100644 src/sites/remove/removePostResponse.ts delete mode 100644 src/solutions/bookingBusinesses/item/appointments/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/solutions/bookingBusinesses/item/calendarView/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/solutions/bookingBusinesses/item/getStaffAvailability/getStaffAvailabilityPostRequestBody.ts delete mode 100644 src/solutions/bookingBusinesses/item/getStaffAvailability/getStaffAvailabilityPostResponse.ts delete mode 100644 src/solutions/virtualEvents/webinars/getByUserIdAndRoleWithUserIdWithRole/getByUserIdAndRoleWithUserIdWithRoleGetResponse.ts delete mode 100644 src/teams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts delete mode 100644 src/teams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/teams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/teams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/teams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/teams/item/clone/clonePostRequestBody.ts delete mode 100644 src/teams/item/installedApps/item/upgrade/upgradePostRequestBody.ts delete mode 100644 src/teams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts delete mode 100644 src/teams/item/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/teams/item/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/teams/item/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/teams/item/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/teams/item/schedule/share/sharePostRequestBody.ts delete mode 100644 src/teams/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts delete mode 100644 src/teamwork/deletedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts delete mode 100644 src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/teamwork/deletedTeams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/teamwork/deletedTeams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/users/getByIds/getByIdsPostRequestBody.ts delete mode 100644 src/users/item/authentication/methods/item/resetPassword/resetPasswordPostRequestBody.ts delete mode 100644 src/users/item/calendar/calendarView/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendar/calendarView/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendar/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendar/calendarView/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendar/events/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendar/events/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendar/events/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendar/events/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendar/getSchedule/getSchedulePostResponse.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/calendarView/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/calendarView/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/events/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/events/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendarGroups/item/calendars/item/getSchedule/getSchedulePostResponse.ts delete mode 100644 src/users/item/calendarView/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendarView/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/calendarView/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/calendarView/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/events/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/events/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/events/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/events/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/calendars/item/getSchedule/getSchedulePostResponse.ts delete mode 100644 src/users/item/chats/item/hideForUser/hideForUserPostRequestBody.ts delete mode 100644 src/users/item/chats/item/installedApps/item/upgrade/upgradePostRequestBody.ts delete mode 100644 src/users/item/chats/item/markChatReadForUser/markChatReadForUserPostRequestBody.ts delete mode 100644 src/users/item/chats/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/users/item/chats/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/users/item/chats/item/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/users/item/chats/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/users/item/chats/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts delete mode 100644 src/users/item/chats/item/unhideForUser/unhideForUserPostRequestBody.ts delete mode 100644 src/users/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts delete mode 100644 src/users/item/events/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/events/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/events/item/instances/item/cancel/cancelPostRequestBody.ts delete mode 100644 src/users/item/events/item/instances/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/findMeetingTimes/findMeetingTimesPostRequestBody.ts delete mode 100644 src/users/item/getMailTips/getMailTipsPostRequestBody.ts delete mode 100644 src/users/item/getManagedDevicesWithAppFailures/getManagedDevicesWithAppFailuresGetResponse.ts delete mode 100644 src/users/item/getMemberGroups/getMemberGroupsPostResponse.ts delete mode 100644 src/users/item/joinedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts delete mode 100644 src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/clone/clonePostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/installedApps/item/upgrade/upgradePostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts delete mode 100644 src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/schedule/share/sharePostRequestBody.ts delete mode 100644 src/users/item/joinedTeams/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/childFolders/item/messages/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/childFolders/item/messages/item/move/movePostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/childFolders/item/messages/item/reply/replyPostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/childFolders/item/move/movePostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/messages/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/messages/item/move/movePostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/messages/item/reply/replyPostRequestBody.ts delete mode 100644 src/users/item/mailFolders/item/move/movePostRequestBody.ts delete mode 100644 src/users/item/managedDevices/item/cleanWindowsDevice/cleanWindowsDevicePostRequestBody.ts delete mode 100644 src/users/item/managedDevices/item/deleteUserFromSharedAppleDevice/deleteUserFromSharedAppleDevicePostRequestBody.ts delete mode 100644 src/users/item/managedDevices/item/logCollectionRequests/item/createDownloadUrl/createDownloadUrlPostResponse.ts delete mode 100644 src/users/item/managedDevices/item/updateWindowsDeviceAccount/updateWindowsDeviceAccountPostRequestBody.ts delete mode 100644 src/users/item/managedDevices/item/windowsDefenderScan/windowsDefenderScanPostRequestBody.ts delete mode 100644 src/users/item/managedDevices/item/wipe/wipePostRequestBody.ts delete mode 100644 src/users/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts delete mode 100644 src/users/item/messages/item/forward/forwardPostRequestBody.ts delete mode 100644 src/users/item/messages/item/move/movePostRequestBody.ts delete mode 100644 src/users/item/messages/item/reply/replyPostRequestBody.ts delete mode 100644 src/users/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts delete mode 100644 src/users/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts delete mode 100644 src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/users/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/users/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/users/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/users/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/users/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/users/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts delete mode 100644 src/users/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts delete mode 100644 src/users/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts delete mode 100644 src/users/item/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/getVirtualAppointmentJoinWebUrlGetResponse.ts delete mode 100644 src/users/item/outlook/supportedLanguages/supportedLanguagesGetResponse.ts delete mode 100644 src/users/item/outlook/supportedTimeZonesWithTimeZoneStandard/supportedTimeZonesWithTimeZoneStandardGetResponse.ts delete mode 100644 src/users/item/presence/clearPresence/clearPresencePostRequestBody.ts delete mode 100644 src/users/item/presence/setPresence/setPresencePostRequestBody.ts delete mode 100644 src/users/item/reminderViewWithStartDateTimeWithEndDateTime/reminderViewWithStartDateTimeWithEndDateTimeGetResponse.ts delete mode 100644 src/users/item/revokeSignInSessions/revokeSignInSessionsPostResponse.ts delete mode 100644 src/users/item/teamwork/sendActivityNotification/sendActivityNotificationPostRequestBody.ts delete mode 100644 src/users/item/translateExchangeIds/translateExchangeIdsPostRequestBody.ts delete mode 100644 src/users/item/translateExchangeIds/translateExchangeIdsPostResponse.ts delete mode 100644 src/users/item/wipeManagedAppRegistrationsByDeviceTag/wipeManagedAppRegistrationsByDeviceTagPostRequestBody.ts diff --git a/src/admin/edge/index.ts b/src/admin/edge/index.ts index 3bb95fb2045..d12fa4a8623 100644 --- a/src/admin/edge/index.ts +++ b/src/admin/edge/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createEdgeFromDiscriminatorValue, deserializeIntoEdge, serializeEdge, type Edge } from '../../models/edge'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { InternetExplorerModeRequestBuilder } from './internetExplorerMode/'; +import { InternetExplorerModeRequestBuilder } from './internetExplorerMode'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdgeRequestBuilderGetQueryParameters { diff --git a/src/admin/edge/internetExplorerMode/index.ts b/src/admin/edge/internetExplorerMode/index.ts index 6136433c992..ad38022ec7c 100644 --- a/src/admin/edge/internetExplorerMode/index.ts +++ b/src/admin/edge/internetExplorerMode/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createInternetExplorerModeFromDiscriminatorValue, deserializeIntoInternetExplorerMode, serializeInternetExplorerMode, type InternetExplorerMode } from '../../../models/internetExplorerMode'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { SiteListsRequestBuilder } from './siteLists/'; +import { SiteListsRequestBuilder } from './siteLists'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InternetExplorerModeRequestBuilderGetQueryParameters { diff --git a/src/admin/edge/internetExplorerMode/siteLists/count/index.ts b/src/admin/edge/internetExplorerMode/siteLists/count/index.ts index afffbdb4aee..2643aa5bf8c 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/count/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/edge/internetExplorerMode/siteLists/index.ts b/src/admin/edge/internetExplorerMode/siteLists/index.ts index da2b1f43962..ac188e13b2f 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BrowserSiteListCollectionResponse } from '../../../../models/'; +import { type BrowserSiteListCollectionResponse } from '../../../../models'; import { createBrowserSiteListFromDiscriminatorValue, deserializeIntoBrowserSiteList, serializeBrowserSiteList, type BrowserSiteList } from '../../../../models/browserSiteList'; import { createBrowserSiteListCollectionResponseFromDiscriminatorValue } from '../../../../models/browserSiteListCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BrowserSiteListItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BrowserSiteListItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SiteListsRequestBuilderGetQueryParameters { diff --git a/src/admin/edge/internetExplorerMode/siteLists/item/index.ts b/src/admin/edge/internetExplorerMode/siteLists/item/index.ts index 72bc6dd6eb4..3730742c9a6 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/item/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createBrowserSiteListFromDiscriminatorValue, deserializeIntoBrowserSiteList, serializeBrowserSiteList, type BrowserSiteList } from '../../../../../models/browserSiteList'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { PublishRequestBuilder } from './publish/'; -import { SharedCookiesRequestBuilder } from './sharedCookies/'; -import { SitesRequestBuilder } from './sites/'; +import { PublishRequestBuilder } from './publish'; +import { SharedCookiesRequestBuilder } from './sharedCookies'; +import { SitesRequestBuilder } from './sites'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BrowserSiteListItemRequestBuilderGetQueryParameters { diff --git a/src/admin/edge/internetExplorerMode/siteLists/item/publish/index.ts b/src/admin/edge/internetExplorerMode/siteLists/item/publish/index.ts index e65d9446a75..29b9b243d0e 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/item/publish/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/item/publish/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { createBrowserSharedCookieFromDiscriminatorValue, serializeBrowserSharedCookie, type BrowserSharedCookie } from '../../../../../../models/browserSharedCookie'; import { createBrowserSiteFromDiscriminatorValue, serializeBrowserSite, type BrowserSite } from '../../../../../../models/browserSite'; -import { createBrowserSiteListFromDiscriminatorValue, deserializeIntoBrowserSiteList, serializeBrowserSiteList, type BrowserSiteList } from '../../../../../../models/browserSiteList'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPublishPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -43,58 +40,5 @@ export function serializePublishPostRequestBody(writer: SerializationWriter, pub writer.writeCollectionOfObjectValues("sites", publishPostRequestBody.sites, serializeBrowserSite); writer.writeAdditionalData(publishPostRequestBody.additionalData); } -/** - * Provides operations to call the publish method. - */ -export class PublishRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new PublishRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/publish"); - }; - /** - * Publish the specified browserSiteList for devices to download. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of BrowserSiteList - * @see {@link https://learn.microsoft.com/graph/api/browsersitelist-publish?view=graph-rest-1.0|Find more info here} - */ - public post(body: PublishPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createBrowserSiteListFromDiscriminatorValue, errorMapping); - }; - /** - * Publish the specified browserSiteList for devices to download. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: PublishPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePublishPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a publishRequestBuilder - */ - public withUrl(rawUrl: string) : PublishRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new PublishRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/count/index.ts b/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/count/index.ts index 9898a845f33..845d3069979 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/count/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/index.ts b/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/index.ts index 639e0c6fa84..99b405ab8b4 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BrowserSharedCookieCollectionResponse } from '../../../../../../models/'; +import { type BrowserSharedCookieCollectionResponse } from '../../../../../../models'; import { createBrowserSharedCookieFromDiscriminatorValue, deserializeIntoBrowserSharedCookie, serializeBrowserSharedCookie, type BrowserSharedCookie } from '../../../../../../models/browserSharedCookie'; import { createBrowserSharedCookieCollectionResponseFromDiscriminatorValue } from '../../../../../../models/browserSharedCookieCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BrowserSharedCookieItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BrowserSharedCookieItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedCookiesRequestBuilderGetQueryParameters { diff --git a/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/item/index.ts b/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/item/index.ts index 0ed1397c340..bebc99d6aa7 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/item/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/item/sharedCookies/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createBrowserSharedCookieFromDiscriminatorValue, deserializeIntoBrowserSharedCookie, serializeBrowserSharedCookie, type BrowserSharedCookie } from '../../../../../../../models/browserSharedCookie'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/edge/internetExplorerMode/siteLists/item/sites/count/index.ts b/src/admin/edge/internetExplorerMode/siteLists/item/sites/count/index.ts index e1bdb3b934a..3cc67451c6e 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/item/sites/count/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/item/sites/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/edge/internetExplorerMode/siteLists/item/sites/index.ts b/src/admin/edge/internetExplorerMode/siteLists/item/sites/index.ts index f8b11990ca9..fb1db7d1456 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/item/sites/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/item/sites/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BrowserSiteCollectionResponse } from '../../../../../../models/'; +import { type BrowserSiteCollectionResponse } from '../../../../../../models'; import { createBrowserSiteFromDiscriminatorValue, deserializeIntoBrowserSite, serializeBrowserSite, type BrowserSite } from '../../../../../../models/browserSite'; import { createBrowserSiteCollectionResponseFromDiscriminatorValue } from '../../../../../../models/browserSiteCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BrowserSiteItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BrowserSiteItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SitesRequestBuilderGetQueryParameters { diff --git a/src/admin/edge/internetExplorerMode/siteLists/item/sites/item/index.ts b/src/admin/edge/internetExplorerMode/siteLists/item/sites/item/index.ts index 3929b87f09b..3e39e0fcef0 100644 --- a/src/admin/edge/internetExplorerMode/siteLists/item/sites/item/index.ts +++ b/src/admin/edge/internetExplorerMode/siteLists/item/sites/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createBrowserSiteFromDiscriminatorValue, deserializeIntoBrowserSite, serializeBrowserSite, type BrowserSite } from '../../../../../../../models/browserSite'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/index.ts b/src/admin/index.ts index 142335368e6..18027ed565b 100644 --- a/src/admin/index.ts +++ b/src/admin/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createAdminFromDiscriminatorValue, deserializeIntoAdmin, serializeAdmin, type Admin } from '../models/admin'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { EdgeRequestBuilder } from './edge/'; -import { PeopleRequestBuilder } from './people/'; -import { ServiceAnnouncementRequestBuilder } from './serviceAnnouncement/'; -import { SharepointRequestBuilder } from './sharepoint/'; +import { EdgeRequestBuilder } from './edge'; +import { PeopleRequestBuilder } from './people'; +import { ServiceAnnouncementRequestBuilder } from './serviceAnnouncement'; +import { SharepointRequestBuilder } from './sharepoint'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AdminRequestBuilderGetQueryParameters { diff --git a/src/admin/people/index.ts b/src/admin/people/index.ts index 4dc4cc84bb2..e078e665da1 100644 --- a/src/admin/people/index.ts +++ b/src/admin/people/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPeopleAdminSettingsFromDiscriminatorValue, deserializeIntoPeopleAdminSettings, serializePeopleAdminSettings, type PeopleAdminSettings } from '../../models/peopleAdminSettings'; -import { ProfileCardPropertiesRequestBuilder } from './profileCardProperties/'; +import { ProfileCardPropertiesRequestBuilder } from './profileCardProperties'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PeopleRequestBuilderGetQueryParameters { diff --git a/src/admin/people/profileCardProperties/count/index.ts b/src/admin/people/profileCardProperties/count/index.ts index e800c1dc725..c2a18664dd2 100644 --- a/src/admin/people/profileCardProperties/count/index.ts +++ b/src/admin/people/profileCardProperties/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/people/profileCardProperties/index.ts b/src/admin/people/profileCardProperties/index.ts index 24b52d6586b..0fe5783a3da 100644 --- a/src/admin/people/profileCardProperties/index.ts +++ b/src/admin/people/profileCardProperties/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProfileCardPropertyCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ProfileCardPropertyCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createProfileCardPropertyFromDiscriminatorValue, deserializeIntoProfileCardProperty, serializeProfileCardProperty, type ProfileCardProperty } from '../../../models/profileCardProperty'; import { createProfileCardPropertyCollectionResponseFromDiscriminatorValue } from '../../../models/profileCardPropertyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ProfileCardPropertyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ProfileCardPropertyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ProfileCardPropertiesRequestBuilderGetQueryParameters { diff --git a/src/admin/people/profileCardProperties/item/index.ts b/src/admin/people/profileCardProperties/item/index.ts index f95d2917e33..4be552521d1 100644 --- a/src/admin/people/profileCardProperties/item/index.ts +++ b/src/admin/people/profileCardProperties/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createProfileCardPropertyFromDiscriminatorValue, deserializeIntoProfileCardProperty, serializeProfileCardProperty, type ProfileCardProperty } from '../../../../models/profileCardProperty'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/healthOverviews/count/index.ts b/src/admin/serviceAnnouncement/healthOverviews/count/index.ts index c207523711e..3276d34fa8a 100644 --- a/src/admin/serviceAnnouncement/healthOverviews/count/index.ts +++ b/src/admin/serviceAnnouncement/healthOverviews/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/healthOverviews/index.ts b/src/admin/serviceAnnouncement/healthOverviews/index.ts index 63353638f89..dd03ee77c34 100644 --- a/src/admin/serviceAnnouncement/healthOverviews/index.ts +++ b/src/admin/serviceAnnouncement/healthOverviews/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceHealthCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ServiceHealthCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createServiceHealthFromDiscriminatorValue, deserializeIntoServiceHealth, serializeServiceHealth, type ServiceHealth } from '../../../models/serviceHealth'; import { createServiceHealthCollectionResponseFromDiscriminatorValue } from '../../../models/serviceHealthCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ServiceHealthItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ServiceHealthItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HealthOverviewsRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/healthOverviews/item/index.ts b/src/admin/serviceAnnouncement/healthOverviews/item/index.ts index 4ae64b48d44..7f61140bb9f 100644 --- a/src/admin/serviceAnnouncement/healthOverviews/item/index.ts +++ b/src/admin/serviceAnnouncement/healthOverviews/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceHealthFromDiscriminatorValue, deserializeIntoServiceHealth, serializeServiceHealth, type ServiceHealth } from '../../../../models/serviceHealth'; -import { IssuesRequestBuilder } from './issues/'; +import { IssuesRequestBuilder } from './issues'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceHealthItemRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/healthOverviews/item/issues/count/index.ts b/src/admin/serviceAnnouncement/healthOverviews/item/issues/count/index.ts index 551d5c33415..acc8dbd2bb5 100644 --- a/src/admin/serviceAnnouncement/healthOverviews/item/issues/count/index.ts +++ b/src/admin/serviceAnnouncement/healthOverviews/item/issues/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/healthOverviews/item/issues/index.ts b/src/admin/serviceAnnouncement/healthOverviews/item/issues/index.ts index 85f066fc7f4..4b09f1e6c02 100644 --- a/src/admin/serviceAnnouncement/healthOverviews/item/issues/index.ts +++ b/src/admin/serviceAnnouncement/healthOverviews/item/issues/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceHealthIssueCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceHealthIssueCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceHealthIssueFromDiscriminatorValue, deserializeIntoServiceHealthIssue, serializeServiceHealthIssue, type ServiceHealthIssue } from '../../../../../models/serviceHealthIssue'; import { createServiceHealthIssueCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceHealthIssueCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ServiceHealthIssueItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ServiceHealthIssueItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IssuesRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/healthOverviews/item/issues/item/incidentReport/index.ts b/src/admin/serviceAnnouncement/healthOverviews/item/issues/item/incidentReport/index.ts index 18bdf2a0de1..15bab3941f0 100644 --- a/src/admin/serviceAnnouncement/healthOverviews/item/issues/item/incidentReport/index.ts +++ b/src/admin/serviceAnnouncement/healthOverviews/item/issues/item/incidentReport/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/healthOverviews/item/issues/item/index.ts b/src/admin/serviceAnnouncement/healthOverviews/item/issues/item/index.ts index a06eb9fe32a..1f24d09be7d 100644 --- a/src/admin/serviceAnnouncement/healthOverviews/item/issues/item/index.ts +++ b/src/admin/serviceAnnouncement/healthOverviews/item/issues/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceHealthIssueFromDiscriminatorValue, deserializeIntoServiceHealthIssue, serializeServiceHealthIssue, type ServiceHealthIssue } from '../../../../../../models/serviceHealthIssue'; -import { IncidentReportRequestBuilder } from './incidentReport/'; +import { IncidentReportRequestBuilder } from './incidentReport'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceHealthIssueItemRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/index.ts b/src/admin/serviceAnnouncement/index.ts index 98356c9784a..69b1f79c659 100644 --- a/src/admin/serviceAnnouncement/index.ts +++ b/src/admin/serviceAnnouncement/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createServiceAnnouncementFromDiscriminatorValue, deserializeIntoServiceAnnouncement, serializeServiceAnnouncement, type ServiceAnnouncement } from '../../models/serviceAnnouncement'; -import { HealthOverviewsRequestBuilder } from './healthOverviews/'; -import { IssuesRequestBuilder } from './issues/'; -import { MessagesRequestBuilder } from './messages/'; +import { HealthOverviewsRequestBuilder } from './healthOverviews'; +import { IssuesRequestBuilder } from './issues'; +import { MessagesRequestBuilder } from './messages'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceAnnouncementRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/issues/count/index.ts b/src/admin/serviceAnnouncement/issues/count/index.ts index b22724ced2d..be05505e50d 100644 --- a/src/admin/serviceAnnouncement/issues/count/index.ts +++ b/src/admin/serviceAnnouncement/issues/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/issues/index.ts b/src/admin/serviceAnnouncement/issues/index.ts index f74f96b71b1..2e9f8337d9d 100644 --- a/src/admin/serviceAnnouncement/issues/index.ts +++ b/src/admin/serviceAnnouncement/issues/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceHealthIssueCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ServiceHealthIssueCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createServiceHealthIssueFromDiscriminatorValue, deserializeIntoServiceHealthIssue, serializeServiceHealthIssue, type ServiceHealthIssue } from '../../../models/serviceHealthIssue'; import { createServiceHealthIssueCollectionResponseFromDiscriminatorValue } from '../../../models/serviceHealthIssueCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ServiceHealthIssueItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ServiceHealthIssueItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IssuesRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/issues/item/incidentReport/index.ts b/src/admin/serviceAnnouncement/issues/item/incidentReport/index.ts index 1a4af41961a..7cbe488b122 100644 --- a/src/admin/serviceAnnouncement/issues/item/incidentReport/index.ts +++ b/src/admin/serviceAnnouncement/issues/item/incidentReport/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/issues/item/index.ts b/src/admin/serviceAnnouncement/issues/item/index.ts index b8f622e2a11..707c7837730 100644 --- a/src/admin/serviceAnnouncement/issues/item/index.ts +++ b/src/admin/serviceAnnouncement/issues/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceHealthIssueFromDiscriminatorValue, deserializeIntoServiceHealthIssue, serializeServiceHealthIssue, type ServiceHealthIssue } from '../../../../models/serviceHealthIssue'; -import { IncidentReportRequestBuilder } from './incidentReport/'; +import { IncidentReportRequestBuilder } from './incidentReport'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceHealthIssueItemRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/messages/archive/index.ts b/src/admin/serviceAnnouncement/messages/archive/index.ts index eab370afe8e..dbe5c86350e 100644 --- a/src/admin/serviceAnnouncement/messages/archive/index.ts +++ b/src/admin/serviceAnnouncement/messages/archive/index.ts @@ -1,20 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface ArchivePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The messageIds property - */ - messageIds?: string[]; -} export interface ArchivePostResponse extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -25,84 +13,18 @@ export interface ArchivePostResponse extends AdditionalDataHolder, Parsable { */ value?: boolean; } -export function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoArchivePostRequestBody; -} export function createArchivePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoArchivePostResponse; } -export function deserializeIntoArchivePostRequestBody(archivePostRequestBody: ArchivePostRequestBody | undefined = {} as ArchivePostRequestBody) : Record void> { - return { - "messageIds": n => { archivePostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoArchivePostResponse(archivePostResponse: ArchivePostResponse | undefined = {} as ArchivePostResponse) : Record void> { return { "value": n => { archivePostResponse.value = n.getBooleanValue(); }, } } -export function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody: ArchivePostRequestBody | undefined = {} as ArchivePostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("messageIds", archivePostRequestBody.messageIds); - writer.writeAdditionalData(archivePostRequestBody.additionalData); -} export function serializeArchivePostResponse(writer: SerializationWriter, archivePostResponse: ArchivePostResponse | undefined = {} as ArchivePostResponse) : void { writer.writeBooleanValue("value", archivePostResponse.value); writer.writeAdditionalData(archivePostResponse.additionalData); } -/** - * Provides operations to call the archive method. - */ -export class ArchiveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ArchiveRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/archive"); - }; - /** - * Archive a list of serviceUpdateMessages for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ArchivePostResponse - * @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0|Find more info here} - */ - public post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createArchivePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Archive a list of serviceUpdateMessages for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeArchivePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a archiveRequestBuilder - */ - public withUrl(rawUrl: string) : ArchiveRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ArchiveRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/admin/serviceAnnouncement/messages/count/index.ts b/src/admin/serviceAnnouncement/messages/count/index.ts index 8d39b5cc073..8e90dee2b81 100644 --- a/src/admin/serviceAnnouncement/messages/count/index.ts +++ b/src/admin/serviceAnnouncement/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/messages/favorite/favoritePostResponse.ts b/src/admin/serviceAnnouncement/messages/favorite/favoritePostResponse.ts deleted file mode 100644 index b11b0c7dd9b..00000000000 --- a/src/admin/serviceAnnouncement/messages/favorite/favoritePostResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFavoritePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFavoritePostResponse; -} -export function deserializeIntoFavoritePostResponse(favoritePostResponse: FavoritePostResponse | undefined = {} as FavoritePostResponse) : Record void> { - return { - "value": n => { favoritePostResponse.value = n.getBooleanValue(); }, - } -} -export interface FavoritePostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeFavoritePostResponse(writer: SerializationWriter, favoritePostResponse: FavoritePostResponse | undefined = {} as FavoritePostResponse) : void { - writer.writeBooleanValue("value", favoritePostResponse.value); - writer.writeAdditionalData(favoritePostResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/admin/serviceAnnouncement/messages/favorite/index.ts b/src/admin/serviceAnnouncement/messages/favorite/index.ts index 66704f52cd7..6b0918a7f45 100644 --- a/src/admin/serviceAnnouncement/messages/favorite/index.ts +++ b/src/admin/serviceAnnouncement/messages/favorite/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFavoritePostResponseFromDiscriminatorValue, deserializeIntoFavoritePostResponse, serializeFavoritePostResponse, type FavoritePostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFavoritePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeFavoritePostRequestBody(writer: SerializationWriter, fa writer.writeCollectionOfPrimitiveValues("messageIds", favoritePostRequestBody.messageIds); writer.writeAdditionalData(favoritePostRequestBody.additionalData); } -/** - * Provides operations to call the favorite method. - */ -export class FavoriteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FavoriteRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/favorite"); - }; - /** - * Change the status of a list of serviceUpdateMessages to favorite for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of FavoritePostResponse - * @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0|Find more info here} - */ - public post(body: FavoritePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createFavoritePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Change the status of a list of serviceUpdateMessages to favorite for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: FavoritePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeFavoritePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a favoriteRequestBuilder - */ - public withUrl(rawUrl: string) : FavoriteRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FavoriteRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/admin/serviceAnnouncement/messages/index.ts b/src/admin/serviceAnnouncement/messages/index.ts index 9b1bc532685..4072cd8d005 100644 --- a/src/admin/serviceAnnouncement/messages/index.ts +++ b/src/admin/serviceAnnouncement/messages/index.ts @@ -1,19 +1,19 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceUpdateMessageCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ServiceUpdateMessageCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createServiceUpdateMessageFromDiscriminatorValue, deserializeIntoServiceUpdateMessage, serializeServiceUpdateMessage, type ServiceUpdateMessage } from '../../../models/serviceUpdateMessage'; import { createServiceUpdateMessageCollectionResponseFromDiscriminatorValue } from '../../../models/serviceUpdateMessageCollectionResponse'; -import { ArchiveRequestBuilder } from './archive/'; -import { CountRequestBuilder } from './count/'; -import { FavoriteRequestBuilder } from './favorite/'; -import { ServiceUpdateMessageItemRequestBuilder } from './item/'; -import { MarkReadRequestBuilder } from './markRead/'; -import { MarkUnreadRequestBuilder } from './markUnread/'; -import { UnarchiveRequestBuilder } from './unarchive/'; -import { UnfavoriteRequestBuilder } from './unfavorite/'; +import { ArchiveRequestBuilder } from './archive'; +import { CountRequestBuilder } from './count'; +import { FavoriteRequestBuilder } from './favorite'; +import { ServiceUpdateMessageItemRequestBuilder } from './item'; +import { MarkReadRequestBuilder } from './markRead'; +import { MarkUnreadRequestBuilder } from './markUnread'; +import { UnarchiveRequestBuilder } from './unarchive'; +import { UnfavoriteRequestBuilder } from './unfavorite'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/messages/item/attachments/count/index.ts b/src/admin/serviceAnnouncement/messages/item/attachments/count/index.ts index f0221baf4c2..bd14b672036 100644 --- a/src/admin/serviceAnnouncement/messages/item/attachments/count/index.ts +++ b/src/admin/serviceAnnouncement/messages/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/messages/item/attachments/index.ts b/src/admin/serviceAnnouncement/messages/item/attachments/index.ts index 14a13e3b9f7..afb4cfdafde 100644 --- a/src/admin/serviceAnnouncement/messages/item/attachments/index.ts +++ b/src/admin/serviceAnnouncement/messages/item/attachments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceAnnouncementAttachmentCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceAnnouncementAttachmentCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceAnnouncementAttachmentFromDiscriminatorValue, deserializeIntoServiceAnnouncementAttachment, serializeServiceAnnouncementAttachment, type ServiceAnnouncementAttachment } from '../../../../../models/serviceAnnouncementAttachment'; import { createServiceAnnouncementAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceAnnouncementAttachmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ServiceAnnouncementAttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ServiceAnnouncementAttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/messages/item/attachments/item/content/index.ts b/src/admin/serviceAnnouncement/messages/item/attachments/item/content/index.ts index 22f11142062..85eb17822ca 100644 --- a/src/admin/serviceAnnouncement/messages/item/attachments/item/content/index.ts +++ b/src/admin/serviceAnnouncement/messages/item/attachments/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceAnnouncementAttachment } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceAnnouncementAttachment } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceAnnouncementAttachmentFromDiscriminatorValue } from '../../../../../../../models/serviceAnnouncementAttachment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/messages/item/attachments/item/index.ts b/src/admin/serviceAnnouncement/messages/item/attachments/item/index.ts index e75456a1811..5a4bcd95858 100644 --- a/src/admin/serviceAnnouncement/messages/item/attachments/item/index.ts +++ b/src/admin/serviceAnnouncement/messages/item/attachments/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceAnnouncementAttachmentFromDiscriminatorValue, deserializeIntoServiceAnnouncementAttachment, serializeServiceAnnouncementAttachment, type ServiceAnnouncementAttachment } from '../../../../../../models/serviceAnnouncementAttachment'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/messages/item/attachmentsArchive/index.ts b/src/admin/serviceAnnouncement/messages/item/attachmentsArchive/index.ts index 54b2996f5d9..c1f6eade58b 100644 --- a/src/admin/serviceAnnouncement/messages/item/attachmentsArchive/index.ts +++ b/src/admin/serviceAnnouncement/messages/item/attachmentsArchive/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/admin/serviceAnnouncement/messages/item/index.ts b/src/admin/serviceAnnouncement/messages/item/index.ts index 6352a427521..9495ce6386f 100644 --- a/src/admin/serviceAnnouncement/messages/item/index.ts +++ b/src/admin/serviceAnnouncement/messages/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceUpdateMessageFromDiscriminatorValue, deserializeIntoServiceUpdateMessage, serializeServiceUpdateMessage, type ServiceUpdateMessage } from '../../../../models/serviceUpdateMessage'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { AttachmentsArchiveRequestBuilder } from './attachmentsArchive/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { AttachmentsArchiveRequestBuilder } from './attachmentsArchive'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceUpdateMessageItemRequestBuilderGetQueryParameters { diff --git a/src/admin/serviceAnnouncement/messages/markRead/index.ts b/src/admin/serviceAnnouncement/messages/markRead/index.ts index ec973952cac..24e159b112b 100644 --- a/src/admin/serviceAnnouncement/messages/markRead/index.ts +++ b/src/admin/serviceAnnouncement/messages/markRead/index.ts @@ -1,28 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMarkReadPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoMarkReadPostRequestBody; } -export function createMarkReadPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMarkReadPostResponse; -} export function deserializeIntoMarkReadPostRequestBody(markReadPostRequestBody: MarkReadPostRequestBody | undefined = {} as MarkReadPostRequestBody) : Record void> { return { "messageIds": n => { markReadPostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); }, } } -export function deserializeIntoMarkReadPostResponse(markReadPostResponse: MarkReadPostResponse | undefined = {} as MarkReadPostResponse) : Record void> { - return { - "value": n => { markReadPostResponse.value = n.getBooleanValue(); }, - } -} export interface MarkReadPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -33,76 +22,9 @@ export interface MarkReadPostRequestBody extends AdditionalDataHolder, Parsable */ messageIds?: string[]; } -export interface MarkReadPostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} export function serializeMarkReadPostRequestBody(writer: SerializationWriter, markReadPostRequestBody: MarkReadPostRequestBody | undefined = {} as MarkReadPostRequestBody) : void { writer.writeCollectionOfPrimitiveValues("messageIds", markReadPostRequestBody.messageIds); writer.writeAdditionalData(markReadPostRequestBody.additionalData); } -export function serializeMarkReadPostResponse(writer: SerializationWriter, markReadPostResponse: MarkReadPostResponse | undefined = {} as MarkReadPostResponse) : void { - writer.writeBooleanValue("value", markReadPostResponse.value); - writer.writeAdditionalData(markReadPostResponse.additionalData); -} -/** - * Provides operations to call the markRead method. - */ -export class MarkReadRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MarkReadRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/markRead"); - }; - /** - * Mark a list of serviceUpdateMessages as read for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of MarkReadPostResponse - * @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-markread?view=graph-rest-1.0|Find more info here} - */ - public post(body: MarkReadPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMarkReadPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Mark a list of serviceUpdateMessages as read for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MarkReadPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMarkReadPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a markReadRequestBuilder - */ - public withUrl(rawUrl: string) : MarkReadRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MarkReadRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/admin/serviceAnnouncement/messages/markUnread/index.ts b/src/admin/serviceAnnouncement/messages/markUnread/index.ts index 74d79322111..bfacc72a240 100644 --- a/src/admin/serviceAnnouncement/messages/markUnread/index.ts +++ b/src/admin/serviceAnnouncement/messages/markUnread/index.ts @@ -1,38 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export function createMarkUnreadPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMarkUnreadPostRequestBody; -} export function createMarkUnreadPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoMarkUnreadPostResponse; } -export function deserializeIntoMarkUnreadPostRequestBody(markUnreadPostRequestBody: MarkUnreadPostRequestBody | undefined = {} as MarkUnreadPostRequestBody) : Record void> { - return { - "messageIds": n => { markUnreadPostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoMarkUnreadPostResponse(markUnreadPostResponse: MarkUnreadPostResponse | undefined = {} as MarkUnreadPostResponse) : Record void> { return { "value": n => { markUnreadPostResponse.value = n.getBooleanValue(); }, } } -export interface MarkUnreadPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The messageIds property - */ - messageIds?: string[]; -} export interface MarkUnreadPostResponse extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -43,66 +22,9 @@ export interface MarkUnreadPostResponse extends AdditionalDataHolder, Parsable { */ value?: boolean; } -export function serializeMarkUnreadPostRequestBody(writer: SerializationWriter, markUnreadPostRequestBody: MarkUnreadPostRequestBody | undefined = {} as MarkUnreadPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("messageIds", markUnreadPostRequestBody.messageIds); - writer.writeAdditionalData(markUnreadPostRequestBody.additionalData); -} export function serializeMarkUnreadPostResponse(writer: SerializationWriter, markUnreadPostResponse: MarkUnreadPostResponse | undefined = {} as MarkUnreadPostResponse) : void { writer.writeBooleanValue("value", markUnreadPostResponse.value); writer.writeAdditionalData(markUnreadPostResponse.additionalData); } -/** - * Provides operations to call the markUnread method. - */ -export class MarkUnreadRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MarkUnreadRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/markUnread"); - }; - /** - * Mark a list of serviceUpdateMessages as unread for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of MarkUnreadPostResponse - * @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-markunread?view=graph-rest-1.0|Find more info here} - */ - public post(body: MarkUnreadPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMarkUnreadPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Mark a list of serviceUpdateMessages as unread for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MarkUnreadPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMarkUnreadPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a markUnreadRequestBuilder - */ - public withUrl(rawUrl: string) : MarkUnreadRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MarkUnreadRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/admin/serviceAnnouncement/messages/unarchive/index.ts b/src/admin/serviceAnnouncement/messages/unarchive/index.ts index 75b8af08939..fa8d10ca172 100644 --- a/src/admin/serviceAnnouncement/messages/unarchive/index.ts +++ b/src/admin/serviceAnnouncement/messages/unarchive/index.ts @@ -1,46 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export function createUnarchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnarchivePostRequestBody; -} export function createUnarchivePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoUnarchivePostResponse; } -export function deserializeIntoUnarchivePostRequestBody(unarchivePostRequestBody: UnarchivePostRequestBody | undefined = {} as UnarchivePostRequestBody) : Record void> { - return { - "messageIds": n => { unarchivePostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoUnarchivePostResponse(unarchivePostResponse: UnarchivePostResponse | undefined = {} as UnarchivePostResponse) : Record void> { return { "value": n => { unarchivePostResponse.value = n.getBooleanValue(); }, } } -export function serializeUnarchivePostRequestBody(writer: SerializationWriter, unarchivePostRequestBody: UnarchivePostRequestBody | undefined = {} as UnarchivePostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("messageIds", unarchivePostRequestBody.messageIds); - writer.writeAdditionalData(unarchivePostRequestBody.additionalData); -} export function serializeUnarchivePostResponse(writer: SerializationWriter, unarchivePostResponse: UnarchivePostResponse | undefined = {} as UnarchivePostResponse) : void { writer.writeBooleanValue("value", unarchivePostResponse.value); writer.writeAdditionalData(unarchivePostResponse.additionalData); } -export interface UnarchivePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The messageIds property - */ - messageIds?: string[]; -} export interface UnarchivePostResponse extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -51,58 +26,5 @@ export interface UnarchivePostResponse extends AdditionalDataHolder, Parsable { */ value?: boolean; } -/** - * Provides operations to call the unarchive method. - */ -export class UnarchiveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new UnarchiveRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/unarchive"); - }; - /** - * Unarchive a list of serviceUpdateMessages for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UnarchivePostResponse - * @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-unarchive?view=graph-rest-1.0|Find more info here} - */ - public post(body: UnarchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUnarchivePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Unarchive a list of serviceUpdateMessages for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: UnarchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUnarchivePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a unarchiveRequestBuilder - */ - public withUrl(rawUrl: string) : UnarchiveRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new UnarchiveRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/admin/serviceAnnouncement/messages/unfavorite/index.ts b/src/admin/serviceAnnouncement/messages/unfavorite/index.ts index d1427277f9f..03d9846ac3b 100644 --- a/src/admin/serviceAnnouncement/messages/unfavorite/index.ts +++ b/src/admin/serviceAnnouncement/messages/unfavorite/index.ts @@ -1,46 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export function createUnfavoritePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnfavoritePostRequestBody; -} export function createUnfavoritePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoUnfavoritePostResponse; } -export function deserializeIntoUnfavoritePostRequestBody(unfavoritePostRequestBody: UnfavoritePostRequestBody | undefined = {} as UnfavoritePostRequestBody) : Record void> { - return { - "messageIds": n => { unfavoritePostRequestBody.messageIds = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoUnfavoritePostResponse(unfavoritePostResponse: UnfavoritePostResponse | undefined = {} as UnfavoritePostResponse) : Record void> { return { "value": n => { unfavoritePostResponse.value = n.getBooleanValue(); }, } } -export function serializeUnfavoritePostRequestBody(writer: SerializationWriter, unfavoritePostRequestBody: UnfavoritePostRequestBody | undefined = {} as UnfavoritePostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("messageIds", unfavoritePostRequestBody.messageIds); - writer.writeAdditionalData(unfavoritePostRequestBody.additionalData); -} export function serializeUnfavoritePostResponse(writer: SerializationWriter, unfavoritePostResponse: UnfavoritePostResponse | undefined = {} as UnfavoritePostResponse) : void { writer.writeBooleanValue("value", unfavoritePostResponse.value); writer.writeAdditionalData(unfavoritePostResponse.additionalData); } -export interface UnfavoritePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The messageIds property - */ - messageIds?: string[]; -} export interface UnfavoritePostResponse extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -51,58 +26,5 @@ export interface UnfavoritePostResponse extends AdditionalDataHolder, Parsable { */ value?: boolean; } -/** - * Provides operations to call the unfavorite method. - */ -export class UnfavoriteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new UnfavoriteRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/unfavorite"); - }; - /** - * Remove the favorite status of serviceUpdateMessages for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UnfavoritePostResponse - * @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-unfavorite?view=graph-rest-1.0|Find more info here} - */ - public post(body: UnfavoritePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUnfavoritePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Remove the favorite status of serviceUpdateMessages for the signed in user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: UnfavoritePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUnfavoritePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a unfavoriteRequestBuilder - */ - public withUrl(rawUrl: string) : UnfavoriteRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new UnfavoriteRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/admin/sharepoint/index.ts b/src/admin/sharepoint/index.ts index fdfe66bcf4c..0fea7cfec0c 100644 --- a/src/admin/sharepoint/index.ts +++ b/src/admin/sharepoint/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSharepointFromDiscriminatorValue, deserializeIntoSharepoint, serializeSharepoint, type Sharepoint } from '../../models/sharepoint'; -import { SettingsRequestBuilder } from './settings/'; +import { SettingsRequestBuilder } from './settings'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharepointRequestBuilderGetQueryParameters { diff --git a/src/admin/sharepoint/settings/index.ts b/src/admin/sharepoint/settings/index.ts index 05860e71031..882445f4ad7 100644 --- a/src/admin/sharepoint/settings/index.ts +++ b/src/admin/sharepoint/settings/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSharepointSettingsFromDiscriminatorValue, deserializeIntoSharepointSettings, serializeSharepointSettings, type SharepointSettings } from '../../../models/sharepointSettings'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreementAcceptances/index.ts b/src/agreementAcceptances/index.ts index d1a8b292884..c565220bfdb 100644 --- a/src/agreementAcceptances/index.ts +++ b/src/agreementAcceptances/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementAcceptanceCollectionResponse } from '../models/'; +import { type AgreementAcceptanceCollectionResponse } from '../models'; import { createAgreementAcceptanceFromDiscriminatorValue, deserializeIntoAgreementAcceptance, serializeAgreementAcceptance, type AgreementAcceptance } from '../models/agreementAcceptance'; import { createAgreementAcceptanceCollectionResponseFromDiscriminatorValue } from '../models/agreementAcceptanceCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { AgreementAcceptanceItemRequestBuilder } from './item/'; +import { AgreementAcceptanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementAcceptancesRequestBuilderGetQueryParameters { diff --git a/src/agreementAcceptances/item/index.ts b/src/agreementAcceptances/item/index.ts index ab16b46707e..849ecd13429 100644 --- a/src/agreementAcceptances/item/index.ts +++ b/src/agreementAcceptances/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementAcceptanceFromDiscriminatorValue, deserializeIntoAgreementAcceptance, serializeAgreementAcceptance, type AgreementAcceptance } from '../../models/agreementAcceptance'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/index.ts b/src/agreements/index.ts index dea0bec0d30..9f62bea8fa7 100644 --- a/src/agreements/index.ts +++ b/src/agreements/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementCollectionResponse } from '../models/'; +import { type AgreementCollectionResponse } from '../models'; import { createAgreementFromDiscriminatorValue, deserializeIntoAgreement, serializeAgreement, type Agreement } from '../models/agreement'; import { createAgreementCollectionResponseFromDiscriminatorValue } from '../models/agreementCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { AgreementItemRequestBuilder } from './item/'; +import { AgreementItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementsRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/acceptances/count/index.ts b/src/agreements/item/acceptances/count/index.ts index bcc871dbdf7..1bf281454e2 100644 --- a/src/agreements/item/acceptances/count/index.ts +++ b/src/agreements/item/acceptances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/item/acceptances/index.ts b/src/agreements/item/acceptances/index.ts index b4cd16c5707..214711f9d16 100644 --- a/src/agreements/item/acceptances/index.ts +++ b/src/agreements/item/acceptances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementAcceptanceCollectionResponse } from '../../../models/'; +import { type AgreementAcceptanceCollectionResponse } from '../../../models'; import { createAgreementAcceptanceFromDiscriminatorValue, deserializeIntoAgreementAcceptance, serializeAgreementAcceptance, type AgreementAcceptance } from '../../../models/agreementAcceptance'; import { createAgreementAcceptanceCollectionResponseFromDiscriminatorValue } from '../../../models/agreementAcceptanceCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementAcceptanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementAcceptanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AcceptancesRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/acceptances/item/index.ts b/src/agreements/item/acceptances/item/index.ts index 63e579534a1..ba348a7608b 100644 --- a/src/agreements/item/acceptances/item/index.ts +++ b/src/agreements/item/acceptances/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementAcceptanceFromDiscriminatorValue, deserializeIntoAgreementAcceptance, serializeAgreementAcceptance, type AgreementAcceptance } from '../../../../models/agreementAcceptance'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/item/file/index.ts b/src/agreements/item/file/index.ts index 51147bc55bc..d5e177e3533 100644 --- a/src/agreements/item/file/index.ts +++ b/src/agreements/item/file/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileFromDiscriminatorValue, deserializeIntoAgreementFile, serializeAgreementFile, type AgreementFile } from '../../../models/agreementFile'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { LocalizationsRequestBuilder } from './localizations/'; +import { LocalizationsRequestBuilder } from './localizations'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FileRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/file/localizations/count/index.ts b/src/agreements/item/file/localizations/count/index.ts index 4292b7c20c9..e5a13b818b4 100644 --- a/src/agreements/item/file/localizations/count/index.ts +++ b/src/agreements/item/file/localizations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/item/file/localizations/index.ts b/src/agreements/item/file/localizations/index.ts index f02a2463e03..9cb9eb89cef 100644 --- a/src/agreements/item/file/localizations/index.ts +++ b/src/agreements/item/file/localizations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementFileLocalizationCollectionResponse } from '../../../../models/'; +import { type AgreementFileLocalizationCollectionResponse } from '../../../../models'; import { createAgreementFileLocalizationFromDiscriminatorValue, deserializeIntoAgreementFileLocalization, serializeAgreementFileLocalization, type AgreementFileLocalization } from '../../../../models/agreementFileLocalization'; import { createAgreementFileLocalizationCollectionResponseFromDiscriminatorValue } from '../../../../models/agreementFileLocalizationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementFileLocalizationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementFileLocalizationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LocalizationsRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/file/localizations/item/index.ts b/src/agreements/item/file/localizations/item/index.ts index e1f70831aa0..0906d410716 100644 --- a/src/agreements/item/file/localizations/item/index.ts +++ b/src/agreements/item/file/localizations/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileLocalizationFromDiscriminatorValue, deserializeIntoAgreementFileLocalization, serializeAgreementFileLocalization, type AgreementFileLocalization } from '../../../../../models/agreementFileLocalization'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { VersionsRequestBuilder } from './versions/'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementFileLocalizationItemRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/file/localizations/item/versions/count/index.ts b/src/agreements/item/file/localizations/item/versions/count/index.ts index 11baddd1351..55106b8000b 100644 --- a/src/agreements/item/file/localizations/item/versions/count/index.ts +++ b/src/agreements/item/file/localizations/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/item/file/localizations/item/versions/index.ts b/src/agreements/item/file/localizations/item/versions/index.ts index a58f8642269..26010cbf32d 100644 --- a/src/agreements/item/file/localizations/item/versions/index.ts +++ b/src/agreements/item/file/localizations/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementFileVersionCollectionResponse } from '../../../../../../models/'; +import { type AgreementFileVersionCollectionResponse } from '../../../../../../models'; import { createAgreementFileVersionFromDiscriminatorValue, deserializeIntoAgreementFileVersion, serializeAgreementFileVersion, type AgreementFileVersion } from '../../../../../../models/agreementFileVersion'; import { createAgreementFileVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/agreementFileVersionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementFileVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementFileVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/file/localizations/item/versions/item/index.ts b/src/agreements/item/file/localizations/item/versions/item/index.ts index 444b5edb75c..4a210407be7 100644 --- a/src/agreements/item/file/localizations/item/versions/item/index.ts +++ b/src/agreements/item/file/localizations/item/versions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileVersionFromDiscriminatorValue, deserializeIntoAgreementFileVersion, serializeAgreementFileVersion, type AgreementFileVersion } from '../../../../../../../models/agreementFileVersion'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/item/files/count/index.ts b/src/agreements/item/files/count/index.ts index 09bd5050e56..2c7ec630895 100644 --- a/src/agreements/item/files/count/index.ts +++ b/src/agreements/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/item/files/index.ts b/src/agreements/item/files/index.ts index 8b72ee237eb..a26ae498ba7 100644 --- a/src/agreements/item/files/index.ts +++ b/src/agreements/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementFileLocalizationCollectionResponse } from '../../../models/'; +import { type AgreementFileLocalizationCollectionResponse } from '../../../models'; import { createAgreementFileLocalizationFromDiscriminatorValue, deserializeIntoAgreementFileLocalization, serializeAgreementFileLocalization, type AgreementFileLocalization } from '../../../models/agreementFileLocalization'; import { createAgreementFileLocalizationCollectionResponseFromDiscriminatorValue } from '../../../models/agreementFileLocalizationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementFileLocalizationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementFileLocalizationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/files/item/index.ts b/src/agreements/item/files/item/index.ts index aebc32c8d42..bebbb5d8cc7 100644 --- a/src/agreements/item/files/item/index.ts +++ b/src/agreements/item/files/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileLocalizationFromDiscriminatorValue, deserializeIntoAgreementFileLocalization, serializeAgreementFileLocalization, type AgreementFileLocalization } from '../../../../models/agreementFileLocalization'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { VersionsRequestBuilder } from './versions/'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementFileLocalizationItemRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/files/item/versions/count/index.ts b/src/agreements/item/files/item/versions/count/index.ts index ab8ee3bb028..93a2ad2bab7 100644 --- a/src/agreements/item/files/item/versions/count/index.ts +++ b/src/agreements/item/files/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/item/files/item/versions/index.ts b/src/agreements/item/files/item/versions/index.ts index 7d8ce50159f..0ea97a9de85 100644 --- a/src/agreements/item/files/item/versions/index.ts +++ b/src/agreements/item/files/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementFileVersionCollectionResponse } from '../../../../../models/'; +import { type AgreementFileVersionCollectionResponse } from '../../../../../models'; import { createAgreementFileVersionFromDiscriminatorValue, deserializeIntoAgreementFileVersion, serializeAgreementFileVersion, type AgreementFileVersion } from '../../../../../models/agreementFileVersion'; import { createAgreementFileVersionCollectionResponseFromDiscriminatorValue } from '../../../../../models/agreementFileVersionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementFileVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementFileVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/agreements/item/files/item/versions/item/index.ts b/src/agreements/item/files/item/versions/item/index.ts index 09da5f62954..98eeec2cb69 100644 --- a/src/agreements/item/files/item/versions/item/index.ts +++ b/src/agreements/item/files/item/versions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileVersionFromDiscriminatorValue, deserializeIntoAgreementFileVersion, serializeAgreementFileVersion, type AgreementFileVersion } from '../../../../../../models/agreementFileVersion'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/agreements/item/index.ts b/src/agreements/item/index.ts index e9e48a96533..e9920af099e 100644 --- a/src/agreements/item/index.ts +++ b/src/agreements/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFromDiscriminatorValue, deserializeIntoAgreement, serializeAgreement, type Agreement } from '../../models/agreement'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AcceptancesRequestBuilder } from './acceptances/'; -import { FileRequestBuilder } from './file/'; -import { FilesRequestBuilder } from './files/'; +import { AcceptancesRequestBuilder } from './acceptances'; +import { FileRequestBuilder } from './file'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementItemRequestBuilderGetQueryParameters { diff --git a/src/appCatalogs/index.ts b/src/appCatalogs/index.ts index 2994b24a4f2..2a6bc0fa4f4 100644 --- a/src/appCatalogs/index.ts +++ b/src/appCatalogs/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppCatalogsFromDiscriminatorValue, deserializeIntoAppCatalogs, serializeAppCatalogs, type AppCatalogs } from '../models/appCatalogs'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { TeamsAppsRequestBuilder } from './teamsApps/'; +import { TeamsAppsRequestBuilder } from './teamsApps'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppCatalogsRequestBuilderGetQueryParameters { diff --git a/src/appCatalogs/teamsApps/count/index.ts b/src/appCatalogs/teamsApps/count/index.ts index fbc44a61fda..9e2c1099f79 100644 --- a/src/appCatalogs/teamsApps/count/index.ts +++ b/src/appCatalogs/teamsApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/appCatalogs/teamsApps/index.ts b/src/appCatalogs/teamsApps/index.ts index 69335c76a57..e2da72bdfee 100644 --- a/src/appCatalogs/teamsApps/index.ts +++ b/src/appCatalogs/teamsApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type TeamsAppCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue, deserializeIntoTeamsApp, serializeTeamsApp, type TeamsApp } from '../../models/teamsApp'; import { createTeamsAppCollectionResponseFromDiscriminatorValue } from '../../models/teamsAppCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsAppsRequestBuilderGetQueryParameters { diff --git a/src/appCatalogs/teamsApps/item/appDefinitions/count/index.ts b/src/appCatalogs/teamsApps/item/appDefinitions/count/index.ts index e2d75b1bec4..dedd87daaa3 100644 --- a/src/appCatalogs/teamsApps/item/appDefinitions/count/index.ts +++ b/src/appCatalogs/teamsApps/item/appDefinitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/appCatalogs/teamsApps/item/appDefinitions/index.ts b/src/appCatalogs/teamsApps/item/appDefinitions/index.ts index 92a5d892ac1..5ca42a66745 100644 --- a/src/appCatalogs/teamsApps/item/appDefinitions/index.ts +++ b/src/appCatalogs/teamsApps/item/appDefinitions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppDefinitionCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TeamsAppDefinitionCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsAppDefinitionFromDiscriminatorValue, deserializeIntoTeamsAppDefinition, serializeTeamsAppDefinition, type TeamsAppDefinition } from '../../../../models/teamsAppDefinition'; import { createTeamsAppDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../models/teamsAppDefinitionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAppDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAppDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.ts b/src/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.ts index e819d93f0fb..e0e291b52ef 100644 --- a/src/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.ts +++ b/src/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamworkBotFromDiscriminatorValue, deserializeIntoTeamworkBot, serializeTeamworkBot, type TeamworkBot } from '../../../../../../models/teamworkBot'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/appCatalogs/teamsApps/item/appDefinitions/item/index.ts b/src/appCatalogs/teamsApps/item/appDefinitions/item/index.ts index 4b8762d3e52..66385fdf249 100644 --- a/src/appCatalogs/teamsApps/item/appDefinitions/item/index.ts +++ b/src/appCatalogs/teamsApps/item/appDefinitions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppDefinitionFromDiscriminatorValue, deserializeIntoTeamsAppDefinition, serializeTeamsAppDefinition, type TeamsAppDefinition } from '../../../../../models/teamsAppDefinition'; -import { BotRequestBuilder } from './bot/'; +import { BotRequestBuilder } from './bot'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsAppDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/appCatalogs/teamsApps/item/index.ts b/src/appCatalogs/teamsApps/item/index.ts index 363a1769bb9..faa93f5ed72 100644 --- a/src/appCatalogs/teamsApps/item/index.ts +++ b/src/appCatalogs/teamsApps/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue, deserializeIntoTeamsApp, serializeTeamsApp, type TeamsApp } from '../../../models/teamsApp'; -import { AppDefinitionsRequestBuilder } from './appDefinitions/'; +import { AppDefinitionsRequestBuilder } from './appDefinitions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsAppItemRequestBuilderGetQueryParameters { diff --git a/src/applicationTemplates/count/index.ts b/src/applicationTemplates/count/index.ts index f4194a93883..55c6d322a7e 100644 --- a/src/applicationTemplates/count/index.ts +++ b/src/applicationTemplates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applicationTemplates/index.ts b/src/applicationTemplates/index.ts index e3fbe1f98cb..a598951670b 100644 --- a/src/applicationTemplates/index.ts +++ b/src/applicationTemplates/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationTemplateCollectionResponse } from '../models/'; +import { type ApplicationTemplateCollectionResponse } from '../models'; import { createApplicationTemplateCollectionResponseFromDiscriminatorValue } from '../models/applicationTemplateCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ApplicationTemplateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ApplicationTemplateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApplicationTemplatesRequestBuilderGetQueryParameters { diff --git a/src/applicationTemplates/item/index.ts b/src/applicationTemplates/item/index.ts index 310dacd7e51..b4fa07f9cb4 100644 --- a/src/applicationTemplates/item/index.ts +++ b/src/applicationTemplates/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationTemplate } from '../../models/'; +import { type ApplicationTemplate } from '../../models'; import { createApplicationTemplateFromDiscriminatorValue } from '../../models/applicationTemplate'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { InstantiateRequestBuilder } from './instantiate/'; +import { InstantiateRequestBuilder } from './instantiate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApplicationTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/applicationTemplates/item/instantiate/index.ts b/src/applicationTemplates/item/instantiate/index.ts index 3ecc25b421d..c3642e5c504 100644 --- a/src/applicationTemplates/item/instantiate/index.ts +++ b/src/applicationTemplates/item/instantiate/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createApplicationServicePrincipalFromDiscriminatorValue, deserializeIntoApplicationServicePrincipal, serializeApplicationServicePrincipal, type ApplicationServicePrincipal } from '../../../models/applicationServicePrincipal'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoInstantiatePostRequestBody, serializeInstantiatePostRequestBody, type InstantiatePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createInstantiatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoInstantiatePostRequestBody; +} +export function deserializeIntoInstantiatePostRequestBody(instantiatePostRequestBody: InstantiatePostRequestBody | undefined = {} as InstantiatePostRequestBody) : Record void> { + return { + "displayName": n => { instantiatePostRequestBody.displayName = n.getStringValue(); }, + } +} +export interface InstantiatePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The displayName property + */ + displayName?: string; +} +export function serializeInstantiatePostRequestBody(writer: SerializationWriter, instantiatePostRequestBody: InstantiatePostRequestBody | undefined = {} as InstantiatePostRequestBody) : void { + writer.writeStringValue("displayName", instantiatePostRequestBody.displayName); + writer.writeAdditionalData(instantiatePostRequestBody.additionalData); +} /** * Provides operations to call the instantiate method. */ diff --git a/src/applicationTemplates/item/instantiate/instantiatePostRequestBody.ts b/src/applicationTemplates/item/instantiate/instantiatePostRequestBody.ts deleted file mode 100644 index 9ae9987e4e1..00000000000 --- a/src/applicationTemplates/item/instantiate/instantiatePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createInstantiatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoInstantiatePostRequestBody; -} -export function deserializeIntoInstantiatePostRequestBody(instantiatePostRequestBody: InstantiatePostRequestBody | undefined = {} as InstantiatePostRequestBody) : Record void> { - return { - "displayName": n => { instantiatePostRequestBody.displayName = n.getStringValue(); }, - } -} -export interface InstantiatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The displayName property - */ - displayName?: string; -} -export function serializeInstantiatePostRequestBody(writer: SerializationWriter, instantiatePostRequestBody: InstantiatePostRequestBody | undefined = {} as InstantiatePostRequestBody) : void { - writer.writeStringValue("displayName", instantiatePostRequestBody.displayName); - writer.writeAdditionalData(instantiatePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/count/index.ts b/src/applications/count/index.ts index 0bcacddf90c..f950327563b 100644 --- a/src/applications/count/index.ts +++ b/src/applications/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/delta/index.ts b/src/applications/delta/index.ts index d74ecb0e019..7fbdb71d5a5 100644 --- a/src/applications/delta/index.ts +++ b/src/applications/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { createApplicationFromDiscriminatorValue, serializeApplication, type Application } from '../../models/application'; import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Application[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeApplication); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/applications/getAvailableExtensionProperties/index.ts b/src/applications/getAvailableExtensionProperties/index.ts index 0ff959fdc3a..7800d3c8b0a 100644 --- a/src/applications/getAvailableExtensionProperties/index.ts +++ b/src/applications/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/getByIds/getByIdsPostRequestBody.ts b/src/applications/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/applications/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/getByIds/index.ts b/src/applications/getByIds/index.ts index a15ddc6c1dc..49172d3c7dd 100644 --- a/src/applications/getByIds/index.ts +++ b/src/applications/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/index.ts b/src/applications/index.ts index a77898f1835..b1a7263313f 100644 --- a/src/applications/index.ts +++ b/src/applications/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../models/'; +import { type ApplicationCollectionResponse } from '../models'; import { createApplicationFromDiscriminatorValue, deserializeIntoApplication, serializeApplication, type Application } from '../models/application'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../models/applicationCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { ApplicationItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { ApplicationItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApplicationsRequestBuilderGetQueryParameters { diff --git a/src/applications/item/addKey/index.ts b/src/applications/item/addKey/index.ts index 0cb1d5d2ecd..a95c7956353 100644 --- a/src/applications/item/addKey/index.ts +++ b/src/applications/item/addKey/index.ts @@ -1,11 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createKeyCredentialFromDiscriminatorValue, deserializeIntoKeyCredential, serializeKeyCredential, type KeyCredential } from '../../../models/keyCredential'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; +import { createKeyCredentialFromDiscriminatorValue, serializeKeyCredential, type KeyCredential } from '../../../models/keyCredential'; import { createPasswordCredentialFromDiscriminatorValue, serializePasswordCredential, type PasswordCredential } from '../../../models/passwordCredential'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddKeyPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,58 +40,5 @@ export function serializeAddKeyPostRequestBody(writer: SerializationWriter, addK writer.writeStringValue("proof", addKeyPostRequestBody.proof); writer.writeAdditionalData(addKeyPostRequestBody.additionalData); } -/** - * Provides operations to call the addKey method. - */ -export class AddKeyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddKeyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/addKey"); - }; - /** - * Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of KeyCredential - * @see {@link https://learn.microsoft.com/graph/api/application-addkey?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddKeyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createKeyCredentialFromDiscriminatorValue, errorMapping); - }; - /** - * Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddKeyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddKeyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addKeyRequestBuilder - */ - public withUrl(rawUrl: string) : AddKeyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddKeyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/item/addPassword/index.ts b/src/applications/item/addPassword/index.ts index 20f4cd8dbc8..dc5f8c1bb91 100644 --- a/src/applications/item/addPassword/index.ts +++ b/src/applications/item/addPassword/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createPasswordCredentialFromDiscriminatorValue, deserializeIntoPasswordCredential, serializePasswordCredential, type PasswordCredential } from '../../../models/passwordCredential'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createPasswordCredentialFromDiscriminatorValue, serializePasswordCredential, type PasswordCredential } from '../../../models/passwordCredential'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPasswordPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +27,5 @@ export function serializeAddPasswordPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("passwordCredential", addPasswordPostRequestBody.passwordCredential, serializePasswordCredential); writer.writeAdditionalData(addPasswordPostRequestBody.additionalData); } -/** - * Provides operations to call the addPassword method. - */ -export class AddPasswordRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddPasswordRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/addPassword"); - }; - /** - * Adds a strong password or secret to an application. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of PasswordCredential - * @see {@link https://learn.microsoft.com/graph/api/application-addpassword?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPasswordPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createPasswordCredentialFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a strong password or secret to an application. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPasswordPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPasswordPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addPasswordRequestBuilder - */ - public withUrl(rawUrl: string) : AddPasswordRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddPasswordRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/item/appManagementPolicies/count/index.ts b/src/applications/item/appManagementPolicies/count/index.ts index 3ea26d97d93..38861532568 100644 --- a/src/applications/item/appManagementPolicies/count/index.ts +++ b/src/applications/item/appManagementPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/appManagementPolicies/index.ts b/src/applications/item/appManagementPolicies/index.ts index b0308e1c8fd..6faf727f427 100644 --- a/src/applications/item/appManagementPolicies/index.ts +++ b/src/applications/item/appManagementPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppManagementPolicyCollectionResponse } from '../../../models/'; +import { type AppManagementPolicyCollectionResponse } from '../../../models'; import { createAppManagementPolicyCollectionResponseFromDiscriminatorValue } from '../../../models/appManagementPolicyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AppManagementPolicyItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { AppManagementPolicyItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppManagementPoliciesRequestBuilderGetQueryParameters { diff --git a/src/applications/item/appManagementPolicies/item/index.ts b/src/applications/item/appManagementPolicies/item/index.ts index d91d6cd98d0..9b0246c4bd6 100644 --- a/src/applications/item/appManagementPolicies/item/index.ts +++ b/src/applications/item/appManagementPolicies/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/applications/item/appManagementPolicies/item/ref/index.ts b/src/applications/item/appManagementPolicies/item/ref/index.ts index cff8537008a..dfa5181176f 100644 --- a/src/applications/item/appManagementPolicies/item/ref/index.ts +++ b/src/applications/item/appManagementPolicies/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/appManagementPolicies/ref/index.ts b/src/applications/item/appManagementPolicies/ref/index.ts index e41e91b4327..7721747c19f 100644 --- a/src/applications/item/appManagementPolicies/ref/index.ts +++ b/src/applications/item/appManagementPolicies/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/applications/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/applications/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/applications/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/checkMemberGroups/index.ts b/src/applications/item/checkMemberGroups/index.ts index d774c655854..dcf9cd58809 100644 --- a/src/applications/item/checkMemberGroups/index.ts +++ b/src/applications/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/item/checkMemberObjects/index.ts b/src/applications/item/checkMemberObjects/index.ts index 25ff0f53821..d53883127a7 100644 --- a/src/applications/item/checkMemberObjects/index.ts +++ b/src/applications/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/item/createdOnBehalfOf/index.ts b/src/applications/item/createdOnBehalfOf/index.ts index 19b3c51e055..bad963cc370 100644 --- a/src/applications/item/createdOnBehalfOf/index.ts +++ b/src/applications/item/createdOnBehalfOf/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/extensionProperties/count/index.ts b/src/applications/item/extensionProperties/count/index.ts index 6d1f1fb9886..b3cd9e58956 100644 --- a/src/applications/item/extensionProperties/count/index.ts +++ b/src/applications/item/extensionProperties/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/extensionProperties/index.ts b/src/applications/item/extensionProperties/index.ts index 3ea65390eca..a841982672e 100644 --- a/src/applications/item/extensionProperties/index.ts +++ b/src/applications/item/extensionProperties/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionPropertyCollectionResponse } from '../../../models/'; +import { type ExtensionPropertyCollectionResponse } from '../../../models'; import { createExtensionPropertyFromDiscriminatorValue, deserializeIntoExtensionProperty, serializeExtensionProperty, type ExtensionProperty } from '../../../models/extensionProperty'; import { createExtensionPropertyCollectionResponseFromDiscriminatorValue } from '../../../models/extensionPropertyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionPropertyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionPropertyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionPropertiesRequestBuilderGetQueryParameters { diff --git a/src/applications/item/extensionProperties/item/index.ts b/src/applications/item/extensionProperties/item/index.ts index 0bfa4a1b42e..0ccaaa519d1 100644 --- a/src/applications/item/extensionProperties/item/index.ts +++ b/src/applications/item/extensionProperties/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionPropertyFromDiscriminatorValue, deserializeIntoExtensionProperty, serializeExtensionProperty, type ExtensionProperty } from '../../../../models/extensionProperty'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/federatedIdentityCredentials/count/index.ts b/src/applications/item/federatedIdentityCredentials/count/index.ts index ffdd0b13ec5..2c4502a532a 100644 --- a/src/applications/item/federatedIdentityCredentials/count/index.ts +++ b/src/applications/item/federatedIdentityCredentials/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/federatedIdentityCredentials/index.ts b/src/applications/item/federatedIdentityCredentials/index.ts index 679b2d5fb85..4b83c07ce0a 100644 --- a/src/applications/item/federatedIdentityCredentials/index.ts +++ b/src/applications/item/federatedIdentityCredentials/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type FederatedIdentityCredentialCollectionResponse } from '../../../models/'; +import { type FederatedIdentityCredentialCollectionResponse } from '../../../models'; import { createFederatedIdentityCredentialFromDiscriminatorValue, deserializeIntoFederatedIdentityCredential, serializeFederatedIdentityCredential, type FederatedIdentityCredential } from '../../../models/federatedIdentityCredential'; import { createFederatedIdentityCredentialCollectionResponseFromDiscriminatorValue } from '../../../models/federatedIdentityCredentialCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FederatedIdentityCredentialItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FederatedIdentityCredentialItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FederatedIdentityCredentialsRequestBuilderGetQueryParameters { diff --git a/src/applications/item/federatedIdentityCredentials/item/index.ts b/src/applications/item/federatedIdentityCredentials/item/index.ts index 834e0f1321b..8ca588eb6fa 100644 --- a/src/applications/item/federatedIdentityCredentials/item/index.ts +++ b/src/applications/item/federatedIdentityCredentials/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFederatedIdentityCredentialFromDiscriminatorValue, deserializeIntoFederatedIdentityCredential, serializeFederatedIdentityCredential, type FederatedIdentityCredential } from '../../../../models/federatedIdentityCredential'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/applications/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/applications/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/getMemberGroups/index.ts b/src/applications/item/getMemberGroups/index.ts index d47cccbef1a..e7344ba5741 100644 --- a/src/applications/item/getMemberGroups/index.ts +++ b/src/applications/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/item/getMemberObjects/index.ts b/src/applications/item/getMemberObjects/index.ts index a99cbae5e88..1d90b3647dc 100644 --- a/src/applications/item/getMemberObjects/index.ts +++ b/src/applications/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/item/homeRealmDiscoveryPolicies/count/index.ts b/src/applications/item/homeRealmDiscoveryPolicies/count/index.ts index 6cd1e67cdf7..4ef762c2578 100644 --- a/src/applications/item/homeRealmDiscoveryPolicies/count/index.ts +++ b/src/applications/item/homeRealmDiscoveryPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/homeRealmDiscoveryPolicies/index.ts b/src/applications/item/homeRealmDiscoveryPolicies/index.ts index 1a85b514584..58446730b9e 100644 --- a/src/applications/item/homeRealmDiscoveryPolicies/index.ts +++ b/src/applications/item/homeRealmDiscoveryPolicies/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type HomeRealmDiscoveryPolicyCollectionResponse } from '../../../models/'; +import { type HomeRealmDiscoveryPolicyCollectionResponse } from '../../../models'; import { createHomeRealmDiscoveryPolicyCollectionResponseFromDiscriminatorValue } from '../../../models/homeRealmDiscoveryPolicyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { HomeRealmDiscoveryPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HomeRealmDiscoveryPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HomeRealmDiscoveryPoliciesRequestBuilderGetQueryParameters { diff --git a/src/applications/item/homeRealmDiscoveryPolicies/item/index.ts b/src/applications/item/homeRealmDiscoveryPolicies/item/index.ts index 86480cc6686..b2a03443733 100644 --- a/src/applications/item/homeRealmDiscoveryPolicies/item/index.ts +++ b/src/applications/item/homeRealmDiscoveryPolicies/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type HomeRealmDiscoveryPolicy } from '../../../../models/'; +import { type HomeRealmDiscoveryPolicy } from '../../../../models'; import { createHomeRealmDiscoveryPolicyFromDiscriminatorValue } from '../../../../models/homeRealmDiscoveryPolicy'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/index.ts b/src/applications/item/index.ts index 04dbf7a3a57..bcd4549be81 100644 --- a/src/applications/item/index.ts +++ b/src/applications/item/index.ts @@ -2,29 +2,29 @@ // eslint-disable // Generated by Microsoft Kiota import { createApplicationFromDiscriminatorValue, deserializeIntoApplication, serializeApplication, type Application } from '../../models/application'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AddKeyRequestBuilder } from './addKey/'; -import { AddPasswordRequestBuilder } from './addPassword/'; -import { AppManagementPoliciesRequestBuilder } from './appManagementPolicies/'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { CreatedOnBehalfOfRequestBuilder } from './createdOnBehalfOf/'; -import { ExtensionPropertiesRequestBuilder } from './extensionProperties/'; -import { FederatedIdentityCredentialsRequestBuilder } from './federatedIdentityCredentials/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { HomeRealmDiscoveryPoliciesRequestBuilder } from './homeRealmDiscoveryPolicies/'; -import { LogoRequestBuilder } from './logo/'; -import { OwnersRequestBuilder } from './owners/'; -import { RemoveKeyRequestBuilder } from './removeKey/'; -import { RemovePasswordRequestBuilder } from './removePassword/'; -import { RestoreRequestBuilder } from './restore/'; -import { SetVerifiedPublisherRequestBuilder } from './setVerifiedPublisher/'; -import { SynchronizationRequestBuilder } from './synchronization/'; -import { TokenIssuancePoliciesRequestBuilder } from './tokenIssuancePolicies/'; -import { TokenLifetimePoliciesRequestBuilder } from './tokenLifetimePolicies/'; -import { UnsetVerifiedPublisherRequestBuilder } from './unsetVerifiedPublisher/'; +import { AddKeyRequestBuilder } from './addKey'; +import { AddPasswordRequestBuilder } from './addPassword'; +import { AppManagementPoliciesRequestBuilder } from './appManagementPolicies'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { CreatedOnBehalfOfRequestBuilder } from './createdOnBehalfOf'; +import { ExtensionPropertiesRequestBuilder } from './extensionProperties'; +import { FederatedIdentityCredentialsRequestBuilder } from './federatedIdentityCredentials'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { HomeRealmDiscoveryPoliciesRequestBuilder } from './homeRealmDiscoveryPolicies'; +import { LogoRequestBuilder } from './logo'; +import { OwnersRequestBuilder } from './owners'; +import { RemoveKeyRequestBuilder } from './removeKey'; +import { RemovePasswordRequestBuilder } from './removePassword'; +import { RestoreRequestBuilder } from './restore'; +import { SetVerifiedPublisherRequestBuilder } from './setVerifiedPublisher'; +import { SynchronizationRequestBuilder } from './synchronization'; +import { TokenIssuancePoliciesRequestBuilder } from './tokenIssuancePolicies'; +import { TokenLifetimePoliciesRequestBuilder } from './tokenLifetimePolicies'; +import { UnsetVerifiedPublisherRequestBuilder } from './unsetVerifiedPublisher'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApplicationItemRequestBuilderGetQueryParameters { diff --git a/src/applications/item/logo/index.ts b/src/applications/item/logo/index.ts index c61b373acac..987d9b31d53 100644 --- a/src/applications/item/logo/index.ts +++ b/src/applications/item/logo/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/count/index.ts b/src/applications/item/owners/count/index.ts index ee5d807dc9f..f62340911de 100644 --- a/src/applications/item/owners/count/index.ts +++ b/src/applications/item/owners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/graphAppRoleAssignment/count/index.ts b/src/applications/item/owners/graphAppRoleAssignment/count/index.ts index 84ef164da26..cd0e8df7ac2 100644 --- a/src/applications/item/owners/graphAppRoleAssignment/count/index.ts +++ b/src/applications/item/owners/graphAppRoleAssignment/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/graphAppRoleAssignment/index.ts b/src/applications/item/owners/graphAppRoleAssignment/index.ts index edab3613030..22e558bfce8 100644 --- a/src/applications/item/owners/graphAppRoleAssignment/index.ts +++ b/src/applications/item/owners/graphAppRoleAssignment/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../../models'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAppRoleAssignmentRequestBuilderGetQueryParameters { diff --git a/src/applications/item/owners/graphEndpoint/count/index.ts b/src/applications/item/owners/graphEndpoint/count/index.ts index b9dcc86f2a2..4c6d7394c53 100644 --- a/src/applications/item/owners/graphEndpoint/count/index.ts +++ b/src/applications/item/owners/graphEndpoint/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/graphEndpoint/index.ts b/src/applications/item/owners/graphEndpoint/index.ts index 0f80d31848d..1bf6f6ea1f0 100644 --- a/src/applications/item/owners/graphEndpoint/index.ts +++ b/src/applications/item/owners/graphEndpoint/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndpointCollectionResponse } from '../../../../models/'; +import { type EndpointCollectionResponse } from '../../../../models'; import { createEndpointCollectionResponseFromDiscriminatorValue } from '../../../../models/endpointCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphEndpointRequestBuilderGetQueryParameters { diff --git a/src/applications/item/owners/graphServicePrincipal/count/index.ts b/src/applications/item/owners/graphServicePrincipal/count/index.ts index efd40b66660..981bd44e77a 100644 --- a/src/applications/item/owners/graphServicePrincipal/count/index.ts +++ b/src/applications/item/owners/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/graphServicePrincipal/index.ts b/src/applications/item/owners/graphServicePrincipal/index.ts index ba51147d764..c78ad7cc3b3 100644 --- a/src/applications/item/owners/graphServicePrincipal/index.ts +++ b/src/applications/item/owners/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/applications/item/owners/graphUser/count/index.ts b/src/applications/item/owners/graphUser/count/index.ts index 3e016c29cfc..6dc9b6627dc 100644 --- a/src/applications/item/owners/graphUser/count/index.ts +++ b/src/applications/item/owners/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/graphUser/index.ts b/src/applications/item/owners/graphUser/index.ts index 0fbad70b7f2..8a3f0fbbb56 100644 --- a/src/applications/item/owners/graphUser/index.ts +++ b/src/applications/item/owners/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/applications/item/owners/index.ts b/src/applications/item/owners/index.ts index 66e34fdb349..b44259bbec8 100644 --- a/src/applications/item/owners/index.ts +++ b/src/applications/item/owners/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OwnersRequestBuilderGetQueryParameters { diff --git a/src/applications/item/owners/item/graphAppRoleAssignment/index.ts b/src/applications/item/owners/item/graphAppRoleAssignment/index.ts index 46882a707c5..5bddee9ef9d 100644 --- a/src/applications/item/owners/item/graphAppRoleAssignment/index.ts +++ b/src/applications/item/owners/item/graphAppRoleAssignment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignment } from '../../../../../models/'; +import { type AppRoleAssignment } from '../../../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue } from '../../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/item/graphEndpoint/index.ts b/src/applications/item/owners/item/graphEndpoint/index.ts index 457336c4ca1..a6d860a7ff0 100644 --- a/src/applications/item/owners/item/graphEndpoint/index.ts +++ b/src/applications/item/owners/item/graphEndpoint/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Endpoint } from '../../../../../models/'; +import { type Endpoint } from '../../../../../models'; import { createEndpointFromDiscriminatorValue } from '../../../../../models/endpoint'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/item/graphServicePrincipal/index.ts b/src/applications/item/owners/item/graphServicePrincipal/index.ts index c5914a374d3..6e6a59f1946 100644 --- a/src/applications/item/owners/item/graphServicePrincipal/index.ts +++ b/src/applications/item/owners/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/item/graphUser/index.ts b/src/applications/item/owners/item/graphUser/index.ts index af7504e2794..9f3509a50b4 100644 --- a/src/applications/item/owners/item/graphUser/index.ts +++ b/src/applications/item/owners/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/item/index.ts b/src/applications/item/owners/item/index.ts index 00b6de26705..202e6cc32e7 100644 --- a/src/applications/item/owners/item/index.ts +++ b/src/applications/item/owners/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RefRequestBuilder } from './ref/'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/applications/item/owners/item/ref/index.ts b/src/applications/item/owners/item/ref/index.ts index 13108e43fdb..fb0de07a661 100644 --- a/src/applications/item/owners/item/ref/index.ts +++ b/src/applications/item/owners/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/owners/ref/index.ts b/src/applications/item/owners/ref/index.ts index 42f09ccaf3f..95dc8eec63b 100644 --- a/src/applications/item/owners/ref/index.ts +++ b/src/applications/item/owners/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/applications/item/removeKey/index.ts b/src/applications/item/removeKey/index.ts index c68a8dba1ba..0a4ff7200d3 100644 --- a/src/applications/item/removeKey/index.ts +++ b/src/applications/item/removeKey/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoRemoveKeyPostRequestBody, serializeRemoveKeyPostRequestBody, type RemoveKeyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Guid } from 'guid-typescript'; +export function createRemoveKeyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemoveKeyPostRequestBody; +} +export function deserializeIntoRemoveKeyPostRequestBody(removeKeyPostRequestBody: RemoveKeyPostRequestBody | undefined = {} as RemoveKeyPostRequestBody) : Record void> { + return { + "keyId": n => { removeKeyPostRequestBody.keyId = n.getGuidValue(); }, + "proof": n => { removeKeyPostRequestBody.proof = n.getStringValue(); }, + } +} +export interface RemoveKeyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The keyId property + */ + keyId?: Guid; + /** + * The proof property + */ + proof?: string; +} +export function serializeRemoveKeyPostRequestBody(writer: SerializationWriter, removeKeyPostRequestBody: RemoveKeyPostRequestBody | undefined = {} as RemoveKeyPostRequestBody) : void { + writer.writeGuidValue("keyId", removeKeyPostRequestBody.keyId); + writer.writeStringValue("proof", removeKeyPostRequestBody.proof); + writer.writeAdditionalData(removeKeyPostRequestBody.additionalData); +} /** * Provides operations to call the removeKey method. */ diff --git a/src/applications/item/removeKey/removeKeyPostRequestBody.ts b/src/applications/item/removeKey/removeKeyPostRequestBody.ts deleted file mode 100644 index 631df0fcbe8..00000000000 --- a/src/applications/item/removeKey/removeKeyPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -import { type Guid } from 'guid-typescript'; - -export function createRemoveKeyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemoveKeyPostRequestBody; -} -export function deserializeIntoRemoveKeyPostRequestBody(removeKeyPostRequestBody: RemoveKeyPostRequestBody | undefined = {} as RemoveKeyPostRequestBody) : Record void> { - return { - "keyId": n => { removeKeyPostRequestBody.keyId = n.getGuidValue(); }, - "proof": n => { removeKeyPostRequestBody.proof = n.getStringValue(); }, - } -} -export interface RemoveKeyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The keyId property - */ - keyId?: Guid; - /** - * The proof property - */ - proof?: string; -} -export function serializeRemoveKeyPostRequestBody(writer: SerializationWriter, removeKeyPostRequestBody: RemoveKeyPostRequestBody | undefined = {} as RemoveKeyPostRequestBody) : void { - writer.writeGuidValue("keyId", removeKeyPostRequestBody.keyId); - writer.writeStringValue("proof", removeKeyPostRequestBody.proof); - writer.writeAdditionalData(removeKeyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/removePassword/index.ts b/src/applications/item/removePassword/index.ts index 2027d280047..f409a63e6f6 100644 --- a/src/applications/item/removePassword/index.ts +++ b/src/applications/item/removePassword/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoRemovePasswordPostRequestBody, serializeRemovePasswordPostRequestBody, type RemovePasswordPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Guid } from 'guid-typescript'; +export function createRemovePasswordPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemovePasswordPostRequestBody; +} +export function deserializeIntoRemovePasswordPostRequestBody(removePasswordPostRequestBody: RemovePasswordPostRequestBody | undefined = {} as RemovePasswordPostRequestBody) : Record void> { + return { + "keyId": n => { removePasswordPostRequestBody.keyId = n.getGuidValue(); }, + } +} +export interface RemovePasswordPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The keyId property + */ + keyId?: Guid; +} +export function serializeRemovePasswordPostRequestBody(writer: SerializationWriter, removePasswordPostRequestBody: RemovePasswordPostRequestBody | undefined = {} as RemovePasswordPostRequestBody) : void { + writer.writeGuidValue("keyId", removePasswordPostRequestBody.keyId); + writer.writeAdditionalData(removePasswordPostRequestBody.additionalData); +} /** * Provides operations to call the removePassword method. */ diff --git a/src/applications/item/removePassword/removePasswordPostRequestBody.ts b/src/applications/item/removePassword/removePasswordPostRequestBody.ts deleted file mode 100644 index e61e9f6ee50..00000000000 --- a/src/applications/item/removePassword/removePasswordPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -import { type Guid } from 'guid-typescript'; - -export function createRemovePasswordPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemovePasswordPostRequestBody; -} -export function deserializeIntoRemovePasswordPostRequestBody(removePasswordPostRequestBody: RemovePasswordPostRequestBody | undefined = {} as RemovePasswordPostRequestBody) : Record void> { - return { - "keyId": n => { removePasswordPostRequestBody.keyId = n.getGuidValue(); }, - } -} -export interface RemovePasswordPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The keyId property - */ - keyId?: Guid; -} -export function serializeRemovePasswordPostRequestBody(writer: SerializationWriter, removePasswordPostRequestBody: RemovePasswordPostRequestBody | undefined = {} as RemovePasswordPostRequestBody) : void { - writer.writeGuidValue("keyId", removePasswordPostRequestBody.keyId); - writer.writeAdditionalData(removePasswordPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/restore/index.ts b/src/applications/item/restore/index.ts index af9e75f24dd..33cd89c22c8 100644 --- a/src/applications/item/restore/index.ts +++ b/src/applications/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/setVerifiedPublisher/index.ts b/src/applications/item/setVerifiedPublisher/index.ts index 5f368ed1628..72a4a3c0164 100644 --- a/src/applications/item/setVerifiedPublisher/index.ts +++ b/src/applications/item/setVerifiedPublisher/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSetVerifiedPublisherPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,57 +26,5 @@ export interface SetVerifiedPublisherPostRequestBody extends AdditionalDataHolde */ verifiedPublisherId?: string; } -/** - * Provides operations to call the setVerifiedPublisher method. - */ -export class SetVerifiedPublisherRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SetVerifiedPublisherRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/setVerifiedPublisher"); - }; - /** - * Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/application-setverifiedpublisher?view=graph-rest-1.0|Find more info here} - */ - public post(body: SetVerifiedPublisherPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SetVerifiedPublisherPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetVerifiedPublisherPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a setVerifiedPublisherRequestBuilder - */ - public withUrl(rawUrl: string) : SetVerifiedPublisherRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SetVerifiedPublisherRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/item/synchronization/acquireAccessToken/acquireAccessTokenPostRequestBody.ts b/src/applications/item/synchronization/acquireAccessToken/acquireAccessTokenPostRequestBody.ts deleted file mode 100644 index 25fb1db63c3..00000000000 --- a/src/applications/item/synchronization/acquireAccessToken/acquireAccessTokenPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/synchronizationSecretKeyStringValuePair'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AcquireAccessTokenPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The credentials property - */ - credentials?: SynchronizationSecretKeyStringValuePair[]; -} -export function createAcquireAccessTokenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAcquireAccessTokenPostRequestBody; -} -export function deserializeIntoAcquireAccessTokenPostRequestBody(acquireAccessTokenPostRequestBody: AcquireAccessTokenPostRequestBody | undefined = {} as AcquireAccessTokenPostRequestBody) : Record void> { - return { - "credentials": n => { acquireAccessTokenPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, - } -} -export function serializeAcquireAccessTokenPostRequestBody(writer: SerializationWriter, acquireAccessTokenPostRequestBody: AcquireAccessTokenPostRequestBody | undefined = {} as AcquireAccessTokenPostRequestBody) : void { - writer.writeCollectionOfObjectValues("credentials", acquireAccessTokenPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); - writer.writeAdditionalData(acquireAccessTokenPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/synchronization/acquireAccessToken/index.ts b/src/applications/item/synchronization/acquireAccessToken/index.ts index 75651e4ddaf..6a1c1789c9b 100644 --- a/src/applications/item/synchronization/acquireAccessToken/index.ts +++ b/src/applications/item/synchronization/acquireAccessToken/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAcquireAccessTokenPostRequestBody, serializeAcquireAccessTokenPostRequestBody, type AcquireAccessTokenPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/synchronizationSecretKeyStringValuePair'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AcquireAccessTokenPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The credentials property + */ + credentials?: SynchronizationSecretKeyStringValuePair[]; +} +export function createAcquireAccessTokenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAcquireAccessTokenPostRequestBody; +} +export function deserializeIntoAcquireAccessTokenPostRequestBody(acquireAccessTokenPostRequestBody: AcquireAccessTokenPostRequestBody | undefined = {} as AcquireAccessTokenPostRequestBody) : Record void> { + return { + "credentials": n => { acquireAccessTokenPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + } +} +export function serializeAcquireAccessTokenPostRequestBody(writer: SerializationWriter, acquireAccessTokenPostRequestBody: AcquireAccessTokenPostRequestBody | undefined = {} as AcquireAccessTokenPostRequestBody) : void { + writer.writeCollectionOfObjectValues("credentials", acquireAccessTokenPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); + writer.writeAdditionalData(acquireAccessTokenPostRequestBody.additionalData); +} /** * Provides operations to call the acquireAccessToken method. */ diff --git a/src/applications/item/synchronization/index.ts b/src/applications/item/synchronization/index.ts index f8c2a72081e..e10f916d9e7 100644 --- a/src/applications/item/synchronization/index.ts +++ b/src/applications/item/synchronization/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSynchronizationFromDiscriminatorValue, deserializeIntoSynchronization, serializeSynchronization, type Synchronization } from '../../../models/synchronization'; -import { AcquireAccessTokenRequestBuilder } from './acquireAccessToken/'; -import { JobsRequestBuilder } from './jobs/'; -import { SecretsRequestBuilder } from './secrets/'; -import { TemplatesRequestBuilder } from './templates/'; +import { AcquireAccessTokenRequestBuilder } from './acquireAccessToken'; +import { JobsRequestBuilder } from './jobs'; +import { SecretsRequestBuilder } from './secrets'; +import { TemplatesRequestBuilder } from './templates'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SynchronizationRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/jobs/count/index.ts b/src/applications/item/synchronization/jobs/count/index.ts index 53791333ede..319b3dbb3f2 100644 --- a/src/applications/item/synchronization/jobs/count/index.ts +++ b/src/applications/item/synchronization/jobs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/jobs/index.ts b/src/applications/item/synchronization/jobs/index.ts index 92ce3e5667c..4c8729968ef 100644 --- a/src/applications/item/synchronization/jobs/index.ts +++ b/src/applications/item/synchronization/jobs/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SynchronizationJobCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SynchronizationJobCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSynchronizationJobFromDiscriminatorValue, deserializeIntoSynchronizationJob, serializeSynchronizationJob, type SynchronizationJob } from '../../../../models/synchronizationJob'; import { createSynchronizationJobCollectionResponseFromDiscriminatorValue } from '../../../../models/synchronizationJobCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SynchronizationJobItemRequestBuilder } from './item/'; -import { ValidateCredentialsRequestBuilder } from './validateCredentials/'; +import { CountRequestBuilder } from './count'; +import { SynchronizationJobItemRequestBuilder } from './item'; +import { ValidateCredentialsRequestBuilder } from './validateCredentials'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface JobsRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/jobs/item/index.ts b/src/applications/item/synchronization/jobs/item/index.ts index 726fcb97f5b..b3129e6281f 100644 --- a/src/applications/item/synchronization/jobs/item/index.ts +++ b/src/applications/item/synchronization/jobs/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSynchronizationJobFromDiscriminatorValue, deserializeIntoSynchronizationJob, serializeSynchronizationJob, type SynchronizationJob } from '../../../../../models/synchronizationJob'; -import { PauseRequestBuilder } from './pause/'; -import { ProvisionOnDemandRequestBuilder } from './provisionOnDemand/'; -import { RestartRequestBuilder } from './restart/'; -import { SchemaRequestBuilder } from './schema/'; -import { StartRequestBuilder } from './start/'; -import { ValidateCredentialsRequestBuilder } from './validateCredentials/'; +import { PauseRequestBuilder } from './pause'; +import { ProvisionOnDemandRequestBuilder } from './provisionOnDemand'; +import { RestartRequestBuilder } from './restart'; +import { SchemaRequestBuilder } from './schema'; +import { StartRequestBuilder } from './start'; +import { ValidateCredentialsRequestBuilder } from './validateCredentials'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SynchronizationJobItemRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/jobs/item/pause/index.ts b/src/applications/item/synchronization/jobs/item/pause/index.ts index 682ce74a1b1..5d95a8d3915 100644 --- a/src/applications/item/synchronization/jobs/item/pause/index.ts +++ b/src/applications/item/synchronization/jobs/item/pause/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/jobs/item/provisionOnDemand/index.ts b/src/applications/item/synchronization/jobs/item/provisionOnDemand/index.ts index e811f399db3..40d160ec175 100644 --- a/src/applications/item/synchronization/jobs/item/provisionOnDemand/index.ts +++ b/src/applications/item/synchronization/jobs/item/provisionOnDemand/index.ts @@ -1,11 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createStringKeyStringValuePairFromDiscriminatorValue, deserializeIntoStringKeyStringValuePair, serializeStringKeyStringValuePair, type StringKeyStringValuePair } from '../../../../../../models/stringKeyStringValuePair'; import { createSynchronizationJobApplicationParametersFromDiscriminatorValue, serializeSynchronizationJobApplicationParameters, type SynchronizationJobApplicationParameters } from '../../../../../../models/synchronizationJobApplicationParameters'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createProvisionOnDemandPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeProvisionOnDemandPostRequestBody(writer: SerializationW writer.writeCollectionOfObjectValues("parameters", provisionOnDemandPostRequestBody.parameters, serializeSynchronizationJobApplicationParameters); writer.writeAdditionalData(provisionOnDemandPostRequestBody.additionalData); } -/** - * Provides operations to call the provisionOnDemand method. - */ -export class ProvisionOnDemandRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ProvisionOnDemandRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/provisionOnDemand"); - }; - /** - * Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of StringKeyStringValuePair - * @see {@link https://learn.microsoft.com/graph/api/synchronization-synchronizationjob-provisionondemand?view=graph-rest-1.0|Find more info here} - */ - public post(body: ProvisionOnDemandPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createStringKeyStringValuePairFromDiscriminatorValue, errorMapping); - }; - /** - * Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ProvisionOnDemandPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeProvisionOnDemandPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a provisionOnDemandRequestBuilder - */ - public withUrl(rawUrl: string) : ProvisionOnDemandRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ProvisionOnDemandRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applications/item/synchronization/jobs/item/restart/index.ts b/src/applications/item/synchronization/jobs/item/restart/index.ts index 91bd4f8b49b..ceb11416999 100644 --- a/src/applications/item/synchronization/jobs/item/restart/index.ts +++ b/src/applications/item/synchronization/jobs/item/restart/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoRestartPostRequestBody, serializeRestartPostRequestBody, type RestartPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSynchronizationJobRestartCriteriaFromDiscriminatorValue, serializeSynchronizationJobRestartCriteria, type SynchronizationJobRestartCriteria } from '../../../../../../models/synchronizationJobRestartCriteria'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRestartPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRestartPostRequestBody; +} +export function deserializeIntoRestartPostRequestBody(restartPostRequestBody: RestartPostRequestBody | undefined = {} as RestartPostRequestBody) : Record void> { + return { + "criteria": n => { restartPostRequestBody.criteria = n.getObjectValue(createSynchronizationJobRestartCriteriaFromDiscriminatorValue); }, + } +} +export interface RestartPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: SynchronizationJobRestartCriteria; +} +export function serializeRestartPostRequestBody(writer: SerializationWriter, restartPostRequestBody: RestartPostRequestBody | undefined = {} as RestartPostRequestBody) : void { + writer.writeObjectValue("criteria", restartPostRequestBody.criteria, serializeSynchronizationJobRestartCriteria); + writer.writeAdditionalData(restartPostRequestBody.additionalData); +} /** * Provides operations to call the restart method. */ diff --git a/src/applications/item/synchronization/jobs/item/restart/restartPostRequestBody.ts b/src/applications/item/synchronization/jobs/item/restart/restartPostRequestBody.ts deleted file mode 100644 index f94b41a94f5..00000000000 --- a/src/applications/item/synchronization/jobs/item/restart/restartPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSynchronizationJobRestartCriteriaFromDiscriminatorValue, serializeSynchronizationJobRestartCriteria, type SynchronizationJobRestartCriteria } from '../../../../../../models/synchronizationJobRestartCriteria'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRestartPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRestartPostRequestBody; -} -export function deserializeIntoRestartPostRequestBody(restartPostRequestBody: RestartPostRequestBody | undefined = {} as RestartPostRequestBody) : Record void> { - return { - "criteria": n => { restartPostRequestBody.criteria = n.getObjectValue(createSynchronizationJobRestartCriteriaFromDiscriminatorValue); }, - } -} -export interface RestartPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: SynchronizationJobRestartCriteria; -} -export function serializeRestartPostRequestBody(writer: SerializationWriter, restartPostRequestBody: RestartPostRequestBody | undefined = {} as RestartPostRequestBody) : void { - writer.writeObjectValue("criteria", restartPostRequestBody.criteria, serializeSynchronizationJobRestartCriteria); - writer.writeAdditionalData(restartPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/synchronization/jobs/item/schema/directories/count/index.ts b/src/applications/item/synchronization/jobs/item/schema/directories/count/index.ts index e4849cf3ab0..5be47c792a3 100644 --- a/src/applications/item/synchronization/jobs/item/schema/directories/count/index.ts +++ b/src/applications/item/synchronization/jobs/item/schema/directories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/jobs/item/schema/directories/index.ts b/src/applications/item/synchronization/jobs/item/schema/directories/index.ts index ddf26131da8..726e28f1910 100644 --- a/src/applications/item/synchronization/jobs/item/schema/directories/index.ts +++ b/src/applications/item/synchronization/jobs/item/schema/directories/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type DirectoryDefinitionCollectionResponse } from '../../../../../../../models'; import { createDirectoryDefinitionFromDiscriminatorValue, deserializeIntoDirectoryDefinition, serializeDirectoryDefinition, type DirectoryDefinition } from '../../../../../../../models/directoryDefinition'; import { createDirectoryDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/directoryDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoriesRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/jobs/item/schema/directories/item/discover/index.ts b/src/applications/item/synchronization/jobs/item/schema/directories/item/discover/index.ts index 7428a648e9b..609c2c798a1 100644 --- a/src/applications/item/synchronization/jobs/item/schema/directories/item/discover/index.ts +++ b/src/applications/item/synchronization/jobs/item/schema/directories/item/discover/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryDefinition } from '../../../../../../../../../models/'; +import { type DirectoryDefinition } from '../../../../../../../../../models'; import { createDirectoryDefinitionFromDiscriminatorValue } from '../../../../../../../../../models/directoryDefinition'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/jobs/item/schema/directories/item/index.ts b/src/applications/item/synchronization/jobs/item/schema/directories/item/index.ts index b283a56b7aa..6283edb78de 100644 --- a/src/applications/item/synchronization/jobs/item/schema/directories/item/index.ts +++ b/src/applications/item/synchronization/jobs/item/schema/directories/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryDefinitionFromDiscriminatorValue, deserializeIntoDirectoryDefinition, serializeDirectoryDefinition, type DirectoryDefinition } from '../../../../../../../../models/directoryDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { DiscoverRequestBuilder } from './discover/'; +import { DiscoverRequestBuilder } from './discover'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/jobs/item/schema/filterOperators/index.ts b/src/applications/item/synchronization/jobs/item/schema/filterOperators/index.ts index 02d09ef2737..9d95118da0e 100644 --- a/src/applications/item/synchronization/jobs/item/schema/filterOperators/index.ts +++ b/src/applications/item/synchronization/jobs/item/schema/filterOperators/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; import { createFilterOperatorSchemaFromDiscriminatorValue, serializeFilterOperatorSchema, type FilterOperatorSchema } from '../../../../../../../models/filterOperatorSchema'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFilterOperatorsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,96 +21,9 @@ export interface FilterOperatorsGetResponse extends BaseCollectionPaginationCoun */ value?: FilterOperatorSchema[]; } -export interface FilterOperatorsRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeFilterOperatorsGetResponse(writer: SerializationWriter, filterOperatorsGetResponse: FilterOperatorsGetResponse | undefined = {} as FilterOperatorsGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, filterOperatorsGetResponse) writer.writeCollectionOfObjectValues("value", filterOperatorsGetResponse.value, serializeFilterOperatorSchema); } -/** - * Provides operations to call the filterOperators method. - */ -export class FilterOperatorsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FilterOperatorsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/filterOperators(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function filterOperators - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of FilterOperatorsGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createFilterOperatorsGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function filterOperators - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, filterOperatorsRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a filterOperatorsRequestBuilder - */ - public withUrl(rawUrl: string) : FilterOperatorsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FilterOperatorsRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const filterOperatorsRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/applications/item/synchronization/jobs/item/schema/functions/functionsGetResponse.ts b/src/applications/item/synchronization/jobs/item/schema/functions/functionsGetResponse.ts deleted file mode 100644 index f148bbc6447..00000000000 --- a/src/applications/item/synchronization/jobs/item/schema/functions/functionsGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../../../../../../models/attributeMappingFunctionSchema'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFunctionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFunctionsGetResponse; -} -export function deserializeIntoFunctionsGetResponse(functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(functionsGetResponse), - "value": n => { functionsGetResponse.value = n.getCollectionOfObjectValues(createAttributeMappingFunctionSchemaFromDiscriminatorValue); }, - } -} -export interface FunctionsGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AttributeMappingFunctionSchema[]; -} -export function serializeFunctionsGetResponse(writer: SerializationWriter, functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, functionsGetResponse) - writer.writeCollectionOfObjectValues("value", functionsGetResponse.value, serializeAttributeMappingFunctionSchema); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/synchronization/jobs/item/schema/functions/index.ts b/src/applications/item/synchronization/jobs/item/schema/functions/index.ts index c5bdbc73738..128643c346b 100644 --- a/src/applications/item/synchronization/jobs/item/schema/functions/index.ts +++ b/src/applications/item/synchronization/jobs/item/schema/functions/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../../../../../../models/attributeMappingFunctionSchema'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createFunctionsGetResponseFromDiscriminatorValue } from './'; -import { type FunctionsGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFunctionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFunctionsGetResponse; +} +export function deserializeIntoFunctionsGetResponse(functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(functionsGetResponse), + "value": n => { functionsGetResponse.value = n.getCollectionOfObjectValues(createAttributeMappingFunctionSchemaFromDiscriminatorValue); }, + } +} +export interface FunctionsGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AttributeMappingFunctionSchema[]; +} export interface FunctionsRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FunctionsRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFunctionsGetResponse(writer: SerializationWriter, functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, functionsGetResponse) + writer.writeCollectionOfObjectValues("value", functionsGetResponse.value, serializeAttributeMappingFunctionSchema); +} /** * Provides operations to call the functions method. */ diff --git a/src/applications/item/synchronization/jobs/item/schema/index.ts b/src/applications/item/synchronization/jobs/item/schema/index.ts index b743655fae6..1c1c4d51b0c 100644 --- a/src/applications/item/synchronization/jobs/item/schema/index.ts +++ b/src/applications/item/synchronization/jobs/item/schema/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSynchronizationSchemaFromDiscriminatorValue, deserializeIntoSynchronizationSchema, serializeSynchronizationSchema, type SynchronizationSchema } from '../../../../../../models/synchronizationSchema'; -import { DirectoriesRequestBuilder } from './directories/'; -import { FilterOperatorsRequestBuilder } from './filterOperators/'; -import { FunctionsRequestBuilder } from './functions/'; -import { ParseExpressionRequestBuilder } from './parseExpression/'; +import { DirectoriesRequestBuilder } from './directories'; +import { FilterOperatorsRequestBuilder } from './filterOperators'; +import { FunctionsRequestBuilder } from './functions'; +import { ParseExpressionRequestBuilder } from './parseExpression'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchemaRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/jobs/item/schema/parseExpression/index.ts b/src/applications/item/synchronization/jobs/item/schema/parseExpression/index.ts index b367a61ff1a..74b4151f650 100644 --- a/src/applications/item/synchronization/jobs/item/schema/parseExpression/index.ts +++ b/src/applications/item/synchronization/jobs/item/schema/parseExpression/index.ts @@ -1,12 +1,48 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createAttributeDefinitionFromDiscriminatorValue, serializeAttributeDefinition, type AttributeDefinition } from '../../../../../../../models/attributeDefinition'; +import { createExpressionInputObjectFromDiscriminatorValue, serializeExpressionInputObject, type ExpressionInputObject } from '../../../../../../../models/expressionInputObject'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createParseExpressionResponseFromDiscriminatorValue, deserializeIntoParseExpressionResponse, serializeParseExpressionResponse, type ParseExpressionResponse } from '../../../../../../../models/parseExpressionResponse'; -import { deserializeIntoParseExpressionPostRequestBody, serializeParseExpressionPostRequestBody, type ParseExpressionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createParseExpressionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoParseExpressionPostRequestBody; +} +export function deserializeIntoParseExpressionPostRequestBody(parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : Record void> { + return { + "expression": n => { parseExpressionPostRequestBody.expression = n.getStringValue(); }, + "targetAttributeDefinition": n => { parseExpressionPostRequestBody.targetAttributeDefinition = n.getObjectValue(createAttributeDefinitionFromDiscriminatorValue); }, + "testInputObject": n => { parseExpressionPostRequestBody.testInputObject = n.getObjectValue(createExpressionInputObjectFromDiscriminatorValue); }, + } +} +export interface ParseExpressionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The expression property + */ + expression?: string; + /** + * The targetAttributeDefinition property + */ + targetAttributeDefinition?: AttributeDefinition; + /** + * The testInputObject property + */ + testInputObject?: ExpressionInputObject; +} +export function serializeParseExpressionPostRequestBody(writer: SerializationWriter, parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : void { + writer.writeStringValue("expression", parseExpressionPostRequestBody.expression); + writer.writeObjectValue("targetAttributeDefinition", parseExpressionPostRequestBody.targetAttributeDefinition, serializeAttributeDefinition); + writer.writeObjectValue("testInputObject", parseExpressionPostRequestBody.testInputObject, serializeExpressionInputObject); + writer.writeAdditionalData(parseExpressionPostRequestBody.additionalData); +} /** * Provides operations to call the parseExpression method. */ diff --git a/src/applications/item/synchronization/jobs/item/schema/parseExpression/parseExpressionPostRequestBody.ts b/src/applications/item/synchronization/jobs/item/schema/parseExpression/parseExpressionPostRequestBody.ts deleted file mode 100644 index c065d642bfc..00000000000 --- a/src/applications/item/synchronization/jobs/item/schema/parseExpression/parseExpressionPostRequestBody.ts +++ /dev/null @@ -1,44 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttributeDefinitionFromDiscriminatorValue, serializeAttributeDefinition, type AttributeDefinition } from '../../../../../../../models/attributeDefinition'; -import { createExpressionInputObjectFromDiscriminatorValue, serializeExpressionInputObject, type ExpressionInputObject } from '../../../../../../../models/expressionInputObject'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createParseExpressionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoParseExpressionPostRequestBody; -} -export function deserializeIntoParseExpressionPostRequestBody(parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : Record void> { - return { - "expression": n => { parseExpressionPostRequestBody.expression = n.getStringValue(); }, - "targetAttributeDefinition": n => { parseExpressionPostRequestBody.targetAttributeDefinition = n.getObjectValue(createAttributeDefinitionFromDiscriminatorValue); }, - "testInputObject": n => { parseExpressionPostRequestBody.testInputObject = n.getObjectValue(createExpressionInputObjectFromDiscriminatorValue); }, - } -} -export interface ParseExpressionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The expression property - */ - expression?: string; - /** - * The targetAttributeDefinition property - */ - targetAttributeDefinition?: AttributeDefinition; - /** - * The testInputObject property - */ - testInputObject?: ExpressionInputObject; -} -export function serializeParseExpressionPostRequestBody(writer: SerializationWriter, parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : void { - writer.writeStringValue("expression", parseExpressionPostRequestBody.expression); - writer.writeObjectValue("targetAttributeDefinition", parseExpressionPostRequestBody.targetAttributeDefinition, serializeAttributeDefinition); - writer.writeObjectValue("testInputObject", parseExpressionPostRequestBody.testInputObject, serializeExpressionInputObject); - writer.writeAdditionalData(parseExpressionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/synchronization/jobs/item/start/index.ts b/src/applications/item/synchronization/jobs/item/start/index.ts index 5006a45a545..b95505cd984 100644 --- a/src/applications/item/synchronization/jobs/item/start/index.ts +++ b/src/applications/item/synchronization/jobs/item/start/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/jobs/item/validateCredentials/index.ts b/src/applications/item/synchronization/jobs/item/validateCredentials/index.ts index 81555e1b4e7..4f18cdc6608 100644 --- a/src/applications/item/synchronization/jobs/item/validateCredentials/index.ts +++ b/src/applications/item/synchronization/jobs/item/validateCredentials/index.ts @@ -1,11 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoValidateCredentialsPostRequestBody, serializeValidateCredentialsPostRequestBody, type ValidateCredentialsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../../../models/synchronizationSecretKeyStringValuePair'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createValidateCredentialsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoValidateCredentialsPostRequestBody; +} +export function deserializeIntoValidateCredentialsPostRequestBody(validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : Record void> { + return { + "applicationIdentifier": n => { validateCredentialsPostRequestBody.applicationIdentifier = n.getStringValue(); }, + "credentials": n => { validateCredentialsPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + "templateId": n => { validateCredentialsPostRequestBody.templateId = n.getStringValue(); }, + "useSavedCredentials": n => { validateCredentialsPostRequestBody.useSavedCredentials = n.getBooleanValue(); }, + } +} +export function serializeValidateCredentialsPostRequestBody(writer: SerializationWriter, validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : void { + writer.writeStringValue("applicationIdentifier", validateCredentialsPostRequestBody.applicationIdentifier); + writer.writeCollectionOfObjectValues("credentials", validateCredentialsPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); + writer.writeStringValue("templateId", validateCredentialsPostRequestBody.templateId); + writer.writeBooleanValue("useSavedCredentials", validateCredentialsPostRequestBody.useSavedCredentials); + writer.writeAdditionalData(validateCredentialsPostRequestBody.additionalData); +} +export interface ValidateCredentialsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The applicationIdentifier property + */ + applicationIdentifier?: string; + /** + * The credentials property + */ + credentials?: SynchronizationSecretKeyStringValuePair[]; + /** + * The templateId property + */ + templateId?: string; + /** + * The useSavedCredentials property + */ + useSavedCredentials?: boolean; +} /** * Provides operations to call the validateCredentials method. */ diff --git a/src/applications/item/synchronization/jobs/item/validateCredentials/validateCredentialsPostRequestBody.ts b/src/applications/item/synchronization/jobs/item/validateCredentials/validateCredentialsPostRequestBody.ts deleted file mode 100644 index 037bc031718..00000000000 --- a/src/applications/item/synchronization/jobs/item/validateCredentials/validateCredentialsPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../../../models/synchronizationSecretKeyStringValuePair'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createValidateCredentialsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoValidateCredentialsPostRequestBody; -} -export function deserializeIntoValidateCredentialsPostRequestBody(validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : Record void> { - return { - "applicationIdentifier": n => { validateCredentialsPostRequestBody.applicationIdentifier = n.getStringValue(); }, - "credentials": n => { validateCredentialsPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, - "templateId": n => { validateCredentialsPostRequestBody.templateId = n.getStringValue(); }, - "useSavedCredentials": n => { validateCredentialsPostRequestBody.useSavedCredentials = n.getBooleanValue(); }, - } -} -export function serializeValidateCredentialsPostRequestBody(writer: SerializationWriter, validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : void { - writer.writeStringValue("applicationIdentifier", validateCredentialsPostRequestBody.applicationIdentifier); - writer.writeCollectionOfObjectValues("credentials", validateCredentialsPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); - writer.writeStringValue("templateId", validateCredentialsPostRequestBody.templateId); - writer.writeBooleanValue("useSavedCredentials", validateCredentialsPostRequestBody.useSavedCredentials); - writer.writeAdditionalData(validateCredentialsPostRequestBody.additionalData); -} -export interface ValidateCredentialsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The applicationIdentifier property - */ - applicationIdentifier?: string; - /** - * The credentials property - */ - credentials?: SynchronizationSecretKeyStringValuePair[]; - /** - * The templateId property - */ - templateId?: string; - /** - * The useSavedCredentials property - */ - useSavedCredentials?: boolean; -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/synchronization/jobs/validateCredentials/index.ts b/src/applications/item/synchronization/jobs/validateCredentials/index.ts index 3da43414b5d..c70ba6c88ef 100644 --- a/src/applications/item/synchronization/jobs/validateCredentials/index.ts +++ b/src/applications/item/synchronization/jobs/validateCredentials/index.ts @@ -1,11 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoValidateCredentialsPostRequestBody, serializeValidateCredentialsPostRequestBody, type ValidateCredentialsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../../models/synchronizationSecretKeyStringValuePair'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createValidateCredentialsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoValidateCredentialsPostRequestBody; +} +export function deserializeIntoValidateCredentialsPostRequestBody(validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : Record void> { + return { + "applicationIdentifier": n => { validateCredentialsPostRequestBody.applicationIdentifier = n.getStringValue(); }, + "credentials": n => { validateCredentialsPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + "templateId": n => { validateCredentialsPostRequestBody.templateId = n.getStringValue(); }, + "useSavedCredentials": n => { validateCredentialsPostRequestBody.useSavedCredentials = n.getBooleanValue(); }, + } +} +export function serializeValidateCredentialsPostRequestBody(writer: SerializationWriter, validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : void { + writer.writeStringValue("applicationIdentifier", validateCredentialsPostRequestBody.applicationIdentifier); + writer.writeCollectionOfObjectValues("credentials", validateCredentialsPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); + writer.writeStringValue("templateId", validateCredentialsPostRequestBody.templateId); + writer.writeBooleanValue("useSavedCredentials", validateCredentialsPostRequestBody.useSavedCredentials); + writer.writeAdditionalData(validateCredentialsPostRequestBody.additionalData); +} +export interface ValidateCredentialsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The applicationIdentifier property + */ + applicationIdentifier?: string; + /** + * The credentials property + */ + credentials?: SynchronizationSecretKeyStringValuePair[]; + /** + * The templateId property + */ + templateId?: string; + /** + * The useSavedCredentials property + */ + useSavedCredentials?: boolean; +} /** * Provides operations to call the validateCredentials method. */ diff --git a/src/applications/item/synchronization/jobs/validateCredentials/validateCredentialsPostRequestBody.ts b/src/applications/item/synchronization/jobs/validateCredentials/validateCredentialsPostRequestBody.ts deleted file mode 100644 index 3234fbe4d03..00000000000 --- a/src/applications/item/synchronization/jobs/validateCredentials/validateCredentialsPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../../models/synchronizationSecretKeyStringValuePair'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createValidateCredentialsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoValidateCredentialsPostRequestBody; -} -export function deserializeIntoValidateCredentialsPostRequestBody(validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : Record void> { - return { - "applicationIdentifier": n => { validateCredentialsPostRequestBody.applicationIdentifier = n.getStringValue(); }, - "credentials": n => { validateCredentialsPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, - "templateId": n => { validateCredentialsPostRequestBody.templateId = n.getStringValue(); }, - "useSavedCredentials": n => { validateCredentialsPostRequestBody.useSavedCredentials = n.getBooleanValue(); }, - } -} -export function serializeValidateCredentialsPostRequestBody(writer: SerializationWriter, validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : void { - writer.writeStringValue("applicationIdentifier", validateCredentialsPostRequestBody.applicationIdentifier); - writer.writeCollectionOfObjectValues("credentials", validateCredentialsPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); - writer.writeStringValue("templateId", validateCredentialsPostRequestBody.templateId); - writer.writeBooleanValue("useSavedCredentials", validateCredentialsPostRequestBody.useSavedCredentials); - writer.writeAdditionalData(validateCredentialsPostRequestBody.additionalData); -} -export interface ValidateCredentialsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The applicationIdentifier property - */ - applicationIdentifier?: string; - /** - * The credentials property - */ - credentials?: SynchronizationSecretKeyStringValuePair[]; - /** - * The templateId property - */ - templateId?: string; - /** - * The useSavedCredentials property - */ - useSavedCredentials?: boolean; -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/synchronization/secrets/count/index.ts b/src/applications/item/synchronization/secrets/count/index.ts index cf684205cb0..526e7e6df6d 100644 --- a/src/applications/item/synchronization/secrets/count/index.ts +++ b/src/applications/item/synchronization/secrets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/secrets/index.ts b/src/applications/item/synchronization/secrets/index.ts index 84e986c3da0..9892331927b 100644 --- a/src/applications/item/synchronization/secrets/index.ts +++ b/src/applications/item/synchronization/secrets/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, deserializeIntoSynchronizationSecretKeyStringValuePair, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/synchronizationSecretKeyStringValuePair'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; /** diff --git a/src/applications/item/synchronization/templates/count/index.ts b/src/applications/item/synchronization/templates/count/index.ts index 637f58f4a02..a6e95d90df1 100644 --- a/src/applications/item/synchronization/templates/count/index.ts +++ b/src/applications/item/synchronization/templates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/templates/index.ts b/src/applications/item/synchronization/templates/index.ts index 8d073c6da42..62ef0910602 100644 --- a/src/applications/item/synchronization/templates/index.ts +++ b/src/applications/item/synchronization/templates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SynchronizationTemplateCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SynchronizationTemplateCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSynchronizationTemplateFromDiscriminatorValue, deserializeIntoSynchronizationTemplate, serializeSynchronizationTemplate, type SynchronizationTemplate } from '../../../../models/synchronizationTemplate'; import { createSynchronizationTemplateCollectionResponseFromDiscriminatorValue } from '../../../../models/synchronizationTemplateCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SynchronizationTemplateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SynchronizationTemplateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TemplatesRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/templates/item/index.ts b/src/applications/item/synchronization/templates/item/index.ts index 85504aec502..6c2cba9d808 100644 --- a/src/applications/item/synchronization/templates/item/index.ts +++ b/src/applications/item/synchronization/templates/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSynchronizationTemplateFromDiscriminatorValue, deserializeIntoSynchronizationTemplate, serializeSynchronizationTemplate, type SynchronizationTemplate } from '../../../../../models/synchronizationTemplate'; -import { SchemaRequestBuilder } from './schema/'; +import { SchemaRequestBuilder } from './schema'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SynchronizationTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/templates/item/schema/directories/count/index.ts b/src/applications/item/synchronization/templates/item/schema/directories/count/index.ts index 7d57f651a22..964676c6307 100644 --- a/src/applications/item/synchronization/templates/item/schema/directories/count/index.ts +++ b/src/applications/item/synchronization/templates/item/schema/directories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/templates/item/schema/directories/index.ts b/src/applications/item/synchronization/templates/item/schema/directories/index.ts index fff7318716c..c54db20f503 100644 --- a/src/applications/item/synchronization/templates/item/schema/directories/index.ts +++ b/src/applications/item/synchronization/templates/item/schema/directories/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type DirectoryDefinitionCollectionResponse } from '../../../../../../../models'; import { createDirectoryDefinitionFromDiscriminatorValue, deserializeIntoDirectoryDefinition, serializeDirectoryDefinition, type DirectoryDefinition } from '../../../../../../../models/directoryDefinition'; import { createDirectoryDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/directoryDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoriesRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/templates/item/schema/directories/item/discover/index.ts b/src/applications/item/synchronization/templates/item/schema/directories/item/discover/index.ts index 1997374a290..0343954e0ff 100644 --- a/src/applications/item/synchronization/templates/item/schema/directories/item/discover/index.ts +++ b/src/applications/item/synchronization/templates/item/schema/directories/item/discover/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryDefinition } from '../../../../../../../../../models/'; +import { type DirectoryDefinition } from '../../../../../../../../../models'; import { createDirectoryDefinitionFromDiscriminatorValue } from '../../../../../../../../../models/directoryDefinition'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/synchronization/templates/item/schema/directories/item/index.ts b/src/applications/item/synchronization/templates/item/schema/directories/item/index.ts index 124a2705aaa..53f239a85c7 100644 --- a/src/applications/item/synchronization/templates/item/schema/directories/item/index.ts +++ b/src/applications/item/synchronization/templates/item/schema/directories/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryDefinitionFromDiscriminatorValue, deserializeIntoDirectoryDefinition, serializeDirectoryDefinition, type DirectoryDefinition } from '../../../../../../../../models/directoryDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { DiscoverRequestBuilder } from './discover/'; +import { DiscoverRequestBuilder } from './discover'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/templates/item/schema/filterOperators/index.ts b/src/applications/item/synchronization/templates/item/schema/filterOperators/index.ts index 314b4527ed7..9d95118da0e 100644 --- a/src/applications/item/synchronization/templates/item/schema/filterOperators/index.ts +++ b/src/applications/item/synchronization/templates/item/schema/filterOperators/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; import { createFilterOperatorSchemaFromDiscriminatorValue, serializeFilterOperatorSchema, type FilterOperatorSchema } from '../../../../../../../models/filterOperatorSchema'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFilterOperatorsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,96 +21,9 @@ export interface FilterOperatorsGetResponse extends BaseCollectionPaginationCoun */ value?: FilterOperatorSchema[]; } -export interface FilterOperatorsRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeFilterOperatorsGetResponse(writer: SerializationWriter, filterOperatorsGetResponse: FilterOperatorsGetResponse | undefined = {} as FilterOperatorsGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, filterOperatorsGetResponse) writer.writeCollectionOfObjectValues("value", filterOperatorsGetResponse.value, serializeFilterOperatorSchema); } -/** - * Provides operations to call the filterOperators method. - */ -export class FilterOperatorsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FilterOperatorsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/filterOperators(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function filterOperators - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of FilterOperatorsGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createFilterOperatorsGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function filterOperators - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, filterOperatorsRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a filterOperatorsRequestBuilder - */ - public withUrl(rawUrl: string) : FilterOperatorsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FilterOperatorsRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const filterOperatorsRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/applications/item/synchronization/templates/item/schema/functions/functionsGetResponse.ts b/src/applications/item/synchronization/templates/item/schema/functions/functionsGetResponse.ts deleted file mode 100644 index f148bbc6447..00000000000 --- a/src/applications/item/synchronization/templates/item/schema/functions/functionsGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../../../../../../models/attributeMappingFunctionSchema'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFunctionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFunctionsGetResponse; -} -export function deserializeIntoFunctionsGetResponse(functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(functionsGetResponse), - "value": n => { functionsGetResponse.value = n.getCollectionOfObjectValues(createAttributeMappingFunctionSchemaFromDiscriminatorValue); }, - } -} -export interface FunctionsGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AttributeMappingFunctionSchema[]; -} -export function serializeFunctionsGetResponse(writer: SerializationWriter, functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, functionsGetResponse) - writer.writeCollectionOfObjectValues("value", functionsGetResponse.value, serializeAttributeMappingFunctionSchema); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/synchronization/templates/item/schema/functions/index.ts b/src/applications/item/synchronization/templates/item/schema/functions/index.ts index 16ed0677c05..e2d3aa2b2e5 100644 --- a/src/applications/item/synchronization/templates/item/schema/functions/index.ts +++ b/src/applications/item/synchronization/templates/item/schema/functions/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../../../../../../models/attributeMappingFunctionSchema'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createFunctionsGetResponseFromDiscriminatorValue } from './'; -import { type FunctionsGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFunctionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFunctionsGetResponse; +} +export function deserializeIntoFunctionsGetResponse(functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(functionsGetResponse), + "value": n => { functionsGetResponse.value = n.getCollectionOfObjectValues(createAttributeMappingFunctionSchemaFromDiscriminatorValue); }, + } +} +export interface FunctionsGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AttributeMappingFunctionSchema[]; +} export interface FunctionsRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FunctionsRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFunctionsGetResponse(writer: SerializationWriter, functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, functionsGetResponse) + writer.writeCollectionOfObjectValues("value", functionsGetResponse.value, serializeAttributeMappingFunctionSchema); +} /** * Provides operations to call the functions method. */ diff --git a/src/applications/item/synchronization/templates/item/schema/index.ts b/src/applications/item/synchronization/templates/item/schema/index.ts index 2cf87193d0a..d9bdfad6e85 100644 --- a/src/applications/item/synchronization/templates/item/schema/index.ts +++ b/src/applications/item/synchronization/templates/item/schema/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSynchronizationSchemaFromDiscriminatorValue, deserializeIntoSynchronizationSchema, serializeSynchronizationSchema, type SynchronizationSchema } from '../../../../../../models/synchronizationSchema'; -import { DirectoriesRequestBuilder } from './directories/'; -import { FilterOperatorsRequestBuilder } from './filterOperators/'; -import { FunctionsRequestBuilder } from './functions/'; -import { ParseExpressionRequestBuilder } from './parseExpression/'; +import { DirectoriesRequestBuilder } from './directories'; +import { FilterOperatorsRequestBuilder } from './filterOperators'; +import { FunctionsRequestBuilder } from './functions'; +import { ParseExpressionRequestBuilder } from './parseExpression'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchemaRequestBuilderGetQueryParameters { diff --git a/src/applications/item/synchronization/templates/item/schema/parseExpression/index.ts b/src/applications/item/synchronization/templates/item/schema/parseExpression/index.ts index 102de6ad35a..086b0fd8c66 100644 --- a/src/applications/item/synchronization/templates/item/schema/parseExpression/index.ts +++ b/src/applications/item/synchronization/templates/item/schema/parseExpression/index.ts @@ -1,12 +1,48 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createAttributeDefinitionFromDiscriminatorValue, serializeAttributeDefinition, type AttributeDefinition } from '../../../../../../../models/attributeDefinition'; +import { createExpressionInputObjectFromDiscriminatorValue, serializeExpressionInputObject, type ExpressionInputObject } from '../../../../../../../models/expressionInputObject'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createParseExpressionResponseFromDiscriminatorValue, deserializeIntoParseExpressionResponse, serializeParseExpressionResponse, type ParseExpressionResponse } from '../../../../../../../models/parseExpressionResponse'; -import { deserializeIntoParseExpressionPostRequestBody, serializeParseExpressionPostRequestBody, type ParseExpressionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createParseExpressionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoParseExpressionPostRequestBody; +} +export function deserializeIntoParseExpressionPostRequestBody(parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : Record void> { + return { + "expression": n => { parseExpressionPostRequestBody.expression = n.getStringValue(); }, + "targetAttributeDefinition": n => { parseExpressionPostRequestBody.targetAttributeDefinition = n.getObjectValue(createAttributeDefinitionFromDiscriminatorValue); }, + "testInputObject": n => { parseExpressionPostRequestBody.testInputObject = n.getObjectValue(createExpressionInputObjectFromDiscriminatorValue); }, + } +} +export interface ParseExpressionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The expression property + */ + expression?: string; + /** + * The targetAttributeDefinition property + */ + targetAttributeDefinition?: AttributeDefinition; + /** + * The testInputObject property + */ + testInputObject?: ExpressionInputObject; +} +export function serializeParseExpressionPostRequestBody(writer: SerializationWriter, parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : void { + writer.writeStringValue("expression", parseExpressionPostRequestBody.expression); + writer.writeObjectValue("targetAttributeDefinition", parseExpressionPostRequestBody.targetAttributeDefinition, serializeAttributeDefinition); + writer.writeObjectValue("testInputObject", parseExpressionPostRequestBody.testInputObject, serializeExpressionInputObject); + writer.writeAdditionalData(parseExpressionPostRequestBody.additionalData); +} /** * Provides operations to call the parseExpression method. */ diff --git a/src/applications/item/synchronization/templates/item/schema/parseExpression/parseExpressionPostRequestBody.ts b/src/applications/item/synchronization/templates/item/schema/parseExpression/parseExpressionPostRequestBody.ts deleted file mode 100644 index c065d642bfc..00000000000 --- a/src/applications/item/synchronization/templates/item/schema/parseExpression/parseExpressionPostRequestBody.ts +++ /dev/null @@ -1,44 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttributeDefinitionFromDiscriminatorValue, serializeAttributeDefinition, type AttributeDefinition } from '../../../../../../../models/attributeDefinition'; -import { createExpressionInputObjectFromDiscriminatorValue, serializeExpressionInputObject, type ExpressionInputObject } from '../../../../../../../models/expressionInputObject'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createParseExpressionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoParseExpressionPostRequestBody; -} -export function deserializeIntoParseExpressionPostRequestBody(parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : Record void> { - return { - "expression": n => { parseExpressionPostRequestBody.expression = n.getStringValue(); }, - "targetAttributeDefinition": n => { parseExpressionPostRequestBody.targetAttributeDefinition = n.getObjectValue(createAttributeDefinitionFromDiscriminatorValue); }, - "testInputObject": n => { parseExpressionPostRequestBody.testInputObject = n.getObjectValue(createExpressionInputObjectFromDiscriminatorValue); }, - } -} -export interface ParseExpressionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The expression property - */ - expression?: string; - /** - * The targetAttributeDefinition property - */ - targetAttributeDefinition?: AttributeDefinition; - /** - * The testInputObject property - */ - testInputObject?: ExpressionInputObject; -} -export function serializeParseExpressionPostRequestBody(writer: SerializationWriter, parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : void { - writer.writeStringValue("expression", parseExpressionPostRequestBody.expression); - writer.writeObjectValue("targetAttributeDefinition", parseExpressionPostRequestBody.targetAttributeDefinition, serializeAttributeDefinition); - writer.writeObjectValue("testInputObject", parseExpressionPostRequestBody.testInputObject, serializeExpressionInputObject); - writer.writeAdditionalData(parseExpressionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/applications/item/tokenIssuancePolicies/count/index.ts b/src/applications/item/tokenIssuancePolicies/count/index.ts index 1e3a5f7a0e3..e587381d697 100644 --- a/src/applications/item/tokenIssuancePolicies/count/index.ts +++ b/src/applications/item/tokenIssuancePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/tokenIssuancePolicies/index.ts b/src/applications/item/tokenIssuancePolicies/index.ts index 011f11006f2..bd6fe9442b6 100644 --- a/src/applications/item/tokenIssuancePolicies/index.ts +++ b/src/applications/item/tokenIssuancePolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TokenIssuancePolicyCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TokenIssuancePolicyCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTokenIssuancePolicyCollectionResponseFromDiscriminatorValue } from '../../../models/tokenIssuancePolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TokenIssuancePolicyItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { TokenIssuancePolicyItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TokenIssuancePoliciesRequestBuilderGetQueryParameters { diff --git a/src/applications/item/tokenIssuancePolicies/item/index.ts b/src/applications/item/tokenIssuancePolicies/item/index.ts index 680d629a207..8f43c9d1106 100644 --- a/src/applications/item/tokenIssuancePolicies/item/index.ts +++ b/src/applications/item/tokenIssuancePolicies/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/applications/item/tokenIssuancePolicies/item/ref/index.ts b/src/applications/item/tokenIssuancePolicies/item/ref/index.ts index dccaf54cf2b..251ed121da3 100644 --- a/src/applications/item/tokenIssuancePolicies/item/ref/index.ts +++ b/src/applications/item/tokenIssuancePolicies/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/tokenIssuancePolicies/ref/index.ts b/src/applications/item/tokenIssuancePolicies/ref/index.ts index dd9c05fd099..572623c6a73 100644 --- a/src/applications/item/tokenIssuancePolicies/ref/index.ts +++ b/src/applications/item/tokenIssuancePolicies/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/applications/item/tokenLifetimePolicies/count/index.ts b/src/applications/item/tokenLifetimePolicies/count/index.ts index 881798a567a..f637cfe2b97 100644 --- a/src/applications/item/tokenLifetimePolicies/count/index.ts +++ b/src/applications/item/tokenLifetimePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/tokenLifetimePolicies/index.ts b/src/applications/item/tokenLifetimePolicies/index.ts index ada93e59a03..f026004fa80 100644 --- a/src/applications/item/tokenLifetimePolicies/index.ts +++ b/src/applications/item/tokenLifetimePolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TokenLifetimePolicyCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TokenLifetimePolicyCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTokenLifetimePolicyCollectionResponseFromDiscriminatorValue } from '../../../models/tokenLifetimePolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TokenLifetimePolicyItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { TokenLifetimePolicyItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TokenLifetimePoliciesRequestBuilderGetQueryParameters { diff --git a/src/applications/item/tokenLifetimePolicies/item/index.ts b/src/applications/item/tokenLifetimePolicies/item/index.ts index 402e44e8898..56cb2fa2330 100644 --- a/src/applications/item/tokenLifetimePolicies/item/index.ts +++ b/src/applications/item/tokenLifetimePolicies/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/applications/item/tokenLifetimePolicies/item/ref/index.ts b/src/applications/item/tokenLifetimePolicies/item/ref/index.ts index 9926c01c393..d1b8c9ce68b 100644 --- a/src/applications/item/tokenLifetimePolicies/item/ref/index.ts +++ b/src/applications/item/tokenLifetimePolicies/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/item/tokenLifetimePolicies/ref/index.ts b/src/applications/item/tokenLifetimePolicies/ref/index.ts index a942583f450..ae127dd3153 100644 --- a/src/applications/item/tokenLifetimePolicies/ref/index.ts +++ b/src/applications/item/tokenLifetimePolicies/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/applications/item/unsetVerifiedPublisher/index.ts b/src/applications/item/unsetVerifiedPublisher/index.ts index 810ec6da62a..1f27b1fb386 100644 --- a/src/applications/item/unsetVerifiedPublisher/index.ts +++ b/src/applications/item/unsetVerifiedPublisher/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/applications/validateProperties/index.ts b/src/applications/validateProperties/index.ts index 48087c301eb..3c9a114e085 100644 --- a/src/applications/validateProperties/index.ts +++ b/src/applications/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/applications/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/applicationsWithAppId/index.ts b/src/applicationsWithAppId/index.ts index c98619cc0b0..798a3fe5cdb 100644 --- a/src/applicationsWithAppId/index.ts +++ b/src/applicationsWithAppId/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createApplicationFromDiscriminatorValue, deserializeIntoApplication, serializeApplication, type Application } from '../models/application'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/auditLogs/directoryAudits/count/index.ts b/src/auditLogs/directoryAudits/count/index.ts index 3e38b1e9fad..6b490630560 100644 --- a/src/auditLogs/directoryAudits/count/index.ts +++ b/src/auditLogs/directoryAudits/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/auditLogs/directoryAudits/index.ts b/src/auditLogs/directoryAudits/index.ts index 88836f51aaf..389d79b62bf 100644 --- a/src/auditLogs/directoryAudits/index.ts +++ b/src/auditLogs/directoryAudits/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryAuditCollectionResponse } from '../../models/'; +import { type DirectoryAuditCollectionResponse } from '../../models'; import { createDirectoryAuditFromDiscriminatorValue, deserializeIntoDirectoryAudit, serializeDirectoryAudit, type DirectoryAudit } from '../../models/directoryAudit'; import { createDirectoryAuditCollectionResponseFromDiscriminatorValue } from '../../models/directoryAuditCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryAuditItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryAuditItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryAuditsRequestBuilderGetQueryParameters { diff --git a/src/auditLogs/directoryAudits/item/index.ts b/src/auditLogs/directoryAudits/item/index.ts index 0824f2e8e01..16007e6eb1e 100644 --- a/src/auditLogs/directoryAudits/item/index.ts +++ b/src/auditLogs/directoryAudits/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryAuditFromDiscriminatorValue, deserializeIntoDirectoryAudit, serializeDirectoryAudit, type DirectoryAudit } from '../../../models/directoryAudit'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/auditLogs/index.ts b/src/auditLogs/index.ts index 09d6a1dcded..605ea7e5031 100644 --- a/src/auditLogs/index.ts +++ b/src/auditLogs/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuditLogRootFromDiscriminatorValue, deserializeIntoAuditLogRoot, serializeAuditLogRoot, type AuditLogRoot } from '../models/auditLogRoot'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { DirectoryAuditsRequestBuilder } from './directoryAudits/'; -import { ProvisioningRequestBuilder } from './provisioning/'; -import { SignInsRequestBuilder } from './signIns/'; +import { DirectoryAuditsRequestBuilder } from './directoryAudits'; +import { ProvisioningRequestBuilder } from './provisioning'; +import { SignInsRequestBuilder } from './signIns'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuditLogsRequestBuilderGetQueryParameters { diff --git a/src/auditLogs/provisioning/count/index.ts b/src/auditLogs/provisioning/count/index.ts index db86193f535..b133f462be6 100644 --- a/src/auditLogs/provisioning/count/index.ts +++ b/src/auditLogs/provisioning/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/auditLogs/provisioning/index.ts b/src/auditLogs/provisioning/index.ts index cb518b3b904..1021c5b494a 100644 --- a/src/auditLogs/provisioning/index.ts +++ b/src/auditLogs/provisioning/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProvisioningObjectSummaryCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ProvisioningObjectSummaryCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createProvisioningObjectSummaryFromDiscriminatorValue, deserializeIntoProvisioningObjectSummary, serializeProvisioningObjectSummary, type ProvisioningObjectSummary } from '../../models/provisioningObjectSummary'; import { createProvisioningObjectSummaryCollectionResponseFromDiscriminatorValue } from '../../models/provisioningObjectSummaryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ProvisioningObjectSummaryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ProvisioningObjectSummaryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ProvisioningRequestBuilderGetQueryParameters { diff --git a/src/auditLogs/provisioning/item/index.ts b/src/auditLogs/provisioning/item/index.ts index 01c82c7363f..b10eea1bcdd 100644 --- a/src/auditLogs/provisioning/item/index.ts +++ b/src/auditLogs/provisioning/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createProvisioningObjectSummaryFromDiscriminatorValue, deserializeIntoProvisioningObjectSummary, serializeProvisioningObjectSummary, type ProvisioningObjectSummary } from '../../../models/provisioningObjectSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/auditLogs/signIns/count/index.ts b/src/auditLogs/signIns/count/index.ts index ff348e8ddd4..6ff5f35081d 100644 --- a/src/auditLogs/signIns/count/index.ts +++ b/src/auditLogs/signIns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/auditLogs/signIns/index.ts b/src/auditLogs/signIns/index.ts index b2cfc4afef1..10e5c72a363 100644 --- a/src/auditLogs/signIns/index.ts +++ b/src/auditLogs/signIns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SignInCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type SignInCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSignInFromDiscriminatorValue, deserializeIntoSignIn, serializeSignIn, type SignIn } from '../../models/signIn'; import { createSignInCollectionResponseFromDiscriminatorValue } from '../../models/signInCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SignInItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SignInItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SignInsRequestBuilderGetQueryParameters { diff --git a/src/auditLogs/signIns/item/index.ts b/src/auditLogs/signIns/item/index.ts index 1b999b86f78..a83cd9a7806 100644 --- a/src/auditLogs/signIns/item/index.ts +++ b/src/auditLogs/signIns/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSignInFromDiscriminatorValue, deserializeIntoSignIn, serializeSignIn, type SignIn } from '../../../models/signIn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/authenticationMethodConfigurations/count/index.ts b/src/authenticationMethodConfigurations/count/index.ts index f2e84ff64cf..da2f0a675cf 100644 --- a/src/authenticationMethodConfigurations/count/index.ts +++ b/src/authenticationMethodConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/authenticationMethodConfigurations/index.ts b/src/authenticationMethodConfigurations/index.ts index 67cc0eb21b5..c1d1ce7e26f 100644 --- a/src/authenticationMethodConfigurations/index.ts +++ b/src/authenticationMethodConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationMethodConfigurationCollectionResponse } from '../models/'; +import { type AuthenticationMethodConfigurationCollectionResponse } from '../models'; import { createAuthenticationMethodConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationMethodConfiguration, serializeAuthenticationMethodConfiguration, type AuthenticationMethodConfiguration } from '../models/authenticationMethodConfiguration'; import { createAuthenticationMethodConfigurationCollectionResponseFromDiscriminatorValue } from '../models/authenticationMethodConfigurationCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationMethodConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationMethodConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/authenticationMethodConfigurations/item/index.ts b/src/authenticationMethodConfigurations/item/index.ts index a6f089c7d12..8e7917b73bb 100644 --- a/src/authenticationMethodConfigurations/item/index.ts +++ b/src/authenticationMethodConfigurations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationMethodConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationMethodConfiguration, serializeAuthenticationMethodConfiguration, type AuthenticationMethodConfiguration } from '../../models/authenticationMethodConfiguration'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/authenticationMethodsPolicy/authenticationMethodConfigurations/count/index.ts b/src/authenticationMethodsPolicy/authenticationMethodConfigurations/count/index.ts index 31f9eab3767..821c1ad00c2 100644 --- a/src/authenticationMethodsPolicy/authenticationMethodConfigurations/count/index.ts +++ b/src/authenticationMethodsPolicy/authenticationMethodConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/authenticationMethodsPolicy/authenticationMethodConfigurations/index.ts b/src/authenticationMethodsPolicy/authenticationMethodConfigurations/index.ts index ffec9d4f033..48913e4c36a 100644 --- a/src/authenticationMethodsPolicy/authenticationMethodConfigurations/index.ts +++ b/src/authenticationMethodsPolicy/authenticationMethodConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationMethodConfigurationCollectionResponse } from '../../models/'; +import { type AuthenticationMethodConfigurationCollectionResponse } from '../../models'; import { createAuthenticationMethodConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationMethodConfiguration, serializeAuthenticationMethodConfiguration, type AuthenticationMethodConfiguration } from '../../models/authenticationMethodConfiguration'; import { createAuthenticationMethodConfigurationCollectionResponseFromDiscriminatorValue } from '../../models/authenticationMethodConfigurationCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationMethodConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationMethodConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/authenticationMethodsPolicy/authenticationMethodConfigurations/item/index.ts b/src/authenticationMethodsPolicy/authenticationMethodConfigurations/item/index.ts index b717b0998e8..5b289e90f26 100644 --- a/src/authenticationMethodsPolicy/authenticationMethodConfigurations/item/index.ts +++ b/src/authenticationMethodsPolicy/authenticationMethodConfigurations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationMethodConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationMethodConfiguration, serializeAuthenticationMethodConfiguration, type AuthenticationMethodConfiguration } from '../../../models/authenticationMethodConfiguration'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/authenticationMethodsPolicy/index.ts b/src/authenticationMethodsPolicy/index.ts index 6fae1b8adad..caf55712ec7 100644 --- a/src/authenticationMethodsPolicy/index.ts +++ b/src/authenticationMethodsPolicy/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationMethodsPolicyFromDiscriminatorValue, deserializeIntoAuthenticationMethodsPolicy, serializeAuthenticationMethodsPolicy, type AuthenticationMethodsPolicy } from '../models/authenticationMethodsPolicy'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { AuthenticationMethodConfigurationsRequestBuilder } from './authenticationMethodConfigurations/'; +import { AuthenticationMethodConfigurationsRequestBuilder } from './authenticationMethodConfigurations'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationMethodsPolicyRequestBuilderGetQueryParameters { diff --git a/src/certificateBasedAuthConfiguration/count/index.ts b/src/certificateBasedAuthConfiguration/count/index.ts index cd5c90b49a0..27a28c8faa3 100644 --- a/src/certificateBasedAuthConfiguration/count/index.ts +++ b/src/certificateBasedAuthConfiguration/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/certificateBasedAuthConfiguration/index.ts b/src/certificateBasedAuthConfiguration/index.ts index 7528150af77..79bc3d02800 100644 --- a/src/certificateBasedAuthConfiguration/index.ts +++ b/src/certificateBasedAuthConfiguration/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CertificateBasedAuthConfigurationCollectionResponse } from '../models/'; +import { type CertificateBasedAuthConfigurationCollectionResponse } from '../models'; import { createCertificateBasedAuthConfigurationFromDiscriminatorValue, deserializeIntoCertificateBasedAuthConfiguration, serializeCertificateBasedAuthConfiguration, type CertificateBasedAuthConfiguration } from '../models/certificateBasedAuthConfiguration'; import { createCertificateBasedAuthConfigurationCollectionResponseFromDiscriminatorValue } from '../models/certificateBasedAuthConfigurationCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CertificateBasedAuthConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CertificateBasedAuthConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CertificateBasedAuthConfigurationRequestBuilderGetQueryParameters { diff --git a/src/certificateBasedAuthConfiguration/item/index.ts b/src/certificateBasedAuthConfiguration/item/index.ts index 0d03e3c8b03..89375ddb654 100644 --- a/src/certificateBasedAuthConfiguration/item/index.ts +++ b/src/certificateBasedAuthConfiguration/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCertificateBasedAuthConfigurationFromDiscriminatorValue, deserializeIntoCertificateBasedAuthConfiguration, serializeCertificateBasedAuthConfiguration, type CertificateBasedAuthConfiguration } from '../../models/certificateBasedAuthConfiguration'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/count/index.ts b/src/chats/count/index.ts index cd8b3925cc9..cb12bb49848 100644 --- a/src/chats/count/index.ts +++ b/src/chats/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/getAllMessages/index.ts b/src/chats/getAllMessages/index.ts index e317603f190..5d1bb73ec7e 100644 --- a/src/chats/getAllMessages/index.ts +++ b/src/chats/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../models/chatMessage'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/chats/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/chats/index.ts b/src/chats/index.ts index 38e58a43260..d6d332c82cf 100644 --- a/src/chats/index.ts +++ b/src/chats/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatCollectionResponse } from '../models/'; +import { type ChatCollectionResponse } from '../models'; import { createChatFromDiscriminatorValue, deserializeIntoChat, serializeChat, type Chat } from '../models/chat'; import { createChatCollectionResponseFromDiscriminatorValue } from '../models/chatCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { ChatItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { ChatItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatsRequestBuilderGetQueryParameters { diff --git a/src/chats/item/hideForUser/hideForUserPostRequestBody.ts b/src/chats/item/hideForUser/hideForUserPostRequestBody.ts deleted file mode 100644 index 596594190fe..00000000000 --- a/src/chats/item/hideForUser/hideForUserPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../models/teamworkUserIdentity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createHideForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoHideForUserPostRequestBody; -} -export function deserializeIntoHideForUserPostRequestBody(hideForUserPostRequestBody: HideForUserPostRequestBody | undefined = {} as HideForUserPostRequestBody) : Record void> { - return { - "user": n => { hideForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, - } -} -export interface HideForUserPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The user property - */ - user?: TeamworkUserIdentity; -} -export function serializeHideForUserPostRequestBody(writer: SerializationWriter, hideForUserPostRequestBody: HideForUserPostRequestBody | undefined = {} as HideForUserPostRequestBody) : void { - writer.writeObjectValue("user", hideForUserPostRequestBody.user, serializeTeamworkUserIdentity); - writer.writeAdditionalData(hideForUserPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/chats/item/hideForUser/index.ts b/src/chats/item/hideForUser/index.ts index f862aa957f3..a9ecbe841ae 100644 --- a/src/chats/item/hideForUser/index.ts +++ b/src/chats/item/hideForUser/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoHideForUserPostRequestBody, serializeHideForUserPostRequestBody, type HideForUserPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../models/teamworkUserIdentity'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createHideForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoHideForUserPostRequestBody; +} +export function deserializeIntoHideForUserPostRequestBody(hideForUserPostRequestBody: HideForUserPostRequestBody | undefined = {} as HideForUserPostRequestBody) : Record void> { + return { + "user": n => { hideForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, + } +} +export interface HideForUserPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The user property + */ + user?: TeamworkUserIdentity; +} +export function serializeHideForUserPostRequestBody(writer: SerializationWriter, hideForUserPostRequestBody: HideForUserPostRequestBody | undefined = {} as HideForUserPostRequestBody) : void { + writer.writeObjectValue("user", hideForUserPostRequestBody.user, serializeTeamworkUserIdentity); + writer.writeAdditionalData(hideForUserPostRequestBody.additionalData); +} /** * Provides operations to call the hideForUser method. */ diff --git a/src/chats/item/index.ts b/src/chats/item/index.ts index 3add1db104d..c8eac8e5551 100644 --- a/src/chats/item/index.ts +++ b/src/chats/item/index.ts @@ -2,20 +2,20 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatFromDiscriminatorValue, deserializeIntoChat, serializeChat, type Chat } from '../../models/chat'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { HideForUserRequestBuilder } from './hideForUser/'; -import { InstalledAppsRequestBuilder } from './installedApps/'; -import { LastMessagePreviewRequestBuilder } from './lastMessagePreview/'; -import { MarkChatReadForUserRequestBuilder } from './markChatReadForUser/'; -import { MarkChatUnreadForUserRequestBuilder } from './markChatUnreadForUser/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { PermissionGrantsRequestBuilder } from './permissionGrants/'; -import { PinnedMessagesRequestBuilder } from './pinnedMessages/'; -import { SendActivityNotificationRequestBuilder } from './sendActivityNotification/'; -import { TabsRequestBuilder } from './tabs/'; -import { UnhideForUserRequestBuilder } from './unhideForUser/'; +import { HideForUserRequestBuilder } from './hideForUser'; +import { InstalledAppsRequestBuilder } from './installedApps'; +import { LastMessagePreviewRequestBuilder } from './lastMessagePreview'; +import { MarkChatReadForUserRequestBuilder } from './markChatReadForUser'; +import { MarkChatUnreadForUserRequestBuilder } from './markChatUnreadForUser'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { PermissionGrantsRequestBuilder } from './permissionGrants'; +import { PinnedMessagesRequestBuilder } from './pinnedMessages'; +import { SendActivityNotificationRequestBuilder } from './sendActivityNotification'; +import { TabsRequestBuilder } from './tabs'; +import { UnhideForUserRequestBuilder } from './unhideForUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatItemRequestBuilderGetQueryParameters { diff --git a/src/chats/item/installedApps/count/index.ts b/src/chats/item/installedApps/count/index.ts index d42c8be4a7f..e6a5a828e81 100644 --- a/src/chats/item/installedApps/count/index.ts +++ b/src/chats/item/installedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/installedApps/index.ts b/src/chats/item/installedApps/index.ts index 2250abb9f96..c9cd68cdc6a 100644 --- a/src/chats/item/installedApps/index.ts +++ b/src/chats/item/installedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppInstallationCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TeamsAppInstallationCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../models/teamsAppInstallation'; import { createTeamsAppInstallationCollectionResponseFromDiscriminatorValue } from '../../../models/teamsAppInstallationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAppInstallationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAppInstallationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstalledAppsRequestBuilderGetQueryParameters { diff --git a/src/chats/item/installedApps/item/index.ts b/src/chats/item/installedApps/item/index.ts index d21d894e613..238cdf999ee 100644 --- a/src/chats/item/installedApps/item/index.ts +++ b/src/chats/item/installedApps/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../../models/teamsAppInstallation'; -import { TeamsAppRequestBuilder } from './teamsApp/'; -import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition/'; -import { UpgradeRequestBuilder } from './upgrade/'; +import { TeamsAppRequestBuilder } from './teamsApp'; +import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition'; +import { UpgradeRequestBuilder } from './upgrade'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsAppInstallationItemRequestBuilderGetQueryParameters { diff --git a/src/chats/item/installedApps/item/teamsApp/index.ts b/src/chats/item/installedApps/item/teamsApp/index.ts index 3a72c856512..34698c56978 100644 --- a/src/chats/item/installedApps/item/teamsApp/index.ts +++ b/src/chats/item/installedApps/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/installedApps/item/teamsAppDefinition/index.ts b/src/chats/item/installedApps/item/teamsAppDefinition/index.ts index 392aa7104e6..9782cad8a9c 100644 --- a/src/chats/item/installedApps/item/teamsAppDefinition/index.ts +++ b/src/chats/item/installedApps/item/teamsAppDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsAppDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppDefinitionFromDiscriminatorValue } from '../../../../../models/teamsAppDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/installedApps/item/upgrade/index.ts b/src/chats/item/installedApps/item/upgrade/index.ts index ac13845e9d7..d08b7918172 100644 --- a/src/chats/item/installedApps/item/upgrade/index.ts +++ b/src/chats/item/installedApps/item/upgrade/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUpgradePostRequestBody, serializeUpgradePostRequestBody, type UpgradePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../models/teamsAppPermissionSet'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpgradePostRequestBody; +} +export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { + return { + "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, + } +} +export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { + writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); + writer.writeAdditionalData(upgradePostRequestBody.additionalData); +} +export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The consentedPermissionSet property + */ + consentedPermissionSet?: TeamsAppPermissionSet; +} /** * Provides operations to call the upgrade method. */ diff --git a/src/chats/item/installedApps/item/upgrade/upgradePostRequestBody.ts b/src/chats/item/installedApps/item/upgrade/upgradePostRequestBody.ts deleted file mode 100644 index b49752a10b1..00000000000 --- a/src/chats/item/installedApps/item/upgrade/upgradePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../models/teamsAppPermissionSet'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpgradePostRequestBody; -} -export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { - return { - "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, - } -} -export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { - writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); - writer.writeAdditionalData(upgradePostRequestBody.additionalData); -} -export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The consentedPermissionSet property - */ - consentedPermissionSet?: TeamsAppPermissionSet; -} -// tslint:enable -// eslint-enable diff --git a/src/chats/item/lastMessagePreview/index.ts b/src/chats/item/lastMessagePreview/index.ts index 5fb69458efd..cae2019e983 100644 --- a/src/chats/item/lastMessagePreview/index.ts +++ b/src/chats/item/lastMessagePreview/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageInfoFromDiscriminatorValue, deserializeIntoChatMessageInfo, serializeChatMessageInfo, type ChatMessageInfo } from '../../../models/chatMessageInfo'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/markChatReadForUser/index.ts b/src/chats/item/markChatReadForUser/index.ts index f552ee7aec8..b41e905f8b1 100644 --- a/src/chats/item/markChatReadForUser/index.ts +++ b/src/chats/item/markChatReadForUser/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoMarkChatReadForUserPostRequestBody, serializeMarkChatReadForUserPostRequestBody, type MarkChatReadForUserPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../models/teamworkUserIdentity'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMarkChatReadForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMarkChatReadForUserPostRequestBody; +} +export function deserializeIntoMarkChatReadForUserPostRequestBody(markChatReadForUserPostRequestBody: MarkChatReadForUserPostRequestBody | undefined = {} as MarkChatReadForUserPostRequestBody) : Record void> { + return { + "user": n => { markChatReadForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, + } +} +export interface MarkChatReadForUserPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The user property + */ + user?: TeamworkUserIdentity; +} +export function serializeMarkChatReadForUserPostRequestBody(writer: SerializationWriter, markChatReadForUserPostRequestBody: MarkChatReadForUserPostRequestBody | undefined = {} as MarkChatReadForUserPostRequestBody) : void { + writer.writeObjectValue("user", markChatReadForUserPostRequestBody.user, serializeTeamworkUserIdentity); + writer.writeAdditionalData(markChatReadForUserPostRequestBody.additionalData); +} /** * Provides operations to call the markChatReadForUser method. */ diff --git a/src/chats/item/markChatReadForUser/markChatReadForUserPostRequestBody.ts b/src/chats/item/markChatReadForUser/markChatReadForUserPostRequestBody.ts deleted file mode 100644 index 052039c9ce4..00000000000 --- a/src/chats/item/markChatReadForUser/markChatReadForUserPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../models/teamworkUserIdentity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMarkChatReadForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMarkChatReadForUserPostRequestBody; -} -export function deserializeIntoMarkChatReadForUserPostRequestBody(markChatReadForUserPostRequestBody: MarkChatReadForUserPostRequestBody | undefined = {} as MarkChatReadForUserPostRequestBody) : Record void> { - return { - "user": n => { markChatReadForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, - } -} -export interface MarkChatReadForUserPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The user property - */ - user?: TeamworkUserIdentity; -} -export function serializeMarkChatReadForUserPostRequestBody(writer: SerializationWriter, markChatReadForUserPostRequestBody: MarkChatReadForUserPostRequestBody | undefined = {} as MarkChatReadForUserPostRequestBody) : void { - writer.writeObjectValue("user", markChatReadForUserPostRequestBody.user, serializeTeamworkUserIdentity); - writer.writeAdditionalData(markChatReadForUserPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/chats/item/markChatUnreadForUser/index.ts b/src/chats/item/markChatUnreadForUser/index.ts index 6e39692bc06..d7ea6452c4e 100644 --- a/src/chats/item/markChatUnreadForUser/index.ts +++ b/src/chats/item/markChatUnreadForUser/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../models/teamworkUserIdentity'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMarkChatUnreadForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,57 +33,5 @@ export function serializeMarkChatUnreadForUserPostRequestBody(writer: Serializat writer.writeObjectValue("user", markChatUnreadForUserPostRequestBody.user, serializeTeamworkUserIdentity); writer.writeAdditionalData(markChatUnreadForUserPostRequestBody.additionalData); } -/** - * Provides operations to call the markChatUnreadForUser method. - */ -export class MarkChatUnreadForUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MarkChatUnreadForUserRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/chats/{chat%2Did}/markChatUnreadForUser"); - }; - /** - * Mark a chat as unread for a user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/chat-markchatunreadforuser?view=graph-rest-1.0|Find more info here} - */ - public post(body: MarkChatUnreadForUserPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Mark a chat as unread for a user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MarkChatUnreadForUserPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMarkChatUnreadForUserPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a markChatUnreadForUserRequestBuilder - */ - public withUrl(rawUrl: string) : MarkChatUnreadForUserRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MarkChatUnreadForUserRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/chats/item/members/add/index.ts b/src/chats/item/members/add/index.ts index 2aa0635c82f..431520a5c81 100644 --- a/src/chats/item/members/add/index.ts +++ b/src/chats/item/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../models/conversationMember'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/chats/{chat%2Did}/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/chats/item/members/count/index.ts b/src/chats/item/members/count/index.ts index 9aa7dff92ab..58afedb9bd7 100644 --- a/src/chats/item/members/count/index.ts +++ b/src/chats/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/members/index.ts b/src/chats/item/members/index.ts index 07e835553dd..b78b166e245 100644 --- a/src/chats/item/members/index.ts +++ b/src/chats/item/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/chats/item/members/item/index.ts b/src/chats/item/members/item/index.ts index 81c82d906d8..312f8fb27d7 100644 --- a/src/chats/item/members/item/index.ts +++ b/src/chats/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../models/conversationMember'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/count/index.ts b/src/chats/item/messages/count/index.ts index dcf0d947f17..4f4391aacf3 100644 --- a/src/chats/item/messages/count/index.ts +++ b/src/chats/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/delta/index.ts b/src/chats/item/messages/delta/index.ts index 6f579ca338e..5bf091e0bf6 100644 --- a/src/chats/item/messages/delta/index.ts +++ b/src/chats/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../models/chatMessage'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/chats/item/messages/index.ts b/src/chats/item/messages/index.ts index 5ef838e2c2c..0d7f99e74ba 100644 --- a/src/chats/item/messages/index.ts +++ b/src/chats/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { diff --git a/src/chats/item/messages/item/hostedContents/count/index.ts b/src/chats/item/messages/item/hostedContents/count/index.ts index bc60ae24d73..9c484ad288a 100644 --- a/src/chats/item/messages/item/hostedContents/count/index.ts +++ b/src/chats/item/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/hostedContents/index.ts b/src/chats/item/messages/item/hostedContents/index.ts index 1b000b0ba48..3317b3c7d41 100644 --- a/src/chats/item/messages/item/hostedContents/index.ts +++ b/src/chats/item/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/chats/item/messages/item/hostedContents/item/index.ts b/src/chats/item/messages/item/hostedContents/item/index.ts index 81e9f60a033..c5344234bee 100644 --- a/src/chats/item/messages/item/hostedContents/item/index.ts +++ b/src/chats/item/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/chats/item/messages/item/hostedContents/item/value/index.ts b/src/chats/item/messages/item/hostedContents/item/value/index.ts index bfb6195a2da..c7793455239 100644 --- a/src/chats/item/messages/item/hostedContents/item/value/index.ts +++ b/src/chats/item/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/index.ts b/src/chats/item/messages/item/index.ts index 1ed093fc92d..78844c94a6b 100644 --- a/src/chats/item/messages/item/index.ts +++ b/src/chats/item/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../models/chatMessage'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/chats/item/messages/item/replies/count/index.ts b/src/chats/item/messages/item/replies/count/index.ts index 49c38d5fd20..743429e4196 100644 --- a/src/chats/item/messages/item/replies/count/index.ts +++ b/src/chats/item/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/replies/delta/index.ts b/src/chats/item/messages/item/replies/delta/index.ts index a6c8d9367c0..2583531097d 100644 --- a/src/chats/item/messages/item/replies/delta/index.ts +++ b/src/chats/item/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/chats/item/messages/item/replies/index.ts b/src/chats/item/messages/item/replies/index.ts index a3d5646366d..d3a9c001fda 100644 --- a/src/chats/item/messages/item/replies/index.ts +++ b/src/chats/item/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/chats/item/messages/item/replies/item/hostedContents/count/index.ts b/src/chats/item/messages/item/replies/item/hostedContents/count/index.ts index dd7b017a38b..07ea041e4c1 100644 --- a/src/chats/item/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/chats/item/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/replies/item/hostedContents/index.ts b/src/chats/item/messages/item/replies/item/hostedContents/index.ts index 35137916cd2..7daa786a64a 100644 --- a/src/chats/item/messages/item/replies/item/hostedContents/index.ts +++ b/src/chats/item/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/chats/item/messages/item/replies/item/hostedContents/item/index.ts b/src/chats/item/messages/item/replies/item/hostedContents/item/index.ts index af2e9bbefc5..b3737f56a9a 100644 --- a/src/chats/item/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/chats/item/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/chats/item/messages/item/replies/item/hostedContents/item/value/index.ts b/src/chats/item/messages/item/replies/item/hostedContents/item/value/index.ts index 12434b8f3d0..a1270b827ea 100644 --- a/src/chats/item/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/chats/item/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/replies/item/index.ts b/src/chats/item/messages/item/replies/item/index.ts index 9c8d0362aeb..38f1527a458 100644 --- a/src/chats/item/messages/item/replies/item/index.ts +++ b/src/chats/item/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/chats/item/messages/item/replies/item/setReaction/index.ts b/src/chats/item/messages/item/replies/item/setReaction/index.ts index 5ad85b59f06..6166816df6a 100644 --- a/src/chats/item/messages/item/replies/item/setReaction/index.ts +++ b/src/chats/item/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/chats/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/chats/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/chats/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/chats/item/messages/item/replies/item/softDelete/index.ts b/src/chats/item/messages/item/replies/item/softDelete/index.ts index c153c9859f7..f6e9f86dd8c 100644 --- a/src/chats/item/messages/item/replies/item/softDelete/index.ts +++ b/src/chats/item/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/replies/item/undoSoftDelete/index.ts b/src/chats/item/messages/item/replies/item/undoSoftDelete/index.ts index 62f151258e2..9ecb84428f1 100644 --- a/src/chats/item/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/chats/item/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/replies/item/unsetReaction/index.ts b/src/chats/item/messages/item/replies/item/unsetReaction/index.ts index 1a1c85eb070..55f5d0d1a99 100644 --- a/src/chats/item/messages/item/replies/item/unsetReaction/index.ts +++ b/src/chats/item/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/chats/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/chats/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/chats/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/chats/item/messages/item/setReaction/index.ts b/src/chats/item/messages/item/setReaction/index.ts index 7f6a8e2ed63..00f579a2af5 100644 --- a/src/chats/item/messages/item/setReaction/index.ts +++ b/src/chats/item/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/chats/item/messages/item/setReaction/setReactionPostRequestBody.ts b/src/chats/item/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/chats/item/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/chats/item/messages/item/softDelete/index.ts b/src/chats/item/messages/item/softDelete/index.ts index 61dc77be799..d31735aab94 100644 --- a/src/chats/item/messages/item/softDelete/index.ts +++ b/src/chats/item/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/undoSoftDelete/index.ts b/src/chats/item/messages/item/undoSoftDelete/index.ts index 7d8cc5e0660..a9737b36137 100644 --- a/src/chats/item/messages/item/undoSoftDelete/index.ts +++ b/src/chats/item/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/messages/item/unsetReaction/index.ts b/src/chats/item/messages/item/unsetReaction/index.ts index aa75d911cb2..2a0fc60b330 100644 --- a/src/chats/item/messages/item/unsetReaction/index.ts +++ b/src/chats/item/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/chats/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/chats/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/chats/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/chats/item/permissionGrants/count/index.ts b/src/chats/item/permissionGrants/count/index.ts index 7447f4d104f..9f17a5f6537 100644 --- a/src/chats/item/permissionGrants/count/index.ts +++ b/src/chats/item/permissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/permissionGrants/index.ts b/src/chats/item/permissionGrants/index.ts index 31a35f582b0..d14ac619673 100644 --- a/src/chats/item/permissionGrants/index.ts +++ b/src/chats/item/permissionGrants/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../models/resourceSpecificPermissionGrant'; import { createResourceSpecificPermissionGrantCollectionResponseFromDiscriminatorValue } from '../../../models/resourceSpecificPermissionGrantCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/chats/item/permissionGrants/item/index.ts b/src/chats/item/permissionGrants/item/index.ts index 5e66465d909..9210ee26586 100644 --- a/src/chats/item/permissionGrants/item/index.ts +++ b/src/chats/item/permissionGrants/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../models/resourceSpecificPermissionGrant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/pinnedMessages/count/index.ts b/src/chats/item/pinnedMessages/count/index.ts index 0eb860fd977..f5caf9766d6 100644 --- a/src/chats/item/pinnedMessages/count/index.ts +++ b/src/chats/item/pinnedMessages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/pinnedMessages/index.ts b/src/chats/item/pinnedMessages/index.ts index 26e8e24762f..4cd65947d72 100644 --- a/src/chats/item/pinnedMessages/index.ts +++ b/src/chats/item/pinnedMessages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PinnedChatMessageInfoCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type PinnedChatMessageInfoCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPinnedChatMessageInfoFromDiscriminatorValue, deserializeIntoPinnedChatMessageInfo, serializePinnedChatMessageInfo, type PinnedChatMessageInfo } from '../../../models/pinnedChatMessageInfo'; import { createPinnedChatMessageInfoCollectionResponseFromDiscriminatorValue } from '../../../models/pinnedChatMessageInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PinnedChatMessageInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PinnedChatMessageInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PinnedMessagesRequestBuilderGetQueryParameters { diff --git a/src/chats/item/pinnedMessages/item/index.ts b/src/chats/item/pinnedMessages/item/index.ts index e90500220a7..61805ad08cc 100644 --- a/src/chats/item/pinnedMessages/item/index.ts +++ b/src/chats/item/pinnedMessages/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPinnedChatMessageInfoFromDiscriminatorValue, deserializeIntoPinnedChatMessageInfo, serializePinnedChatMessageInfo, type PinnedChatMessageInfo } from '../../../../models/pinnedChatMessageInfo'; -import { MessageRequestBuilder } from './message/'; +import { MessageRequestBuilder } from './message'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PinnedChatMessageInfoItemRequestBuilderGetQueryParameters { diff --git a/src/chats/item/pinnedMessages/item/message/index.ts b/src/chats/item/pinnedMessages/item/message/index.ts index c8bd4ebb8c8..65a9762602d 100644 --- a/src/chats/item/pinnedMessages/item/message/index.ts +++ b/src/chats/item/pinnedMessages/item/message/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessage } from '../../../../../models/'; +import { type ChatMessage } from '../../../../../models'; import { createChatMessageFromDiscriminatorValue } from '../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/sendActivityNotification/index.ts b/src/chats/item/sendActivityNotification/index.ts index 9560d6a2ae8..a4976783e68 100644 --- a/src/chats/item/sendActivityNotification/index.ts +++ b/src/chats/item/sendActivityNotification/index.ts @@ -1,11 +1,67 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../models/itemBody'; +import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../models/keyValuePair'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoSendActivityNotificationPostRequestBody, serializeSendActivityNotificationPostRequestBody, type SendActivityNotificationPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../models/teamworkActivityTopic'; +import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../models/teamworkNotificationRecipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSendActivityNotificationPostRequestBody; +} +export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { + return { + "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, + "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, + "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, + "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, + "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, + "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, + } +} +export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activityType property + */ + activityType?: string; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The chainId property + */ + chainId?: number; + /** + * The previewText property + */ + previewText?: ItemBody; + /** + * The recipient property + */ + recipient?: TeamworkNotificationRecipient; + /** + * The templateParameters property + */ + templateParameters?: KeyValuePair[]; + /** + * The topic property + */ + topic?: TeamworkActivityTopic; +} +export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { + writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); + writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); + writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); + writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); + writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); + writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); + writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); +} /** * Provides operations to call the sendActivityNotification method. */ diff --git a/src/chats/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts b/src/chats/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts deleted file mode 100644 index c9b4e2546ed..00000000000 --- a/src/chats/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts +++ /dev/null @@ -1,64 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../models/itemBody'; -import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../models/keyValuePair'; -import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../models/teamworkActivityTopic'; -import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../models/teamworkNotificationRecipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSendActivityNotificationPostRequestBody; -} -export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { - return { - "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, - "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, - "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, - "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, - "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, - "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, - } -} -export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activityType property - */ - activityType?: string; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The chainId property - */ - chainId?: number; - /** - * The previewText property - */ - previewText?: ItemBody; - /** - * The recipient property - */ - recipient?: TeamworkNotificationRecipient; - /** - * The templateParameters property - */ - templateParameters?: KeyValuePair[]; - /** - * The topic property - */ - topic?: TeamworkActivityTopic; -} -export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { - writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); - writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); - writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); - writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); - writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); - writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); - writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/chats/item/tabs/count/index.ts b/src/chats/item/tabs/count/index.ts index f8ba1ea9022..bd5b3ec4c67 100644 --- a/src/chats/item/tabs/count/index.ts +++ b/src/chats/item/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/tabs/index.ts b/src/chats/item/tabs/index.ts index 1b39edd867a..237ae3ffd95 100644 --- a/src/chats/item/tabs/index.ts +++ b/src/chats/item/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { diff --git a/src/chats/item/tabs/item/index.ts b/src/chats/item/tabs/item/index.ts index 9a53908b125..51a76adc6ad 100644 --- a/src/chats/item/tabs/item/index.ts +++ b/src/chats/item/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/chats/item/tabs/item/teamsApp/index.ts b/src/chats/item/tabs/item/teamsApp/index.ts index 8775794d77b..1698e7ee6dd 100644 --- a/src/chats/item/tabs/item/teamsApp/index.ts +++ b/src/chats/item/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/chats/item/unhideForUser/index.ts b/src/chats/item/unhideForUser/index.ts index ae467766747..6ff35a31ea4 100644 --- a/src/chats/item/unhideForUser/index.ts +++ b/src/chats/item/unhideForUser/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnhideForUserPostRequestBody, serializeUnhideForUserPostRequestBody, type UnhideForUserPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../models/teamworkUserIdentity'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnhideForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnhideForUserPostRequestBody; +} +export function deserializeIntoUnhideForUserPostRequestBody(unhideForUserPostRequestBody: UnhideForUserPostRequestBody | undefined = {} as UnhideForUserPostRequestBody) : Record void> { + return { + "user": n => { unhideForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, + } +} +export function serializeUnhideForUserPostRequestBody(writer: SerializationWriter, unhideForUserPostRequestBody: UnhideForUserPostRequestBody | undefined = {} as UnhideForUserPostRequestBody) : void { + writer.writeObjectValue("user", unhideForUserPostRequestBody.user, serializeTeamworkUserIdentity); + writer.writeAdditionalData(unhideForUserPostRequestBody.additionalData); +} +export interface UnhideForUserPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The user property + */ + user?: TeamworkUserIdentity; +} /** * Provides operations to call the unhideForUser method. */ diff --git a/src/chats/item/unhideForUser/unhideForUserPostRequestBody.ts b/src/chats/item/unhideForUser/unhideForUserPostRequestBody.ts deleted file mode 100644 index 48de4e40ee9..00000000000 --- a/src/chats/item/unhideForUser/unhideForUserPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../models/teamworkUserIdentity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnhideForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnhideForUserPostRequestBody; -} -export function deserializeIntoUnhideForUserPostRequestBody(unhideForUserPostRequestBody: UnhideForUserPostRequestBody | undefined = {} as UnhideForUserPostRequestBody) : Record void> { - return { - "user": n => { unhideForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, - } -} -export function serializeUnhideForUserPostRequestBody(writer: SerializationWriter, unhideForUserPostRequestBody: UnhideForUserPostRequestBody | undefined = {} as UnhideForUserPostRequestBody) : void { - writer.writeObjectValue("user", unhideForUserPostRequestBody.user, serializeTeamworkUserIdentity); - writer.writeAdditionalData(unhideForUserPostRequestBody.additionalData); -} -export interface UnhideForUserPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The user property - */ - user?: TeamworkUserIdentity; -} -// tslint:enable -// eslint-enable diff --git a/src/communications/callRecords/count/index.ts b/src/communications/callRecords/count/index.ts index f97899d6fa9..246014641a6 100644 --- a/src/communications/callRecords/count/index.ts +++ b/src/communications/callRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/callRecords/index.ts b/src/communications/callRecords/index.ts index c50e54a8ddf..7e156d60f1e 100644 --- a/src/communications/callRecords/index.ts +++ b/src/communications/callRecords/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallRecordCollectionResponse } from '../../models/callRecords/'; +import { type CallRecordCollectionResponse } from '../../models/callRecords'; import { createCallRecordFromDiscriminatorValue, deserializeIntoCallRecord, serializeCallRecord, type CallRecord } from '../../models/callRecords/callRecord'; import { createCallRecordCollectionResponseFromDiscriminatorValue } from '../../models/callRecords/callRecordCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CallRecordItemRequestBuilder } from './item/'; -import { MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder } from './microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/'; -import { MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder } from './microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/'; +import { CountRequestBuilder } from './count'; +import { CallRecordItemRequestBuilder } from './item'; +import { MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder } from './microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime'; +import { MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder } from './microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CallRecordsRequestBuilderGetQueryParameters { diff --git a/src/communications/callRecords/item/index.ts b/src/communications/callRecords/item/index.ts index 819eb0fef91..43ef09c3ace 100644 --- a/src/communications/callRecords/item/index.ts +++ b/src/communications/callRecords/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCallRecordFromDiscriminatorValue, deserializeIntoCallRecord, serializeCallRecord, type CallRecord } from '../../../models/callRecords/callRecord'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { SessionsRequestBuilder } from './sessions/'; +import { SessionsRequestBuilder } from './sessions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CallRecordItemRequestBuilderGetQueryParameters { diff --git a/src/communications/callRecords/item/sessions/count/index.ts b/src/communications/callRecords/item/sessions/count/index.ts index b30610824e7..a3e2dd136b2 100644 --- a/src/communications/callRecords/item/sessions/count/index.ts +++ b/src/communications/callRecords/item/sessions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/callRecords/item/sessions/index.ts b/src/communications/callRecords/item/sessions/index.ts index e837277ebfd..51527133459 100644 --- a/src/communications/callRecords/item/sessions/index.ts +++ b/src/communications/callRecords/item/sessions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SessionCollectionResponse } from '../../../../models/callRecords/'; +import { type SessionCollectionResponse } from '../../../../models/callRecords'; import { createSessionFromDiscriminatorValue, deserializeIntoSession, serializeSession, type Session } from '../../../../models/callRecords/session'; import { createSessionCollectionResponseFromDiscriminatorValue } from '../../../../models/callRecords/sessionCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { SessionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SessionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SessionsRequestBuilderGetQueryParameters { diff --git a/src/communications/callRecords/item/sessions/item/index.ts b/src/communications/callRecords/item/sessions/item/index.ts index 4e930d26f85..a0ba8dc6745 100644 --- a/src/communications/callRecords/item/sessions/item/index.ts +++ b/src/communications/callRecords/item/sessions/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createSessionFromDiscriminatorValue, deserializeIntoSession, serializeSession, type Session } from '../../../../../models/callRecords/session'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { SegmentsRequestBuilder } from './segments/'; +import { SegmentsRequestBuilder } from './segments'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SessionItemRequestBuilderGetQueryParameters { diff --git a/src/communications/callRecords/item/sessions/item/segments/count/index.ts b/src/communications/callRecords/item/sessions/item/segments/count/index.ts index aaaf3048c34..bd6afc22839 100644 --- a/src/communications/callRecords/item/sessions/item/segments/count/index.ts +++ b/src/communications/callRecords/item/sessions/item/segments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/callRecords/item/sessions/item/segments/index.ts b/src/communications/callRecords/item/sessions/item/segments/index.ts index 543f586b41e..59646f915c9 100644 --- a/src/communications/callRecords/item/sessions/item/segments/index.ts +++ b/src/communications/callRecords/item/sessions/item/segments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SegmentCollectionResponse } from '../../../../../../models/callRecords/'; +import { type SegmentCollectionResponse } from '../../../../../../models/callRecords'; import { createSegmentFromDiscriminatorValue, deserializeIntoSegment, serializeSegment, type Segment } from '../../../../../../models/callRecords/segment'; import { createSegmentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/callRecords/segmentCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { SegmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SegmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SegmentsRequestBuilderGetQueryParameters { diff --git a/src/communications/callRecords/item/sessions/item/segments/item/index.ts b/src/communications/callRecords/item/sessions/item/segments/item/index.ts index 56bb7d62dbc..45dcd110f60 100644 --- a/src/communications/callRecords/item/sessions/item/segments/item/index.ts +++ b/src/communications/callRecords/item/sessions/item/segments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createSegmentFromDiscriminatorValue, deserializeIntoSegment, serializeSegment, type Segment } from '../../../../../../../models/callRecords/segment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.ts b/src/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.ts deleted file mode 100644 index d75749668cf..00000000000 --- a/src/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createDirectRoutingLogRowFromDiscriminatorValue, serializeDirectRoutingLogRow, type DirectRoutingLogRow } from '../../../models/callRecords/directRoutingLogRow'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse; -} -export function deserializeIntoGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse(getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse: GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse | undefined = {} as GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse), - "value": n => { getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.value = n.getCollectionOfObjectValues(createDirectRoutingLogRowFromDiscriminatorValue); }, - } -} -export interface GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: DirectRoutingLogRow[]; -} -export function serializeGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse(writer: SerializationWriter, getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse: GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse | undefined = {} as GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse) - writer.writeCollectionOfObjectValues("value", getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.value, serializeDirectRoutingLogRow); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/index.ts b/src/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/index.ts index 21b79ea3027..afeb52c9f57 100644 --- a/src/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/index.ts +++ b/src/communications/callRecords/microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { createDirectRoutingLogRowFromDiscriminatorValue, serializeDirectRoutingLogRow, type DirectRoutingLogRow } from '../../../models/callRecords/directRoutingLogRow'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponseFromDiscriminatorValue } from './'; -import { type GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse; +} +export function deserializeIntoGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse(getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse: GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse | undefined = {} as GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse), + "value": n => { getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.value = n.getCollectionOfObjectValues(createDirectRoutingLogRowFromDiscriminatorValue); }, + } +} +export interface GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: DirectRoutingLogRow[]; +} export interface MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeW */ top?: number; } +export function serializeGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse(writer: SerializationWriter, getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse: GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse | undefined = {} as GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse) + writer.writeCollectionOfObjectValues("value", getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.value, serializeDirectRoutingLogRow); +} /** * Provides operations to call the getDirectRoutingCalls method. */ diff --git a/src/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/getPstnCallsWithFromDateTimeWithToDateTimeGetResponse.ts b/src/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/getPstnCallsWithFromDateTimeWithToDateTimeGetResponse.ts deleted file mode 100644 index ff7e3ec665d..00000000000 --- a/src/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/getPstnCallsWithFromDateTimeWithToDateTimeGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createPstnCallLogRowFromDiscriminatorValue, serializePstnCallLogRow, type PstnCallLogRow } from '../../../models/callRecords/pstnCallLogRow'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetPstnCallsWithFromDateTimeWithToDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetPstnCallsWithFromDateTimeWithToDateTimeGetResponse; -} -export function deserializeIntoGetPstnCallsWithFromDateTimeWithToDateTimeGetResponse(getPstnCallsWithFromDateTimeWithToDateTimeGetResponse: GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse | undefined = {} as GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getPstnCallsWithFromDateTimeWithToDateTimeGetResponse), - "value": n => { getPstnCallsWithFromDateTimeWithToDateTimeGetResponse.value = n.getCollectionOfObjectValues(createPstnCallLogRowFromDiscriminatorValue); }, - } -} -export interface GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: PstnCallLogRow[]; -} -export function serializeGetPstnCallsWithFromDateTimeWithToDateTimeGetResponse(writer: SerializationWriter, getPstnCallsWithFromDateTimeWithToDateTimeGetResponse: GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse | undefined = {} as GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getPstnCallsWithFromDateTimeWithToDateTimeGetResponse) - writer.writeCollectionOfObjectValues("value", getPstnCallsWithFromDateTimeWithToDateTimeGetResponse.value, serializePstnCallLogRow); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/index.ts b/src/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/index.ts index 64779c1af5d..4f24ac66806 100644 --- a/src/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/index.ts +++ b/src/communications/callRecords/microsoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { createPstnCallLogRowFromDiscriminatorValue, serializePstnCallLogRow, type PstnCallLogRow } from '../../../models/callRecords/pstnCallLogRow'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetPstnCallsWithFromDateTimeWithToDateTimeGetResponseFromDiscriminatorValue } from './'; -import { type GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetPstnCallsWithFromDateTimeWithToDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetPstnCallsWithFromDateTimeWithToDateTimeGetResponse; +} +export function deserializeIntoGetPstnCallsWithFromDateTimeWithToDateTimeGetResponse(getPstnCallsWithFromDateTimeWithToDateTimeGetResponse: GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse | undefined = {} as GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getPstnCallsWithFromDateTimeWithToDateTimeGetResponse), + "value": n => { getPstnCallsWithFromDateTimeWithToDateTimeGetResponse.value = n.getCollectionOfObjectValues(createPstnCallLogRowFromDiscriminatorValue); }, + } +} +export interface GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: PstnCallLogRow[]; +} export interface MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDate */ top?: number; } +export function serializeGetPstnCallsWithFromDateTimeWithToDateTimeGetResponse(writer: SerializationWriter, getPstnCallsWithFromDateTimeWithToDateTimeGetResponse: GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse | undefined = {} as GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getPstnCallsWithFromDateTimeWithToDateTimeGetResponse) + writer.writeCollectionOfObjectValues("value", getPstnCallsWithFromDateTimeWithToDateTimeGetResponse.value, serializePstnCallLogRow); +} /** * Provides operations to call the getPstnCalls method. */ diff --git a/src/communications/calls/count/index.ts b/src/communications/calls/count/index.ts index a58d699df17..c9a292eb4db 100644 --- a/src/communications/calls/count/index.ts +++ b/src/communications/calls/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/index.ts b/src/communications/calls/index.ts index a96c12c8e03..c20cff99fb0 100644 --- a/src/communications/calls/index.ts +++ b/src/communications/calls/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallCollectionResponse } from '../../models/'; +import { type CallCollectionResponse } from '../../models'; import { createCallFromDiscriminatorValue, deserializeIntoCall, serializeCall, type Call } from '../../models/call'; import { createCallCollectionResponseFromDiscriminatorValue } from '../../models/callCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CallItemRequestBuilder } from './item/'; -import { LogTeleconferenceDeviceQualityRequestBuilder } from './logTeleconferenceDeviceQuality/'; +import { CountRequestBuilder } from './count'; +import { CallItemRequestBuilder } from './item'; +import { LogTeleconferenceDeviceQualityRequestBuilder } from './logTeleconferenceDeviceQuality'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CallsRequestBuilderGetQueryParameters { diff --git a/src/communications/calls/item/addLargeGalleryView/addLargeGalleryViewPostRequestBody.ts b/src/communications/calls/item/addLargeGalleryView/addLargeGalleryViewPostRequestBody.ts deleted file mode 100644 index 31401116eb6..00000000000 --- a/src/communications/calls/item/addLargeGalleryView/addLargeGalleryViewPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddLargeGalleryViewPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The clientContext property - */ - clientContext?: string; -} -export function createAddLargeGalleryViewPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddLargeGalleryViewPostRequestBody; -} -export function deserializeIntoAddLargeGalleryViewPostRequestBody(addLargeGalleryViewPostRequestBody: AddLargeGalleryViewPostRequestBody | undefined = {} as AddLargeGalleryViewPostRequestBody) : Record void> { - return { - "clientContext": n => { addLargeGalleryViewPostRequestBody.clientContext = n.getStringValue(); }, - } -} -export function serializeAddLargeGalleryViewPostRequestBody(writer: SerializationWriter, addLargeGalleryViewPostRequestBody: AddLargeGalleryViewPostRequestBody | undefined = {} as AddLargeGalleryViewPostRequestBody) : void { - writer.writeStringValue("clientContext", addLargeGalleryViewPostRequestBody.clientContext); - writer.writeAdditionalData(addLargeGalleryViewPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/addLargeGalleryView/index.ts b/src/communications/calls/item/addLargeGalleryView/index.ts index 3d6bbb95524..b6ea5b364e3 100644 --- a/src/communications/calls/item/addLargeGalleryView/index.ts +++ b/src/communications/calls/item/addLargeGalleryView/index.ts @@ -1,7 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createAddLargeGalleryViewOperationFromDiscriminatorValue, deserializeIntoAddLargeGalleryViewOperation, serializeAddLargeGalleryViewOperation, type AddLargeGalleryViewOperation } from '../../../../models/addLargeGalleryViewOperation'; +import { type ODataError } from '../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddLargeGalleryViewPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -26,5 +29,58 @@ export function serializeAddLargeGalleryViewPostRequestBody(writer: Serializatio writer.writeStringValue("clientContext", addLargeGalleryViewPostRequestBody.clientContext); writer.writeAdditionalData(addLargeGalleryViewPostRequestBody.additionalData); } +/** + * Provides operations to call the addLargeGalleryView method. + */ +export class AddLargeGalleryViewRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new AddLargeGalleryViewRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/addLargeGalleryView"); + }; + /** + * Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of AddLargeGalleryViewOperation + * @see {@link https://learn.microsoft.com/graph/api/call-addlargegalleryview?view=graph-rest-1.0|Find more info here} + */ + public post(body: AddLargeGalleryViewPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createAddLargeGalleryViewOperationFromDiscriminatorValue, errorMapping); + }; + /** + * Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: AddLargeGalleryViewPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddLargeGalleryViewPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a addLargeGalleryViewRequestBuilder + */ + public withUrl(rawUrl: string) : AddLargeGalleryViewRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new AddLargeGalleryViewRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/answer/index.ts b/src/communications/calls/item/answer/index.ts index e22cd1c6032..0105c3db191 100644 --- a/src/communications/calls/item/answer/index.ts +++ b/src/communications/calls/item/answer/index.ts @@ -4,9 +4,7 @@ import { createIncomingCallOptionsFromDiscriminatorValue, serializeIncomingCallOptions, type IncomingCallOptions } from '../../../../models/incomingCallOptions'; import { createMediaConfigFromDiscriminatorValue, serializeMediaConfig, type MediaConfig } from '../../../../models/mediaConfig'; import { Modality } from '../../../../models/modality'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AnswerPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -56,57 +54,5 @@ export function serializeAnswerPostRequestBody(writer: SerializationWriter, answ writer.writeNumberValue("participantCapacity", answerPostRequestBody.participantCapacity); writer.writeAdditionalData(answerPostRequestBody.additionalData); } -/** - * Provides operations to call the answer method. - */ -export class AnswerRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AnswerRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/answer"); - }; - /** - * Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/call-answer?view=graph-rest-1.0|Find more info here} - */ - public post(body: AnswerPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AnswerPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAnswerPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a answerRequestBuilder - */ - public withUrl(rawUrl: string) : AnswerRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AnswerRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/audioRoutingGroups/count/index.ts b/src/communications/calls/item/audioRoutingGroups/count/index.ts index d991e28320e..2943f70a30d 100644 --- a/src/communications/calls/item/audioRoutingGroups/count/index.ts +++ b/src/communications/calls/item/audioRoutingGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/item/audioRoutingGroups/index.ts b/src/communications/calls/item/audioRoutingGroups/index.ts index 02459f9cfb8..1dec5cc77fd 100644 --- a/src/communications/calls/item/audioRoutingGroups/index.ts +++ b/src/communications/calls/item/audioRoutingGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AudioRoutingGroupCollectionResponse } from '../../../../models/'; +import { type AudioRoutingGroupCollectionResponse } from '../../../../models'; import { createAudioRoutingGroupFromDiscriminatorValue, deserializeIntoAudioRoutingGroup, serializeAudioRoutingGroup, type AudioRoutingGroup } from '../../../../models/audioRoutingGroup'; import { createAudioRoutingGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/audioRoutingGroupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AudioRoutingGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AudioRoutingGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AudioRoutingGroupsRequestBuilderGetQueryParameters { diff --git a/src/communications/calls/item/audioRoutingGroups/item/index.ts b/src/communications/calls/item/audioRoutingGroups/item/index.ts index 4e30576c05d..8e9b9338ab9 100644 --- a/src/communications/calls/item/audioRoutingGroups/item/index.ts +++ b/src/communications/calls/item/audioRoutingGroups/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAudioRoutingGroupFromDiscriminatorValue, deserializeIntoAudioRoutingGroup, serializeAudioRoutingGroup, type AudioRoutingGroup } from '../../../../../models/audioRoutingGroup'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/item/cancelMediaProcessing/cancelMediaProcessingPostRequestBody.ts b/src/communications/calls/item/cancelMediaProcessing/cancelMediaProcessingPostRequestBody.ts deleted file mode 100644 index c601aa78fe1..00000000000 --- a/src/communications/calls/item/cancelMediaProcessing/cancelMediaProcessingPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelMediaProcessingPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The clientContext property - */ - clientContext?: string; -} -export function createCancelMediaProcessingPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelMediaProcessingPostRequestBody; -} -export function deserializeIntoCancelMediaProcessingPostRequestBody(cancelMediaProcessingPostRequestBody: CancelMediaProcessingPostRequestBody | undefined = {} as CancelMediaProcessingPostRequestBody) : Record void> { - return { - "clientContext": n => { cancelMediaProcessingPostRequestBody.clientContext = n.getStringValue(); }, - } -} -export function serializeCancelMediaProcessingPostRequestBody(writer: SerializationWriter, cancelMediaProcessingPostRequestBody: CancelMediaProcessingPostRequestBody | undefined = {} as CancelMediaProcessingPostRequestBody) : void { - writer.writeStringValue("clientContext", cancelMediaProcessingPostRequestBody.clientContext); - writer.writeAdditionalData(cancelMediaProcessingPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/cancelMediaProcessing/index.ts b/src/communications/calls/item/cancelMediaProcessing/index.ts index 32581d1e56e..751fef08ab9 100644 --- a/src/communications/calls/item/cancelMediaProcessing/index.ts +++ b/src/communications/calls/item/cancelMediaProcessing/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createCancelMediaProcessingOperationFromDiscriminatorValue, deserializeIntoCancelMediaProcessingOperation, serializeCancelMediaProcessingOperation, type CancelMediaProcessingOperation } from '../../../../models/cancelMediaProcessingOperation'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelMediaProcessingPostRequestBody, serializeCancelMediaProcessingPostRequestBody, type CancelMediaProcessingPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelMediaProcessingPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The clientContext property + */ + clientContext?: string; +} +export function createCancelMediaProcessingPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelMediaProcessingPostRequestBody; +} +export function deserializeIntoCancelMediaProcessingPostRequestBody(cancelMediaProcessingPostRequestBody: CancelMediaProcessingPostRequestBody | undefined = {} as CancelMediaProcessingPostRequestBody) : Record void> { + return { + "clientContext": n => { cancelMediaProcessingPostRequestBody.clientContext = n.getStringValue(); }, + } +} +export function serializeCancelMediaProcessingPostRequestBody(writer: SerializationWriter, cancelMediaProcessingPostRequestBody: CancelMediaProcessingPostRequestBody | undefined = {} as CancelMediaProcessingPostRequestBody) : void { + writer.writeStringValue("clientContext", cancelMediaProcessingPostRequestBody.clientContext); + writer.writeAdditionalData(cancelMediaProcessingPostRequestBody.additionalData); +} /** * Provides operations to call the cancelMediaProcessing method. */ diff --git a/src/communications/calls/item/changeScreenSharingRole/changeScreenSharingRolePostRequestBody.ts b/src/communications/calls/item/changeScreenSharingRole/changeScreenSharingRolePostRequestBody.ts deleted file mode 100644 index 6087302685a..00000000000 --- a/src/communications/calls/item/changeScreenSharingRole/changeScreenSharingRolePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { ScreenSharingRole } from '../../../../models/screenSharingRole'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ChangeScreenSharingRolePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The role property - */ - role?: ScreenSharingRole; -} -export function createChangeScreenSharingRolePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoChangeScreenSharingRolePostRequestBody; -} -export function deserializeIntoChangeScreenSharingRolePostRequestBody(changeScreenSharingRolePostRequestBody: ChangeScreenSharingRolePostRequestBody | undefined = {} as ChangeScreenSharingRolePostRequestBody) : Record void> { - return { - "role": n => { changeScreenSharingRolePostRequestBody.role = n.getEnumValue(ScreenSharingRole); }, - } -} -export function serializeChangeScreenSharingRolePostRequestBody(writer: SerializationWriter, changeScreenSharingRolePostRequestBody: ChangeScreenSharingRolePostRequestBody | undefined = {} as ChangeScreenSharingRolePostRequestBody) : void { - writer.writeEnumValue("role", changeScreenSharingRolePostRequestBody.role); - writer.writeAdditionalData(changeScreenSharingRolePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/changeScreenSharingRole/index.ts b/src/communications/calls/item/changeScreenSharingRole/index.ts index 38745fe49a4..f82fb460342 100644 --- a/src/communications/calls/item/changeScreenSharingRole/index.ts +++ b/src/communications/calls/item/changeScreenSharingRole/index.ts @@ -1,8 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota +import { type ODataError } from '../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { ScreenSharingRole } from '../../../../models/screenSharingRole'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ChangeScreenSharingRolePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -27,5 +29,57 @@ export function serializeChangeScreenSharingRolePostRequestBody(writer: Serializ writer.writeEnumValue("role", changeScreenSharingRolePostRequestBody.role); writer.writeAdditionalData(changeScreenSharingRolePostRequestBody.additionalData); } +/** + * Provides operations to call the changeScreenSharingRole method. + */ +export class ChangeScreenSharingRoleRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ChangeScreenSharingRoleRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/changeScreenSharingRole"); + }; + /** + * Allow applications to share screen content with the participants of a group call. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/call-changescreensharingrole?view=graph-rest-1.0|Find more info here} + */ + public post(body: ChangeScreenSharingRolePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + }; + /** + * Allow applications to share screen content with the participants of a group call. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ChangeScreenSharingRolePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeChangeScreenSharingRolePostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a changeScreenSharingRoleRequestBuilder + */ + public withUrl(rawUrl: string) : ChangeScreenSharingRoleRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new ChangeScreenSharingRoleRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/contentSharingSessions/count/index.ts b/src/communications/calls/item/contentSharingSessions/count/index.ts index e3d937ea749..f669cd309a9 100644 --- a/src/communications/calls/item/contentSharingSessions/count/index.ts +++ b/src/communications/calls/item/contentSharingSessions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/item/contentSharingSessions/index.ts b/src/communications/calls/item/contentSharingSessions/index.ts index d3d681e53cb..fe4534fc5fe 100644 --- a/src/communications/calls/item/contentSharingSessions/index.ts +++ b/src/communications/calls/item/contentSharingSessions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentSharingSessionCollectionResponse } from '../../../../models/'; +import { type ContentSharingSessionCollectionResponse } from '../../../../models'; import { createContentSharingSessionFromDiscriminatorValue, deserializeIntoContentSharingSession, serializeContentSharingSession, type ContentSharingSession } from '../../../../models/contentSharingSession'; import { createContentSharingSessionCollectionResponseFromDiscriminatorValue } from '../../../../models/contentSharingSessionCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ContentSharingSessionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ContentSharingSessionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentSharingSessionsRequestBuilderGetQueryParameters { diff --git a/src/communications/calls/item/contentSharingSessions/item/index.ts b/src/communications/calls/item/contentSharingSessions/item/index.ts index 0c4f0320fd0..4806d3ef771 100644 --- a/src/communications/calls/item/contentSharingSessions/item/index.ts +++ b/src/communications/calls/item/contentSharingSessions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentSharingSessionFromDiscriminatorValue, deserializeIntoContentSharingSession, serializeContentSharingSession, type ContentSharingSession } from '../../../../../models/contentSharingSession'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/item/index.ts b/src/communications/calls/item/index.ts index 28068c65ae8..e96520703c3 100644 --- a/src/communications/calls/item/index.ts +++ b/src/communications/calls/item/index.ts @@ -2,26 +2,26 @@ // eslint-disable // Generated by Microsoft Kiota import { createCallFromDiscriminatorValue, deserializeIntoCall, serializeCall, type Call } from '../../../models/call'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AddLargeGalleryViewRequestBuilder } from './addLargeGalleryView/'; -import { AnswerRequestBuilder } from './answer/'; -import { AudioRoutingGroupsRequestBuilder } from './audioRoutingGroups/'; -import { CancelMediaProcessingRequestBuilder } from './cancelMediaProcessing/'; -import { ChangeScreenSharingRoleRequestBuilder } from './changeScreenSharingRole/'; -import { ContentSharingSessionsRequestBuilder } from './contentSharingSessions/'; -import { KeepAliveRequestBuilder } from './keepAlive/'; -import { MuteRequestBuilder } from './mute/'; -import { OperationsRequestBuilder } from './operations/'; -import { ParticipantsRequestBuilder } from './participants/'; -import { PlayPromptRequestBuilder } from './playPrompt/'; -import { RecordResponseRequestBuilder } from './recordResponse/'; -import { RedirectRequestBuilder } from './redirect/'; -import { RejectRequestBuilder } from './reject/'; -import { SubscribeToToneRequestBuilder } from './subscribeToTone/'; -import { TransferRequestBuilder } from './transfer/'; -import { UnmuteRequestBuilder } from './unmute/'; -import { UpdateRecordingStatusRequestBuilder } from './updateRecordingStatus/'; +import { AddLargeGalleryViewRequestBuilder } from './addLargeGalleryView'; +import { AnswerRequestBuilder } from './answer'; +import { AudioRoutingGroupsRequestBuilder } from './audioRoutingGroups'; +import { CancelMediaProcessingRequestBuilder } from './cancelMediaProcessing'; +import { ChangeScreenSharingRoleRequestBuilder } from './changeScreenSharingRole'; +import { ContentSharingSessionsRequestBuilder } from './contentSharingSessions'; +import { KeepAliveRequestBuilder } from './keepAlive'; +import { MuteRequestBuilder } from './mute'; +import { OperationsRequestBuilder } from './operations'; +import { ParticipantsRequestBuilder } from './participants'; +import { PlayPromptRequestBuilder } from './playPrompt'; +import { RecordResponseRequestBuilder } from './recordResponse'; +import { RedirectRequestBuilder } from './redirect'; +import { RejectRequestBuilder } from './reject'; +import { SubscribeToToneRequestBuilder } from './subscribeToTone'; +import { TransferRequestBuilder } from './transfer'; +import { UnmuteRequestBuilder } from './unmute'; +import { UpdateRecordingStatusRequestBuilder } from './updateRecordingStatus'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CallItemRequestBuilderGetQueryParameters { diff --git a/src/communications/calls/item/keepAlive/index.ts b/src/communications/calls/item/keepAlive/index.ts index f796fa0e4b6..abf96be55c9 100644 --- a/src/communications/calls/item/keepAlive/index.ts +++ b/src/communications/calls/item/keepAlive/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/item/mute/index.ts b/src/communications/calls/item/mute/index.ts index e02628236d5..6a2c3a5425c 100644 --- a/src/communications/calls/item/mute/index.ts +++ b/src/communications/calls/item/mute/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMuteParticipantOperationFromDiscriminatorValue, deserializeIntoMuteParticipantOperation, serializeMuteParticipantOperation, type MuteParticipantOperation } from '../../../../models/muteParticipantOperation'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMutePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeMutePostRequestBody(writer: SerializationWriter, mutePo writer.writeStringValue("clientContext", mutePostRequestBody.clientContext); writer.writeAdditionalData(mutePostRequestBody.additionalData); } -/** - * Provides operations to call the mute method. - */ -export class MuteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MuteRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/mute"); - }; - /** - * Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of MuteParticipantOperation - * @see {@link https://learn.microsoft.com/graph/api/call-mute?view=graph-rest-1.0|Find more info here} - */ - public post(body: MutePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMuteParticipantOperationFromDiscriminatorValue, errorMapping); - }; - /** - * Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MutePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMutePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a muteRequestBuilder - */ - public withUrl(rawUrl: string) : MuteRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MuteRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/operations/count/index.ts b/src/communications/calls/item/operations/count/index.ts index ab2ab6dc276..f87497d9d36 100644 --- a/src/communications/calls/item/operations/count/index.ts +++ b/src/communications/calls/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/item/operations/index.ts b/src/communications/calls/item/operations/index.ts index e86218f8eac..8d1a31b7efd 100644 --- a/src/communications/calls/item/operations/index.ts +++ b/src/communications/calls/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CommsOperationCollectionResponse } from '../../../../models/'; +import { type CommsOperationCollectionResponse } from '../../../../models'; import { createCommsOperationFromDiscriminatorValue, deserializeIntoCommsOperation, serializeCommsOperation, type CommsOperation } from '../../../../models/commsOperation'; import { createCommsOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/commsOperationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CommsOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CommsOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/communications/calls/item/operations/item/index.ts b/src/communications/calls/item/operations/item/index.ts index e3cd7fac81b..05f9ab4f427 100644 --- a/src/communications/calls/item/operations/item/index.ts +++ b/src/communications/calls/item/operations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCommsOperationFromDiscriminatorValue, deserializeIntoCommsOperation, serializeCommsOperation, type CommsOperation } from '../../../../../models/commsOperation'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/item/participants/count/index.ts b/src/communications/calls/item/participants/count/index.ts index c53c4bc25cb..9bfa9ab3394 100644 --- a/src/communications/calls/item/participants/count/index.ts +++ b/src/communications/calls/item/participants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/calls/item/participants/index.ts b/src/communications/calls/item/participants/index.ts index 0f9003af5c4..16181b3dcd8 100644 --- a/src/communications/calls/item/participants/index.ts +++ b/src/communications/calls/item/participants/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ParticipantCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ParticipantCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createParticipantFromDiscriminatorValue, deserializeIntoParticipant, serializeParticipant, type Participant } from '../../../../models/participant'; import { createParticipantCollectionResponseFromDiscriminatorValue } from '../../../../models/participantCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { InviteRequestBuilder } from './invite/'; -import { ParticipantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { InviteRequestBuilder } from './invite'; +import { ParticipantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ParticipantsRequestBuilderGetQueryParameters { diff --git a/src/communications/calls/item/participants/invite/index.ts b/src/communications/calls/item/participants/invite/index.ts index a552c8848db..a66674d985f 100644 --- a/src/communications/calls/item/participants/invite/index.ts +++ b/src/communications/calls/item/participants/invite/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota +import { createInvitationParticipantInfoFromDiscriminatorValue, serializeInvitationParticipantInfo, type InvitationParticipantInfo } from '../../../../../models/invitationParticipantInfo'; import { createInviteParticipantsOperationFromDiscriminatorValue, deserializeIntoInviteParticipantsOperation, serializeInviteParticipantsOperation, type InviteParticipantsOperation } from '../../../../../models/inviteParticipantsOperation'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoInvitePostRequestBody, serializeInvitePostRequestBody, type InvitePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createInvitePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoInvitePostRequestBody; +} +export function deserializeIntoInvitePostRequestBody(invitePostRequestBody: InvitePostRequestBody | undefined = {} as InvitePostRequestBody) : Record void> { + return { + "clientContext": n => { invitePostRequestBody.clientContext = n.getStringValue(); }, + "participants": n => { invitePostRequestBody.participants = n.getCollectionOfObjectValues(createInvitationParticipantInfoFromDiscriminatorValue); }, + } +} +export interface InvitePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The clientContext property + */ + clientContext?: string; + /** + * The participants property + */ + participants?: InvitationParticipantInfo[]; +} +export function serializeInvitePostRequestBody(writer: SerializationWriter, invitePostRequestBody: InvitePostRequestBody | undefined = {} as InvitePostRequestBody) : void { + writer.writeStringValue("clientContext", invitePostRequestBody.clientContext); + writer.writeCollectionOfObjectValues("participants", invitePostRequestBody.participants, serializeInvitationParticipantInfo); + writer.writeAdditionalData(invitePostRequestBody.additionalData); +} /** * Provides operations to call the invite method. */ @@ -20,11 +49,11 @@ export class InviteRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite"); }; /** - * 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 a Promise of InviteParticipantsOperation - * @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} */ public post(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -37,7 +66,7 @@ export class InviteRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createInviteParticipantsOperationFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation diff --git a/src/communications/calls/item/participants/invite/invitePostRequestBody.ts b/src/communications/calls/item/participants/invite/invitePostRequestBody.ts deleted file mode 100644 index 313c9bb8097..00000000000 --- a/src/communications/calls/item/participants/invite/invitePostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createInvitationParticipantInfoFromDiscriminatorValue, serializeInvitationParticipantInfo, type InvitationParticipantInfo } from '../../../../../models/invitationParticipantInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createInvitePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoInvitePostRequestBody; -} -export function deserializeIntoInvitePostRequestBody(invitePostRequestBody: InvitePostRequestBody | undefined = {} as InvitePostRequestBody) : Record void> { - return { - "clientContext": n => { invitePostRequestBody.clientContext = n.getStringValue(); }, - "participants": n => { invitePostRequestBody.participants = n.getCollectionOfObjectValues(createInvitationParticipantInfoFromDiscriminatorValue); }, - } -} -export interface InvitePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The clientContext property - */ - clientContext?: string; - /** - * The participants property - */ - participants?: InvitationParticipantInfo[]; -} -export function serializeInvitePostRequestBody(writer: SerializationWriter, invitePostRequestBody: InvitePostRequestBody | undefined = {} as InvitePostRequestBody) : void { - writer.writeStringValue("clientContext", invitePostRequestBody.clientContext); - writer.writeCollectionOfObjectValues("participants", invitePostRequestBody.participants, serializeInvitationParticipantInfo); - writer.writeAdditionalData(invitePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/participants/item/index.ts b/src/communications/calls/item/participants/item/index.ts index 20be9ba2f12..dbc89e370aa 100644 --- a/src/communications/calls/item/participants/item/index.ts +++ b/src/communications/calls/item/participants/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createParticipantFromDiscriminatorValue, deserializeIntoParticipant, serializeParticipant, type Participant } from '../../../../../models/participant'; -import { MuteRequestBuilder } from './mute/'; -import { StartHoldMusicRequestBuilder } from './startHoldMusic/'; -import { StopHoldMusicRequestBuilder } from './stopHoldMusic/'; +import { MuteRequestBuilder } from './mute'; +import { StartHoldMusicRequestBuilder } from './startHoldMusic'; +import { StopHoldMusicRequestBuilder } from './stopHoldMusic'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ParticipantItemRequestBuilderGetQueryParameters { diff --git a/src/communications/calls/item/participants/item/mute/index.ts b/src/communications/calls/item/participants/item/mute/index.ts index 4160d84bf5b..6a2c3a5425c 100644 --- a/src/communications/calls/item/participants/item/mute/index.ts +++ b/src/communications/calls/item/participants/item/mute/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMuteParticipantOperationFromDiscriminatorValue, deserializeIntoMuteParticipantOperation, serializeMuteParticipantOperation, type MuteParticipantOperation } from '../../../../../../models/muteParticipantOperation'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMutePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeMutePostRequestBody(writer: SerializationWriter, mutePo writer.writeStringValue("clientContext", mutePostRequestBody.clientContext); writer.writeAdditionalData(mutePostRequestBody.additionalData); } -/** - * Provides operations to call the mute method. - */ -export class MuteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MuteRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/mute"); - }; - /** - * Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of MuteParticipantOperation - * @see {@link https://learn.microsoft.com/graph/api/participant-mute?view=graph-rest-1.0|Find more info here} - */ - public post(body: MutePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMuteParticipantOperationFromDiscriminatorValue, errorMapping); - }; - /** - * Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MutePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMutePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a muteRequestBuilder - */ - public withUrl(rawUrl: string) : MuteRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MuteRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/participants/item/startHoldMusic/index.ts b/src/communications/calls/item/participants/item/startHoldMusic/index.ts index 91e46b1ce7c..3bd8829324d 100644 --- a/src/communications/calls/item/participants/item/startHoldMusic/index.ts +++ b/src/communications/calls/item/participants/item/startHoldMusic/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; +import { createPromptFromDiscriminatorValue, serializePrompt, type Prompt } from '../../../../../../models/prompt'; import { createStartHoldMusicOperationFromDiscriminatorValue, deserializeIntoStartHoldMusicOperation, serializeStartHoldMusicOperation, type StartHoldMusicOperation } from '../../../../../../models/startHoldMusicOperation'; -import { deserializeIntoStartHoldMusicPostRequestBody, serializeStartHoldMusicPostRequestBody, type StartHoldMusicPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createStartHoldMusicPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoStartHoldMusicPostRequestBody; +} +export function deserializeIntoStartHoldMusicPostRequestBody(startHoldMusicPostRequestBody: StartHoldMusicPostRequestBody | undefined = {} as StartHoldMusicPostRequestBody) : Record void> { + return { + "clientContext": n => { startHoldMusicPostRequestBody.clientContext = n.getStringValue(); }, + "customPrompt": n => { startHoldMusicPostRequestBody.customPrompt = n.getObjectValue(createPromptFromDiscriminatorValue); }, + } +} +export function serializeStartHoldMusicPostRequestBody(writer: SerializationWriter, startHoldMusicPostRequestBody: StartHoldMusicPostRequestBody | undefined = {} as StartHoldMusicPostRequestBody) : void { + writer.writeStringValue("clientContext", startHoldMusicPostRequestBody.clientContext); + writer.writeObjectValue("customPrompt", startHoldMusicPostRequestBody.customPrompt, serializePrompt); + writer.writeAdditionalData(startHoldMusicPostRequestBody.additionalData); +} +export interface StartHoldMusicPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The clientContext property + */ + clientContext?: string; + /** + * The customPrompt property + */ + customPrompt?: Prompt; +} /** * Provides operations to call the startHoldMusic method. */ diff --git a/src/communications/calls/item/participants/item/startHoldMusic/startHoldMusicPostRequestBody.ts b/src/communications/calls/item/participants/item/startHoldMusic/startHoldMusicPostRequestBody.ts deleted file mode 100644 index 52a920d8fa9..00000000000 --- a/src/communications/calls/item/participants/item/startHoldMusic/startHoldMusicPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPromptFromDiscriminatorValue, serializePrompt, type Prompt } from '../../../../../../models/prompt'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createStartHoldMusicPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoStartHoldMusicPostRequestBody; -} -export function deserializeIntoStartHoldMusicPostRequestBody(startHoldMusicPostRequestBody: StartHoldMusicPostRequestBody | undefined = {} as StartHoldMusicPostRequestBody) : Record void> { - return { - "clientContext": n => { startHoldMusicPostRequestBody.clientContext = n.getStringValue(); }, - "customPrompt": n => { startHoldMusicPostRequestBody.customPrompt = n.getObjectValue(createPromptFromDiscriminatorValue); }, - } -} -export function serializeStartHoldMusicPostRequestBody(writer: SerializationWriter, startHoldMusicPostRequestBody: StartHoldMusicPostRequestBody | undefined = {} as StartHoldMusicPostRequestBody) : void { - writer.writeStringValue("clientContext", startHoldMusicPostRequestBody.clientContext); - writer.writeObjectValue("customPrompt", startHoldMusicPostRequestBody.customPrompt, serializePrompt); - writer.writeAdditionalData(startHoldMusicPostRequestBody.additionalData); -} -export interface StartHoldMusicPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The clientContext property - */ - clientContext?: string; - /** - * The customPrompt property - */ - customPrompt?: Prompt; -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/participants/item/stopHoldMusic/index.ts b/src/communications/calls/item/participants/item/stopHoldMusic/index.ts index 1803db1627d..10832d86f85 100644 --- a/src/communications/calls/item/participants/item/stopHoldMusic/index.ts +++ b/src/communications/calls/item/participants/item/stopHoldMusic/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createStopHoldMusicOperationFromDiscriminatorValue, deserializeIntoStopHoldMusicOperation, serializeStopHoldMusicOperation, type StopHoldMusicOperation } from '../../../../../../models/stopHoldMusicOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createStopHoldMusicPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export interface StopHoldMusicPostRequestBody extends AdditionalDataHolder, Pars */ clientContext?: string; } -/** - * Provides operations to call the stopHoldMusic method. - */ -export class StopHoldMusicRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new StopHoldMusicRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/stopHoldMusic"); - }; - /** - * Reincorporate a participant previously put on hold to the call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of StopHoldMusicOperation - * @see {@link https://learn.microsoft.com/graph/api/participant-stopholdmusic?view=graph-rest-1.0|Find more info here} - */ - public post(body: StopHoldMusicPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createStopHoldMusicOperationFromDiscriminatorValue, errorMapping); - }; - /** - * Reincorporate a participant previously put on hold to the call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: StopHoldMusicPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStopHoldMusicPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a stopHoldMusicRequestBuilder - */ - public withUrl(rawUrl: string) : StopHoldMusicRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new StopHoldMusicRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/playPrompt/index.ts b/src/communications/calls/item/playPrompt/index.ts index 823f6c1e43b..a9074625ef0 100644 --- a/src/communications/calls/item/playPrompt/index.ts +++ b/src/communications/calls/item/playPrompt/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlayPromptOperationFromDiscriminatorValue, deserializeIntoPlayPromptOperation, serializePlayPromptOperation, type PlayPromptOperation } from '../../../../models/playPromptOperation'; -import { deserializeIntoPlayPromptPostRequestBody, serializePlayPromptPostRequestBody, type PlayPromptPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPromptFromDiscriminatorValue, serializePrompt, type Prompt } from '../../../../models/prompt'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPlayPromptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPlayPromptPostRequestBody; +} +export function deserializeIntoPlayPromptPostRequestBody(playPromptPostRequestBody: PlayPromptPostRequestBody | undefined = {} as PlayPromptPostRequestBody) : Record void> { + return { + "clientContext": n => { playPromptPostRequestBody.clientContext = n.getStringValue(); }, + "prompts": n => { playPromptPostRequestBody.prompts = n.getCollectionOfObjectValues(createPromptFromDiscriminatorValue); }, + } +} +export interface PlayPromptPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The clientContext property + */ + clientContext?: string; + /** + * The prompts property + */ + prompts?: Prompt[]; +} +export function serializePlayPromptPostRequestBody(writer: SerializationWriter, playPromptPostRequestBody: PlayPromptPostRequestBody | undefined = {} as PlayPromptPostRequestBody) : void { + writer.writeStringValue("clientContext", playPromptPostRequestBody.clientContext); + writer.writeCollectionOfObjectValues("prompts", playPromptPostRequestBody.prompts, serializePrompt); + writer.writeAdditionalData(playPromptPostRequestBody.additionalData); +} /** * Provides operations to call the playPrompt method. */ diff --git a/src/communications/calls/item/playPrompt/playPromptPostRequestBody.ts b/src/communications/calls/item/playPrompt/playPromptPostRequestBody.ts deleted file mode 100644 index c863d1112a4..00000000000 --- a/src/communications/calls/item/playPrompt/playPromptPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPromptFromDiscriminatorValue, serializePrompt, type Prompt } from '../../../../models/prompt'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPlayPromptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPlayPromptPostRequestBody; -} -export function deserializeIntoPlayPromptPostRequestBody(playPromptPostRequestBody: PlayPromptPostRequestBody | undefined = {} as PlayPromptPostRequestBody) : Record void> { - return { - "clientContext": n => { playPromptPostRequestBody.clientContext = n.getStringValue(); }, - "prompts": n => { playPromptPostRequestBody.prompts = n.getCollectionOfObjectValues(createPromptFromDiscriminatorValue); }, - } -} -export interface PlayPromptPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The clientContext property - */ - clientContext?: string; - /** - * The prompts property - */ - prompts?: Prompt[]; -} -export function serializePlayPromptPostRequestBody(writer: SerializationWriter, playPromptPostRequestBody: PlayPromptPostRequestBody | undefined = {} as PlayPromptPostRequestBody) : void { - writer.writeStringValue("clientContext", playPromptPostRequestBody.clientContext); - writer.writeCollectionOfObjectValues("prompts", playPromptPostRequestBody.prompts, serializePrompt); - writer.writeAdditionalData(playPromptPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/recordResponse/index.ts b/src/communications/calls/item/recordResponse/index.ts index 59e95c0c115..57628aee8bf 100644 --- a/src/communications/calls/item/recordResponse/index.ts +++ b/src/communications/calls/item/recordResponse/index.ts @@ -1,11 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPromptFromDiscriminatorValue, serializePrompt, type Prompt } from '../../../../models/prompt'; -import { createRecordOperationFromDiscriminatorValue, deserializeIntoRecordOperation, serializeRecordOperation, type RecordOperation } from '../../../../models/recordOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRecordResponsePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -72,58 +69,5 @@ export function serializeRecordResponsePostRequestBody(writer: SerializationWrit writer.writeCollectionOfPrimitiveValues("stopTones", recordResponsePostRequestBody.stopTones); writer.writeAdditionalData(recordResponsePostRequestBody.additionalData); } -/** - * Provides operations to call the recordResponse method. - */ -export class RecordResponseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RecordResponseRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/recordResponse"); - }; - /** - * Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of RecordOperation - * @see {@link https://learn.microsoft.com/graph/api/call-record?view=graph-rest-1.0|Find more info here} - */ - public post(body: RecordResponsePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createRecordOperationFromDiscriminatorValue, errorMapping); - }; - /** - * Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RecordResponsePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRecordResponsePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a recordResponseRequestBuilder - */ - public withUrl(rawUrl: string) : RecordResponseRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RecordResponseRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/redirect/index.ts b/src/communications/calls/item/redirect/index.ts index 7255f6c5043..c96a5017d77 100644 --- a/src/communications/calls/item/redirect/index.ts +++ b/src/communications/calls/item/redirect/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createInvitationParticipantInfoFromDiscriminatorValue, serializeInvitationParticipantInfo, type InvitationParticipantInfo } from '../../../../models/invitationParticipantInfo'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoRedirectPostRequestBody, serializeRedirectPostRequestBody, type RedirectPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRedirectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRedirectPostRequestBody; +} +export function deserializeIntoRedirectPostRequestBody(redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : Record void> { + return { + "callbackUri": n => { redirectPostRequestBody.callbackUri = n.getStringValue(); }, + "targets": n => { redirectPostRequestBody.targets = n.getCollectionOfObjectValues(createInvitationParticipantInfoFromDiscriminatorValue); }, + "timeout": n => { redirectPostRequestBody.timeout = n.getNumberValue(); }, + } +} +export interface RedirectPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The callbackUri property + */ + callbackUri?: string; + /** + * The targets property + */ + targets?: InvitationParticipantInfo[]; + /** + * The timeout property + */ + timeout?: number; +} +export function serializeRedirectPostRequestBody(writer: SerializationWriter, redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : void { + writer.writeStringValue("callbackUri", redirectPostRequestBody.callbackUri); + writer.writeCollectionOfObjectValues("targets", redirectPostRequestBody.targets, serializeInvitationParticipantInfo); + writer.writeNumberValue("timeout", redirectPostRequestBody.timeout); + writer.writeAdditionalData(redirectPostRequestBody.additionalData); +} /** * Provides operations to call the redirect method. */ diff --git a/src/communications/calls/item/redirect/redirectPostRequestBody.ts b/src/communications/calls/item/redirect/redirectPostRequestBody.ts deleted file mode 100644 index d94fa88475a..00000000000 --- a/src/communications/calls/item/redirect/redirectPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createInvitationParticipantInfoFromDiscriminatorValue, serializeInvitationParticipantInfo, type InvitationParticipantInfo } from '../../../../models/invitationParticipantInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRedirectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRedirectPostRequestBody; -} -export function deserializeIntoRedirectPostRequestBody(redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : Record void> { - return { - "callbackUri": n => { redirectPostRequestBody.callbackUri = n.getStringValue(); }, - "targets": n => { redirectPostRequestBody.targets = n.getCollectionOfObjectValues(createInvitationParticipantInfoFromDiscriminatorValue); }, - "timeout": n => { redirectPostRequestBody.timeout = n.getNumberValue(); }, - } -} -export interface RedirectPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The callbackUri property - */ - callbackUri?: string; - /** - * The targets property - */ - targets?: InvitationParticipantInfo[]; - /** - * The timeout property - */ - timeout?: number; -} -export function serializeRedirectPostRequestBody(writer: SerializationWriter, redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : void { - writer.writeStringValue("callbackUri", redirectPostRequestBody.callbackUri); - writer.writeCollectionOfObjectValues("targets", redirectPostRequestBody.targets, serializeInvitationParticipantInfo); - writer.writeNumberValue("timeout", redirectPostRequestBody.timeout); - writer.writeAdditionalData(redirectPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/reject/index.ts b/src/communications/calls/item/reject/index.ts index 8933d97899b..b9e46e88a8f 100644 --- a/src/communications/calls/item/reject/index.ts +++ b/src/communications/calls/item/reject/index.ts @@ -1,8 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota +import { type ODataError } from '../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { RejectReason } from '../../../../models/rejectReason'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRejectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -33,5 +35,57 @@ export function serializeRejectPostRequestBody(writer: SerializationWriter, reje writer.writeEnumValue("reason", rejectPostRequestBody.reason); writer.writeAdditionalData(rejectPostRequestBody.additionalData); } +/** + * Provides operations to call the reject method. + */ +export class RejectRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RejectRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/reject"); + }; + /** + * Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/call-reject?view=graph-rest-1.0|Find more info here} + */ + public post(body: RejectPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + }; + /** + * Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: RejectPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRejectPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a rejectRequestBuilder + */ + public withUrl(rawUrl: string) : RejectRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new RejectRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/reject/rejectPostRequestBody.ts b/src/communications/calls/item/reject/rejectPostRequestBody.ts deleted file mode 100644 index dbbf336910c..00000000000 --- a/src/communications/calls/item/reject/rejectPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { RejectReason } from '../../../../models/rejectReason'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRejectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRejectPostRequestBody; -} -export function deserializeIntoRejectPostRequestBody(rejectPostRequestBody: RejectPostRequestBody | undefined = {} as RejectPostRequestBody) : Record void> { - return { - "callbackUri": n => { rejectPostRequestBody.callbackUri = n.getStringValue(); }, - "reason": n => { rejectPostRequestBody.reason = n.getEnumValue(RejectReason); }, - } -} -export interface RejectPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The callbackUri property - */ - callbackUri?: string; - /** - * The reason property - */ - reason?: RejectReason; -} -export function serializeRejectPostRequestBody(writer: SerializationWriter, rejectPostRequestBody: RejectPostRequestBody | undefined = {} as RejectPostRequestBody) : void { - writer.writeStringValue("callbackUri", rejectPostRequestBody.callbackUri); - writer.writeEnumValue("reason", rejectPostRequestBody.reason); - writer.writeAdditionalData(rejectPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/subscribeToTone/index.ts b/src/communications/calls/item/subscribeToTone/index.ts index 84d04cd9f8f..dfbf178b0a7 100644 --- a/src/communications/calls/item/subscribeToTone/index.ts +++ b/src/communications/calls/item/subscribeToTone/index.ts @@ -1,12 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSubscribeToToneOperationFromDiscriminatorValue, deserializeIntoSubscribeToToneOperation, serializeSubscribeToToneOperation, type SubscribeToToneOperation } from '../../../../models/subscribeToToneOperation'; -import { deserializeIntoSubscribeToTonePostRequestBody, serializeSubscribeToTonePostRequestBody, type SubscribeToTonePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSubscribeToTonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSubscribeToTonePostRequestBody; +} +export function deserializeIntoSubscribeToTonePostRequestBody(subscribeToTonePostRequestBody: SubscribeToTonePostRequestBody | undefined = {} as SubscribeToTonePostRequestBody) : Record void> { + return { + "clientContext": n => { subscribeToTonePostRequestBody.clientContext = n.getStringValue(); }, + } +} +export function serializeSubscribeToTonePostRequestBody(writer: SerializationWriter, subscribeToTonePostRequestBody: SubscribeToTonePostRequestBody | undefined = {} as SubscribeToTonePostRequestBody) : void { + writer.writeStringValue("clientContext", subscribeToTonePostRequestBody.clientContext); + writer.writeAdditionalData(subscribeToTonePostRequestBody.additionalData); +} +export interface SubscribeToTonePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The clientContext property + */ + clientContext?: string; +} /** * Provides operations to call the subscribeToTone method. */ diff --git a/src/communications/calls/item/subscribeToTone/subscribeToTonePostRequestBody.ts b/src/communications/calls/item/subscribeToTone/subscribeToTonePostRequestBody.ts deleted file mode 100644 index 14189427417..00000000000 --- a/src/communications/calls/item/subscribeToTone/subscribeToTonePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSubscribeToTonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSubscribeToTonePostRequestBody; -} -export function deserializeIntoSubscribeToTonePostRequestBody(subscribeToTonePostRequestBody: SubscribeToTonePostRequestBody | undefined = {} as SubscribeToTonePostRequestBody) : Record void> { - return { - "clientContext": n => { subscribeToTonePostRequestBody.clientContext = n.getStringValue(); }, - } -} -export function serializeSubscribeToTonePostRequestBody(writer: SerializationWriter, subscribeToTonePostRequestBody: SubscribeToTonePostRequestBody | undefined = {} as SubscribeToTonePostRequestBody) : void { - writer.writeStringValue("clientContext", subscribeToTonePostRequestBody.clientContext); - writer.writeAdditionalData(subscribeToTonePostRequestBody.additionalData); -} -export interface SubscribeToTonePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The clientContext property - */ - clientContext?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/transfer/index.ts b/src/communications/calls/item/transfer/index.ts index 7ce11b18165..1562d03bf3a 100644 --- a/src/communications/calls/item/transfer/index.ts +++ b/src/communications/calls/item/transfer/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { createInvitationParticipantInfoFromDiscriminatorValue, serializeInvitationParticipantInfo, type InvitationParticipantInfo } from '../../../../models/invitationParticipantInfo'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createParticipantInfoFromDiscriminatorValue, serializeParticipantInfo, type ParticipantInfo } from '../../../../models/participantInfo'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTransferPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +34,5 @@ export interface TransferPostRequestBody extends AdditionalDataHolder, Parsable */ transferTarget?: InvitationParticipantInfo; } -/** - * Provides operations to call the transfer method. - */ -export class TransferRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TransferRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/transfer"); - }; - /** - * Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/call-transfer?view=graph-rest-1.0|Find more info here} - */ - public post(body: TransferPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TransferPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTransferPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a transferRequestBuilder - */ - public withUrl(rawUrl: string) : TransferRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TransferRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/calls/item/unmute/index.ts b/src/communications/calls/item/unmute/index.ts index f66207479fb..41fc9427376 100644 --- a/src/communications/calls/item/unmute/index.ts +++ b/src/communications/calls/item/unmute/index.ts @@ -1,12 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnmuteParticipantOperationFromDiscriminatorValue, deserializeIntoUnmuteParticipantOperation, serializeUnmuteParticipantOperation, type UnmuteParticipantOperation } from '../../../../models/unmuteParticipantOperation'; -import { deserializeIntoUnmutePostRequestBody, serializeUnmutePostRequestBody, type UnmutePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnmutePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnmutePostRequestBody; +} +export function deserializeIntoUnmutePostRequestBody(unmutePostRequestBody: UnmutePostRequestBody | undefined = {} as UnmutePostRequestBody) : Record void> { + return { + "clientContext": n => { unmutePostRequestBody.clientContext = n.getStringValue(); }, + } +} +export function serializeUnmutePostRequestBody(writer: SerializationWriter, unmutePostRequestBody: UnmutePostRequestBody | undefined = {} as UnmutePostRequestBody) : void { + writer.writeStringValue("clientContext", unmutePostRequestBody.clientContext); + writer.writeAdditionalData(unmutePostRequestBody.additionalData); +} +export interface UnmutePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The clientContext property + */ + clientContext?: string; +} /** * Provides operations to call the unmute method. */ diff --git a/src/communications/calls/item/unmute/unmutePostRequestBody.ts b/src/communications/calls/item/unmute/unmutePostRequestBody.ts deleted file mode 100644 index 2c5b3a9b781..00000000000 --- a/src/communications/calls/item/unmute/unmutePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnmutePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnmutePostRequestBody; -} -export function deserializeIntoUnmutePostRequestBody(unmutePostRequestBody: UnmutePostRequestBody | undefined = {} as UnmutePostRequestBody) : Record void> { - return { - "clientContext": n => { unmutePostRequestBody.clientContext = n.getStringValue(); }, - } -} -export function serializeUnmutePostRequestBody(writer: SerializationWriter, unmutePostRequestBody: UnmutePostRequestBody | undefined = {} as UnmutePostRequestBody) : void { - writer.writeStringValue("clientContext", unmutePostRequestBody.clientContext); - writer.writeAdditionalData(unmutePostRequestBody.additionalData); -} -export interface UnmutePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The clientContext property - */ - clientContext?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/item/updateRecordingStatus/index.ts b/src/communications/calls/item/updateRecordingStatus/index.ts index d11eae102e9..9887b3479a2 100644 --- a/src/communications/calls/item/updateRecordingStatus/index.ts +++ b/src/communications/calls/item/updateRecordingStatus/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; +import { RecordingStatus } from '../../../../models/recordingStatus'; import { createUpdateRecordingStatusOperationFromDiscriminatorValue, deserializeIntoUpdateRecordingStatusOperation, serializeUpdateRecordingStatusOperation, type UpdateRecordingStatusOperation } from '../../../../models/updateRecordingStatusOperation'; -import { deserializeIntoUpdateRecordingStatusPostRequestBody, serializeUpdateRecordingStatusPostRequestBody, type UpdateRecordingStatusPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpdateRecordingStatusPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpdateRecordingStatusPostRequestBody; +} +export function deserializeIntoUpdateRecordingStatusPostRequestBody(updateRecordingStatusPostRequestBody: UpdateRecordingStatusPostRequestBody | undefined = {} as UpdateRecordingStatusPostRequestBody) : Record void> { + return { + "clientContext": n => { updateRecordingStatusPostRequestBody.clientContext = n.getStringValue(); }, + "status": n => { updateRecordingStatusPostRequestBody.status = n.getEnumValue(RecordingStatus); }, + } +} +export function serializeUpdateRecordingStatusPostRequestBody(writer: SerializationWriter, updateRecordingStatusPostRequestBody: UpdateRecordingStatusPostRequestBody | undefined = {} as UpdateRecordingStatusPostRequestBody) : void { + writer.writeStringValue("clientContext", updateRecordingStatusPostRequestBody.clientContext); + writer.writeEnumValue("status", updateRecordingStatusPostRequestBody.status); + writer.writeAdditionalData(updateRecordingStatusPostRequestBody.additionalData); +} +export interface UpdateRecordingStatusPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The clientContext property + */ + clientContext?: string; + /** + * The status property + */ + status?: RecordingStatus; +} /** * Provides operations to call the updateRecordingStatus method. */ diff --git a/src/communications/calls/item/updateRecordingStatus/updateRecordingStatusPostRequestBody.ts b/src/communications/calls/item/updateRecordingStatus/updateRecordingStatusPostRequestBody.ts deleted file mode 100644 index 6009b4653cd..00000000000 --- a/src/communications/calls/item/updateRecordingStatus/updateRecordingStatusPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { RecordingStatus } from '../../../../models/recordingStatus'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpdateRecordingStatusPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpdateRecordingStatusPostRequestBody; -} -export function deserializeIntoUpdateRecordingStatusPostRequestBody(updateRecordingStatusPostRequestBody: UpdateRecordingStatusPostRequestBody | undefined = {} as UpdateRecordingStatusPostRequestBody) : Record void> { - return { - "clientContext": n => { updateRecordingStatusPostRequestBody.clientContext = n.getStringValue(); }, - "status": n => { updateRecordingStatusPostRequestBody.status = n.getEnumValue(RecordingStatus); }, - } -} -export function serializeUpdateRecordingStatusPostRequestBody(writer: SerializationWriter, updateRecordingStatusPostRequestBody: UpdateRecordingStatusPostRequestBody | undefined = {} as UpdateRecordingStatusPostRequestBody) : void { - writer.writeStringValue("clientContext", updateRecordingStatusPostRequestBody.clientContext); - writer.writeEnumValue("status", updateRecordingStatusPostRequestBody.status); - writer.writeAdditionalData(updateRecordingStatusPostRequestBody.additionalData); -} -export interface UpdateRecordingStatusPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The clientContext property - */ - clientContext?: string; - /** - * The status property - */ - status?: RecordingStatus; -} -// tslint:enable -// eslint-enable diff --git a/src/communications/calls/logTeleconferenceDeviceQuality/index.ts b/src/communications/calls/logTeleconferenceDeviceQuality/index.ts index 2a34e20f5eb..9b0babd1644 100644 --- a/src/communications/calls/logTeleconferenceDeviceQuality/index.ts +++ b/src/communications/calls/logTeleconferenceDeviceQuality/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeleconferenceDeviceQualityFromDiscriminatorValue, serializeTeleconferenceDeviceQuality, type TeleconferenceDeviceQuality } from '../../../models/teleconferenceDeviceQuality'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createLogTeleconferenceDeviceQualityPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export function serializeLogTeleconferenceDeviceQualityPostRequestBody(writer: S writer.writeObjectValue("quality", logTeleconferenceDeviceQualityPostRequestBody.quality, serializeTeleconferenceDeviceQuality); writer.writeAdditionalData(logTeleconferenceDeviceQualityPostRequestBody.additionalData); } -/** - * Provides operations to call the logTeleconferenceDeviceQuality method. - */ -export class LogTeleconferenceDeviceQualityRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new LogTeleconferenceDeviceQualityRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/logTeleconferenceDeviceQuality"); - }; - /** - * Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/call-logteleconferencedevicequality?view=graph-rest-1.0|Find more info here} - */ - public post(body: LogTeleconferenceDeviceQualityPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: LogTeleconferenceDeviceQualityPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLogTeleconferenceDeviceQualityPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a logTeleconferenceDeviceQualityRequestBuilder - */ - public withUrl(rawUrl: string) : LogTeleconferenceDeviceQualityRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new LogTeleconferenceDeviceQualityRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/getPresencesByUserId/getPresencesByUserIdPostRequestBody.ts b/src/communications/getPresencesByUserId/getPresencesByUserIdPostRequestBody.ts deleted file mode 100644 index 8599c44a707..00000000000 --- a/src/communications/getPresencesByUserId/getPresencesByUserIdPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetPresencesByUserIdPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetPresencesByUserIdPostRequestBody; -} -export function deserializeIntoGetPresencesByUserIdPostRequestBody(getPresencesByUserIdPostRequestBody: GetPresencesByUserIdPostRequestBody | undefined = {} as GetPresencesByUserIdPostRequestBody) : Record void> { - return { - "ids": n => { getPresencesByUserIdPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetPresencesByUserIdPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} -export function serializeGetPresencesByUserIdPostRequestBody(writer: SerializationWriter, getPresencesByUserIdPostRequestBody: GetPresencesByUserIdPostRequestBody | undefined = {} as GetPresencesByUserIdPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getPresencesByUserIdPostRequestBody.ids); - writer.writeAdditionalData(getPresencesByUserIdPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/getPresencesByUserId/getPresencesByUserIdPostResponse.ts b/src/communications/getPresencesByUserId/getPresencesByUserIdPostResponse.ts deleted file mode 100644 index f580783e5b3..00000000000 --- a/src/communications/getPresencesByUserId/getPresencesByUserIdPostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createPresenceFromDiscriminatorValue, serializePresence, type Presence } from '../../models/presence'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetPresencesByUserIdPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetPresencesByUserIdPostResponse; -} -export function deserializeIntoGetPresencesByUserIdPostResponse(getPresencesByUserIdPostResponse: GetPresencesByUserIdPostResponse | undefined = {} as GetPresencesByUserIdPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getPresencesByUserIdPostResponse), - "value": n => { getPresencesByUserIdPostResponse.value = n.getCollectionOfObjectValues(createPresenceFromDiscriminatorValue); }, - } -} -export interface GetPresencesByUserIdPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: Presence[]; -} -export function serializeGetPresencesByUserIdPostResponse(writer: SerializationWriter, getPresencesByUserIdPostResponse: GetPresencesByUserIdPostResponse | undefined = {} as GetPresencesByUserIdPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getPresencesByUserIdPostResponse) - writer.writeCollectionOfObjectValues("value", getPresencesByUserIdPostResponse.value, serializePresence); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/getPresencesByUserId/index.ts b/src/communications/getPresencesByUserId/index.ts index 12cac5a7c4a..b7bc379047f 100644 --- a/src/communications/getPresencesByUserId/index.ts +++ b/src/communications/getPresencesByUserId/index.ts @@ -1,11 +1,55 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { createGetPresencesByUserIdPostResponseFromDiscriminatorValue, deserializeIntoGetPresencesByUserIdPostRequestBody, deserializeIntoGetPresencesByUserIdPostResponse, serializeGetPresencesByUserIdPostRequestBody, serializeGetPresencesByUserIdPostResponse, type GetPresencesByUserIdPostRequestBody, type GetPresencesByUserIdPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPresenceFromDiscriminatorValue, serializePresence, type Presence } from '../../models/presence'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetPresencesByUserIdPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetPresencesByUserIdPostRequestBody; +} +export function createGetPresencesByUserIdPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetPresencesByUserIdPostResponse; +} +export function deserializeIntoGetPresencesByUserIdPostRequestBody(getPresencesByUserIdPostRequestBody: GetPresencesByUserIdPostRequestBody | undefined = {} as GetPresencesByUserIdPostRequestBody) : Record void> { + return { + "ids": n => { getPresencesByUserIdPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, + } +} +export function deserializeIntoGetPresencesByUserIdPostResponse(getPresencesByUserIdPostResponse: GetPresencesByUserIdPostResponse | undefined = {} as GetPresencesByUserIdPostResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getPresencesByUserIdPostResponse), + "value": n => { getPresencesByUserIdPostResponse.value = n.getCollectionOfObjectValues(createPresenceFromDiscriminatorValue); }, + } +} +export interface GetPresencesByUserIdPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The ids property + */ + ids?: string[]; +} +export interface GetPresencesByUserIdPostResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: Presence[]; +} +export function serializeGetPresencesByUserIdPostRequestBody(writer: SerializationWriter, getPresencesByUserIdPostRequestBody: GetPresencesByUserIdPostRequestBody | undefined = {} as GetPresencesByUserIdPostRequestBody) : void { + writer.writeCollectionOfPrimitiveValues("ids", getPresencesByUserIdPostRequestBody.ids); + writer.writeAdditionalData(getPresencesByUserIdPostRequestBody.additionalData); +} +export function serializeGetPresencesByUserIdPostResponse(writer: SerializationWriter, getPresencesByUserIdPostResponse: GetPresencesByUserIdPostResponse | undefined = {} as GetPresencesByUserIdPostResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getPresencesByUserIdPostResponse) + writer.writeCollectionOfObjectValues("value", getPresencesByUserIdPostResponse.value, serializePresence); +} /** * Provides operations to call the getPresencesByUserId method. */ diff --git a/src/communications/index.ts b/src/communications/index.ts index e117b30fb2b..a981bbf3858 100644 --- a/src/communications/index.ts +++ b/src/communications/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createCloudCommunicationsFromDiscriminatorValue, deserializeIntoCloudCommunications, serializeCloudCommunications, type CloudCommunications } from '../models/cloudCommunications'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CallRecordsRequestBuilder } from './callRecords/'; -import { CallsRequestBuilder } from './calls/'; -import { GetPresencesByUserIdRequestBuilder } from './getPresencesByUserId/'; -import { OnlineMeetingsRequestBuilder } from './onlineMeetings/'; -import { PresencesRequestBuilder } from './presences/'; +import { CallRecordsRequestBuilder } from './callRecords'; +import { CallsRequestBuilder } from './calls'; +import { GetPresencesByUserIdRequestBuilder } from './getPresencesByUserId'; +import { OnlineMeetingsRequestBuilder } from './onlineMeetings'; +import { PresencesRequestBuilder } from './presences'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CommunicationsRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/count/index.ts b/src/communications/onlineMeetings/count/index.ts index a733c4cc3a5..4021e926afb 100644 --- a/src/communications/onlineMeetings/count/index.ts +++ b/src/communications/onlineMeetings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/createOrGet/index.ts b/src/communications/onlineMeetings/createOrGet/index.ts index 4777e66d581..7d3eb614f2e 100644 --- a/src/communications/onlineMeetings/createOrGet/index.ts +++ b/src/communications/onlineMeetings/createOrGet/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { createChatInfoFromDiscriminatorValue, serializeChatInfo, type ChatInfo } from '../../../models/chatInfo'; import { createMeetingParticipantsFromDiscriminatorValue, serializeMeetingParticipants, type MeetingParticipants } from '../../../models/meetingParticipants'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createOnlineMeetingFromDiscriminatorValue, deserializeIntoOnlineMeeting, serializeOnlineMeeting, type OnlineMeeting } from '../../../models/onlineMeeting'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateOrGetPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -61,58 +58,5 @@ export function serializeCreateOrGetPostRequestBody(writer: SerializationWriter, writer.writeStringValue("subject", createOrGetPostRequestBody.subject); writer.writeAdditionalData(createOrGetPostRequestBody.additionalData); } -/** - * Provides operations to call the createOrGet method. - */ -export class CreateOrGetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateOrGetRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/onlineMeetings/createOrGet"); - }; - /** - * Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnlineMeeting - * @see {@link https://learn.microsoft.com/graph/api/onlinemeeting-createorget?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateOrGetPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnlineMeetingFromDiscriminatorValue, errorMapping); - }; - /** - * Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateOrGetPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateOrGetPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createOrGetRequestBuilder - */ - public withUrl(rawUrl: string) : CreateOrGetRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateOrGetRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/onlineMeetings/index.ts b/src/communications/onlineMeetings/index.ts index c41d64f4317..a69a2d5d2d4 100644 --- a/src/communications/onlineMeetings/index.ts +++ b/src/communications/onlineMeetings/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnlineMeetingCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type OnlineMeetingCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createOnlineMeetingFromDiscriminatorValue, deserializeIntoOnlineMeeting, serializeOnlineMeeting, type OnlineMeeting } from '../../models/onlineMeeting'; import { createOnlineMeetingCollectionResponseFromDiscriminatorValue } from '../../models/onlineMeetingCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { CreateOrGetRequestBuilder } from './createOrGet/'; -import { OnlineMeetingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateOrGetRequestBuilder } from './createOrGet'; +import { OnlineMeetingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnlineMeetingsRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/attendanceReports/count/index.ts b/src/communications/onlineMeetings/item/attendanceReports/count/index.ts index 518c23d92db..df8a8a6f837 100644 --- a/src/communications/onlineMeetings/item/attendanceReports/count/index.ts +++ b/src/communications/onlineMeetings/item/attendanceReports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/item/attendanceReports/index.ts b/src/communications/onlineMeetings/item/attendanceReports/index.ts index 544bfdaa0b1..7d512a3e1f5 100644 --- a/src/communications/onlineMeetings/item/attendanceReports/index.ts +++ b/src/communications/onlineMeetings/item/attendanceReports/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MeetingAttendanceReportCollectionResponse } from '../../../../models/'; +import { type MeetingAttendanceReportCollectionResponse } from '../../../../models'; import { createMeetingAttendanceReportFromDiscriminatorValue, deserializeIntoMeetingAttendanceReport, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '../../../../models/meetingAttendanceReport'; import { createMeetingAttendanceReportCollectionResponseFromDiscriminatorValue } from '../../../../models/meetingAttendanceReportCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MeetingAttendanceReportItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MeetingAttendanceReportItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttendanceReportsRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.ts b/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.ts index 28a8cf4d797..8dada9b4537 100644 --- a/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.ts +++ b/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.ts b/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.ts index 890599d8363..428acc946df 100644 --- a/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.ts +++ b/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttendanceRecordCollectionResponse } from '../../../../../../models/'; +import { type AttendanceRecordCollectionResponse } from '../../../../../../models'; import { createAttendanceRecordFromDiscriminatorValue, deserializeIntoAttendanceRecord, serializeAttendanceRecord, type AttendanceRecord } from '../../../../../../models/attendanceRecord'; import { createAttendanceRecordCollectionResponseFromDiscriminatorValue } from '../../../../../../models/attendanceRecordCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AttendanceRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AttendanceRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttendanceRecordsRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.ts b/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.ts index 3729350cb62..9c218172ad8 100644 --- a/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.ts +++ b/src/communications/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttendanceRecordFromDiscriminatorValue, deserializeIntoAttendanceRecord, serializeAttendanceRecord, type AttendanceRecord } from '../../../../../../../models/attendanceRecord'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/item/attendanceReports/item/index.ts b/src/communications/onlineMeetings/item/attendanceReports/item/index.ts index 63800f8a14e..1f5ccacca9a 100644 --- a/src/communications/onlineMeetings/item/attendanceReports/item/index.ts +++ b/src/communications/onlineMeetings/item/attendanceReports/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createMeetingAttendanceReportFromDiscriminatorValue, deserializeIntoMeetingAttendanceReport, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '../../../../../models/meetingAttendanceReport'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AttendanceRecordsRequestBuilder } from './attendanceRecords/'; +import { AttendanceRecordsRequestBuilder } from './attendanceRecords'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MeetingAttendanceReportItemRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/attendeeReport/index.ts b/src/communications/onlineMeetings/item/attendeeReport/index.ts index 155bfdedfe6..5eac96e2dc5 100644 --- a/src/communications/onlineMeetings/item/attendeeReport/index.ts +++ b/src/communications/onlineMeetings/item/attendeeReport/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/getVirtualAppointmentJoinWebUrlGetResponse.ts b/src/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/getVirtualAppointmentJoinWebUrlGetResponse.ts deleted file mode 100644 index 8c7f0c7bfa1..00000000000 --- a/src/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/getVirtualAppointmentJoinWebUrlGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetVirtualAppointmentJoinWebUrlGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetVirtualAppointmentJoinWebUrlGetResponse; -} -export function deserializeIntoGetVirtualAppointmentJoinWebUrlGetResponse(getVirtualAppointmentJoinWebUrlGetResponse: GetVirtualAppointmentJoinWebUrlGetResponse | undefined = {} as GetVirtualAppointmentJoinWebUrlGetResponse) : Record void> { - return { - "value": n => { getVirtualAppointmentJoinWebUrlGetResponse.value = n.getStringValue(); }, - } -} -export interface GetVirtualAppointmentJoinWebUrlGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: string; -} -export function serializeGetVirtualAppointmentJoinWebUrlGetResponse(writer: SerializationWriter, getVirtualAppointmentJoinWebUrlGetResponse: GetVirtualAppointmentJoinWebUrlGetResponse | undefined = {} as GetVirtualAppointmentJoinWebUrlGetResponse) : void { - writer.writeStringValue("value", getVirtualAppointmentJoinWebUrlGetResponse.value); - writer.writeAdditionalData(getVirtualAppointmentJoinWebUrlGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.ts b/src/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.ts index d9bf7e96943..bc5c58370b4 100644 --- a/src/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.ts +++ b/src/communications/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createGetVirtualAppointmentJoinWebUrlGetResponseFromDiscriminatorValue } from './'; -import { type GetVirtualAppointmentJoinWebUrlGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetVirtualAppointmentJoinWebUrlGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetVirtualAppointmentJoinWebUrlGetResponse; +} +export function deserializeIntoGetVirtualAppointmentJoinWebUrlGetResponse(getVirtualAppointmentJoinWebUrlGetResponse: GetVirtualAppointmentJoinWebUrlGetResponse | undefined = {} as GetVirtualAppointmentJoinWebUrlGetResponse) : Record void> { + return { + "value": n => { getVirtualAppointmentJoinWebUrlGetResponse.value = n.getStringValue(); }, + } +} +export interface GetVirtualAppointmentJoinWebUrlGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: string; +} +export function serializeGetVirtualAppointmentJoinWebUrlGetResponse(writer: SerializationWriter, getVirtualAppointmentJoinWebUrlGetResponse: GetVirtualAppointmentJoinWebUrlGetResponse | undefined = {} as GetVirtualAppointmentJoinWebUrlGetResponse) : void { + writer.writeStringValue("value", getVirtualAppointmentJoinWebUrlGetResponse.value); + writer.writeAdditionalData(getVirtualAppointmentJoinWebUrlGetResponse.additionalData); +} /** * Provides operations to call the getVirtualAppointmentJoinWebUrl method. */ diff --git a/src/communications/onlineMeetings/item/index.ts b/src/communications/onlineMeetings/item/index.ts index 30344965614..24eb13174a1 100644 --- a/src/communications/onlineMeetings/item/index.ts +++ b/src/communications/onlineMeetings/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOnlineMeetingFromDiscriminatorValue, deserializeIntoOnlineMeeting, serializeOnlineMeeting, type OnlineMeeting } from '../../../models/onlineMeeting'; -import { AttendanceReportsRequestBuilder } from './attendanceReports/'; -import { AttendeeReportRequestBuilder } from './attendeeReport/'; -import { GetVirtualAppointmentJoinWebUrlRequestBuilder } from './getVirtualAppointmentJoinWebUrl/'; -import { RecordingsRequestBuilder } from './recordings/'; -import { TranscriptsRequestBuilder } from './transcripts/'; +import { AttendanceReportsRequestBuilder } from './attendanceReports'; +import { AttendeeReportRequestBuilder } from './attendeeReport'; +import { GetVirtualAppointmentJoinWebUrlRequestBuilder } from './getVirtualAppointmentJoinWebUrl'; +import { RecordingsRequestBuilder } from './recordings'; +import { TranscriptsRequestBuilder } from './transcripts'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnlineMeetingItemRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/recordings/count/index.ts b/src/communications/onlineMeetings/item/recordings/count/index.ts index 773d2b4d116..f8e284c1483 100644 --- a/src/communications/onlineMeetings/item/recordings/count/index.ts +++ b/src/communications/onlineMeetings/item/recordings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/item/recordings/index.ts b/src/communications/onlineMeetings/item/recordings/index.ts index bf6f936c427..7c82c0e98c4 100644 --- a/src/communications/onlineMeetings/item/recordings/index.ts +++ b/src/communications/onlineMeetings/item/recordings/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallRecordingCollectionResponse } from '../../../../models/'; +import { type CallRecordingCollectionResponse } from '../../../../models'; import { createCallRecordingFromDiscriminatorValue, deserializeIntoCallRecording, serializeCallRecording, type CallRecording } from '../../../../models/callRecording'; import { createCallRecordingCollectionResponseFromDiscriminatorValue } from '../../../../models/callRecordingCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CallRecordingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CallRecordingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RecordingsRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/recordings/item/content/index.ts b/src/communications/onlineMeetings/item/recordings/item/content/index.ts index 36832b37edf..01e9fb5f404 100644 --- a/src/communications/onlineMeetings/item/recordings/item/content/index.ts +++ b/src/communications/onlineMeetings/item/recordings/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallRecording } from '../../../../../../models/'; +import { type CallRecording } from '../../../../../../models'; import { createCallRecordingFromDiscriminatorValue } from '../../../../../../models/callRecording'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/item/recordings/item/index.ts b/src/communications/onlineMeetings/item/recordings/item/index.ts index c6fd6380fdf..9cadaccfe67 100644 --- a/src/communications/onlineMeetings/item/recordings/item/index.ts +++ b/src/communications/onlineMeetings/item/recordings/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCallRecordingFromDiscriminatorValue, deserializeIntoCallRecording, serializeCallRecording, type CallRecording } from '../../../../../models/callRecording'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CallRecordingItemRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/transcripts/count/index.ts b/src/communications/onlineMeetings/item/transcripts/count/index.ts index a643a73bcac..f10385b7000 100644 --- a/src/communications/onlineMeetings/item/transcripts/count/index.ts +++ b/src/communications/onlineMeetings/item/transcripts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/item/transcripts/index.ts b/src/communications/onlineMeetings/item/transcripts/index.ts index 5fdff721f07..900ef5d812e 100644 --- a/src/communications/onlineMeetings/item/transcripts/index.ts +++ b/src/communications/onlineMeetings/item/transcripts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallTranscriptCollectionResponse } from '../../../../models/'; +import { type CallTranscriptCollectionResponse } from '../../../../models'; import { createCallTranscriptFromDiscriminatorValue, deserializeIntoCallTranscript, serializeCallTranscript, type CallTranscript } from '../../../../models/callTranscript'; import { createCallTranscriptCollectionResponseFromDiscriminatorValue } from '../../../../models/callTranscriptCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CallTranscriptItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CallTranscriptItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TranscriptsRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/transcripts/item/content/index.ts b/src/communications/onlineMeetings/item/transcripts/item/content/index.ts index e0d47c62e38..d53b61e6ab9 100644 --- a/src/communications/onlineMeetings/item/transcripts/item/content/index.ts +++ b/src/communications/onlineMeetings/item/transcripts/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallTranscript } from '../../../../../../models/'; +import { type CallTranscript } from '../../../../../../models'; import { createCallTranscriptFromDiscriminatorValue } from '../../../../../../models/callTranscript'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/onlineMeetings/item/transcripts/item/index.ts b/src/communications/onlineMeetings/item/transcripts/item/index.ts index 22a6b103a9d..ae1649d1120 100644 --- a/src/communications/onlineMeetings/item/transcripts/item/index.ts +++ b/src/communications/onlineMeetings/item/transcripts/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createCallTranscriptFromDiscriminatorValue, deserializeIntoCallTranscript, serializeCallTranscript, type CallTranscript } from '../../../../../models/callTranscript'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; -import { MetadataContentRequestBuilder } from './metadataContent/'; +import { ContentRequestBuilder } from './content'; +import { MetadataContentRequestBuilder } from './metadataContent'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CallTranscriptItemRequestBuilderGetQueryParameters { diff --git a/src/communications/onlineMeetings/item/transcripts/item/metadataContent/index.ts b/src/communications/onlineMeetings/item/transcripts/item/metadataContent/index.ts index 839bad6b81d..1fb8a54843d 100644 --- a/src/communications/onlineMeetings/item/transcripts/item/metadataContent/index.ts +++ b/src/communications/onlineMeetings/item/transcripts/item/metadataContent/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/presences/count/index.ts b/src/communications/presences/count/index.ts index 03fe5eede98..f06eee2e132 100644 --- a/src/communications/presences/count/index.ts +++ b/src/communications/presences/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/presences/index.ts b/src/communications/presences/index.ts index 26451854df4..9138b29c8a4 100644 --- a/src/communications/presences/index.ts +++ b/src/communications/presences/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PresenceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PresenceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPresenceFromDiscriminatorValue, deserializeIntoPresence, serializePresence, type Presence } from '../../models/presence'; import { createPresenceCollectionResponseFromDiscriminatorValue } from '../../models/presenceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PresenceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PresenceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PresencesRequestBuilderGetQueryParameters { diff --git a/src/communications/presences/item/clearPresence/clearPresencePostRequestBody.ts b/src/communications/presences/item/clearPresence/clearPresencePostRequestBody.ts deleted file mode 100644 index 37c5ab6d012..00000000000 --- a/src/communications/presences/item/clearPresence/clearPresencePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ClearPresencePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The sessionId property - */ - sessionId?: string; -} -export function createClearPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoClearPresencePostRequestBody; -} -export function deserializeIntoClearPresencePostRequestBody(clearPresencePostRequestBody: ClearPresencePostRequestBody | undefined = {} as ClearPresencePostRequestBody) : Record void> { - return { - "sessionId": n => { clearPresencePostRequestBody.sessionId = n.getStringValue(); }, - } -} -export function serializeClearPresencePostRequestBody(writer: SerializationWriter, clearPresencePostRequestBody: ClearPresencePostRequestBody | undefined = {} as ClearPresencePostRequestBody) : void { - writer.writeStringValue("sessionId", clearPresencePostRequestBody.sessionId); - writer.writeAdditionalData(clearPresencePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/communications/presences/item/clearPresence/index.ts b/src/communications/presences/item/clearPresence/index.ts index 4e18039cb79..62e1e8d67f7 100644 --- a/src/communications/presences/item/clearPresence/index.ts +++ b/src/communications/presences/item/clearPresence/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoClearPresencePostRequestBody, serializeClearPresencePostRequestBody, type ClearPresencePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ClearPresencePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The sessionId property + */ + sessionId?: string; +} +export function createClearPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoClearPresencePostRequestBody; +} +export function deserializeIntoClearPresencePostRequestBody(clearPresencePostRequestBody: ClearPresencePostRequestBody | undefined = {} as ClearPresencePostRequestBody) : Record void> { + return { + "sessionId": n => { clearPresencePostRequestBody.sessionId = n.getStringValue(); }, + } +} +export function serializeClearPresencePostRequestBody(writer: SerializationWriter, clearPresencePostRequestBody: ClearPresencePostRequestBody | undefined = {} as ClearPresencePostRequestBody) : void { + writer.writeStringValue("sessionId", clearPresencePostRequestBody.sessionId); + writer.writeAdditionalData(clearPresencePostRequestBody.additionalData); +} /** * Provides operations to call the clearPresence method. */ diff --git a/src/communications/presences/item/clearUserPreferredPresence/index.ts b/src/communications/presences/item/clearUserPreferredPresence/index.ts index 83c298849cc..1745c7220aa 100644 --- a/src/communications/presences/item/clearUserPreferredPresence/index.ts +++ b/src/communications/presences/item/clearUserPreferredPresence/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/communications/presences/item/index.ts b/src/communications/presences/item/index.ts index a64586ec4ea..44f8eb59aaf 100644 --- a/src/communications/presences/item/index.ts +++ b/src/communications/presences/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPresenceFromDiscriminatorValue, deserializeIntoPresence, serializePresence, type Presence } from '../../../models/presence'; -import { ClearPresenceRequestBuilder } from './clearPresence/'; -import { ClearUserPreferredPresenceRequestBuilder } from './clearUserPreferredPresence/'; -import { SetPresenceRequestBuilder } from './setPresence/'; -import { SetStatusMessageRequestBuilder } from './setStatusMessage/'; -import { SetUserPreferredPresenceRequestBuilder } from './setUserPreferredPresence/'; +import { ClearPresenceRequestBuilder } from './clearPresence'; +import { ClearUserPreferredPresenceRequestBuilder } from './clearUserPreferredPresence'; +import { SetPresenceRequestBuilder } from './setPresence'; +import { SetStatusMessageRequestBuilder } from './setStatusMessage'; +import { SetUserPreferredPresenceRequestBuilder } from './setUserPreferredPresence'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PresenceItemRequestBuilderGetQueryParameters { diff --git a/src/communications/presences/item/setPresence/index.ts b/src/communications/presences/item/setPresence/index.ts index 5578ae94b78..4d86d1f65d8 100644 --- a/src/communications/presences/item/setPresence/index.ts +++ b/src/communications/presences/item/setPresence/index.ts @@ -1,11 +1,51 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetPresencePostRequestBody, serializeSetPresencePostRequestBody, type SetPresencePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Duration, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetPresencePostRequestBody; +} +export function deserializeIntoSetPresencePostRequestBody(setPresencePostRequestBody: SetPresencePostRequestBody | undefined = {} as SetPresencePostRequestBody) : Record void> { + return { + "activity": n => { setPresencePostRequestBody.activity = n.getStringValue(); }, + "availability": n => { setPresencePostRequestBody.availability = n.getStringValue(); }, + "expirationDuration": n => { setPresencePostRequestBody.expirationDuration = n.getDurationValue(); }, + "sessionId": n => { setPresencePostRequestBody.sessionId = n.getStringValue(); }, + } +} +export function serializeSetPresencePostRequestBody(writer: SerializationWriter, setPresencePostRequestBody: SetPresencePostRequestBody | undefined = {} as SetPresencePostRequestBody) : void { + writer.writeStringValue("activity", setPresencePostRequestBody.activity); + writer.writeStringValue("availability", setPresencePostRequestBody.availability); + writer.writeDurationValue("expirationDuration", setPresencePostRequestBody.expirationDuration); + writer.writeStringValue("sessionId", setPresencePostRequestBody.sessionId); + writer.writeAdditionalData(setPresencePostRequestBody.additionalData); +} +export interface SetPresencePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activity property + */ + activity?: string; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The availability property + */ + availability?: string; + /** + * The expirationDuration property + */ + expirationDuration?: Duration; + /** + * The sessionId property + */ + sessionId?: string; +} /** * Provides operations to call the setPresence method. */ diff --git a/src/communications/presences/item/setPresence/setPresencePostRequestBody.ts b/src/communications/presences/item/setPresence/setPresencePostRequestBody.ts deleted file mode 100644 index e38e7b9045e..00000000000 --- a/src/communications/presences/item/setPresence/setPresencePostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Duration, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetPresencePostRequestBody; -} -export function deserializeIntoSetPresencePostRequestBody(setPresencePostRequestBody: SetPresencePostRequestBody | undefined = {} as SetPresencePostRequestBody) : Record void> { - return { - "activity": n => { setPresencePostRequestBody.activity = n.getStringValue(); }, - "availability": n => { setPresencePostRequestBody.availability = n.getStringValue(); }, - "expirationDuration": n => { setPresencePostRequestBody.expirationDuration = n.getDurationValue(); }, - "sessionId": n => { setPresencePostRequestBody.sessionId = n.getStringValue(); }, - } -} -export function serializeSetPresencePostRequestBody(writer: SerializationWriter, setPresencePostRequestBody: SetPresencePostRequestBody | undefined = {} as SetPresencePostRequestBody) : void { - writer.writeStringValue("activity", setPresencePostRequestBody.activity); - writer.writeStringValue("availability", setPresencePostRequestBody.availability); - writer.writeDurationValue("expirationDuration", setPresencePostRequestBody.expirationDuration); - writer.writeStringValue("sessionId", setPresencePostRequestBody.sessionId); - writer.writeAdditionalData(setPresencePostRequestBody.additionalData); -} -export interface SetPresencePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activity property - */ - activity?: string; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The availability property - */ - availability?: string; - /** - * The expirationDuration property - */ - expirationDuration?: Duration; - /** - * The sessionId property - */ - sessionId?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/communications/presences/item/setStatusMessage/index.ts b/src/communications/presences/item/setStatusMessage/index.ts index 871104e94c4..6fada8e1f70 100644 --- a/src/communications/presences/item/setStatusMessage/index.ts +++ b/src/communications/presences/item/setStatusMessage/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPresenceStatusMessageFromDiscriminatorValue, serializePresenceStatusMessage, type PresenceStatusMessage } from '../../../../models/presenceStatusMessage'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSetStatusMessagePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SetStatusMessagePostRequestBody extends AdditionalDataHolder, P */ statusMessage?: PresenceStatusMessage; } -/** - * Provides operations to call the setStatusMessage method. - */ -export class SetStatusMessageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SetStatusMessageRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage"); - }; - /** - * Set a presence status message for a user. An optional expiration date and time can be supplied. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0|Find more info here} - */ - public post(body: SetStatusMessagePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Set a presence status message for a user. An optional expiration date and time can be supplied. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SetStatusMessagePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetStatusMessagePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a setStatusMessageRequestBuilder - */ - public withUrl(rawUrl: string) : SetStatusMessageRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SetStatusMessageRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/communications/presences/item/setUserPreferredPresence/index.ts b/src/communications/presences/item/setUserPreferredPresence/index.ts index 9d301298b4c..e64659d3926 100644 --- a/src/communications/presences/item/setUserPreferredPresence/index.ts +++ b/src/communications/presences/item/setUserPreferredPresence/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Duration, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Duration, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSetUserPreferredPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -40,57 +38,5 @@ export interface SetUserPreferredPresencePostRequestBody extends AdditionalDataH */ expirationDuration?: Duration; } -/** - * Provides operations to call the setUserPreferredPresence method. - */ -export class SetUserPreferredPresenceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SetUserPreferredPresenceRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/setUserPreferredPresence"); - }; - /** - * Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/presence-setuserpreferredpresence?view=graph-rest-1.0|Find more info here} - */ - public post(body: SetUserPreferredPresencePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SetUserPreferredPresencePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetUserPreferredPresencePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a setUserPreferredPresenceRequestBuilder - */ - public withUrl(rawUrl: string) : SetUserPreferredPresenceRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SetUserPreferredPresenceRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/compliance/index.ts b/src/compliance/index.ts index a87d5fec9ec..ac566bd6b1e 100644 --- a/src/compliance/index.ts +++ b/src/compliance/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createComplianceFromDiscriminatorValue, deserializeIntoCompliance, serializeCompliance, type Compliance } from '../models/compliance'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/count/index.ts b/src/connections/count/index.ts index a329e63847f..b1bac272656 100644 --- a/src/connections/count/index.ts +++ b/src/connections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/index.ts b/src/connections/index.ts index 650c60ea80a..61fb92ca6a1 100644 --- a/src/connections/index.ts +++ b/src/connections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExternalConnectionCollectionResponse } from '../models/externalConnectors/'; +import { type ExternalConnectionCollectionResponse } from '../models/externalConnectors'; import { createExternalConnectionFromDiscriminatorValue, deserializeIntoExternalConnection, serializeExternalConnection, type ExternalConnection } from '../models/externalConnectors/externalConnection'; import { createExternalConnectionCollectionResponseFromDiscriminatorValue } from '../models/externalConnectors/externalConnectionCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExternalConnectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExternalConnectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConnectionsRequestBuilderGetQueryParameters { diff --git a/src/connections/item/groups/count/index.ts b/src/connections/item/groups/count/index.ts index a97c06ac5ba..a24f0a2cca7 100644 --- a/src/connections/item/groups/count/index.ts +++ b/src/connections/item/groups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/item/groups/index.ts b/src/connections/item/groups/index.ts index 912cf624156..83fbbf78cfa 100644 --- a/src/connections/item/groups/index.ts +++ b/src/connections/item/groups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExternalGroupCollectionResponse } from '../../../models/externalConnectors/'; +import { type ExternalGroupCollectionResponse } from '../../../models/externalConnectors'; import { createExternalGroupFromDiscriminatorValue, deserializeIntoExternalGroup, serializeExternalGroup, type ExternalGroup } from '../../../models/externalConnectors/externalGroup'; import { createExternalGroupCollectionResponseFromDiscriminatorValue } from '../../../models/externalConnectors/externalGroupCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExternalGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExternalGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupsRequestBuilderGetQueryParameters { diff --git a/src/connections/item/groups/item/index.ts b/src/connections/item/groups/item/index.ts index b95a8bb0eba..4c7ebfeea1a 100644 --- a/src/connections/item/groups/item/index.ts +++ b/src/connections/item/groups/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalGroupFromDiscriminatorValue, deserializeIntoExternalGroup, serializeExternalGroup, type ExternalGroup } from '../../../../models/externalConnectors/externalGroup'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { MembersRequestBuilder } from './members/'; +import { MembersRequestBuilder } from './members'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalGroupItemRequestBuilderGetQueryParameters { diff --git a/src/connections/item/groups/item/members/count/index.ts b/src/connections/item/groups/item/members/count/index.ts index a45272b04f8..e4ace88901f 100644 --- a/src/connections/item/groups/item/members/count/index.ts +++ b/src/connections/item/groups/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/item/groups/item/members/index.ts b/src/connections/item/groups/item/members/index.ts index 4ebc2113887..dc83f4275c3 100644 --- a/src/connections/item/groups/item/members/index.ts +++ b/src/connections/item/groups/item/members/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityCollectionResponse } from '../../../../../models/externalConnectors/'; +import { type IdentityCollectionResponse } from '../../../../../models/externalConnectors'; import { createIdentityFromDiscriminatorValue, deserializeIntoIdentity, serializeIdentity, type Identity } from '../../../../../models/externalConnectors/identity'; import { createIdentityCollectionResponseFromDiscriminatorValue } from '../../../../../models/externalConnectors/identityCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { IdentityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IdentityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/connections/item/groups/item/members/item/index.ts b/src/connections/item/groups/item/members/item/index.ts index 0d4261cb316..3b640b18c8d 100644 --- a/src/connections/item/groups/item/members/item/index.ts +++ b/src/connections/item/groups/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityFromDiscriminatorValue, deserializeIntoIdentity, serializeIdentity, type Identity } from '../../../../../../models/externalConnectors/identity'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/item/index.ts b/src/connections/item/index.ts index ee0a62e4a9a..cd803570167 100644 --- a/src/connections/item/index.ts +++ b/src/connections/item/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalConnectionFromDiscriminatorValue, deserializeIntoExternalConnection, serializeExternalConnection, type ExternalConnection } from '../../models/externalConnectors/externalConnection'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { GroupsRequestBuilder } from './groups/'; -import { ItemsRequestBuilder } from './items/'; -import { OperationsRequestBuilder } from './operations/'; -import { SchemaRequestBuilder } from './schema/'; +import { GroupsRequestBuilder } from './groups'; +import { ItemsRequestBuilder } from './items'; +import { OperationsRequestBuilder } from './operations'; +import { SchemaRequestBuilder } from './schema'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalConnectionItemRequestBuilderGetQueryParameters { diff --git a/src/connections/item/items/count/index.ts b/src/connections/item/items/count/index.ts index cf51559b615..5eb3926cf27 100644 --- a/src/connections/item/items/count/index.ts +++ b/src/connections/item/items/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/item/items/index.ts b/src/connections/item/items/index.ts index ae6823403d2..4d5a7565185 100644 --- a/src/connections/item/items/index.ts +++ b/src/connections/item/items/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExternalItemCollectionResponse } from '../../../models/externalConnectors/'; +import { type ExternalItemCollectionResponse } from '../../../models/externalConnectors'; import { createExternalItemFromDiscriminatorValue, deserializeIntoExternalItem, serializeExternalItem, type ExternalItem } from '../../../models/externalConnectors/externalItem'; import { createExternalItemCollectionResponseFromDiscriminatorValue } from '../../../models/externalConnectors/externalItemCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExternalItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExternalItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/connections/item/items/item/activities/count/index.ts b/src/connections/item/items/item/activities/count/index.ts index 0de5fa40b91..afe4008d93a 100644 --- a/src/connections/item/items/item/activities/count/index.ts +++ b/src/connections/item/items/item/activities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/item/items/item/activities/index.ts b/src/connections/item/items/item/activities/index.ts index cebda21c437..5674a96c276 100644 --- a/src/connections/item/items/item/activities/index.ts +++ b/src/connections/item/items/item/activities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExternalActivityCollectionResponse } from '../../../../../models/externalConnectors/'; +import { type ExternalActivityCollectionResponse } from '../../../../../models/externalConnectors'; import { createExternalActivityFromDiscriminatorValue, deserializeIntoExternalActivity, serializeExternalActivity, type ExternalActivity } from '../../../../../models/externalConnectors/externalActivity'; import { createExternalActivityCollectionResponseFromDiscriminatorValue } from '../../../../../models/externalConnectors/externalActivityCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExternalActivityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExternalActivityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivitiesRequestBuilderGetQueryParameters { diff --git a/src/connections/item/items/item/activities/item/index.ts b/src/connections/item/items/item/activities/item/index.ts index 8ecf5e2404d..084ab142a54 100644 --- a/src/connections/item/items/item/activities/item/index.ts +++ b/src/connections/item/items/item/activities/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalActivityFromDiscriminatorValue, deserializeIntoExternalActivity, serializeExternalActivity, type ExternalActivity } from '../../../../../../models/externalConnectors/externalActivity'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { PerformedByRequestBuilder } from './performedBy/'; +import { PerformedByRequestBuilder } from './performedBy'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalActivityItemRequestBuilderGetQueryParameters { diff --git a/src/connections/item/items/item/activities/item/performedBy/index.ts b/src/connections/item/items/item/activities/item/performedBy/index.ts index 108f88b9100..40df1cf900c 100644 --- a/src/connections/item/items/item/activities/item/performedBy/index.ts +++ b/src/connections/item/items/item/activities/item/performedBy/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Identity } from '../../../../../../../models/externalConnectors/'; +import { type Identity } from '../../../../../../../models/externalConnectors'; import { createIdentityFromDiscriminatorValue } from '../../../../../../../models/externalConnectors/identity'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/item/items/item/index.ts b/src/connections/item/items/item/index.ts index b89cc013135..a0ab05cab9b 100644 --- a/src/connections/item/items/item/index.ts +++ b/src/connections/item/items/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalItemFromDiscriminatorValue, deserializeIntoExternalItem, serializeExternalItem, type ExternalItem } from '../../../../models/externalConnectors/externalItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ActivitiesRequestBuilder } from './activities/'; -import { MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder } from './microsoftGraphExternalConnectorsAddActivities/'; +import { ActivitiesRequestBuilder } from './activities'; +import { MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder } from './microsoftGraphExternalConnectorsAddActivities'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalItemItemRequestBuilderGetQueryParameters { diff --git a/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostRequestBody.ts b/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostRequestBody.ts deleted file mode 100644 index 97cbfcc666b..00000000000 --- a/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createExternalActivityFromDiscriminatorValue, serializeExternalActivity, type ExternalActivity } from '../../../../../models/externalConnectors/externalActivity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddActivitiesPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activities property - */ - activities?: ExternalActivity[]; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; -} -export function createAddActivitiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddActivitiesPostRequestBody; -} -export function deserializeIntoAddActivitiesPostRequestBody(addActivitiesPostRequestBody: AddActivitiesPostRequestBody | undefined = {} as AddActivitiesPostRequestBody) : Record void> { - return { - "activities": n => { addActivitiesPostRequestBody.activities = n.getCollectionOfObjectValues(createExternalActivityFromDiscriminatorValue); }, - } -} -export function serializeAddActivitiesPostRequestBody(writer: SerializationWriter, addActivitiesPostRequestBody: AddActivitiesPostRequestBody | undefined = {} as AddActivitiesPostRequestBody) : void { - writer.writeCollectionOfObjectValues("activities", addActivitiesPostRequestBody.activities, serializeExternalActivity); - writer.writeAdditionalData(addActivitiesPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostResponse.ts b/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostResponse.ts deleted file mode 100644 index 6fd5a9a802b..00000000000 --- a/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createExternalActivityResultFromDiscriminatorValue, serializeExternalActivityResult, type ExternalActivityResult } from '../../../../../models/externalConnectors/externalActivityResult'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddActivitiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExternalActivityResult[]; -} -export function createAddActivitiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddActivitiesPostResponse; -} -export function deserializeIntoAddActivitiesPostResponse(addActivitiesPostResponse: AddActivitiesPostResponse | undefined = {} as AddActivitiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(addActivitiesPostResponse), - "value": n => { addActivitiesPostResponse.value = n.getCollectionOfObjectValues(createExternalActivityResultFromDiscriminatorValue); }, - } -} -export function serializeAddActivitiesPostResponse(writer: SerializationWriter, addActivitiesPostResponse: AddActivitiesPostResponse | undefined = {} as AddActivitiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, addActivitiesPostResponse) - writer.writeCollectionOfObjectValues("value", addActivitiesPostResponse.value, serializeExternalActivityResult); -} -// tslint:enable -// eslint-enable diff --git a/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.ts b/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.ts index ba670ac752c..dcefbfe032e 100644 --- a/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.ts +++ b/src/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.ts @@ -1,11 +1,56 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { createExternalActivityFromDiscriminatorValue, serializeExternalActivity, type ExternalActivity } from '../../../../../models/externalConnectors/externalActivity'; +import { createExternalActivityResultFromDiscriminatorValue, serializeExternalActivityResult, type ExternalActivityResult } from '../../../../../models/externalConnectors/externalActivityResult'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createAddActivitiesPostResponseFromDiscriminatorValue, deserializeIntoAddActivitiesPostRequestBody, deserializeIntoAddActivitiesPostResponse, serializeAddActivitiesPostRequestBody, serializeAddActivitiesPostResponse, type AddActivitiesPostRequestBody, type AddActivitiesPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AddActivitiesPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activities property + */ + activities?: ExternalActivity[]; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; +} +export interface AddActivitiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ExternalActivityResult[]; +} +export function createAddActivitiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddActivitiesPostRequestBody; +} +export function createAddActivitiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddActivitiesPostResponse; +} +export function deserializeIntoAddActivitiesPostRequestBody(addActivitiesPostRequestBody: AddActivitiesPostRequestBody | undefined = {} as AddActivitiesPostRequestBody) : Record void> { + return { + "activities": n => { addActivitiesPostRequestBody.activities = n.getCollectionOfObjectValues(createExternalActivityFromDiscriminatorValue); }, + } +} +export function deserializeIntoAddActivitiesPostResponse(addActivitiesPostResponse: AddActivitiesPostResponse | undefined = {} as AddActivitiesPostResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(addActivitiesPostResponse), + "value": n => { addActivitiesPostResponse.value = n.getCollectionOfObjectValues(createExternalActivityResultFromDiscriminatorValue); }, + } +} +export function serializeAddActivitiesPostRequestBody(writer: SerializationWriter, addActivitiesPostRequestBody: AddActivitiesPostRequestBody | undefined = {} as AddActivitiesPostRequestBody) : void { + writer.writeCollectionOfObjectValues("activities", addActivitiesPostRequestBody.activities, serializeExternalActivity); + writer.writeAdditionalData(addActivitiesPostRequestBody.additionalData); +} +export function serializeAddActivitiesPostResponse(writer: SerializationWriter, addActivitiesPostResponse: AddActivitiesPostResponse | undefined = {} as AddActivitiesPostResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, addActivitiesPostResponse) + writer.writeCollectionOfObjectValues("value", addActivitiesPostResponse.value, serializeExternalActivityResult); +} /** * Provides operations to call the addActivities method. */ diff --git a/src/connections/item/operations/count/index.ts b/src/connections/item/operations/count/index.ts index 32e7460a3a2..f3837bdd9c4 100644 --- a/src/connections/item/operations/count/index.ts +++ b/src/connections/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/item/operations/index.ts b/src/connections/item/operations/index.ts index 222a129cb79..1554f114119 100644 --- a/src/connections/item/operations/index.ts +++ b/src/connections/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConnectionOperationCollectionResponse } from '../../../models/externalConnectors/'; +import { type ConnectionOperationCollectionResponse } from '../../../models/externalConnectors'; import { createConnectionOperationFromDiscriminatorValue, deserializeIntoConnectionOperation, serializeConnectionOperation, type ConnectionOperation } from '../../../models/externalConnectors/connectionOperation'; import { createConnectionOperationCollectionResponseFromDiscriminatorValue } from '../../../models/externalConnectors/connectionOperationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConnectionOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConnectionOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/connections/item/operations/item/index.ts b/src/connections/item/operations/item/index.ts index 8bfa4b5e141..7fbce598ce3 100644 --- a/src/connections/item/operations/item/index.ts +++ b/src/connections/item/operations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConnectionOperationFromDiscriminatorValue, deserializeIntoConnectionOperation, serializeConnectionOperation, type ConnectionOperation } from '../../../../models/externalConnectors/connectionOperation'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/connections/item/schema/index.ts b/src/connections/item/schema/index.ts index 2b3a6a9e230..4b8d3ad03b7 100644 --- a/src/connections/item/schema/index.ts +++ b/src/connections/item/schema/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createSchemaFromDiscriminatorValue, deserializeIntoSchema, serializeSchema, type Schema } from '../../../models/externalConnectors/schema'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/count/index.ts b/src/contacts/count/index.ts index f2f1acb7c05..8b60650ef19 100644 --- a/src/contacts/count/index.ts +++ b/src/contacts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/delta/index.ts b/src/contacts/delta/index.ts index ccfe86bbfd2..581c8cb43e6 100644 --- a/src/contacts/delta/index.ts +++ b/src/contacts/delta/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue, serializeOrgContact, type OrgContact } from '../../models/orgContact'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: OrgContact[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeOrgContact); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/contacts/getAvailableExtensionProperties/index.ts b/src/contacts/getAvailableExtensionProperties/index.ts index 9b2e1150155..7800d3c8b0a 100644 --- a/src/contacts/getAvailableExtensionProperties/index.ts +++ b/src/contacts/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contacts/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contacts/getByIds/getByIdsPostRequestBody.ts b/src/contacts/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/contacts/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/contacts/getByIds/index.ts b/src/contacts/getByIds/index.ts index c2fade2d92d..49172d3c7dd 100644 --- a/src/contacts/getByIds/index.ts +++ b/src/contacts/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contacts/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contacts/index.ts b/src/contacts/index.ts index efab95034c3..61794937d50 100644 --- a/src/contacts/index.ts +++ b/src/contacts/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue, deserializeIntoOrgContact, serializeOrgContact, type OrgContact } from '../models/orgContact'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { OrgContactItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { OrgContactItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactsRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/contacts/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/contacts/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/contacts/item/checkMemberGroups/index.ts b/src/contacts/item/checkMemberGroups/index.ts index e082d2fbf6b..dcf9cd58809 100644 --- a/src/contacts/item/checkMemberGroups/index.ts +++ b/src/contacts/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contacts/item/checkMemberObjects/index.ts b/src/contacts/item/checkMemberObjects/index.ts index bbd0f1b7193..d53883127a7 100644 --- a/src/contacts/item/checkMemberObjects/index.ts +++ b/src/contacts/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contacts/item/directReports/count/index.ts b/src/contacts/item/directReports/count/index.ts index de3789f4899..bcc68c68b57 100644 --- a/src/contacts/item/directReports/count/index.ts +++ b/src/contacts/item/directReports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/directReports/graphOrgContact/count/index.ts b/src/contacts/item/directReports/graphOrgContact/count/index.ts index 411a380680f..17973d024de 100644 --- a/src/contacts/item/directReports/graphOrgContact/count/index.ts +++ b/src/contacts/item/directReports/graphOrgContact/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/directReports/graphOrgContact/index.ts b/src/contacts/item/directReports/graphOrgContact/index.ts index b3e9f390271..bb50e3b7289 100644 --- a/src/contacts/item/directReports/graphOrgContact/index.ts +++ b/src/contacts/item/directReports/graphOrgContact/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../../../../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphOrgContactRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/directReports/graphUser/count/index.ts b/src/contacts/item/directReports/graphUser/count/index.ts index 1fa415d92fe..6e230922b99 100644 --- a/src/contacts/item/directReports/graphUser/count/index.ts +++ b/src/contacts/item/directReports/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/directReports/graphUser/index.ts b/src/contacts/item/directReports/graphUser/index.ts index 5dc6cd9856b..09aec53f027 100644 --- a/src/contacts/item/directReports/graphUser/index.ts +++ b/src/contacts/item/directReports/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/directReports/index.ts b/src/contacts/item/directReports/index.ts index d1622c07da4..64f7cb337b8 100644 --- a/src/contacts/item/directReports/index.ts +++ b/src/contacts/item/directReports/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectReportsRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/directReports/item/graphOrgContact/index.ts b/src/contacts/item/directReports/item/graphOrgContact/index.ts index 5b91f6ca577..e9d3e22c838 100644 --- a/src/contacts/item/directReports/item/graphOrgContact/index.ts +++ b/src/contacts/item/directReports/item/graphOrgContact/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContact } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OrgContact } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue } from '../../../../../models/orgContact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/directReports/item/graphUser/index.ts b/src/contacts/item/directReports/item/graphUser/index.ts index 2998dd86b52..0e94be2ff49 100644 --- a/src/contacts/item/directReports/item/graphUser/index.ts +++ b/src/contacts/item/directReports/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/directReports/item/index.ts b/src/contacts/item/directReports/item/index.ts index 6480800e4b7..e4183d6ff6d 100644 --- a/src/contacts/item/directReports/item/index.ts +++ b/src/contacts/item/directReports/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphUserRequestBuilder } from './graphUser/'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphUserRequestBuilder } from './graphUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/contacts/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/contacts/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/contacts/item/getMemberGroups/index.ts b/src/contacts/item/getMemberGroups/index.ts index 5937f5b5079..e7344ba5741 100644 --- a/src/contacts/item/getMemberGroups/index.ts +++ b/src/contacts/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contacts/item/getMemberObjects/index.ts b/src/contacts/item/getMemberObjects/index.ts index adc20c88768..1d90b3647dc 100644 --- a/src/contacts/item/getMemberObjects/index.ts +++ b/src/contacts/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contacts/item/index.ts b/src/contacts/item/index.ts index d5825560191..81205ae3e8c 100644 --- a/src/contacts/item/index.ts +++ b/src/contacts/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue, deserializeIntoOrgContact, serializeOrgContact, type OrgContact } from '../../models/orgContact'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { DirectReportsRequestBuilder } from './directReports/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { ManagerRequestBuilder } from './manager/'; -import { MemberOfRequestBuilder } from './memberOf/'; -import { RestoreRequestBuilder } from './restore/'; -import { RetryServiceProvisioningRequestBuilder } from './retryServiceProvisioning/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; -import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { DirectReportsRequestBuilder } from './directReports'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { ManagerRequestBuilder } from './manager'; +import { MemberOfRequestBuilder } from './memberOf'; +import { RestoreRequestBuilder } from './restore'; +import { RetryServiceProvisioningRequestBuilder } from './retryServiceProvisioning'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; +import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OrgContactItemRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/manager/index.ts b/src/contacts/item/manager/index.ts index 481ac4fd6a6..cb5ffda0607 100644 --- a/src/contacts/item/manager/index.ts +++ b/src/contacts/item/manager/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/memberOf/count/index.ts b/src/contacts/item/memberOf/count/index.ts index c4ed4ea9e79..1d930a6540a 100644 --- a/src/contacts/item/memberOf/count/index.ts +++ b/src/contacts/item/memberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/memberOf/graphAdministrativeUnit/count/index.ts b/src/contacts/item/memberOf/graphAdministrativeUnit/count/index.ts index 7513ed38057..9bcb6bf097c 100644 --- a/src/contacts/item/memberOf/graphAdministrativeUnit/count/index.ts +++ b/src/contacts/item/memberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/memberOf/graphAdministrativeUnit/index.ts b/src/contacts/item/memberOf/graphAdministrativeUnit/index.ts index a6044eecc84..ccb49183908 100644 --- a/src/contacts/item/memberOf/graphAdministrativeUnit/index.ts +++ b/src/contacts/item/memberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/memberOf/graphGroup/count/index.ts b/src/contacts/item/memberOf/graphGroup/count/index.ts index e2a93d8485e..c92b8d197ae 100644 --- a/src/contacts/item/memberOf/graphGroup/count/index.ts +++ b/src/contacts/item/memberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/memberOf/graphGroup/index.ts b/src/contacts/item/memberOf/graphGroup/index.ts index 4ede3daa362..0f9a2d83bb5 100644 --- a/src/contacts/item/memberOf/graphGroup/index.ts +++ b/src/contacts/item/memberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/memberOf/index.ts b/src/contacts/item/memberOf/index.ts index 32295719c88..9b89cfd28b2 100644 --- a/src/contacts/item/memberOf/index.ts +++ b/src/contacts/item/memberOf/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MemberOfRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/memberOf/item/graphAdministrativeUnit/index.ts b/src/contacts/item/memberOf/item/graphAdministrativeUnit/index.ts index 89e564f84d1..d283882edf2 100644 --- a/src/contacts/item/memberOf/item/graphAdministrativeUnit/index.ts +++ b/src/contacts/item/memberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/memberOf/item/graphGroup/index.ts b/src/contacts/item/memberOf/item/graphGroup/index.ts index e0fb0878fe9..a6067cdd8d3 100644 --- a/src/contacts/item/memberOf/item/graphGroup/index.ts +++ b/src/contacts/item/memberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/memberOf/item/index.ts b/src/contacts/item/memberOf/item/index.ts index 3ab2ddd8bb7..8c811d8a22c 100644 --- a/src/contacts/item/memberOf/item/index.ts +++ b/src/contacts/item/memberOf/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/restore/index.ts b/src/contacts/item/restore/index.ts index d806005e3bd..903a908e472 100644 --- a/src/contacts/item/restore/index.ts +++ b/src/contacts/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/retryServiceProvisioning/index.ts b/src/contacts/item/retryServiceProvisioning/index.ts index 778931c46d3..5cf7d7f0e4e 100644 --- a/src/contacts/item/retryServiceProvisioning/index.ts +++ b/src/contacts/item/retryServiceProvisioning/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/serviceProvisioningErrors/count/index.ts b/src/contacts/item/serviceProvisioningErrors/count/index.ts index ba70854dba0..2ad931ae044 100644 --- a/src/contacts/item/serviceProvisioningErrors/count/index.ts +++ b/src/contacts/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/serviceProvisioningErrors/index.ts b/src/contacts/item/serviceProvisioningErrors/index.ts index 428db949bec..b57c9163315 100644 --- a/src/contacts/item/serviceProvisioningErrors/index.ts +++ b/src/contacts/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/transitiveMemberOf/count/index.ts b/src/contacts/item/transitiveMemberOf/count/index.ts index 973968a6f3f..35851b77907 100644 --- a/src/contacts/item/transitiveMemberOf/count/index.ts +++ b/src/contacts/item/transitiveMemberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts b/src/contacts/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts index c651be146c6..eb7abde9178 100644 --- a/src/contacts/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts +++ b/src/contacts/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/transitiveMemberOf/graphAdministrativeUnit/index.ts b/src/contacts/item/transitiveMemberOf/graphAdministrativeUnit/index.ts index 7dba9875128..463f7af70c5 100644 --- a/src/contacts/item/transitiveMemberOf/graphAdministrativeUnit/index.ts +++ b/src/contacts/item/transitiveMemberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/transitiveMemberOf/graphGroup/count/index.ts b/src/contacts/item/transitiveMemberOf/graphGroup/count/index.ts index f74012c9dfc..3e602c3bbdb 100644 --- a/src/contacts/item/transitiveMemberOf/graphGroup/count/index.ts +++ b/src/contacts/item/transitiveMemberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/transitiveMemberOf/graphGroup/index.ts b/src/contacts/item/transitiveMemberOf/graphGroup/index.ts index 03b5ba7c9ef..3a751001da0 100644 --- a/src/contacts/item/transitiveMemberOf/graphGroup/index.ts +++ b/src/contacts/item/transitiveMemberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/transitiveMemberOf/index.ts b/src/contacts/item/transitiveMemberOf/index.ts index d8cd0784d68..17f78e643f5 100644 --- a/src/contacts/item/transitiveMemberOf/index.ts +++ b/src/contacts/item/transitiveMemberOf/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TransitiveMemberOfRequestBuilderGetQueryParameters { diff --git a/src/contacts/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts b/src/contacts/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts index 38d6767b3c6..4dd68b0ca9b 100644 --- a/src/contacts/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts +++ b/src/contacts/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/transitiveMemberOf/item/graphGroup/index.ts b/src/contacts/item/transitiveMemberOf/item/graphGroup/index.ts index a31461017c5..6e91a88022c 100644 --- a/src/contacts/item/transitiveMemberOf/item/graphGroup/index.ts +++ b/src/contacts/item/transitiveMemberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contacts/item/transitiveMemberOf/item/index.ts b/src/contacts/item/transitiveMemberOf/item/index.ts index 630c151b0b4..d3e72aedba8 100644 --- a/src/contacts/item/transitiveMemberOf/item/index.ts +++ b/src/contacts/item/transitiveMemberOf/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/contacts/validateProperties/index.ts b/src/contacts/validateProperties/index.ts index 8cf5943a215..3c9a114e085 100644 --- a/src/contacts/validateProperties/index.ts +++ b/src/contacts/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contacts/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contracts/count/index.ts b/src/contracts/count/index.ts index c306def2ac3..427b9e02ec2 100644 --- a/src/contracts/count/index.ts +++ b/src/contracts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contracts/delta/index.ts b/src/contracts/delta/index.ts index 0c5cf0d1c6d..145d5b0230d 100644 --- a/src/contracts/delta/index.ts +++ b/src/contracts/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: DirectoryObject[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contracts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/contracts/getAvailableExtensionProperties/index.ts b/src/contracts/getAvailableExtensionProperties/index.ts index 92b193de10b..7800d3c8b0a 100644 --- a/src/contracts/getAvailableExtensionProperties/index.ts +++ b/src/contracts/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contracts/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contracts/getByIds/getByIdsPostRequestBody.ts b/src/contracts/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/contracts/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/contracts/getByIds/index.ts b/src/contracts/getByIds/index.ts index 9e2d2ed8a6f..49172d3c7dd 100644 --- a/src/contracts/getByIds/index.ts +++ b/src/contracts/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contracts/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contracts/index.ts b/src/contracts/index.ts index d641953260f..b03628d37d0 100644 --- a/src/contracts/index.ts +++ b/src/contracts/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContractCollectionResponse } from '../models/'; +import { type ContractCollectionResponse } from '../models'; import { createContractFromDiscriminatorValue, deserializeIntoContract, serializeContract, type Contract } from '../models/contract'; import { createContractCollectionResponseFromDiscriminatorValue } from '../models/contractCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { ContractItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { ContractItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContractsRequestBuilderGetQueryParameters { diff --git a/src/contracts/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/contracts/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/contracts/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/contracts/item/checkMemberGroups/index.ts b/src/contracts/item/checkMemberGroups/index.ts index 126fb1972be..dcf9cd58809 100644 --- a/src/contracts/item/checkMemberGroups/index.ts +++ b/src/contracts/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contracts/{contract%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contracts/item/checkMemberObjects/index.ts b/src/contracts/item/checkMemberObjects/index.ts index 8dd8cb4d42c..d53883127a7 100644 --- a/src/contracts/item/checkMemberObjects/index.ts +++ b/src/contracts/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contracts/{contract%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contracts/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/contracts/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/contracts/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/contracts/item/getMemberGroups/index.ts b/src/contracts/item/getMemberGroups/index.ts index 8a37a7b1a43..e7344ba5741 100644 --- a/src/contracts/item/getMemberGroups/index.ts +++ b/src/contracts/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contracts/{contract%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contracts/item/getMemberObjects/index.ts b/src/contracts/item/getMemberObjects/index.ts index 452f7d78f12..1d90b3647dc 100644 --- a/src/contracts/item/getMemberObjects/index.ts +++ b/src/contracts/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contracts/{contract%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/contracts/item/index.ts b/src/contracts/item/index.ts index 78814a8bf4a..66b60ff26e6 100644 --- a/src/contracts/item/index.ts +++ b/src/contracts/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createContractFromDiscriminatorValue, deserializeIntoContract, serializeContract, type Contract } from '../../models/contract'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { RestoreRequestBuilder } from './restore/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContractItemRequestBuilderGetQueryParameters { diff --git a/src/contracts/item/restore/index.ts b/src/contracts/item/restore/index.ts index 146448d830b..bf3a9f2ab54 100644 --- a/src/contracts/item/restore/index.ts +++ b/src/contracts/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/contracts/validateProperties/index.ts b/src/contracts/validateProperties/index.ts index 7a6bdc0dd87..3c9a114e085 100644 --- a/src/contracts/validateProperties/index.ts +++ b/src/contracts/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/contracts/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/dataPolicyOperations/count/index.ts b/src/dataPolicyOperations/count/index.ts index ef1166353f7..0d2bb814903 100644 --- a/src/dataPolicyOperations/count/index.ts +++ b/src/dataPolicyOperations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/dataPolicyOperations/index.ts b/src/dataPolicyOperations/index.ts index 7fb11d07fdb..e67fb29a49f 100644 --- a/src/dataPolicyOperations/index.ts +++ b/src/dataPolicyOperations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DataPolicyOperationCollectionResponse } from '../models/'; +import { type DataPolicyOperationCollectionResponse } from '../models'; import { createDataPolicyOperationFromDiscriminatorValue, deserializeIntoDataPolicyOperation, serializeDataPolicyOperation, type DataPolicyOperation } from '../models/dataPolicyOperation'; import { createDataPolicyOperationCollectionResponseFromDiscriminatorValue } from '../models/dataPolicyOperationCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DataPolicyOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DataPolicyOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DataPolicyOperationsRequestBuilderGetQueryParameters { diff --git a/src/dataPolicyOperations/item/index.ts b/src/dataPolicyOperations/item/index.ts index 3298f0d1baa..84f95604fa8 100644 --- a/src/dataPolicyOperations/item/index.ts +++ b/src/dataPolicyOperations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDataPolicyOperationFromDiscriminatorValue, deserializeIntoDataPolicyOperation, serializeDataPolicyOperation, type DataPolicyOperation } from '../../models/dataPolicyOperation'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/androidManagedAppProtections/count/index.ts b/src/deviceAppManagement/androidManagedAppProtections/count/index.ts index fa4b0bae56b..212e5c77586 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/count/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/androidManagedAppProtections/index.ts b/src/deviceAppManagement/androidManagedAppProtections/index.ts index d815703ec5f..17c6f3bca1b 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AndroidManagedAppProtectionCollectionResponse } from '../../models/'; +import { type AndroidManagedAppProtectionCollectionResponse } from '../../models'; import { createAndroidManagedAppProtectionFromDiscriminatorValue, deserializeIntoAndroidManagedAppProtection, serializeAndroidManagedAppProtection, type AndroidManagedAppProtection } from '../../models/androidManagedAppProtection'; import { createAndroidManagedAppProtectionCollectionResponseFromDiscriminatorValue } from '../../models/androidManagedAppProtectionCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AndroidManagedAppProtectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AndroidManagedAppProtectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AndroidManagedAppProtectionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/androidManagedAppProtections/item/apps/count/index.ts b/src/deviceAppManagement/androidManagedAppProtections/item/apps/count/index.ts index 7659a69faf1..410e64aa695 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/item/apps/count/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/item/apps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/androidManagedAppProtections/item/apps/index.ts b/src/deviceAppManagement/androidManagedAppProtections/item/apps/index.ts index 527c25bc160..5f89e8208b0 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/item/apps/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/item/apps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedMobileAppCollectionResponse } from '../../../../models/'; +import { type ManagedMobileAppCollectionResponse } from '../../../../models'; import { createManagedMobileAppFromDiscriminatorValue, deserializeIntoManagedMobileApp, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../models/managedMobileApp'; import { createManagedMobileAppCollectionResponseFromDiscriminatorValue } from '../../../../models/managedMobileAppCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedMobileAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedMobileAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/androidManagedAppProtections/item/apps/item/index.ts b/src/deviceAppManagement/androidManagedAppProtections/item/apps/item/index.ts index 8f5cb77a83a..ae131549370 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/item/apps/item/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/item/apps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedMobileAppFromDiscriminatorValue, deserializeIntoManagedMobileApp, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../../models/managedMobileApp'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/androidManagedAppProtections/item/assignments/count/index.ts b/src/deviceAppManagement/androidManagedAppProtections/item/assignments/count/index.ts index 764e39f0c9a..0c51a02313a 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/item/assignments/count/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/androidManagedAppProtections/item/assignments/index.ts b/src/deviceAppManagement/androidManagedAppProtections/item/assignments/index.ts index 61780356434..52e504e0d92 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/item/assignments/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../models/targetedManagedAppPolicyAssignment'; import { createTargetedManagedAppPolicyAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/targetedManagedAppPolicyAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/androidManagedAppProtections/item/assignments/item/index.ts b/src/deviceAppManagement/androidManagedAppProtections/item/assignments/item/index.ts index 854b7ff4efb..8fafbc58169 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/item/assignments/item/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/item/assignments/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../../models/targetedManagedAppPolicyAssignment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/androidManagedAppProtections/item/deploymentSummary/index.ts b/src/deviceAppManagement/androidManagedAppProtections/item/deploymentSummary/index.ts index ef5b4a608db..bfc43810456 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/item/deploymentSummary/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/item/deploymentSummary/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppPolicyDeploymentSummaryFromDiscriminatorValue, deserializeIntoManagedAppPolicyDeploymentSummary, serializeManagedAppPolicyDeploymentSummary, type ManagedAppPolicyDeploymentSummary } from '../../../../models/managedAppPolicyDeploymentSummary'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/androidManagedAppProtections/item/index.ts b/src/deviceAppManagement/androidManagedAppProtections/item/index.ts index 8d8cf8264ee..6d94c8b2900 100644 --- a/src/deviceAppManagement/androidManagedAppProtections/item/index.ts +++ b/src/deviceAppManagement/androidManagedAppProtections/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAndroidManagedAppProtectionFromDiscriminatorValue, deserializeIntoAndroidManagedAppProtection, serializeAndroidManagedAppProtection, type AndroidManagedAppProtection } from '../../../models/androidManagedAppProtection'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppsRequestBuilder } from './apps/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { DeploymentSummaryRequestBuilder } from './deploymentSummary/'; +import { AppsRequestBuilder } from './apps'; +import { AssignmentsRequestBuilder } from './assignments'; +import { DeploymentSummaryRequestBuilder } from './deploymentSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AndroidManagedAppProtectionItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/defaultManagedAppProtections/count/index.ts b/src/deviceAppManagement/defaultManagedAppProtections/count/index.ts index a7961b7e5b1..c639c9c4fb0 100644 --- a/src/deviceAppManagement/defaultManagedAppProtections/count/index.ts +++ b/src/deviceAppManagement/defaultManagedAppProtections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/defaultManagedAppProtections/index.ts b/src/deviceAppManagement/defaultManagedAppProtections/index.ts index 8d3931f288a..6c63ea6c7d4 100644 --- a/src/deviceAppManagement/defaultManagedAppProtections/index.ts +++ b/src/deviceAppManagement/defaultManagedAppProtections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DefaultManagedAppProtectionCollectionResponse } from '../../models/'; +import { type DefaultManagedAppProtectionCollectionResponse } from '../../models'; import { createDefaultManagedAppProtectionFromDiscriminatorValue, deserializeIntoDefaultManagedAppProtection, serializeDefaultManagedAppProtection, type DefaultManagedAppProtection } from '../../models/defaultManagedAppProtection'; import { createDefaultManagedAppProtectionCollectionResponseFromDiscriminatorValue } from '../../models/defaultManagedAppProtectionCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DefaultManagedAppProtectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DefaultManagedAppProtectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DefaultManagedAppProtectionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/defaultManagedAppProtections/item/apps/count/index.ts b/src/deviceAppManagement/defaultManagedAppProtections/item/apps/count/index.ts index d9630e44e98..c41a605661c 100644 --- a/src/deviceAppManagement/defaultManagedAppProtections/item/apps/count/index.ts +++ b/src/deviceAppManagement/defaultManagedAppProtections/item/apps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/defaultManagedAppProtections/item/apps/index.ts b/src/deviceAppManagement/defaultManagedAppProtections/item/apps/index.ts index 3bb3ffb502d..f82eb6ea0a3 100644 --- a/src/deviceAppManagement/defaultManagedAppProtections/item/apps/index.ts +++ b/src/deviceAppManagement/defaultManagedAppProtections/item/apps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedMobileAppCollectionResponse } from '../../../../models/'; +import { type ManagedMobileAppCollectionResponse } from '../../../../models'; import { createManagedMobileAppFromDiscriminatorValue, deserializeIntoManagedMobileApp, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../models/managedMobileApp'; import { createManagedMobileAppCollectionResponseFromDiscriminatorValue } from '../../../../models/managedMobileAppCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedMobileAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedMobileAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/defaultManagedAppProtections/item/apps/item/index.ts b/src/deviceAppManagement/defaultManagedAppProtections/item/apps/item/index.ts index 73ce2073d62..d517eab0709 100644 --- a/src/deviceAppManagement/defaultManagedAppProtections/item/apps/item/index.ts +++ b/src/deviceAppManagement/defaultManagedAppProtections/item/apps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedMobileAppFromDiscriminatorValue, deserializeIntoManagedMobileApp, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../../models/managedMobileApp'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/defaultManagedAppProtections/item/deploymentSummary/index.ts b/src/deviceAppManagement/defaultManagedAppProtections/item/deploymentSummary/index.ts index 4fe8617df90..b1012f96d5a 100644 --- a/src/deviceAppManagement/defaultManagedAppProtections/item/deploymentSummary/index.ts +++ b/src/deviceAppManagement/defaultManagedAppProtections/item/deploymentSummary/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppPolicyDeploymentSummaryFromDiscriminatorValue, deserializeIntoManagedAppPolicyDeploymentSummary, serializeManagedAppPolicyDeploymentSummary, type ManagedAppPolicyDeploymentSummary } from '../../../../models/managedAppPolicyDeploymentSummary'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/defaultManagedAppProtections/item/index.ts b/src/deviceAppManagement/defaultManagedAppProtections/item/index.ts index d096a584515..8874ad4f211 100644 --- a/src/deviceAppManagement/defaultManagedAppProtections/item/index.ts +++ b/src/deviceAppManagement/defaultManagedAppProtections/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createDefaultManagedAppProtectionFromDiscriminatorValue, deserializeIntoDefaultManagedAppProtection, serializeDefaultManagedAppProtection, type DefaultManagedAppProtection } from '../../../models/defaultManagedAppProtection'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppsRequestBuilder } from './apps/'; -import { DeploymentSummaryRequestBuilder } from './deploymentSummary/'; +import { AppsRequestBuilder } from './apps'; +import { DeploymentSummaryRequestBuilder } from './deploymentSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DefaultManagedAppProtectionItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/index.ts b/src/deviceAppManagement/index.ts index 8329342cb09..1d54ed05d8b 100644 --- a/src/deviceAppManagement/index.ts +++ b/src/deviceAppManagement/index.ts @@ -2,23 +2,23 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceAppManagementFromDiscriminatorValue, deserializeIntoDeviceAppManagement, serializeDeviceAppManagement, type DeviceAppManagement } from '../models/deviceAppManagement'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { AndroidManagedAppProtectionsRequestBuilder } from './androidManagedAppProtections/'; -import { DefaultManagedAppProtectionsRequestBuilder } from './defaultManagedAppProtections/'; -import { IosManagedAppProtectionsRequestBuilder } from './iosManagedAppProtections/'; -import { ManagedAppPoliciesRequestBuilder } from './managedAppPolicies/'; -import { ManagedAppRegistrationsRequestBuilder } from './managedAppRegistrations/'; -import { ManagedAppStatusesRequestBuilder } from './managedAppStatuses/'; -import { ManagedEBooksRequestBuilder } from './managedEBooks/'; -import { MdmWindowsInformationProtectionPoliciesRequestBuilder } from './mdmWindowsInformationProtectionPolicies/'; -import { MobileAppCategoriesRequestBuilder } from './mobileAppCategories/'; -import { MobileAppConfigurationsRequestBuilder } from './mobileAppConfigurations/'; -import { MobileAppsRequestBuilder } from './mobileApps/'; -import { SyncMicrosoftStoreForBusinessAppsRequestBuilder } from './syncMicrosoftStoreForBusinessApps/'; -import { TargetedManagedAppConfigurationsRequestBuilder } from './targetedManagedAppConfigurations/'; -import { VppTokensRequestBuilder } from './vppTokens/'; -import { WindowsInformationProtectionPoliciesRequestBuilder } from './windowsInformationProtectionPolicies/'; +import { AndroidManagedAppProtectionsRequestBuilder } from './androidManagedAppProtections'; +import { DefaultManagedAppProtectionsRequestBuilder } from './defaultManagedAppProtections'; +import { IosManagedAppProtectionsRequestBuilder } from './iosManagedAppProtections'; +import { ManagedAppPoliciesRequestBuilder } from './managedAppPolicies'; +import { ManagedAppRegistrationsRequestBuilder } from './managedAppRegistrations'; +import { ManagedAppStatusesRequestBuilder } from './managedAppStatuses'; +import { ManagedEBooksRequestBuilder } from './managedEBooks'; +import { MdmWindowsInformationProtectionPoliciesRequestBuilder } from './mdmWindowsInformationProtectionPolicies'; +import { MobileAppCategoriesRequestBuilder } from './mobileAppCategories'; +import { MobileAppConfigurationsRequestBuilder } from './mobileAppConfigurations'; +import { MobileAppsRequestBuilder } from './mobileApps'; +import { SyncMicrosoftStoreForBusinessAppsRequestBuilder } from './syncMicrosoftStoreForBusinessApps'; +import { TargetedManagedAppConfigurationsRequestBuilder } from './targetedManagedAppConfigurations'; +import { VppTokensRequestBuilder } from './vppTokens'; +import { WindowsInformationProtectionPoliciesRequestBuilder } from './windowsInformationProtectionPolicies'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceAppManagementRequestBuilderGetQueryParameters { @@ -137,7 +137,7 @@ export class DeviceAppManagementRequestBuilder extends BaseRequestBuilder { * Read properties and relationships of the deviceAppManagement object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceAppManagement - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -154,7 +154,7 @@ export class DeviceAppManagementRequestBuilder extends BaseRequestBuilder { * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceAppManagement - * @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-unlock-deviceappmanagement-update?view=graph-rest-1.0|Find more info here} */ public patch(body: DeviceAppManagement, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( diff --git a/src/deviceAppManagement/iosManagedAppProtections/count/index.ts b/src/deviceAppManagement/iosManagedAppProtections/count/index.ts index 84fafed6c88..9962f666c93 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/count/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/iosManagedAppProtections/index.ts b/src/deviceAppManagement/iosManagedAppProtections/index.ts index 70ae022bd9d..4a3c848a71e 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IosManagedAppProtectionCollectionResponse } from '../../models/'; +import { type IosManagedAppProtectionCollectionResponse } from '../../models'; import { createIosManagedAppProtectionFromDiscriminatorValue, deserializeIntoIosManagedAppProtection, serializeIosManagedAppProtection, type IosManagedAppProtection } from '../../models/iosManagedAppProtection'; import { createIosManagedAppProtectionCollectionResponseFromDiscriminatorValue } from '../../models/iosManagedAppProtectionCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { IosManagedAppProtectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IosManagedAppProtectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IosManagedAppProtectionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/iosManagedAppProtections/item/apps/count/index.ts b/src/deviceAppManagement/iosManagedAppProtections/item/apps/count/index.ts index 4d9571ebff9..6dd82d1d01c 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/item/apps/count/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/item/apps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/iosManagedAppProtections/item/apps/index.ts b/src/deviceAppManagement/iosManagedAppProtections/item/apps/index.ts index 27588dd5cb7..38f05b12bcf 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/item/apps/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/item/apps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedMobileAppCollectionResponse } from '../../../../models/'; +import { type ManagedMobileAppCollectionResponse } from '../../../../models'; import { createManagedMobileAppFromDiscriminatorValue, deserializeIntoManagedMobileApp, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../models/managedMobileApp'; import { createManagedMobileAppCollectionResponseFromDiscriminatorValue } from '../../../../models/managedMobileAppCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedMobileAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedMobileAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/iosManagedAppProtections/item/apps/item/index.ts b/src/deviceAppManagement/iosManagedAppProtections/item/apps/item/index.ts index dc9201ba46a..c7fd6a1c9ce 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/item/apps/item/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/item/apps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedMobileAppFromDiscriminatorValue, deserializeIntoManagedMobileApp, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../../models/managedMobileApp'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/iosManagedAppProtections/item/assignments/count/index.ts b/src/deviceAppManagement/iosManagedAppProtections/item/assignments/count/index.ts index 8b01f54ed42..069572652c5 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/item/assignments/count/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/iosManagedAppProtections/item/assignments/index.ts b/src/deviceAppManagement/iosManagedAppProtections/item/assignments/index.ts index 265d5bf4fc3..17c0d831049 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/item/assignments/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../models/targetedManagedAppPolicyAssignment'; import { createTargetedManagedAppPolicyAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/targetedManagedAppPolicyAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/iosManagedAppProtections/item/assignments/item/index.ts b/src/deviceAppManagement/iosManagedAppProtections/item/assignments/item/index.ts index 6c4a1dbfd03..91c3c8798a4 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/item/assignments/item/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/item/assignments/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../../models/targetedManagedAppPolicyAssignment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/iosManagedAppProtections/item/deploymentSummary/index.ts b/src/deviceAppManagement/iosManagedAppProtections/item/deploymentSummary/index.ts index e1c6649815b..cdbdfe988ee 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/item/deploymentSummary/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/item/deploymentSummary/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppPolicyDeploymentSummaryFromDiscriminatorValue, deserializeIntoManagedAppPolicyDeploymentSummary, serializeManagedAppPolicyDeploymentSummary, type ManagedAppPolicyDeploymentSummary } from '../../../../models/managedAppPolicyDeploymentSummary'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/iosManagedAppProtections/item/index.ts b/src/deviceAppManagement/iosManagedAppProtections/item/index.ts index 81f99707e4f..2d36d144cfb 100644 --- a/src/deviceAppManagement/iosManagedAppProtections/item/index.ts +++ b/src/deviceAppManagement/iosManagedAppProtections/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createIosManagedAppProtectionFromDiscriminatorValue, deserializeIntoIosManagedAppProtection, serializeIosManagedAppProtection, type IosManagedAppProtection } from '../../../models/iosManagedAppProtection'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppsRequestBuilder } from './apps/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { DeploymentSummaryRequestBuilder } from './deploymentSummary/'; +import { AppsRequestBuilder } from './apps'; +import { AssignmentsRequestBuilder } from './assignments'; +import { DeploymentSummaryRequestBuilder } from './deploymentSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IosManagedAppProtectionItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppPolicies/count/index.ts b/src/deviceAppManagement/managedAppPolicies/count/index.ts index cb0af640f2d..3902a544c56 100644 --- a/src/deviceAppManagement/managedAppPolicies/count/index.ts +++ b/src/deviceAppManagement/managedAppPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedAppPolicies/index.ts b/src/deviceAppManagement/managedAppPolicies/index.ts index 6e28bb420eb..451480dbd5a 100644 --- a/src/deviceAppManagement/managedAppPolicies/index.ts +++ b/src/deviceAppManagement/managedAppPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAppPolicyCollectionResponse } from '../../models/'; +import { type ManagedAppPolicyCollectionResponse } from '../../models'; import { createManagedAppPolicyFromDiscriminatorValue, deserializeIntoManagedAppPolicy, serializeManagedAppPolicy, type ManagedAppPolicy } from '../../models/managedAppPolicy'; import { createManagedAppPolicyCollectionResponseFromDiscriminatorValue } from '../../models/managedAppPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedAppPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedAppPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedAppPoliciesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppPolicies/item/index.ts b/src/deviceAppManagement/managedAppPolicies/item/index.ts index 35806a6a826..301ad8a0e12 100644 --- a/src/deviceAppManagement/managedAppPolicies/item/index.ts +++ b/src/deviceAppManagement/managedAppPolicies/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppPolicyFromDiscriminatorValue, deserializeIntoManagedAppPolicy, serializeManagedAppPolicy, type ManagedAppPolicy } from '../../../models/managedAppPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { TargetAppsRequestBuilder } from './targetApps/'; +import { TargetAppsRequestBuilder } from './targetApps'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedAppPolicyItemRequestBuilderGetQueryParameters { @@ -50,10 +50,10 @@ export class ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Read properties and relationships of the targetedManagedAppProtection object. + * Read properties and relationships of the windowsInformationProtection object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedAppPolicy - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -93,7 +93,7 @@ export class ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Read properties and relationships of the targetedManagedAppProtection object. + * Read properties and relationships of the windowsInformationProtection object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceAppManagement/managedAppPolicies/item/targetApps/index.ts b/src/deviceAppManagement/managedAppPolicies/item/targetApps/index.ts index b8736b4e83e..b8d0da52fa2 100644 --- a/src/deviceAppManagement/managedAppPolicies/item/targetApps/index.ts +++ b/src/deviceAppManagement/managedAppPolicies/item/targetApps/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createManagedMobileAppFromDiscriminatorValue, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../models/managedMobileApp'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoTargetAppsPostRequestBody, serializeTargetAppsPostRequestBody, type TargetAppsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTargetAppsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTargetAppsPostRequestBody; +} +export function deserializeIntoTargetAppsPostRequestBody(targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : Record void> { + return { + "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, + } +} +export function serializeTargetAppsPostRequestBody(writer: SerializationWriter, targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : void { + writer.writeCollectionOfObjectValues("apps", targetAppsPostRequestBody.apps, serializeManagedMobileApp); + writer.writeAdditionalData(targetAppsPostRequestBody.additionalData); +} +export interface TargetAppsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The apps property + */ + apps?: ManagedMobileApp[]; +} /** * Provides operations to call the targetApps method. */ @@ -22,7 +45,7 @@ export class TargetAppsRequestBuilder extends BaseRequestBuilder { * Not yet documented * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0|Find more info here} */ public post(body: TargetAppsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppPolicies/item/targetApps/targetAppsPostRequestBody.ts b/src/deviceAppManagement/managedAppPolicies/item/targetApps/targetAppsPostRequestBody.ts deleted file mode 100644 index 97e7d0fc468..00000000000 --- a/src/deviceAppManagement/managedAppPolicies/item/targetApps/targetAppsPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createManagedMobileAppFromDiscriminatorValue, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../models/managedMobileApp'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTargetAppsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTargetAppsPostRequestBody; -} -export function deserializeIntoTargetAppsPostRequestBody(targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : Record void> { - return { - "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, - } -} -export function serializeTargetAppsPostRequestBody(writer: SerializationWriter, targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : void { - writer.writeCollectionOfObjectValues("apps", targetAppsPostRequestBody.apps, serializeManagedMobileApp); - writer.writeAdditionalData(targetAppsPostRequestBody.additionalData); -} -export interface TargetAppsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The apps property - */ - apps?: ManagedMobileApp[]; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/managedAppRegistrations/count/index.ts b/src/deviceAppManagement/managedAppRegistrations/count/index.ts index 1bffc26575c..331ed661274 100644 --- a/src/deviceAppManagement/managedAppRegistrations/count/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration/getUserIdsWithFlaggedAppRegistrationGetResponse.ts b/src/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration/getUserIdsWithFlaggedAppRegistrationGetResponse.ts deleted file mode 100644 index fc768519eb4..00000000000 --- a/src/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration/getUserIdsWithFlaggedAppRegistrationGetResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetUserIdsWithFlaggedAppRegistrationGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetUserIdsWithFlaggedAppRegistrationGetResponse; -} -export function deserializeIntoGetUserIdsWithFlaggedAppRegistrationGetResponse(getUserIdsWithFlaggedAppRegistrationGetResponse: GetUserIdsWithFlaggedAppRegistrationGetResponse | undefined = {} as GetUserIdsWithFlaggedAppRegistrationGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getUserIdsWithFlaggedAppRegistrationGetResponse), - "value": n => { getUserIdsWithFlaggedAppRegistrationGetResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetUserIdsWithFlaggedAppRegistrationGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetUserIdsWithFlaggedAppRegistrationGetResponse(writer: SerializationWriter, getUserIdsWithFlaggedAppRegistrationGetResponse: GetUserIdsWithFlaggedAppRegistrationGetResponse | undefined = {} as GetUserIdsWithFlaggedAppRegistrationGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getUserIdsWithFlaggedAppRegistrationGetResponse) - writer.writeCollectionOfPrimitiveValues("value", getUserIdsWithFlaggedAppRegistrationGetResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration/index.ts b/src/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration/index.ts index f7481493244..62e30d1707e 100644 --- a/src/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration/index.ts @@ -1,12 +1,27 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetUserIdsWithFlaggedAppRegistrationGetResponseFromDiscriminatorValue } from './'; -import { type GetUserIdsWithFlaggedAppRegistrationGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetUserIdsWithFlaggedAppRegistrationGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetUserIdsWithFlaggedAppRegistrationGetResponse; +} +export function deserializeIntoGetUserIdsWithFlaggedAppRegistrationGetResponse(getUserIdsWithFlaggedAppRegistrationGetResponse: GetUserIdsWithFlaggedAppRegistrationGetResponse | undefined = {} as GetUserIdsWithFlaggedAppRegistrationGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getUserIdsWithFlaggedAppRegistrationGetResponse), + "value": n => { getUserIdsWithFlaggedAppRegistrationGetResponse.value = n.getCollectionOfPrimitiveValues(); }, + } +} +export interface GetUserIdsWithFlaggedAppRegistrationGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: string[]; +} export interface GetUserIdsWithFlaggedAppRegistrationRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +44,10 @@ export interface GetUserIdsWithFlaggedAppRegistrationRequestBuilderGetQueryParam */ top?: number; } +export function serializeGetUserIdsWithFlaggedAppRegistrationGetResponse(writer: SerializationWriter, getUserIdsWithFlaggedAppRegistrationGetResponse: GetUserIdsWithFlaggedAppRegistrationGetResponse | undefined = {} as GetUserIdsWithFlaggedAppRegistrationGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getUserIdsWithFlaggedAppRegistrationGetResponse) + writer.writeCollectionOfPrimitiveValues("value", getUserIdsWithFlaggedAppRegistrationGetResponse.value); +} /** * Provides operations to call the getUserIdsWithFlaggedAppRegistration method. */ diff --git a/src/deviceAppManagement/managedAppRegistrations/index.ts b/src/deviceAppManagement/managedAppRegistrations/index.ts index 68982e5cddd..f36ee1773ef 100644 --- a/src/deviceAppManagement/managedAppRegistrations/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAppRegistrationCollectionResponse } from '../../models/'; +import { type ManagedAppRegistrationCollectionResponse } from '../../models'; import { createManagedAppRegistrationFromDiscriminatorValue, deserializeIntoManagedAppRegistration, serializeManagedAppRegistration, type ManagedAppRegistration } from '../../models/managedAppRegistration'; import { createManagedAppRegistrationCollectionResponseFromDiscriminatorValue } from '../../models/managedAppRegistrationCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetUserIdsWithFlaggedAppRegistrationRequestBuilder } from './getUserIdsWithFlaggedAppRegistration/'; -import { ManagedAppRegistrationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetUserIdsWithFlaggedAppRegistrationRequestBuilder } from './getUserIdsWithFlaggedAppRegistration'; +import { ManagedAppRegistrationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedAppRegistrationsRequestBuilderGetQueryParameters { @@ -81,10 +81,10 @@ export class ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * 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 a Promise of ManagedAppRegistrationCollectionResponse - * @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} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -114,7 +114,7 @@ export class ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createManagedAppRegistrationFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation */ diff --git a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/count/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/count/index.ts index 6aad6de4b5f..015d339c595 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/count/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/index.ts index 75f3a557a75..2bef41dad7d 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAppPolicyCollectionResponse } from '../../../../models/'; +import { type ManagedAppPolicyCollectionResponse } from '../../../../models'; import { createManagedAppPolicyFromDiscriminatorValue, deserializeIntoManagedAppPolicy, serializeManagedAppPolicy, type ManagedAppPolicy } from '../../../../models/managedAppPolicy'; import { createManagedAppPolicyCollectionResponseFromDiscriminatorValue } from '../../../../models/managedAppPolicyCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedAppPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedAppPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppliedPoliciesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/index.ts index ddf86fd4656..e7cf7f8b9aa 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppPolicyFromDiscriminatorValue, deserializeIntoManagedAppPolicy, serializeManagedAppPolicy, type ManagedAppPolicy } from '../../../../../models/managedAppPolicy'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { TargetAppsRequestBuilder } from './targetApps/'; +import { TargetAppsRequestBuilder } from './targetApps'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedAppPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts index 67bd3d23d69..e63cabd91d4 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { createManagedMobileAppFromDiscriminatorValue, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../../../models/managedMobileApp'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoTargetAppsPostRequestBody, serializeTargetAppsPostRequestBody, type TargetAppsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTargetAppsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTargetAppsPostRequestBody; +} +export function deserializeIntoTargetAppsPostRequestBody(targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : Record void> { + return { + "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, + } +} +export function serializeTargetAppsPostRequestBody(writer: SerializationWriter, targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : void { + writer.writeCollectionOfObjectValues("apps", targetAppsPostRequestBody.apps, serializeManagedMobileApp); + writer.writeAdditionalData(targetAppsPostRequestBody.additionalData); +} +export interface TargetAppsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The apps property + */ + apps?: ManagedMobileApp[]; +} /** * Provides operations to call the targetApps method. */ @@ -22,7 +45,7 @@ export class TargetAppsRequestBuilder extends BaseRequestBuilder { * Not yet documented * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0|Find more info here} */ public post(body: TargetAppsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/targetAppsPostRequestBody.ts b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/targetAppsPostRequestBody.ts deleted file mode 100644 index 491b64653c8..00000000000 --- a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/targetAppsPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createManagedMobileAppFromDiscriminatorValue, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../../../models/managedMobileApp'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTargetAppsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTargetAppsPostRequestBody; -} -export function deserializeIntoTargetAppsPostRequestBody(targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : Record void> { - return { - "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, - } -} -export function serializeTargetAppsPostRequestBody(writer: SerializationWriter, targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : void { - writer.writeCollectionOfObjectValues("apps", targetAppsPostRequestBody.apps, serializeManagedMobileApp); - writer.writeAdditionalData(targetAppsPostRequestBody.additionalData); -} -export interface TargetAppsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The apps property - */ - apps?: ManagedMobileApp[]; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/managedAppRegistrations/item/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/index.ts index 635bc4d9853..8ae39e02572 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppRegistrationFromDiscriminatorValue, deserializeIntoManagedAppRegistration, serializeManagedAppRegistration, type ManagedAppRegistration } from '../../../models/managedAppRegistration'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppliedPoliciesRequestBuilder } from './appliedPolicies/'; -import { IntendedPoliciesRequestBuilder } from './intendedPolicies/'; -import { OperationsRequestBuilder } from './operations/'; +import { AppliedPoliciesRequestBuilder } from './appliedPolicies'; +import { IntendedPoliciesRequestBuilder } from './intendedPolicies'; +import { OperationsRequestBuilder } from './operations'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedAppRegistrationItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/count/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/count/index.ts index 425f724fd88..916bd04ea69 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/count/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/index.ts index 21e338f92a9..c7908200e05 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAppPolicyCollectionResponse } from '../../../../models/'; +import { type ManagedAppPolicyCollectionResponse } from '../../../../models'; import { createManagedAppPolicyFromDiscriminatorValue, deserializeIntoManagedAppPolicy, serializeManagedAppPolicy, type ManagedAppPolicy } from '../../../../models/managedAppPolicy'; import { createManagedAppPolicyCollectionResponseFromDiscriminatorValue } from '../../../../models/managedAppPolicyCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedAppPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedAppPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IntendedPoliciesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/index.ts index d2eec9ab617..41ebe799381 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppPolicyFromDiscriminatorValue, deserializeIntoManagedAppPolicy, serializeManagedAppPolicy, type ManagedAppPolicy } from '../../../../../models/managedAppPolicy'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { TargetAppsRequestBuilder } from './targetApps/'; +import { TargetAppsRequestBuilder } from './targetApps'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedAppPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts index 4b077c7848b..7d3a86b6c49 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { createManagedMobileAppFromDiscriminatorValue, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../../../models/managedMobileApp'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoTargetAppsPostRequestBody, serializeTargetAppsPostRequestBody, type TargetAppsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTargetAppsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTargetAppsPostRequestBody; +} +export function deserializeIntoTargetAppsPostRequestBody(targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : Record void> { + return { + "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, + } +} +export function serializeTargetAppsPostRequestBody(writer: SerializationWriter, targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : void { + writer.writeCollectionOfObjectValues("apps", targetAppsPostRequestBody.apps, serializeManagedMobileApp); + writer.writeAdditionalData(targetAppsPostRequestBody.additionalData); +} +export interface TargetAppsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The apps property + */ + apps?: ManagedMobileApp[]; +} /** * Provides operations to call the targetApps method. */ @@ -22,7 +45,7 @@ export class TargetAppsRequestBuilder extends BaseRequestBuilder { * Not yet documented * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0|Find more info here} */ public post(body: TargetAppsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/targetAppsPostRequestBody.ts b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/targetAppsPostRequestBody.ts deleted file mode 100644 index 491b64653c8..00000000000 --- a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/targetAppsPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createManagedMobileAppFromDiscriminatorValue, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../../../models/managedMobileApp'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTargetAppsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTargetAppsPostRequestBody; -} -export function deserializeIntoTargetAppsPostRequestBody(targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : Record void> { - return { - "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, - } -} -export function serializeTargetAppsPostRequestBody(writer: SerializationWriter, targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : void { - writer.writeCollectionOfObjectValues("apps", targetAppsPostRequestBody.apps, serializeManagedMobileApp); - writer.writeAdditionalData(targetAppsPostRequestBody.additionalData); -} -export interface TargetAppsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The apps property - */ - apps?: ManagedMobileApp[]; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/managedAppRegistrations/item/operations/count/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/operations/count/index.ts index 6003e25df0b..185d3cdb76d 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/operations/count/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedAppRegistrations/item/operations/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/operations/index.ts index 9fa094e9acf..9d5d51f627a 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/operations/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAppOperationCollectionResponse } from '../../../../models/'; +import { type ManagedAppOperationCollectionResponse } from '../../../../models'; import { createManagedAppOperationFromDiscriminatorValue, deserializeIntoManagedAppOperation, serializeManagedAppOperation, type ManagedAppOperation } from '../../../../models/managedAppOperation'; import { createManagedAppOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/managedAppOperationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedAppOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedAppOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppRegistrations/item/operations/item/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/operations/item/index.ts index 6b8c0944553..9b35c6f8796 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/operations/item/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/operations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppOperationFromDiscriminatorValue, deserializeIntoManagedAppOperation, serializeManagedAppOperation, type ManagedAppOperation } from '../../../../../models/managedAppOperation'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedAppStatuses/count/index.ts b/src/deviceAppManagement/managedAppStatuses/count/index.ts index e2f8e9c60fe..f3684e70ee7 100644 --- a/src/deviceAppManagement/managedAppStatuses/count/index.ts +++ b/src/deviceAppManagement/managedAppStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedAppStatuses/index.ts b/src/deviceAppManagement/managedAppStatuses/index.ts index 9adc545fc95..04e2ab78d50 100644 --- a/src/deviceAppManagement/managedAppStatuses/index.ts +++ b/src/deviceAppManagement/managedAppStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAppStatusCollectionResponse } from '../../models/'; +import { type ManagedAppStatusCollectionResponse } from '../../models'; import { createManagedAppStatusFromDiscriminatorValue, deserializeIntoManagedAppStatus, serializeManagedAppStatus, type ManagedAppStatus } from '../../models/managedAppStatus'; import { createManagedAppStatusCollectionResponseFromDiscriminatorValue } from '../../models/managedAppStatusCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedAppStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedAppStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedAppStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedAppStatuses/item/index.ts b/src/deviceAppManagement/managedAppStatuses/item/index.ts index f637ec0ad40..923bbf1d4a7 100644 --- a/src/deviceAppManagement/managedAppStatuses/item/index.ts +++ b/src/deviceAppManagement/managedAppStatuses/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppStatusFromDiscriminatorValue, deserializeIntoManagedAppStatus, serializeManagedAppStatus, type ManagedAppStatus } from '../../../models/managedAppStatus'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/count/index.ts b/src/deviceAppManagement/managedEBooks/count/index.ts index 74dac333455..1c6adcee920 100644 --- a/src/deviceAppManagement/managedEBooks/count/index.ts +++ b/src/deviceAppManagement/managedEBooks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/index.ts b/src/deviceAppManagement/managedEBooks/index.ts index 6757cae3aea..c108271021a 100644 --- a/src/deviceAppManagement/managedEBooks/index.ts +++ b/src/deviceAppManagement/managedEBooks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedEBookCollectionResponse } from '../../models/'; +import { type ManagedEBookCollectionResponse } from '../../models'; import { createManagedEBookFromDiscriminatorValue, deserializeIntoManagedEBook, serializeManagedEBook, type ManagedEBook } from '../../models/managedEBook'; import { createManagedEBookCollectionResponseFromDiscriminatorValue } from '../../models/managedEBookCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedEBookItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedEBookItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedEBooksRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedEBooks/item/assign/index.ts b/src/deviceAppManagement/managedEBooks/item/assign/index.ts index 3e8534973bf..9db6da98de4 100644 --- a/src/deviceAppManagement/managedEBooks/item/assign/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/assign/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedEBookAssignmentFromDiscriminatorValue, serializeManagedEBookAssignment, type ManagedEBookAssignment } from '../../../../models/managedEBookAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssignPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,57 +27,5 @@ export function serializeAssignPostRequestBody(writer: SerializationWriter, assi writer.writeCollectionOfObjectValues("managedEBookAssignments", assignPostRequestBody.managedEBookAssignments, serializeManagedEBookAssignment); writer.writeAdditionalData(assignPostRequestBody.additionalData); } -/** - * Provides operations to call the assign method. - */ -export class AssignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assign"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebook-assign?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignRequestBuilder - */ - public withUrl(rawUrl: string) : AssignRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceAppManagement/managedEBooks/item/assignments/count/index.ts b/src/deviceAppManagement/managedEBooks/item/assignments/count/index.ts index 2a7f729dc61..53f278ef7e5 100644 --- a/src/deviceAppManagement/managedEBooks/item/assignments/count/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/item/assignments/index.ts b/src/deviceAppManagement/managedEBooks/item/assignments/index.ts index a41db5c929c..520ee5b6aa6 100644 --- a/src/deviceAppManagement/managedEBooks/item/assignments/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedEBookAssignmentCollectionResponse } from '../../../../models/'; +import { type ManagedEBookAssignmentCollectionResponse } from '../../../../models'; import { createManagedEBookAssignmentFromDiscriminatorValue, deserializeIntoManagedEBookAssignment, serializeManagedEBookAssignment, type ManagedEBookAssignment } from '../../../../models/managedEBookAssignment'; import { createManagedEBookAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/managedEBookAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedEBookAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedEBookAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { @@ -74,10 +74,10 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedEBookAssignmentCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -90,11 +90,11 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createManagedEBookAssignmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedEBookAssignment - * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0|Find more info here} */ public post(body: ManagedEBookAssignment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -107,7 +107,7 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createManagedEBookAssignmentFromDiscriminatorValue, errorMapping); }; /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -118,7 +118,7 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceAppManagement/managedEBooks/item/assignments/item/index.ts b/src/deviceAppManagement/managedEBooks/item/assignments/item/index.ts index 9874a5f8155..c411c50940a 100644 --- a/src/deviceAppManagement/managedEBooks/item/assignments/item/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedEBookAssignmentFromDiscriminatorValue, deserializeIntoManagedEBookAssignment, serializeManagedEBookAssignment, type ManagedEBookAssignment } from '../../../../../models/managedEBookAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/item/deviceStates/count/index.ts b/src/deviceAppManagement/managedEBooks/item/deviceStates/count/index.ts index 920d5effc55..a5c8f46cfab 100644 --- a/src/deviceAppManagement/managedEBooks/item/deviceStates/count/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/deviceStates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/item/deviceStates/index.ts b/src/deviceAppManagement/managedEBooks/item/deviceStates/index.ts index d0bfe8c377e..34e56c462f3 100644 --- a/src/deviceAppManagement/managedEBooks/item/deviceStates/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/deviceStates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceInstallStateCollectionResponse } from '../../../../models/'; +import { type DeviceInstallStateCollectionResponse } from '../../../../models'; import { createDeviceInstallStateFromDiscriminatorValue, deserializeIntoDeviceInstallState, serializeDeviceInstallState, type DeviceInstallState } from '../../../../models/deviceInstallState'; import { createDeviceInstallStateCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceInstallStateCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceInstallStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceInstallStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceStatesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedEBooks/item/deviceStates/item/index.ts b/src/deviceAppManagement/managedEBooks/item/deviceStates/item/index.ts index 5d7aea77b62..5a46f0cb6c3 100644 --- a/src/deviceAppManagement/managedEBooks/item/deviceStates/item/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/deviceStates/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceInstallStateFromDiscriminatorValue, deserializeIntoDeviceInstallState, serializeDeviceInstallState, type DeviceInstallState } from '../../../../../models/deviceInstallState'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/item/index.ts b/src/deviceAppManagement/managedEBooks/item/index.ts index 0568af09170..c6cea171dd2 100644 --- a/src/deviceAppManagement/managedEBooks/item/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedEBookFromDiscriminatorValue, deserializeIntoManagedEBook, serializeManagedEBook, type ManagedEBook } from '../../../models/managedEBook'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignRequestBuilder } from './assign/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { DeviceStatesRequestBuilder } from './deviceStates/'; -import { InstallSummaryRequestBuilder } from './installSummary/'; -import { UserStateSummaryRequestBuilder } from './userStateSummary/'; +import { AssignRequestBuilder } from './assign'; +import { AssignmentsRequestBuilder } from './assignments'; +import { DeviceStatesRequestBuilder } from './deviceStates'; +import { InstallSummaryRequestBuilder } from './installSummary'; +import { UserStateSummaryRequestBuilder } from './userStateSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedEBookItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedEBooks/item/installSummary/index.ts b/src/deviceAppManagement/managedEBooks/item/installSummary/index.ts index be76c2ba8a9..2c8aacefbe3 100644 --- a/src/deviceAppManagement/managedEBooks/item/installSummary/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/installSummary/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEBookInstallSummaryFromDiscriminatorValue, deserializeIntoEBookInstallSummary, serializeEBookInstallSummary, type EBookInstallSummary } from '../../../../models/eBookInstallSummary'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/item/userStateSummary/count/index.ts b/src/deviceAppManagement/managedEBooks/item/userStateSummary/count/index.ts index e6560f44bdf..5a3655487eb 100644 --- a/src/deviceAppManagement/managedEBooks/item/userStateSummary/count/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/userStateSummary/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/item/userStateSummary/index.ts b/src/deviceAppManagement/managedEBooks/item/userStateSummary/index.ts index 8fc89c361f3..e2833969a4e 100644 --- a/src/deviceAppManagement/managedEBooks/item/userStateSummary/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/userStateSummary/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserInstallStateSummaryCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserInstallStateSummaryCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserInstallStateSummaryFromDiscriminatorValue, deserializeIntoUserInstallStateSummary, serializeUserInstallStateSummary, type UserInstallStateSummary } from '../../../../models/userInstallStateSummary'; import { createUserInstallStateSummaryCollectionResponseFromDiscriminatorValue } from '../../../../models/userInstallStateSummaryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserInstallStateSummaryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserInstallStateSummaryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserStateSummaryRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/count/index.ts b/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/count/index.ts index 8ed87ea2764..c30c89b2c8a 100644 --- a/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/count/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/index.ts b/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/index.ts index d5f27141d9d..421d9bfb50c 100644 --- a/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceInstallStateCollectionResponse } from '../../../../../../models/'; +import { type DeviceInstallStateCollectionResponse } from '../../../../../../models'; import { createDeviceInstallStateFromDiscriminatorValue, deserializeIntoDeviceInstallState, serializeDeviceInstallState, type DeviceInstallState } from '../../../../../../models/deviceInstallState'; import { createDeviceInstallStateCollectionResponseFromDiscriminatorValue } from '../../../../../../models/deviceInstallStateCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceInstallStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceInstallStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceStatesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/item/index.ts b/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/item/index.ts index 7577fc05b72..a9cfe755121 100644 --- a/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/item/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/deviceStates/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceInstallStateFromDiscriminatorValue, deserializeIntoDeviceInstallState, serializeDeviceInstallState, type DeviceInstallState } from '../../../../../../../models/deviceInstallState'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/index.ts b/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/index.ts index c67ff13641f..506157c24bb 100644 --- a/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/index.ts +++ b/src/deviceAppManagement/managedEBooks/item/userStateSummary/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserInstallStateSummaryFromDiscriminatorValue, deserializeIntoUserInstallStateSummary, serializeUserInstallStateSummary, type UserInstallStateSummary } from '../../../../../models/userInstallStateSummary'; -import { DeviceStatesRequestBuilder } from './deviceStates/'; +import { DeviceStatesRequestBuilder } from './deviceStates'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserInstallStateSummaryItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/count/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/count/index.ts index e7745420cb2..5750f9ae623 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/count/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/index.ts index 027e73c0dc3..72bb09722f6 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MdmWindowsInformationProtectionPolicyCollectionResponse } from '../../models/'; +import { type MdmWindowsInformationProtectionPolicyCollectionResponse } from '../../models'; import { createMdmWindowsInformationProtectionPolicyFromDiscriminatorValue, deserializeIntoMdmWindowsInformationProtectionPolicy, serializeMdmWindowsInformationProtectionPolicy, type MdmWindowsInformationProtectionPolicy } from '../../models/mdmWindowsInformationProtectionPolicy'; import { createMdmWindowsInformationProtectionPolicyCollectionResponseFromDiscriminatorValue } from '../../models/mdmWindowsInformationProtectionPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MdmWindowsInformationProtectionPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MdmWindowsInformationProtectionPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MdmWindowsInformationProtectionPoliciesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/count/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/count/index.ts index c95102bd421..6817301e8c2 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/count/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/index.ts index 3a1b0c231fd..3603423d868 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../models/targetedManagedAppPolicyAssignment'; import { createTargetedManagedAppPolicyAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/targetedManagedAppPolicyAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/item/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/item/index.ts index 94dc7640900..cda46eeda04 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/item/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/assignments/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../../models/targetedManagedAppPolicyAssignment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/count/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/count/index.ts index 0411c5bbf8a..c1f749c9612 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/count/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/index.ts index 0f0c74fe2e8..e5fe5444b7f 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsInformationProtectionAppLockerFileCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsInformationProtectionAppLockerFileCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLockerFileFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLockerFile, serializeWindowsInformationProtectionAppLockerFile, type WindowsInformationProtectionAppLockerFile } from '../../../../models/windowsInformationProtectionAppLockerFile'; import { createWindowsInformationProtectionAppLockerFileCollectionResponseFromDiscriminatorValue } from '../../../../models/windowsInformationProtectionAppLockerFileCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsInformationProtectionAppLockerFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsInformationProtectionAppLockerFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExemptAppLockerFilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/item/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/item/index.ts index 4d451a3dfb8..675f78858d1 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/item/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/exemptAppLockerFiles/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLockerFileFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLockerFile, serializeWindowsInformationProtectionAppLockerFile, type WindowsInformationProtectionAppLockerFile } from '../../../../../models/windowsInformationProtectionAppLockerFile'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/index.ts index a159926a0e9..7007e3ac1be 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createMdmWindowsInformationProtectionPolicyFromDiscriminatorValue, deserializeIntoMdmWindowsInformationProtectionPolicy, serializeMdmWindowsInformationProtectionPolicy, type MdmWindowsInformationProtectionPolicy } from '../../../models/mdmWindowsInformationProtectionPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { ExemptAppLockerFilesRequestBuilder } from './exemptAppLockerFiles/'; -import { ProtectedAppLockerFilesRequestBuilder } from './protectedAppLockerFiles/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { ExemptAppLockerFilesRequestBuilder } from './exemptAppLockerFiles'; +import { ProtectedAppLockerFilesRequestBuilder } from './protectedAppLockerFiles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MdmWindowsInformationProtectionPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/count/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/count/index.ts index c1c5b052ef1..f561388bcfb 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/count/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/index.ts index 9f41be9749c..ea820d10c4d 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsInformationProtectionAppLockerFileCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsInformationProtectionAppLockerFileCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLockerFileFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLockerFile, serializeWindowsInformationProtectionAppLockerFile, type WindowsInformationProtectionAppLockerFile } from '../../../../models/windowsInformationProtectionAppLockerFile'; import { createWindowsInformationProtectionAppLockerFileCollectionResponseFromDiscriminatorValue } from '../../../../models/windowsInformationProtectionAppLockerFileCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsInformationProtectionAppLockerFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsInformationProtectionAppLockerFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ProtectedAppLockerFilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/item/index.ts b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/item/index.ts index 8fb441dc254..a4de9345043 100644 --- a/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/item/index.ts +++ b/src/deviceAppManagement/mdmWindowsInformationProtectionPolicies/item/protectedAppLockerFiles/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLockerFileFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLockerFile, serializeWindowsInformationProtectionAppLockerFile, type WindowsInformationProtectionAppLockerFile } from '../../../../../models/windowsInformationProtectionAppLockerFile'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppCategories/count/index.ts b/src/deviceAppManagement/mobileAppCategories/count/index.ts index 90c0c0f31a2..776542ee894 100644 --- a/src/deviceAppManagement/mobileAppCategories/count/index.ts +++ b/src/deviceAppManagement/mobileAppCategories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppCategories/index.ts b/src/deviceAppManagement/mobileAppCategories/index.ts index 80589bb0307..2aaa05a7421 100644 --- a/src/deviceAppManagement/mobileAppCategories/index.ts +++ b/src/deviceAppManagement/mobileAppCategories/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../models'; import { createMobileAppCategoryFromDiscriminatorValue, deserializeIntoMobileAppCategory, serializeMobileAppCategory, type MobileAppCategory } from '../../models/mobileAppCategory'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppCategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileAppCategories/item/index.ts b/src/deviceAppManagement/mobileAppCategories/item/index.ts index 554ddb15c83..e2465b38e8c 100644 --- a/src/deviceAppManagement/mobileAppCategories/item/index.ts +++ b/src/deviceAppManagement/mobileAppCategories/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppCategoryFromDiscriminatorValue, deserializeIntoMobileAppCategory, serializeMobileAppCategory, type MobileAppCategory } from '../../../models/mobileAppCategory'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/count/index.ts b/src/deviceAppManagement/mobileAppConfigurations/count/index.ts index a5c2190b1cd..2a17b2dcdfd 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/count/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/index.ts b/src/deviceAppManagement/mobileAppConfigurations/index.ts index fc4f0125be9..4ba5f77b67b 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDeviceMobileAppConfigurationCollectionResponse } from '../../models/'; +import { type ManagedDeviceMobileAppConfigurationCollectionResponse } from '../../models'; import { createManagedDeviceMobileAppConfigurationFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfiguration, serializeManagedDeviceMobileAppConfiguration, type ManagedDeviceMobileAppConfiguration } from '../../models/managedDeviceMobileAppConfiguration'; import { createManagedDeviceMobileAppConfigurationCollectionResponseFromDiscriminatorValue } from '../../models/managedDeviceMobileAppConfigurationCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedDeviceMobileAppConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedDeviceMobileAppConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/assign/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/assign/index.ts index bfa6ee178d4..7b1edb4ceb3 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/assign/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/assign/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceMobileAppConfigurationAssignmentFromDiscriminatorValue, serializeManagedDeviceMobileAppConfigurationAssignment, type ManagedDeviceMobileAppConfigurationAssignment } from '../../../../models/managedDeviceMobileAppConfigurationAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssignPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,57 +27,5 @@ export function serializeAssignPostRequestBody(writer: SerializationWriter, assi writer.writeCollectionOfObjectValues("assignments", assignPostRequestBody.assignments, serializeManagedDeviceMobileAppConfigurationAssignment); writer.writeAdditionalData(assignPostRequestBody.additionalData); } -/** - * Provides operations to call the assign method. - */ -export class AssignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assign"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-assign?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignRequestBuilder - */ - public withUrl(rawUrl: string) : AssignRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/assignments/count/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/assignments/count/index.ts index fe8b70b33c1..c37bf4dceae 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/assignments/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/assignments/index.ts index 1e012861d90..495878dce21 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/assignments/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse } from '../../../../models/'; +import { type ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse } from '../../../../models'; import { createManagedDeviceMobileAppConfigurationAssignmentFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfigurationAssignment, serializeManagedDeviceMobileAppConfigurationAssignment, type ManagedDeviceMobileAppConfigurationAssignment } from '../../../../models/managedDeviceMobileAppConfigurationAssignment'; import { createManagedDeviceMobileAppConfigurationAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/managedDeviceMobileAppConfigurationAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/assignments/item/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/assignments/item/index.ts index cb074bdd260..9c282039b08 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceMobileAppConfigurationAssignmentFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfigurationAssignment, serializeManagedDeviceMobileAppConfigurationAssignment, type ManagedDeviceMobileAppConfigurationAssignment } from '../../../../../models/managedDeviceMobileAppConfigurationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatusSummary/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatusSummary/index.ts index 6c661569328..44bd087849f 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatusSummary/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatusSummary/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceMobileAppConfigurationDeviceSummaryFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfigurationDeviceSummary, serializeManagedDeviceMobileAppConfigurationDeviceSummary, type ManagedDeviceMobileAppConfigurationDeviceSummary } from '../../../../models/managedDeviceMobileAppConfigurationDeviceSummary'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/count/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/count/index.ts index 33c0fae88df..4e82b157532 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/count/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/index.ts index 1cb670f1248..536a6a888c8 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse } from '../../../../models/'; +import { type ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse } from '../../../../models'; import { createManagedDeviceMobileAppConfigurationDeviceStatusFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfigurationDeviceStatus, serializeManagedDeviceMobileAppConfigurationDeviceStatus, type ManagedDeviceMobileAppConfigurationDeviceStatus } from '../../../../models/managedDeviceMobileAppConfigurationDeviceStatus'; import { createManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponseFromDiscriminatorValue } from '../../../../models/managedDeviceMobileAppConfigurationDeviceStatusCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/item/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/item/index.ts index 27ef45cd37c..3d3c6219e75 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/item/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/deviceStatuses/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceMobileAppConfigurationDeviceStatusFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfigurationDeviceStatus, serializeManagedDeviceMobileAppConfigurationDeviceStatus, type ManagedDeviceMobileAppConfigurationDeviceStatus } from '../../../../../models/managedDeviceMobileAppConfigurationDeviceStatus'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/index.ts index 3a0b806904f..92bcdf0657f 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceMobileAppConfigurationFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfiguration, serializeManagedDeviceMobileAppConfiguration, type ManagedDeviceMobileAppConfiguration } from '../../../models/managedDeviceMobileAppConfiguration'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignRequestBuilder } from './assign/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { DeviceStatusesRequestBuilder } from './deviceStatuses/'; -import { DeviceStatusSummaryRequestBuilder } from './deviceStatusSummary/'; -import { UserStatusesRequestBuilder } from './userStatuses/'; -import { UserStatusSummaryRequestBuilder } from './userStatusSummary/'; +import { AssignRequestBuilder } from './assign'; +import { AssignmentsRequestBuilder } from './assignments'; +import { DeviceStatusesRequestBuilder } from './deviceStatuses'; +import { DeviceStatusSummaryRequestBuilder } from './deviceStatusSummary'; +import { UserStatusesRequestBuilder } from './userStatuses'; +import { UserStatusSummaryRequestBuilder } from './userStatusSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { @@ -86,10 +86,10 @@ export class ManagedDeviceMobileAppConfigurationItemRequestBuilder extends BaseR return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Read properties and relationships of the managedDeviceMobileAppConfiguration object. + * Read properties and relationships of the iosMobileAppConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedDeviceMobileAppConfiguration - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -130,7 +130,7 @@ export class ManagedDeviceMobileAppConfigurationItemRequestBuilder extends BaseR return requestInfo; }; /** - * Read properties and relationships of the managedDeviceMobileAppConfiguration object. + * Read properties and relationships of the iosMobileAppConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/userStatusSummary/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/userStatusSummary/index.ts index 26aaabe6918..fa5601e9fc5 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/userStatusSummary/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/userStatusSummary/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceMobileAppConfigurationUserSummaryFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfigurationUserSummary, serializeManagedDeviceMobileAppConfigurationUserSummary, type ManagedDeviceMobileAppConfigurationUserSummary } from '../../../../models/managedDeviceMobileAppConfigurationUserSummary'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/count/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/count/index.ts index 08a6f86141c..b213c14ae0d 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/count/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/index.ts index 529fce807d4..9a7275f59d0 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse } from '../../../../models/'; +import { type ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse } from '../../../../models'; import { createManagedDeviceMobileAppConfigurationUserStatusFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfigurationUserStatus, serializeManagedDeviceMobileAppConfigurationUserStatus, type ManagedDeviceMobileAppConfigurationUserStatus } from '../../../../models/managedDeviceMobileAppConfigurationUserStatus'; import { createManagedDeviceMobileAppConfigurationUserStatusCollectionResponseFromDiscriminatorValue } from '../../../../models/managedDeviceMobileAppConfigurationUserStatusCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/item/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/item/index.ts index a7bd49eec35..f425409c91a 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/item/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/userStatuses/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceMobileAppConfigurationUserStatusFromDiscriminatorValue, deserializeIntoManagedDeviceMobileAppConfigurationUserStatus, serializeManagedDeviceMobileAppConfigurationUserStatus, type ManagedDeviceMobileAppConfigurationUserStatus } from '../../../../../models/managedDeviceMobileAppConfigurationUserStatus'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/count/index.ts b/src/deviceAppManagement/mobileApps/count/index.ts index 1adb0cf3b9e..87a3c2c3d2c 100644 --- a/src/deviceAppManagement/mobileApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphAndroidLobApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphAndroidLobApp/count/index.ts index 51cf062aa58..38b14e311c1 100644 --- a/src/deviceAppManagement/mobileApps/graphAndroidLobApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphAndroidLobApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphAndroidLobApp/index.ts b/src/deviceAppManagement/mobileApps/graphAndroidLobApp/index.ts index f6c23b4a84a..e25087de2ad 100644 --- a/src/deviceAppManagement/mobileApps/graphAndroidLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphAndroidLobApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AndroidLobAppCollectionResponse } from '../../../models/'; +import { type AndroidLobAppCollectionResponse } from '../../../models'; import { createAndroidLobAppCollectionResponseFromDiscriminatorValue } from '../../../models/androidLobAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAndroidLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphAndroidStoreApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphAndroidStoreApp/count/index.ts index 1c1fef42b9c..4d66c90838c 100644 --- a/src/deviceAppManagement/mobileApps/graphAndroidStoreApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphAndroidStoreApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphAndroidStoreApp/index.ts b/src/deviceAppManagement/mobileApps/graphAndroidStoreApp/index.ts index ee691b85fb7..dd85e21ae3f 100644 --- a/src/deviceAppManagement/mobileApps/graphAndroidStoreApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphAndroidStoreApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AndroidStoreAppCollectionResponse } from '../../../models/'; +import { type AndroidStoreAppCollectionResponse } from '../../../models'; import { createAndroidStoreAppCollectionResponseFromDiscriminatorValue } from '../../../models/androidStoreAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAndroidStoreAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphIosLobApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphIosLobApp/count/index.ts index 5e31b5a2951..6e3442405b8 100644 --- a/src/deviceAppManagement/mobileApps/graphIosLobApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphIosLobApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphIosLobApp/index.ts b/src/deviceAppManagement/mobileApps/graphIosLobApp/index.ts index c153abc626e..e9f37d21a54 100644 --- a/src/deviceAppManagement/mobileApps/graphIosLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphIosLobApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IosLobAppCollectionResponse } from '../../../models/'; +import { type IosLobAppCollectionResponse } from '../../../models'; import { createIosLobAppCollectionResponseFromDiscriminatorValue } from '../../../models/iosLobAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphIosLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphIosStoreApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphIosStoreApp/count/index.ts index 3d8b500b576..abe06b94f01 100644 --- a/src/deviceAppManagement/mobileApps/graphIosStoreApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphIosStoreApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphIosStoreApp/index.ts b/src/deviceAppManagement/mobileApps/graphIosStoreApp/index.ts index 9282ee11a14..420cc10df7a 100644 --- a/src/deviceAppManagement/mobileApps/graphIosStoreApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphIosStoreApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IosStoreAppCollectionResponse } from '../../../models/'; +import { type IosStoreAppCollectionResponse } from '../../../models'; import { createIosStoreAppCollectionResponseFromDiscriminatorValue } from '../../../models/iosStoreAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphIosStoreAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphIosVppApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphIosVppApp/count/index.ts index 211a8010767..d27ab879c3f 100644 --- a/src/deviceAppManagement/mobileApps/graphIosVppApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphIosVppApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphIosVppApp/index.ts b/src/deviceAppManagement/mobileApps/graphIosVppApp/index.ts index 3f68b48b5f0..be3b2cebe96 100644 --- a/src/deviceAppManagement/mobileApps/graphIosVppApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphIosVppApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IosVppAppCollectionResponse } from '../../../models/'; +import { type IosVppAppCollectionResponse } from '../../../models'; import { createIosVppAppCollectionResponseFromDiscriminatorValue } from '../../../models/iosVppAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphIosVppAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphMacOSDmgApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphMacOSDmgApp/count/index.ts index 9706aaf14bf..89c04601ab5 100644 --- a/src/deviceAppManagement/mobileApps/graphMacOSDmgApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphMacOSDmgApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphMacOSDmgApp/index.ts b/src/deviceAppManagement/mobileApps/graphMacOSDmgApp/index.ts index e7463d06330..b6fdf2a97e6 100644 --- a/src/deviceAppManagement/mobileApps/graphMacOSDmgApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphMacOSDmgApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MacOSDmgAppCollectionResponse } from '../../../models/'; +import { type MacOSDmgAppCollectionResponse } from '../../../models'; import { createMacOSDmgAppCollectionResponseFromDiscriminatorValue } from '../../../models/macOSDmgAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphMacOSDmgAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphMacOSLobApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphMacOSLobApp/count/index.ts index d5faa16901a..074839b30e2 100644 --- a/src/deviceAppManagement/mobileApps/graphMacOSLobApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphMacOSLobApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphMacOSLobApp/index.ts b/src/deviceAppManagement/mobileApps/graphMacOSLobApp/index.ts index 998dc6485ef..a2ea9b35407 100644 --- a/src/deviceAppManagement/mobileApps/graphMacOSLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphMacOSLobApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MacOSLobAppCollectionResponse } from '../../../models/'; +import { type MacOSLobAppCollectionResponse } from '../../../models'; import { createMacOSLobAppCollectionResponseFromDiscriminatorValue } from '../../../models/macOSLobAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphMacOSLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphManagedAndroidLobApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphManagedAndroidLobApp/count/index.ts index c2b92ad375f..0382c257deb 100644 --- a/src/deviceAppManagement/mobileApps/graphManagedAndroidLobApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphManagedAndroidLobApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphManagedAndroidLobApp/index.ts b/src/deviceAppManagement/mobileApps/graphManagedAndroidLobApp/index.ts index 1ff8b18343a..5f2966fe680 100644 --- a/src/deviceAppManagement/mobileApps/graphManagedAndroidLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphManagedAndroidLobApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAndroidLobAppCollectionResponse } from '../../../models/'; +import { type ManagedAndroidLobAppCollectionResponse } from '../../../models'; import { createManagedAndroidLobAppCollectionResponseFromDiscriminatorValue } from '../../../models/managedAndroidLobAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphManagedAndroidLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphManagedIOSLobApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphManagedIOSLobApp/count/index.ts index a6dcbec7867..ae6c964de64 100644 --- a/src/deviceAppManagement/mobileApps/graphManagedIOSLobApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphManagedIOSLobApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphManagedIOSLobApp/index.ts b/src/deviceAppManagement/mobileApps/graphManagedIOSLobApp/index.ts index f8166b490ec..cc9eecc869a 100644 --- a/src/deviceAppManagement/mobileApps/graphManagedIOSLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphManagedIOSLobApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedIOSLobAppCollectionResponse } from '../../../models/'; +import { type ManagedIOSLobAppCollectionResponse } from '../../../models'; import { createManagedIOSLobAppCollectionResponseFromDiscriminatorValue } from '../../../models/managedIOSLobAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphManagedIOSLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphManagedMobileLobApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphManagedMobileLobApp/count/index.ts index 3facdb38224..c6e51db7e64 100644 --- a/src/deviceAppManagement/mobileApps/graphManagedMobileLobApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphManagedMobileLobApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphManagedMobileLobApp/index.ts b/src/deviceAppManagement/mobileApps/graphManagedMobileLobApp/index.ts index c4c162de1fc..2987feee290 100644 --- a/src/deviceAppManagement/mobileApps/graphManagedMobileLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphManagedMobileLobApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedMobileLobAppCollectionResponse } from '../../../models/'; +import { type ManagedMobileLobAppCollectionResponse } from '../../../models'; import { createManagedMobileLobAppCollectionResponseFromDiscriminatorValue } from '../../../models/managedMobileLobAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphManagedMobileLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphMicrosoftStoreForBusinessApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphMicrosoftStoreForBusinessApp/count/index.ts index d1ece5b9082..d9d051b9a77 100644 --- a/src/deviceAppManagement/mobileApps/graphMicrosoftStoreForBusinessApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphMicrosoftStoreForBusinessApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphMicrosoftStoreForBusinessApp/index.ts b/src/deviceAppManagement/mobileApps/graphMicrosoftStoreForBusinessApp/index.ts index 757e24ebade..77e618dfbe3 100644 --- a/src/deviceAppManagement/mobileApps/graphMicrosoftStoreForBusinessApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphMicrosoftStoreForBusinessApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MicrosoftStoreForBusinessAppCollectionResponse } from '../../../models/'; +import { type MicrosoftStoreForBusinessAppCollectionResponse } from '../../../models'; import { createMicrosoftStoreForBusinessAppCollectionResponseFromDiscriminatorValue } from '../../../models/microsoftStoreForBusinessAppCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphWin32LobApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphWin32LobApp/count/index.ts index 1605e6240d2..b5a92a3c145 100644 --- a/src/deviceAppManagement/mobileApps/graphWin32LobApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWin32LobApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphWin32LobApp/index.ts b/src/deviceAppManagement/mobileApps/graphWin32LobApp/index.ts index 0c27772956e..f479ff23507 100644 --- a/src/deviceAppManagement/mobileApps/graphWin32LobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWin32LobApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Win32LobAppCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type Win32LobAppCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWin32LobAppCollectionResponseFromDiscriminatorValue } from '../../../models/win32LobAppCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWin32LobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphWindowsAppX/count/index.ts b/src/deviceAppManagement/mobileApps/graphWindowsAppX/count/index.ts index 40b9547d9f7..20d748d7185 100644 --- a/src/deviceAppManagement/mobileApps/graphWindowsAppX/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWindowsAppX/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphWindowsAppX/index.ts b/src/deviceAppManagement/mobileApps/graphWindowsAppX/index.ts index 61a5602fea0..ec6c6d86311 100644 --- a/src/deviceAppManagement/mobileApps/graphWindowsAppX/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWindowsAppX/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsAppXCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type WindowsAppXCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsAppXCollectionResponseFromDiscriminatorValue } from '../../../models/windowsAppXCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWindowsAppXRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphWindowsMobileMSI/count/index.ts b/src/deviceAppManagement/mobileApps/graphWindowsMobileMSI/count/index.ts index 889e48e02e0..9fcc22f9b82 100644 --- a/src/deviceAppManagement/mobileApps/graphWindowsMobileMSI/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWindowsMobileMSI/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphWindowsMobileMSI/index.ts b/src/deviceAppManagement/mobileApps/graphWindowsMobileMSI/index.ts index 95c1cf6ffc2..550794e7957 100644 --- a/src/deviceAppManagement/mobileApps/graphWindowsMobileMSI/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWindowsMobileMSI/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsMobileMSICollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type WindowsMobileMSICollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsMobileMSICollectionResponseFromDiscriminatorValue } from '../../../models/windowsMobileMSICollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWindowsMobileMSIRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphWindowsUniversalAppX/count/index.ts b/src/deviceAppManagement/mobileApps/graphWindowsUniversalAppX/count/index.ts index f47b2d4418c..5c37c6453aa 100644 --- a/src/deviceAppManagement/mobileApps/graphWindowsUniversalAppX/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWindowsUniversalAppX/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphWindowsUniversalAppX/index.ts b/src/deviceAppManagement/mobileApps/graphWindowsUniversalAppX/index.ts index e534d453b49..6acfe764e10 100644 --- a/src/deviceAppManagement/mobileApps/graphWindowsUniversalAppX/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWindowsUniversalAppX/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsUniversalAppXCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type WindowsUniversalAppXCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsUniversalAppXCollectionResponseFromDiscriminatorValue } from '../../../models/windowsUniversalAppXCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWindowsUniversalAppXRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/graphWindowsWebApp/count/index.ts b/src/deviceAppManagement/mobileApps/graphWindowsWebApp/count/index.ts index 4ab03847e0b..65bf824dfd7 100644 --- a/src/deviceAppManagement/mobileApps/graphWindowsWebApp/count/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWindowsWebApp/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/graphWindowsWebApp/index.ts b/src/deviceAppManagement/mobileApps/graphWindowsWebApp/index.ts index 61af7484bd0..1f735798b16 100644 --- a/src/deviceAppManagement/mobileApps/graphWindowsWebApp/index.ts +++ b/src/deviceAppManagement/mobileApps/graphWindowsWebApp/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsWebAppCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type WindowsWebAppCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsWebAppCollectionResponseFromDiscriminatorValue } from '../../../models/windowsWebAppCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWindowsWebAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/index.ts b/src/deviceAppManagement/mobileApps/index.ts index 78a277a2329..6d979191610 100644 --- a/src/deviceAppManagement/mobileApps/index.ts +++ b/src/deviceAppManagement/mobileApps/index.ts @@ -1,29 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCollectionResponse } from '../../models/'; +import { type MobileAppCollectionResponse } from '../../models'; import { createMobileAppFromDiscriminatorValue, deserializeIntoMobileApp, serializeMobileApp, type MobileApp } from '../../models/mobileApp'; import { createMobileAppCollectionResponseFromDiscriminatorValue } from '../../models/mobileAppCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAndroidLobAppRequestBuilder } from './graphAndroidLobApp/'; -import { GraphAndroidStoreAppRequestBuilder } from './graphAndroidStoreApp/'; -import { GraphIosLobAppRequestBuilder } from './graphIosLobApp/'; -import { GraphIosStoreAppRequestBuilder } from './graphIosStoreApp/'; -import { GraphIosVppAppRequestBuilder } from './graphIosVppApp/'; -import { GraphMacOSDmgAppRequestBuilder } from './graphMacOSDmgApp/'; -import { GraphMacOSLobAppRequestBuilder } from './graphMacOSLobApp/'; -import { GraphManagedAndroidLobAppRequestBuilder } from './graphManagedAndroidLobApp/'; -import { GraphManagedIOSLobAppRequestBuilder } from './graphManagedIOSLobApp/'; -import { GraphManagedMobileLobAppRequestBuilder } from './graphManagedMobileLobApp/'; -import { GraphMicrosoftStoreForBusinessAppRequestBuilder } from './graphMicrosoftStoreForBusinessApp/'; -import { GraphWin32LobAppRequestBuilder } from './graphWin32LobApp/'; -import { GraphWindowsAppXRequestBuilder } from './graphWindowsAppX/'; -import { GraphWindowsMobileMSIRequestBuilder } from './graphWindowsMobileMSI/'; -import { GraphWindowsUniversalAppXRequestBuilder } from './graphWindowsUniversalAppX/'; -import { GraphWindowsWebAppRequestBuilder } from './graphWindowsWebApp/'; -import { MobileAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAndroidLobAppRequestBuilder } from './graphAndroidLobApp'; +import { GraphAndroidStoreAppRequestBuilder } from './graphAndroidStoreApp'; +import { GraphIosLobAppRequestBuilder } from './graphIosLobApp'; +import { GraphIosStoreAppRequestBuilder } from './graphIosStoreApp'; +import { GraphIosVppAppRequestBuilder } from './graphIosVppApp'; +import { GraphMacOSDmgAppRequestBuilder } from './graphMacOSDmgApp'; +import { GraphMacOSLobAppRequestBuilder } from './graphMacOSLobApp'; +import { GraphManagedAndroidLobAppRequestBuilder } from './graphManagedAndroidLobApp'; +import { GraphManagedIOSLobAppRequestBuilder } from './graphManagedIOSLobApp'; +import { GraphManagedMobileLobAppRequestBuilder } from './graphManagedMobileLobApp'; +import { GraphMicrosoftStoreForBusinessAppRequestBuilder } from './graphMicrosoftStoreForBusinessApp'; +import { GraphWin32LobAppRequestBuilder } from './graphWin32LobApp'; +import { GraphWindowsAppXRequestBuilder } from './graphWindowsAppX'; +import { GraphWindowsMobileMSIRequestBuilder } from './graphWindowsMobileMSI'; +import { GraphWindowsUniversalAppXRequestBuilder } from './graphWindowsUniversalAppX'; +import { GraphWindowsWebAppRequestBuilder } from './graphWindowsWebApp'; +import { MobileAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppsRequestBuilderGetQueryParameters { @@ -186,10 +186,10 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * List properties and relationships of the windowsWebApp objects. + * List properties and relationships of the managedIOSStoreApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MobileAppCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-windowswebapp-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managediosstoreapp-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -202,11 +202,11 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createMobileAppCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Create a new managedIOSLobApp object. + * Create a new webApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MobileApp - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managedioslobapp-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-webapp-create?view=graph-rest-1.0|Find more info here} */ public post(body: MobileApp, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -219,7 +219,7 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createMobileAppFromDiscriminatorValue, errorMapping); }; /** - * List properties and relationships of the windowsWebApp objects. + * List properties and relationships of the managedIOSStoreApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -230,7 +230,7 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Create a new managedIOSLobApp object. + * Create a new webApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceAppManagement/mobileApps/item/assign/index.ts b/src/deviceAppManagement/mobileApps/item/assign/index.ts index cacefb0b79e..a53a1428fc8 100644 --- a/src/deviceAppManagement/mobileApps/item/assign/index.ts +++ b/src/deviceAppManagement/mobileApps/item/assign/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssignPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,57 +27,5 @@ export function serializeAssignPostRequestBody(writer: SerializationWriter, assi writer.writeCollectionOfObjectValues("mobileAppAssignments", assignPostRequestBody.mobileAppAssignments, serializeMobileAppAssignment); writer.writeAdditionalData(assignPostRequestBody.additionalData); } -/** - * Provides operations to call the assign method. - */ -export class AssignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assign"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-mobileapp-assign?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignRequestBuilder - */ - public withUrl(rawUrl: string) : AssignRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/assignments/count/index.ts index d9309c7aae0..6d66d5df151 100644 --- a/src/deviceAppManagement/mobileApps/item/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/assignments/index.ts index b6e1c7fa205..cd352d72f61 100644 --- a/src/deviceAppManagement/mobileApps/item/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/assignments/item/index.ts index 6a5dd882524..eb85e0f1b35 100644 --- a/src/deviceAppManagement/mobileApps/item/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/categories/count/index.ts index e4fd765c71c..4a96b5a826e 100644 --- a/src/deviceAppManagement/mobileApps/item/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/categories/index.ts b/src/deviceAppManagement/mobileApps/item/categories/index.ts index f60a7b678cc..0cf53649078 100644 --- a/src/deviceAppManagement/mobileApps/item/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/categories/item/index.ts index 8253e18e7f9..4549b6d88a1 100644 --- a/src/deviceAppManagement/mobileApps/item/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../models/'; +import { type MobileAppCategory } from '../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/count/index.ts index de83b23eb16..06f8d6d13e9 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/index.ts index 6a9576039e6..9a604e7aed0 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/item/index.ts index 396bb39b4b1..59757a02e12 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/count/index.ts index 972b2ed651f..9c4c81d5000 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/index.ts index ea36902f1f1..55f6da508dd 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/item/index.ts index 4c6460d1deb..3488ff1187c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/count/index.ts index 6e4e4675b63..aaba3377bf6 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/index.ts index ee648f775be..8586c12c60c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/count/index.ts index 71a10ecc58e..f7bac921f17 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/index.ts index 87338324d6a..a9cf410f62a 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/item/index.ts index 00cdfbcced2..e93bb034df6 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/count/index.ts index 7ebfd67c861..a9a2311fee7 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/index.ts index 1ce5c8bf8fa..a2399a80cb5 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/commit/index.ts index 492cf7489c2..4910d1c72e1 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/index.ts index daa41a7a09a..5559e6c4d17 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/renewUpload/index.ts index 5addaeb6c2c..6a473590a5e 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/index.ts index 3e839aa9c5a..69e3bf14d0c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/index.ts index 3627a8508af..56e10e494bb 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidLobApp/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AndroidLobApp } from '../../../../models/'; +import { type AndroidLobApp } from '../../../../models'; import { createAndroidLobAppFromDiscriminatorValue } from '../../../../models/androidLobApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAndroidLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/count/index.ts index dc7bf3a5d2a..8783c7f7dfb 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/index.ts index ad22b753709..c6cd8cb4280 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/item/index.ts index bc38efb4dfd..29d7c36aad3 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/count/index.ts index 304f689e066..10c527f124c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/index.ts index c68680d577f..6bff397e321 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/item/index.ts index a93b0e4d594..7f60035a710 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/index.ts index 5c5ad8dea12..09c383f3251 100644 --- a/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphAndroidStoreApp/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AndroidStoreApp } from '../../../../models/'; +import { type AndroidStoreApp } from '../../../../models'; import { createAndroidStoreAppFromDiscriminatorValue } from '../../../../models/androidStoreApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAndroidStoreAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/count/index.ts index d3df83a3ad7..83306ee20c3 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/index.ts index e4cfb0a3ae4..08a835c6345 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/item/index.ts index fc81414b378..87d0eeaa139 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/count/index.ts index 3575090b046..497fec6f0fe 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/index.ts index 32928ccc424..5654451496c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/item/index.ts index 36cd8bb32b2..b33e6436b87 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/count/index.ts index ec24cda38b9..e9b20999a0e 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/index.ts index 0373634575f..2477763ad50 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/count/index.ts index 99d54e74113..ca8eaa016c3 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/index.ts index 219468eae6d..1bb3bfd6581 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/item/index.ts index 0e51b43e632..7ea7a4686ba 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/count/index.ts index 1638a3215a6..8fd76b3d688 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/index.ts index cbbbbd95b14..67742d91fc9 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/commit/index.ts index a155c9d3e99..70a48c4e110 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/index.ts index deb491c6ba7..50e097734d6 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/renewUpload/index.ts index 35306d17d82..ff94c886707 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/index.ts index fe19c66bf9e..bfbf22fc667 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/index.ts index 402aaadcc8b..0f94d05ae6b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosLobApp/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IosLobApp } from '../../../../models/'; +import { type IosLobApp } from '../../../../models'; import { createIosLobAppFromDiscriminatorValue } from '../../../../models/iosLobApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphIosLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/count/index.ts index 26e8f163da0..94dc48fbf72 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/index.ts index fbae8e47581..e59e0d403cb 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/item/index.ts index 2690268f557..b7a9db614d0 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/count/index.ts index b2cf42e5b90..62b5d34050a 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/index.ts index 3a49abaf659..1349603a10c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/item/index.ts index 5012113a0f4..8f92ad9ce58 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/index.ts index 389c985dcf5..77278b279dc 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosStoreApp/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IosStoreApp } from '../../../../models/'; +import { type IosStoreApp } from '../../../../models'; import { createIosStoreAppFromDiscriminatorValue } from '../../../../models/iosStoreApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphIosStoreAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/count/index.ts index ca30eb2816f..4f33f94fcb0 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/index.ts index 8c7cd0957fa..17b4e0744f7 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/item/index.ts index df167cb64ad..abb20face0b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/count/index.ts index cc20472c4cb..2ddd3d6ba2c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/index.ts index c2e68c02e10..bab8817d564 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/item/index.ts index bc3e7defcaf..0a69fea41d1 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/index.ts index d145888581e..f28f005a5ab 100644 --- a/src/deviceAppManagement/mobileApps/item/graphIosVppApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphIosVppApp/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IosVppApp } from '../../../../models/'; +import { type IosVppApp } from '../../../../models'; import { createIosVppAppFromDiscriminatorValue } from '../../../../models/iosVppApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphIosVppAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/count/index.ts index 14c3b0afc31..bfc6e79d567 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/index.ts index 44aca7810c2..5bddb7dddaa 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/item/index.ts index 68ab9c12684..2e93cd23126 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/count/index.ts index 82fd81b8f4a..8bf6ac0ed2e 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/index.ts index b52955d7ce2..126cf7558c9 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/item/index.ts index 0326886350b..2124a9973f3 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/count/index.ts index 54043d04ecd..138d3c07526 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/index.ts index f0984017d8a..0d22185b9fb 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/count/index.ts index d79ba723e1d..d34e48b3772 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/index.ts index d381074034f..c0865af0a27 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/item/index.ts index be21993092c..2cecb0d67ec 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/count/index.ts index 233e61b4255..850bf718f24 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/index.ts index 9c63bdf0b5e..96944aa09d7 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/commit/index.ts index d3de0ed7be2..6522623027b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/index.ts index 3dfc2016bd0..2bdf19f2af9 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/renewUpload/index.ts index 7cb46870b72..7e553b214cf 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/index.ts index 7e6e983241c..db6f504afee 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/index.ts index a3d9beac7c4..35c9842412c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSDmgApp/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MacOSDmgApp } from '../../../../models/'; +import { type MacOSDmgApp } from '../../../../models'; import { createMacOSDmgAppFromDiscriminatorValue } from '../../../../models/macOSDmgApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphMacOSDmgAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/count/index.ts index d0a2752cfcd..ba18ff5d300 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/index.ts index f22d2b10232..8a8226a665e 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/item/index.ts index 304d574e772..6444d42a342 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/count/index.ts index 8fbd9d2db52..ed12bbcae61 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/index.ts index 0fb72bea6b5..06183f89db7 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/item/index.ts index f9c74fd75a5..2e65835a728 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/count/index.ts index ecec229275b..775edcb08f1 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/index.ts index 94092cbcd61..617c7683f56 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/count/index.ts index 040d71cb3c3..5bc3e88f981 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/index.ts index 61f3f47817a..735fdcbddd8 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/item/index.ts index 8ae934ec45c..50087bcef13 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/count/index.ts index b096d3850a2..3a3d496f79d 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/index.ts index 64c9cf2f7e4..c2a18c51ac9 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/commit/index.ts index 3d7369b1502..28f7e034a37 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/index.ts index d63fce73479..d934fee5bcd 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/renewUpload/index.ts index 955b917c2fc..16f42c1cbec 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/index.ts index 0511d92155b..e932f346191 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/index.ts index c55d4506cee..0e97d19f948 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMacOSLobApp/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MacOSLobApp } from '../../../../models/'; +import { type MacOSLobApp } from '../../../../models'; import { createMacOSLobAppFromDiscriminatorValue } from '../../../../models/macOSLobApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphMacOSLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/count/index.ts index cf0d82fc827..47ee9f0f792 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/index.ts index 1a059be692d..3dd122bb28b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/item/index.ts index 16041a53fe6..d63dd12e501 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/count/index.ts index 7dd12a293da..746175e71af 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/index.ts index dffdceaad19..5a1dc33eb33 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/item/index.ts index 155f9d9683e..78e912e137b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/count/index.ts index 61c533eae96..41fe38f7f34 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/index.ts index 6ab728e233f..8d2184035d6 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/count/index.ts index 2d6b68dd982..15cdaf4136b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/index.ts index 448cff21745..20e65ee67f9 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/item/index.ts index f3fb689d634..f37009766a7 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/count/index.ts index 5906ffdf809..351644a3999 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/index.ts index 0471774e9e4..1e3628ea526 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/commit/index.ts index c14cdf868bb..577b609b186 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/index.ts index 89e114c6861..ab6eda19e0b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/renewUpload/index.ts index 7d351a240d0..cc1e5f43833 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/index.ts index d9359d6897e..262652f8b23 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/index.ts index e28b24507b8..fc88c8fdc0d 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedAndroidLobApp/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAndroidLobApp } from '../../../../models/'; +import { type ManagedAndroidLobApp } from '../../../../models'; import { createManagedAndroidLobAppFromDiscriminatorValue } from '../../../../models/managedAndroidLobApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphManagedAndroidLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/count/index.ts index 5404eb13dee..fe47f646c8a 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/index.ts index c89aab8771b..03734fcae50 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/item/index.ts index 5df229cc03a..b0c1e2f8f6b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/count/index.ts index 1454e9a30fe..9bd5ff21aa8 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/index.ts index e80e32a7e63..92842cd765a 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/item/index.ts index de7c6796893..f0e3032cb7b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/count/index.ts index 51186237475..740cd256f62 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/index.ts index daa2ca1e291..545b072740f 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/count/index.ts index b02a0c44dcf..737632187cf 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/index.ts index cd8b1475761..26fe8fbf821 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/item/index.ts index b7a37cd4f38..ee660987ece 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/count/index.ts index d93655172bc..4e449a5c227 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/index.ts index b0b77553e0d..c33b67685f3 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/commit/index.ts index 41797325689..225e86677bc 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/index.ts index 5a3da6ae983..a8d3da5630b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/renewUpload/index.ts index 4c1e9214c0e..a9118dc765c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/index.ts index 29241d15f8c..7ff1736d13e 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/index.ts index eba8aefac22..32fe3539624 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedIOSLobApp/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedIOSLobApp } from '../../../../models/'; +import { type ManagedIOSLobApp } from '../../../../models'; import { createManagedIOSLobAppFromDiscriminatorValue } from '../../../../models/managedIOSLobApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphManagedIOSLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/count/index.ts index 9603f7a6cb0..dd90e58b691 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/index.ts index 7c69b299ac5..de34e515de4 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/item/index.ts index fada03e148f..9f837fe8189 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/count/index.ts index 61a0e2f37df..67868f78eef 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/index.ts index 2d6aa58b17c..5029efe8a18 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/item/index.ts index f80d42f649d..9f08d578911 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/count/index.ts index 82c05702309..04f22f3ed3f 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/index.ts index 5b81f07690d..c574e9daae5 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/count/index.ts index ae5c923f856..e11107fff25 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/index.ts index 6846f76d9d3..289d1b7d985 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/item/index.ts index 659c6ecb3f4..2c9ad55fa09 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/count/index.ts index db104234837..d9e3d726752 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/index.ts index 30d5882f555..650416f351a 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/commit/index.ts index 4ac3e5ebf84..161f2b225b9 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/index.ts index 7197db30eee..54837582bdb 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/renewUpload/index.ts index adc4bfa9a67..c93cf598bb8 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/index.ts index 3e7ed9225eb..0be73ef50a4 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/index.ts index 7b4bccd8371..93e04441b69 100644 --- a/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphManagedMobileLobApp/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedMobileLobApp } from '../../../../models/'; +import { type ManagedMobileLobApp } from '../../../../models'; import { createManagedMobileLobAppFromDiscriminatorValue } from '../../../../models/managedMobileLobApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphManagedMobileLobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/count/index.ts index 39aa6ab16cd..5481c116b38 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/index.ts index 05eb53a6123..cb394734b1f 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/item/index.ts index e7a1043b005..b8b283e3a19 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/count/index.ts index f14a73120aa..951a9248857 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/index.ts index c280bad601a..eb351b50019 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/item/index.ts index 5bc82c2436f..f66c8d01229 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/index.ts index b861910091d..62b01dc2cd7 100644 --- a/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphMicrosoftStoreForBusinessApp/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MicrosoftStoreForBusinessApp } from '../../../../models/'; +import { type MicrosoftStoreForBusinessApp } from '../../../../models'; import { createMicrosoftStoreForBusinessAppFromDiscriminatorValue } from '../../../../models/microsoftStoreForBusinessApp'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/count/index.ts index debff41464b..f1c36ff299c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/index.ts index c485abf1b00..00d9e494d4f 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/item/index.ts index 89478704d85..89fd8f9c65c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/count/index.ts index 80ac3de7014..b75ac377624 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/index.ts index 762199557f5..62f5c51b775 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/item/index.ts index f718630d930..d17b9ce533c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/count/index.ts index 3dc35fb0771..d58be4f4454 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/index.ts index 152db2cf0b0..4faa1ec8406 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/count/index.ts index 1694892f844..efe5101ff01 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/index.ts index 38a72c601a1..97dd6511eb2 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/item/index.ts index 6a61aafa9c6..b6660a2dbc5 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/count/index.ts index 60790640be8..bee8047bbd8 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/index.ts index 320f33f5e18..720bcd3eea6 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/commit/index.ts index d05869a7306..17349cfa86c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/index.ts index c7675351703..9dde44ba522 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/renewUpload/index.ts index 8308dc5dab4..c8895f4e6ad 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/index.ts index 5f25baf88f7..0b3bd53e2ba 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/index.ts index 5e730acb8be..8495363d91a 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWin32LobApp/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Win32LobApp } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type Win32LobApp } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWin32LobAppFromDiscriminatorValue } from '../../../../models/win32LobApp'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWin32LobAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/count/index.ts index 9e76653a0a2..0535ec2e389 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/index.ts index 9355c3cc0f3..85d8b832f13 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/item/index.ts index 8ac3f12ea56..bf3797f00a8 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/count/index.ts index 5883b19a217..276c7b55374 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/index.ts index 5cfc511c45b..807b806dfa8 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/item/index.ts index 7b2b08fcd59..474c1e614fe 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/count/index.ts index 8e3540bc32d..2cc7c9a50d6 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/index.ts index 72bd530f542..41d7cb1b1c1 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/count/index.ts index 2fc41588fb1..1ab12e73671 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/index.ts index 3c74259f35d..e0acba45410 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/item/index.ts index 51072e974d0..1c214e3f194 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/count/index.ts index 7132b1e1511..8de4cd3b8c0 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/index.ts index 375a955d859..74f502fe3fd 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/commit/index.ts index f0987f24c8c..47d1446ab84 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/index.ts index a27439e4289..74bced3b59d 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/renewUpload/index.ts index 6faff6fca3a..02c495ddeef 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/index.ts index 49763f3c247..10b03b74139 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/index.ts index 334411e664f..8ed0bd94168 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsAppX/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsAppX } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsAppX } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsAppXFromDiscriminatorValue } from '../../../../models/windowsAppX'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWindowsAppXRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/count/index.ts index 63929af8608..15ba6dedcc5 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/index.ts index 5bffaf8bc45..35de8ba9eb3 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/item/index.ts index d02d89939cb..edb6929b8b4 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/count/index.ts index 467c30ad2ad..f8c32b5da77 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/index.ts index 17a533dab2b..d7b59eb2d23 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/item/index.ts index e1f499ab487..cc8ceb34700 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/count/index.ts index 1d137fd05a5..0f03a91d602 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/index.ts index 6a4f7fb771b..73262c73788 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/count/index.ts index 1e9c59fa0ab..56a4866a25e 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/index.ts index f17c8b08d64..c07a6ad0668 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/item/index.ts index 8e459745fb9..57082d7df32 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/count/index.ts index 9a4dfc7895d..80f023d1449 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/index.ts index 5459385b7b2..06833e920ee 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/commit/index.ts index 4fb87aeef2b..6cbcbc19d62 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/index.ts index 57fbbe43faf..c9b3f73c763 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/renewUpload/index.ts index a4829b77332..6f91fb00a5d 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/index.ts index 7e8bc2278b4..341dc6a3518 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/index.ts index 93c9376a8ec..f215e41603f 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsMobileMSI/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsMobileMSI } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsMobileMSI } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsMobileMSIFromDiscriminatorValue } from '../../../../models/windowsMobileMSI'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWindowsMobileMSIRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/count/index.ts index e78102c0263..b4a617eca9b 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/index.ts index 3d3d7db45e4..5eb7ff3a1fd 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/item/index.ts index 32562ac5617..0f38aee9964 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/count/index.ts index 9c2e9e1be48..30a5848930f 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/index.ts index ea713b1c9d3..6a88ff39f67 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/item/index.ts index a7e0b4d55dd..4bd89410738 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/count/index.ts index d490ea20cfc..f052dab20c3 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/index.ts index 6dca7f644f0..77efe847b49 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CommittedContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/item/index.ts index ab29176e3e6..1b8602489aa 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/committedContainedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/count/index.ts index e87ae2d3391..e1df5a4f706 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/index.ts index bc27f4e3da9..08924cbaa4d 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentCollectionResponse } from '../../../../../models/'; +import { type MobileAppContentCollectionResponse } from '../../../../../models'; import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../models/mobileAppContent'; import { createMobileAppContentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppContentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentVersionsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/count/index.ts index 3123b05e6a0..c2be6f0b2a1 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/index.ts index f6a85f865f7..26e638a4f3f 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileContainedAppCollectionResponse } from '../../../../../../../models/'; +import { type MobileContainedAppCollectionResponse } from '../../../../../../../models'; import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../models/mobileContainedApp'; import { createMobileContainedAppCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileContainedAppCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileContainedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileContainedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContainedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/item/index.ts index bea12894b3d..a3b4e9bbdb0 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/containedApps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileContainedAppFromDiscriminatorValue, deserializeIntoMobileContainedApp, serializeMobileContainedApp, type MobileContainedApp } from '../../../../../../../../models/mobileContainedApp'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/count/index.ts index 6fa2534136b..517a535adb4 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/index.ts index 9d4fa8eef09..9a4d2d87d6c 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models/'; +import { type MobileAppContentFileCollectionResponse } from '../../../../../../../models'; import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../models/mobileAppContentFile'; import { createMobileAppContentFileCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/mobileAppContentFileCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppContentFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppContentFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/commit/commitPostRequestBody.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/commit/commitPostRequestBody.ts deleted file mode 100644 index d499f92f39c..00000000000 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/commit/commitPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fileEncryptionInfo property - */ - fileEncryptionInfo?: FileEncryptionInfo; -} -export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCommitPostRequestBody; -} -export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { - return { - "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, - } -} -export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { - writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); - writer.writeAdditionalData(commitPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/commit/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/commit/index.ts index 6b51ec0ba37..02bfd892a45 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/commit/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/commit/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createFileEncryptionInfoFromDiscriminatorValue, serializeFileEncryptionInfo, type FileEncryptionInfo } from '../../../../../../../../../models/fileEncryptionInfo'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCommitPostRequestBody, serializeCommitPostRequestBody, type CommitPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CommitPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fileEncryptionInfo property + */ + fileEncryptionInfo?: FileEncryptionInfo; +} +export function createCommitPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCommitPostRequestBody; +} +export function deserializeIntoCommitPostRequestBody(commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : Record void> { + return { + "fileEncryptionInfo": n => { commitPostRequestBody.fileEncryptionInfo = n.getObjectValue(createFileEncryptionInfoFromDiscriminatorValue); }, + } +} +export function serializeCommitPostRequestBody(writer: SerializationWriter, commitPostRequestBody: CommitPostRequestBody | undefined = {} as CommitPostRequestBody) : void { + writer.writeObjectValue("fileEncryptionInfo", commitPostRequestBody.fileEncryptionInfo, serializeFileEncryptionInfo); + writer.writeAdditionalData(commitPostRequestBody.additionalData); +} /** * Provides operations to call the commit method. */ diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/index.ts index 53522d78e49..4ca6b44e157 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFileFromDiscriminatorValue, deserializeIntoMobileAppContentFile, serializeMobileAppContentFile, type MobileAppContentFile } from '../../../../../../../../models/mobileAppContentFile'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CommitRequestBuilder } from './commit/'; -import { RenewUploadRequestBuilder } from './renewUpload/'; +import { CommitRequestBuilder } from './commit'; +import { RenewUploadRequestBuilder } from './renewUpload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentFileItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/renewUpload/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/renewUpload/index.ts index 511789e4d3e..15928cf1e9e 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/renewUpload/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/files/item/renewUpload/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/index.ts index dc81975c699..2cf5a612168 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/contentVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppContentFromDiscriminatorValue, deserializeIntoMobileAppContent, serializeMobileAppContent, type MobileAppContent } from '../../../../../../models/mobileAppContent'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContainedAppsRequestBuilder } from './containedApps/'; -import { FilesRequestBuilder } from './files/'; +import { ContainedAppsRequestBuilder } from './containedApps'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppContentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/index.ts index a6a9bc89cff..a5ff080ade6 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsUniversalAppX/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsUniversalAppX } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsUniversalAppX } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsUniversalAppXFromDiscriminatorValue } from '../../../../models/windowsUniversalAppX'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { CommittedContainedAppsRequestBuilder } from './committedContainedApps/'; -import { ContentVersionsRequestBuilder } from './contentVersions/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { CommittedContainedAppsRequestBuilder } from './committedContainedApps'; +import { ContentVersionsRequestBuilder } from './contentVersions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWindowsUniversalAppXRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/count/index.ts index b4a0a54ce84..3d55f9493f6 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/index.ts index e488847e6b2..2c8167d47e2 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppAssignmentCollectionResponse } from '../../../../../models/'; +import { type MobileAppAssignmentCollectionResponse } from '../../../../../models'; import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../models/mobileAppAssignment'; import { createMobileAppAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppAssignmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/item/index.ts index ae219e5f313..85793171651 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppAssignmentFromDiscriminatorValue, deserializeIntoMobileAppAssignment, serializeMobileAppAssignment, type MobileAppAssignment } from '../../../../../../models/mobileAppAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/count/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/count/index.ts index 0dcc9f5609a..e7d1330a620 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/count/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/index.ts index 4bc568c1ab4..5164472e635 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategoryCollectionResponse } from '../../../../../models/'; +import { type MobileAppCategoryCollectionResponse } from '../../../../../models'; import { createMobileAppCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/mobileAppCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/item/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/item/index.ts index 468235d3e3e..4f853080a99 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/categories/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppCategory } from '../../../../../../models/'; +import { type MobileAppCategory } from '../../../../../../models'; import { createMobileAppCategoryFromDiscriminatorValue } from '../../../../../../models/mobileAppCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/index.ts b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/index.ts index 6625ae5a8e7..da6c9845b19 100644 --- a/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/index.ts +++ b/src/deviceAppManagement/mobileApps/item/graphWindowsWebApp/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsWebApp } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsWebApp } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsWebAppFromDiscriminatorValue } from '../../../../models/windowsWebApp'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphWindowsWebAppRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/mobileApps/item/index.ts b/src/deviceAppManagement/mobileApps/item/index.ts index bd8148d5e09..cf9ccedcd7c 100644 --- a/src/deviceAppManagement/mobileApps/item/index.ts +++ b/src/deviceAppManagement/mobileApps/item/index.ts @@ -2,27 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppFromDiscriminatorValue, deserializeIntoMobileApp, serializeMobileApp, type MobileApp } from '../../../models/mobileApp'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignRequestBuilder } from './assign/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CategoriesRequestBuilder } from './categories/'; -import { GraphAndroidLobAppRequestBuilder } from './graphAndroidLobApp/'; -import { GraphAndroidStoreAppRequestBuilder } from './graphAndroidStoreApp/'; -import { GraphIosLobAppRequestBuilder } from './graphIosLobApp/'; -import { GraphIosStoreAppRequestBuilder } from './graphIosStoreApp/'; -import { GraphIosVppAppRequestBuilder } from './graphIosVppApp/'; -import { GraphMacOSDmgAppRequestBuilder } from './graphMacOSDmgApp/'; -import { GraphMacOSLobAppRequestBuilder } from './graphMacOSLobApp/'; -import { GraphManagedAndroidLobAppRequestBuilder } from './graphManagedAndroidLobApp/'; -import { GraphManagedIOSLobAppRequestBuilder } from './graphManagedIOSLobApp/'; -import { GraphManagedMobileLobAppRequestBuilder } from './graphManagedMobileLobApp/'; -import { GraphMicrosoftStoreForBusinessAppRequestBuilder } from './graphMicrosoftStoreForBusinessApp/'; -import { GraphWin32LobAppRequestBuilder } from './graphWin32LobApp/'; -import { GraphWindowsAppXRequestBuilder } from './graphWindowsAppX/'; -import { GraphWindowsMobileMSIRequestBuilder } from './graphWindowsMobileMSI/'; -import { GraphWindowsUniversalAppXRequestBuilder } from './graphWindowsUniversalAppX/'; -import { GraphWindowsWebAppRequestBuilder } from './graphWindowsWebApp/'; +import { AssignRequestBuilder } from './assign'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CategoriesRequestBuilder } from './categories'; +import { GraphAndroidLobAppRequestBuilder } from './graphAndroidLobApp'; +import { GraphAndroidStoreAppRequestBuilder } from './graphAndroidStoreApp'; +import { GraphIosLobAppRequestBuilder } from './graphIosLobApp'; +import { GraphIosStoreAppRequestBuilder } from './graphIosStoreApp'; +import { GraphIosVppAppRequestBuilder } from './graphIosVppApp'; +import { GraphMacOSDmgAppRequestBuilder } from './graphMacOSDmgApp'; +import { GraphMacOSLobAppRequestBuilder } from './graphMacOSLobApp'; +import { GraphManagedAndroidLobAppRequestBuilder } from './graphManagedAndroidLobApp'; +import { GraphManagedIOSLobAppRequestBuilder } from './graphManagedIOSLobApp'; +import { GraphManagedMobileLobAppRequestBuilder } from './graphManagedMobileLobApp'; +import { GraphMicrosoftStoreForBusinessAppRequestBuilder } from './graphMicrosoftStoreForBusinessApp'; +import { GraphWin32LobAppRequestBuilder } from './graphWin32LobApp'; +import { GraphWindowsAppXRequestBuilder } from './graphWindowsAppX'; +import { GraphWindowsMobileMSIRequestBuilder } from './graphWindowsMobileMSI'; +import { GraphWindowsUniversalAppXRequestBuilder } from './graphWindowsUniversalAppX'; +import { GraphWindowsWebAppRequestBuilder } from './graphWindowsWebApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppItemRequestBuilderGetQueryParameters { @@ -177,10 +177,10 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Read properties and relationships of the managedIOSStoreApp object. + * Read properties and relationships of the iosStoreApp object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MobileApp - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managediosstoreapp-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-iosstoreapp-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -193,11 +193,11 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createMobileAppFromDiscriminatorValue, errorMapping); }; /** - * Update the properties of a managedAndroidStoreApp object. + * Update the properties of a managedAndroidLobApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MobileApp - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managedandroidstoreapp-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managedandroidlobapp-update?view=graph-rest-1.0|Find more info here} */ public patch(body: MobileApp, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -221,7 +221,7 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Read properties and relationships of the managedIOSStoreApp object. + * Read properties and relationships of the iosStoreApp object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -232,7 +232,7 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the properties of a managedAndroidStoreApp object. + * Update the properties of a managedAndroidLobApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceAppManagement/syncMicrosoftStoreForBusinessApps/index.ts b/src/deviceAppManagement/syncMicrosoftStoreForBusinessApps/index.ts index 4e537412193..468e95746f3 100644 --- a/src/deviceAppManagement/syncMicrosoftStoreForBusinessApps/index.ts +++ b/src/deviceAppManagement/syncMicrosoftStoreForBusinessApps/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/count/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/count/index.ts index 849ef2bcf31..0993180cace 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/count/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/index.ts index b1b4930acc0..3a88ac7f3a7 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TargetedManagedAppConfigurationCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type TargetedManagedAppConfigurationCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTargetedManagedAppConfigurationFromDiscriminatorValue, deserializeIntoTargetedManagedAppConfiguration, serializeTargetedManagedAppConfiguration, type TargetedManagedAppConfiguration } from '../../models/targetedManagedAppConfiguration'; import { createTargetedManagedAppConfigurationCollectionResponseFromDiscriminatorValue } from '../../models/targetedManagedAppConfigurationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TargetedManagedAppConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TargetedManagedAppConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TargetedManagedAppConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/count/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/count/index.ts index 5d2f0f212a6..b23cc18f90d 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/count/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/index.ts index 3c8a3784a7d..b31ca4b64c3 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedMobileAppCollectionResponse } from '../../../../models/'; +import { type ManagedMobileAppCollectionResponse } from '../../../../models'; import { createManagedMobileAppFromDiscriminatorValue, deserializeIntoManagedMobileApp, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../models/managedMobileApp'; import { createManagedMobileAppCollectionResponseFromDiscriminatorValue } from '../../../../models/managedMobileAppCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedMobileAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedMobileAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/item/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/item/index.ts index 10504d0ccad..6c226679fa6 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/item/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/apps/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedMobileAppFromDiscriminatorValue, deserializeIntoManagedMobileApp, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../../models/managedMobileApp'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/assign/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/assign/index.ts index 0ca2761ef08..8b0a5309964 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/assign/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/assign/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../models/targetedManagedAppPolicyAssignment'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssignPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,57 +27,5 @@ export function serializeAssignPostRequestBody(writer: SerializationWriter, assi writer.writeCollectionOfObjectValues("assignments", assignPostRequestBody.assignments, serializeTargetedManagedAppPolicyAssignment); writer.writeAdditionalData(assignPostRequestBody.additionalData); } -/** - * Provides operations to call the assign method. - */ -export class AssignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assign"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappconfiguration-assign?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignRequestBuilder - */ - public withUrl(rawUrl: string) : AssignRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/count/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/count/index.ts index fe302a6af13..e2d6feb3ee1 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/count/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/index.ts index 76ed726c714..d9a84960603 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../models/targetedManagedAppPolicyAssignment'; import { createTargetedManagedAppPolicyAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/targetedManagedAppPolicyAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/item/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/item/index.ts index 82a4110c113..9b441812738 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/item/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/assignments/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../../models/targetedManagedAppPolicyAssignment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/deploymentSummary/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/deploymentSummary/index.ts index b5ac2294fe5..9bd2cfe6129 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/deploymentSummary/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/deploymentSummary/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedAppPolicyDeploymentSummaryFromDiscriminatorValue, deserializeIntoManagedAppPolicyDeploymentSummary, serializeManagedAppPolicyDeploymentSummary, type ManagedAppPolicyDeploymentSummary } from '../../../../models/managedAppPolicyDeploymentSummary'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/index.ts index 64ebbd2b203..66d9fdde915 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppConfigurationFromDiscriminatorValue, deserializeIntoTargetedManagedAppConfiguration, serializeTargetedManagedAppConfiguration, type TargetedManagedAppConfiguration } from '../../../models/targetedManagedAppConfiguration'; -import { AppsRequestBuilder } from './apps/'; -import { AssignRequestBuilder } from './assign/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { DeploymentSummaryRequestBuilder } from './deploymentSummary/'; -import { TargetAppsRequestBuilder } from './targetApps/'; +import { AppsRequestBuilder } from './apps'; +import { AssignRequestBuilder } from './assign'; +import { AssignmentsRequestBuilder } from './assignments'; +import { DeploymentSummaryRequestBuilder } from './deploymentSummary'; +import { TargetAppsRequestBuilder } from './targetApps'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TargetedManagedAppConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps/index.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps/index.ts index bf29dba7afa..42f24f123a0 100644 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps/index.ts +++ b/src/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps/index.ts @@ -1,11 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createManagedMobileAppFromDiscriminatorValue, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../models/managedMobileApp'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoTargetAppsPostRequestBody, serializeTargetAppsPostRequestBody, type TargetAppsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { TargetedManagedAppGroupType } from '../../../../models/targetedManagedAppGroupType'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTargetAppsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTargetAppsPostRequestBody; +} +export function deserializeIntoTargetAppsPostRequestBody(targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : Record void> { + return { + "appGroupType": n => { targetAppsPostRequestBody.appGroupType = n.getEnumValue(TargetedManagedAppGroupType); }, + "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, + } +} +export function serializeTargetAppsPostRequestBody(writer: SerializationWriter, targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : void { + writer.writeEnumValue("appGroupType", targetAppsPostRequestBody.appGroupType); + writer.writeCollectionOfObjectValues("apps", targetAppsPostRequestBody.apps, serializeManagedMobileApp); + writer.writeAdditionalData(targetAppsPostRequestBody.additionalData); +} +export interface TargetAppsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The appGroupType property + */ + appGroupType?: TargetedManagedAppGroupType; + /** + * The apps property + */ + apps?: ManagedMobileApp[]; +} /** * Provides operations to call the targetApps method. */ diff --git a/src/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps/targetAppsPostRequestBody.ts b/src/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps/targetAppsPostRequestBody.ts deleted file mode 100644 index 65a15a77f1f..00000000000 --- a/src/deviceAppManagement/targetedManagedAppConfigurations/item/targetApps/targetAppsPostRequestBody.ts +++ /dev/null @@ -1,38 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createManagedMobileAppFromDiscriminatorValue, serializeManagedMobileApp, type ManagedMobileApp } from '../../../../models/managedMobileApp'; -import { TargetedManagedAppGroupType } from '../../../../models/targetedManagedAppGroupType'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTargetAppsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTargetAppsPostRequestBody; -} -export function deserializeIntoTargetAppsPostRequestBody(targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : Record void> { - return { - "appGroupType": n => { targetAppsPostRequestBody.appGroupType = n.getEnumValue(TargetedManagedAppGroupType); }, - "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, - } -} -export function serializeTargetAppsPostRequestBody(writer: SerializationWriter, targetAppsPostRequestBody: TargetAppsPostRequestBody | undefined = {} as TargetAppsPostRequestBody) : void { - writer.writeEnumValue("appGroupType", targetAppsPostRequestBody.appGroupType); - writer.writeCollectionOfObjectValues("apps", targetAppsPostRequestBody.apps, serializeManagedMobileApp); - writer.writeAdditionalData(targetAppsPostRequestBody.additionalData); -} -export interface TargetAppsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The appGroupType property - */ - appGroupType?: TargetedManagedAppGroupType; - /** - * The apps property - */ - apps?: ManagedMobileApp[]; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceAppManagement/vppTokens/count/index.ts b/src/deviceAppManagement/vppTokens/count/index.ts index 2750ecb060c..690ccaa3cec 100644 --- a/src/deviceAppManagement/vppTokens/count/index.ts +++ b/src/deviceAppManagement/vppTokens/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/vppTokens/index.ts b/src/deviceAppManagement/vppTokens/index.ts index 37c21e066b9..e59f8a42892 100644 --- a/src/deviceAppManagement/vppTokens/index.ts +++ b/src/deviceAppManagement/vppTokens/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type VppTokenCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type VppTokenCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createVppTokenFromDiscriminatorValue, deserializeIntoVppToken, serializeVppToken, type VppToken } from '../../models/vppToken'; import { createVppTokenCollectionResponseFromDiscriminatorValue } from '../../models/vppTokenCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { VppTokenItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { VppTokenItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VppTokensRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/vppTokens/item/index.ts b/src/deviceAppManagement/vppTokens/item/index.ts index 0a39139f458..438b07681f8 100644 --- a/src/deviceAppManagement/vppTokens/item/index.ts +++ b/src/deviceAppManagement/vppTokens/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createVppTokenFromDiscriminatorValue, deserializeIntoVppToken, serializeVppToken, type VppToken } from '../../../models/vppToken'; -import { SyncLicensesRequestBuilder } from './syncLicenses/'; +import { SyncLicensesRequestBuilder } from './syncLicenses'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VppTokenItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/vppTokens/item/syncLicenses/index.ts b/src/deviceAppManagement/vppTokens/item/syncLicenses/index.ts index 4ab450c6ac9..b6e03d08812 100644 --- a/src/deviceAppManagement/vppTokens/item/syncLicenses/index.ts +++ b/src/deviceAppManagement/vppTokens/item/syncLicenses/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type VppToken } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type VppToken } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createVppTokenFromDiscriminatorValue } from '../../../../models/vppToken'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/count/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/count/index.ts index f950fec3c70..862ce9e5a61 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/count/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/index.ts index ee61a079ea9..373975a9631 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsInformationProtectionPolicyCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type WindowsInformationProtectionPolicyCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionPolicyFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionPolicy, serializeWindowsInformationProtectionPolicy, type WindowsInformationProtectionPolicy } from '../../models/windowsInformationProtectionPolicy'; import { createWindowsInformationProtectionPolicyCollectionResponseFromDiscriminatorValue } from '../../models/windowsInformationProtectionPolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsInformationProtectionPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsInformationProtectionPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsInformationProtectionPoliciesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/count/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/count/index.ts index 808280f2afc..ee0a21b63f7 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/count/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/index.ts index 6223176ed3e..a6d9878b6aa 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TargetedManagedAppPolicyAssignmentCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../models/targetedManagedAppPolicyAssignment'; import { createTargetedManagedAppPolicyAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/targetedManagedAppPolicyAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TargetedManagedAppPolicyAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/item/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/item/index.ts index 5a7801c6c83..ac9fa655cc4 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/item/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/assignments/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTargetedManagedAppPolicyAssignmentFromDiscriminatorValue, deserializeIntoTargetedManagedAppPolicyAssignment, serializeTargetedManagedAppPolicyAssignment, type TargetedManagedAppPolicyAssignment } from '../../../../../models/targetedManagedAppPolicyAssignment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/count/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/count/index.ts index 02190fc5419..ed78234017b 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/count/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/index.ts index 0e4b7a97c6d..77ae27ebdff 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsInformationProtectionAppLockerFileCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsInformationProtectionAppLockerFileCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLockerFileFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLockerFile, serializeWindowsInformationProtectionAppLockerFile, type WindowsInformationProtectionAppLockerFile } from '../../../../models/windowsInformationProtectionAppLockerFile'; import { createWindowsInformationProtectionAppLockerFileCollectionResponseFromDiscriminatorValue } from '../../../../models/windowsInformationProtectionAppLockerFileCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsInformationProtectionAppLockerFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsInformationProtectionAppLockerFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExemptAppLockerFilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/item/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/item/index.ts index 7d3e309b2fc..92eab35df3a 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/item/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/exemptAppLockerFiles/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLockerFileFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLockerFile, serializeWindowsInformationProtectionAppLockerFile, type WindowsInformationProtectionAppLockerFile } from '../../../../../models/windowsInformationProtectionAppLockerFile'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/index.ts index dcc77808c32..8cf90db2144 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionPolicyFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionPolicy, serializeWindowsInformationProtectionPolicy, type WindowsInformationProtectionPolicy } from '../../../models/windowsInformationProtectionPolicy'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { ExemptAppLockerFilesRequestBuilder } from './exemptAppLockerFiles/'; -import { ProtectedAppLockerFilesRequestBuilder } from './protectedAppLockerFiles/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { ExemptAppLockerFilesRequestBuilder } from './exemptAppLockerFiles'; +import { ProtectedAppLockerFilesRequestBuilder } from './protectedAppLockerFiles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsInformationProtectionPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/count/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/count/index.ts index 9fdcaaa2fb0..2ab6ba2b0f1 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/count/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/index.ts index fa1b36d4d4b..e3824a3b8e2 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsInformationProtectionAppLockerFileCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsInformationProtectionAppLockerFileCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLockerFileFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLockerFile, serializeWindowsInformationProtectionAppLockerFile, type WindowsInformationProtectionAppLockerFile } from '../../../../models/windowsInformationProtectionAppLockerFile'; import { createWindowsInformationProtectionAppLockerFileCollectionResponseFromDiscriminatorValue } from '../../../../models/windowsInformationProtectionAppLockerFileCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsInformationProtectionAppLockerFileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsInformationProtectionAppLockerFileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ProtectedAppLockerFilesRequestBuilderGetQueryParameters { diff --git a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/item/index.ts b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/item/index.ts index 9a7c855d152..4339b982281 100644 --- a/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/item/index.ts +++ b/src/deviceAppManagement/windowsInformationProtectionPolicies/item/protectedAppLockerFiles/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLockerFileFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLockerFile, serializeWindowsInformationProtectionAppLockerFile, type WindowsInformationProtectionAppLockerFile } from '../../../../../models/windowsInformationProtectionAppLockerFile'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/applePushNotificationCertificate/downloadApplePushNotificationCertificateSigningRequest/index.ts b/src/deviceManagement/applePushNotificationCertificate/downloadApplePushNotificationCertificateSigningRequest/index.ts index 7906484258a..a903969831a 100644 --- a/src/deviceManagement/applePushNotificationCertificate/downloadApplePushNotificationCertificateSigningRequest/index.ts +++ b/src/deviceManagement/applePushNotificationCertificate/downloadApplePushNotificationCertificateSigningRequest/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDownloadApplePushNotificationCertificateSigningRequestGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,53 +26,5 @@ export function serializeDownloadApplePushNotificationCertificateSigningRequestG writer.writeStringValue("value", downloadApplePushNotificationCertificateSigningRequestGetResponse.value); writer.writeAdditionalData(downloadApplePushNotificationCertificateSigningRequestGetResponse.additionalData); } -/** - * Provides operations to call the downloadApplePushNotificationCertificateSigningRequest method. - */ -export class DownloadApplePushNotificationCertificateSigningRequestRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DownloadApplePushNotificationCertificateSigningRequestRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/applePushNotificationCertificate/downloadApplePushNotificationCertificateSigningRequest()"); - }; - /** - * Download Apple push notification certificate signing request - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DownloadApplePushNotificationCertificateSigningRequestGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDownloadApplePushNotificationCertificateSigningRequestGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Download Apple push notification certificate signing request - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a downloadApplePushNotificationCertificateSigningRequestRequestBuilder - */ - public withUrl(rawUrl: string) : DownloadApplePushNotificationCertificateSigningRequestRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DownloadApplePushNotificationCertificateSigningRequestRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/applePushNotificationCertificate/index.ts b/src/deviceManagement/applePushNotificationCertificate/index.ts index 545199055b3..9166934a5d4 100644 --- a/src/deviceManagement/applePushNotificationCertificate/index.ts +++ b/src/deviceManagement/applePushNotificationCertificate/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createApplePushNotificationCertificateFromDiscriminatorValue, deserializeIntoApplePushNotificationCertificate, serializeApplePushNotificationCertificate, type ApplePushNotificationCertificate } from '../../models/applePushNotificationCertificate'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { DownloadApplePushNotificationCertificateSigningRequestRequestBuilder } from './downloadApplePushNotificationCertificateSigningRequest/'; +import { DownloadApplePushNotificationCertificateSigningRequestRequestBuilder } from './downloadApplePushNotificationCertificateSigningRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApplePushNotificationCertificateRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/auditEvents/count/index.ts b/src/deviceManagement/auditEvents/count/index.ts index 1d319b8e32e..829cdce95b0 100644 --- a/src/deviceManagement/auditEvents/count/index.ts +++ b/src/deviceManagement/auditEvents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/auditEvents/getAuditActivityTypesWithCategory/getAuditActivityTypesWithCategoryGetResponse.ts b/src/deviceManagement/auditEvents/getAuditActivityTypesWithCategory/getAuditActivityTypesWithCategoryGetResponse.ts deleted file mode 100644 index 5c32bf0b6db..00000000000 --- a/src/deviceManagement/auditEvents/getAuditActivityTypesWithCategory/getAuditActivityTypesWithCategoryGetResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetAuditActivityTypesWithCategoryGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAuditActivityTypesWithCategoryGetResponse; -} -export function deserializeIntoGetAuditActivityTypesWithCategoryGetResponse(getAuditActivityTypesWithCategoryGetResponse: GetAuditActivityTypesWithCategoryGetResponse | undefined = {} as GetAuditActivityTypesWithCategoryGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAuditActivityTypesWithCategoryGetResponse), - "value": n => { getAuditActivityTypesWithCategoryGetResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetAuditActivityTypesWithCategoryGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetAuditActivityTypesWithCategoryGetResponse(writer: SerializationWriter, getAuditActivityTypesWithCategoryGetResponse: GetAuditActivityTypesWithCategoryGetResponse | undefined = {} as GetAuditActivityTypesWithCategoryGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAuditActivityTypesWithCategoryGetResponse) - writer.writeCollectionOfPrimitiveValues("value", getAuditActivityTypesWithCategoryGetResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/auditEvents/getAuditActivityTypesWithCategory/index.ts b/src/deviceManagement/auditEvents/getAuditActivityTypesWithCategory/index.ts index f94009d3bcf..4e587d86bd3 100644 --- a/src/deviceManagement/auditEvents/getAuditActivityTypesWithCategory/index.ts +++ b/src/deviceManagement/auditEvents/getAuditActivityTypesWithCategory/index.ts @@ -1,12 +1,27 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetAuditActivityTypesWithCategoryGetResponseFromDiscriminatorValue } from './'; -import { type GetAuditActivityTypesWithCategoryGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetAuditActivityTypesWithCategoryGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetAuditActivityTypesWithCategoryGetResponse; +} +export function deserializeIntoGetAuditActivityTypesWithCategoryGetResponse(getAuditActivityTypesWithCategoryGetResponse: GetAuditActivityTypesWithCategoryGetResponse | undefined = {} as GetAuditActivityTypesWithCategoryGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAuditActivityTypesWithCategoryGetResponse), + "value": n => { getAuditActivityTypesWithCategoryGetResponse.value = n.getCollectionOfPrimitiveValues(); }, + } +} +export interface GetAuditActivityTypesWithCategoryGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: string[]; +} export interface GetAuditActivityTypesWithCategoryRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +44,10 @@ export interface GetAuditActivityTypesWithCategoryRequestBuilderGetQueryParamete */ top?: number; } +export function serializeGetAuditActivityTypesWithCategoryGetResponse(writer: SerializationWriter, getAuditActivityTypesWithCategoryGetResponse: GetAuditActivityTypesWithCategoryGetResponse | undefined = {} as GetAuditActivityTypesWithCategoryGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAuditActivityTypesWithCategoryGetResponse) + writer.writeCollectionOfPrimitiveValues("value", getAuditActivityTypesWithCategoryGetResponse.value); +} /** * Provides operations to call the getAuditActivityTypes method. */ diff --git a/src/deviceManagement/auditEvents/getAuditCategories/index.ts b/src/deviceManagement/auditEvents/getAuditCategories/index.ts index 8da5f79ef12..3f148d6e0d6 100644 --- a/src/deviceManagement/auditEvents/getAuditCategories/index.ts +++ b/src/deviceManagement/auditEvents/getAuditCategories/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAuditCategoriesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -22,86 +20,9 @@ export interface GetAuditCategoriesGetResponse extends BaseCollectionPaginationC */ value?: string[]; } -export interface GetAuditCategoriesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function serializeGetAuditCategoriesGetResponse(writer: SerializationWriter, getAuditCategoriesGetResponse: GetAuditCategoriesGetResponse | undefined = {} as GetAuditCategoriesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAuditCategoriesGetResponse) writer.writeCollectionOfPrimitiveValues("value", getAuditCategoriesGetResponse.value); } -/** - * Provides operations to call the getAuditCategories method. - */ -export class GetAuditCategoriesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAuditCategoriesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/auditEvents/getAuditCategories(){?%24top,%24skip,%24search,%24filter,%24count}"); - }; - /** - * Invoke function getAuditCategories - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAuditCategoriesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAuditCategoriesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAuditCategories - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAuditCategoriesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAuditCategoriesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAuditCategoriesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAuditCategoriesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAuditCategoriesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/deviceManagement/auditEvents/index.ts b/src/deviceManagement/auditEvents/index.ts index 732a22c38d3..855c2fb0576 100644 --- a/src/deviceManagement/auditEvents/index.ts +++ b/src/deviceManagement/auditEvents/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuditEventCollectionResponse } from '../../models/'; +import { type AuditEventCollectionResponse } from '../../models'; import { createAuditEventFromDiscriminatorValue, deserializeIntoAuditEvent, serializeAuditEvent, type AuditEvent } from '../../models/auditEvent'; import { createAuditEventCollectionResponseFromDiscriminatorValue } from '../../models/auditEventCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAuditActivityTypesWithCategoryRequestBuilder } from './getAuditActivityTypesWithCategory/'; -import { GetAuditCategoriesRequestBuilder } from './getAuditCategories/'; -import { AuditEventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAuditActivityTypesWithCategoryRequestBuilder } from './getAuditActivityTypesWithCategory'; +import { GetAuditCategoriesRequestBuilder } from './getAuditCategories'; +import { AuditEventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuditEventsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/auditEvents/item/index.ts b/src/deviceManagement/auditEvents/item/index.ts index c588190fe52..5f18f3701e2 100644 --- a/src/deviceManagement/auditEvents/item/index.ts +++ b/src/deviceManagement/auditEvents/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuditEventFromDiscriminatorValue, deserializeIntoAuditEvent, serializeAuditEvent, type AuditEvent } from '../../../models/auditEvent'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/complianceManagementPartners/count/index.ts b/src/deviceManagement/complianceManagementPartners/count/index.ts index c501bfec2b5..4d1979d4951 100644 --- a/src/deviceManagement/complianceManagementPartners/count/index.ts +++ b/src/deviceManagement/complianceManagementPartners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/complianceManagementPartners/index.ts b/src/deviceManagement/complianceManagementPartners/index.ts index 75ee2957019..0404ce4ec8c 100644 --- a/src/deviceManagement/complianceManagementPartners/index.ts +++ b/src/deviceManagement/complianceManagementPartners/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ComplianceManagementPartnerCollectionResponse } from '../../models/'; +import { type ComplianceManagementPartnerCollectionResponse } from '../../models'; import { createComplianceManagementPartnerFromDiscriminatorValue, deserializeIntoComplianceManagementPartner, serializeComplianceManagementPartner, type ComplianceManagementPartner } from '../../models/complianceManagementPartner'; import { createComplianceManagementPartnerCollectionResponseFromDiscriminatorValue } from '../../models/complianceManagementPartnerCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ComplianceManagementPartnerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ComplianceManagementPartnerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ComplianceManagementPartnersRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/complianceManagementPartners/item/index.ts b/src/deviceManagement/complianceManagementPartners/item/index.ts index 528cf6f22d8..1d25fd7c926 100644 --- a/src/deviceManagement/complianceManagementPartners/item/index.ts +++ b/src/deviceManagement/complianceManagementPartners/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createComplianceManagementPartnerFromDiscriminatorValue, deserializeIntoComplianceManagementPartner, serializeComplianceManagementPartner, type ComplianceManagementPartner } from '../../../models/complianceManagementPartner'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/conditionalAccessSettings/index.ts b/src/deviceManagement/conditionalAccessSettings/index.ts index 98e49589845..93d9d2abff4 100644 --- a/src/deviceManagement/conditionalAccessSettings/index.ts +++ b/src/deviceManagement/conditionalAccessSettings/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createOnPremisesConditionalAccessSettingsFromDiscriminatorValue, deserializeIntoOnPremisesConditionalAccessSettings, serializeOnPremisesConditionalAccessSettings, type OnPremisesConditionalAccessSettings } from '../../models/onPremisesConditionalAccessSettings'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/detectedApps/count/index.ts b/src/deviceManagement/detectedApps/count/index.ts index 57cfc90fb30..792d9fbab27 100644 --- a/src/deviceManagement/detectedApps/count/index.ts +++ b/src/deviceManagement/detectedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/detectedApps/index.ts b/src/deviceManagement/detectedApps/index.ts index f8d1b6239a4..a95540f3ecf 100644 --- a/src/deviceManagement/detectedApps/index.ts +++ b/src/deviceManagement/detectedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DetectedAppCollectionResponse } from '../../models/'; +import { type DetectedAppCollectionResponse } from '../../models'; import { createDetectedAppFromDiscriminatorValue, deserializeIntoDetectedApp, serializeDetectedApp, type DetectedApp } from '../../models/detectedApp'; import { createDetectedAppCollectionResponseFromDiscriminatorValue } from '../../models/detectedAppCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DetectedAppItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DetectedAppItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DetectedAppsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/detectedApps/item/index.ts b/src/deviceManagement/detectedApps/item/index.ts index d22c303edf9..aab49f99550 100644 --- a/src/deviceManagement/detectedApps/item/index.ts +++ b/src/deviceManagement/detectedApps/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDetectedAppFromDiscriminatorValue, deserializeIntoDetectedApp, serializeDetectedApp, type DetectedApp } from '../../../models/detectedApp'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ManagedDevicesRequestBuilder } from './managedDevices/'; +import { ManagedDevicesRequestBuilder } from './managedDevices'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DetectedAppItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/detectedApps/item/managedDevices/count/index.ts b/src/deviceManagement/detectedApps/item/managedDevices/count/index.ts index c22f576af1a..00faf8af844 100644 --- a/src/deviceManagement/detectedApps/item/managedDevices/count/index.ts +++ b/src/deviceManagement/detectedApps/item/managedDevices/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/detectedApps/item/managedDevices/index.ts b/src/deviceManagement/detectedApps/item/managedDevices/index.ts index d09eddcf574..8540e9fb8df 100644 --- a/src/deviceManagement/detectedApps/item/managedDevices/index.ts +++ b/src/deviceManagement/detectedApps/item/managedDevices/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDeviceCollectionResponse } from '../../../../models/'; +import { type ManagedDeviceCollectionResponse } from '../../../../models'; import { createManagedDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/managedDeviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedDeviceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedDeviceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedDevicesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/detectedApps/item/managedDevices/item/index.ts b/src/deviceManagement/detectedApps/item/managedDevices/item/index.ts index e94df5e6b1a..c51a70e4a91 100644 --- a/src/deviceManagement/detectedApps/item/managedDevices/item/index.ts +++ b/src/deviceManagement/detectedApps/item/managedDevices/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDevice } from '../../../../../models/'; +import { type ManagedDevice } from '../../../../../models'; import { createManagedDeviceFromDiscriminatorValue } from '../../../../../models/managedDevice'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCategories/count/index.ts b/src/deviceManagement/deviceCategories/count/index.ts index 2a7cd734779..f01fb88c9a4 100644 --- a/src/deviceManagement/deviceCategories/count/index.ts +++ b/src/deviceManagement/deviceCategories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCategories/index.ts b/src/deviceManagement/deviceCategories/index.ts index f4838b444f9..c7ed194530d 100644 --- a/src/deviceManagement/deviceCategories/index.ts +++ b/src/deviceManagement/deviceCategories/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCategoryCollectionResponse } from '../../models/'; +import { type DeviceCategoryCollectionResponse } from '../../models'; import { createDeviceCategoryFromDiscriminatorValue, deserializeIntoDeviceCategory, serializeDeviceCategory, type DeviceCategory } from '../../models/deviceCategory'; import { createDeviceCategoryCollectionResponseFromDiscriminatorValue } from '../../models/deviceCategoryCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceCategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCategories/item/index.ts b/src/deviceManagement/deviceCategories/item/index.ts index 56831450aea..201f57a4795 100644 --- a/src/deviceManagement/deviceCategories/item/index.ts +++ b/src/deviceManagement/deviceCategories/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCategoryFromDiscriminatorValue, deserializeIntoDeviceCategory, serializeDeviceCategory, type DeviceCategory } from '../../../models/deviceCategory'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/count/index.ts b/src/deviceManagement/deviceCompliancePolicies/count/index.ts index b592613bbe5..22a53b2c0de 100644 --- a/src/deviceManagement/deviceCompliancePolicies/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/index.ts b/src/deviceManagement/deviceCompliancePolicies/index.ts index f5b51e22988..f3063029451 100644 --- a/src/deviceManagement/deviceCompliancePolicies/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCompliancePolicyCollectionResponse } from '../../models/'; +import { type DeviceCompliancePolicyCollectionResponse } from '../../models'; import { createDeviceCompliancePolicyFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicy, serializeDeviceCompliancePolicy, type DeviceCompliancePolicy } from '../../models/deviceCompliancePolicy'; import { createDeviceCompliancePolicyCollectionResponseFromDiscriminatorValue } from '../../models/deviceCompliancePolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceCompliancePolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceCompliancePolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceCompliancePoliciesRequestBuilderGetQueryParameters { @@ -74,10 +74,10 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * List properties and relationships of the androidCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceCompliancePolicyCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -90,11 +90,11 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createDeviceCompliancePolicyCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Create a new androidCompliancePolicy object. + * Create a new iosCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceCompliancePolicy - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-create?view=graph-rest-1.0|Find more info here} */ public post(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -107,7 +107,7 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createDeviceCompliancePolicyFromDiscriminatorValue, errorMapping); }; /** - * List properties and relationships of the androidCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -118,7 +118,7 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Create a new androidCompliancePolicy object. + * Create a new iosCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceManagement/deviceCompliancePolicies/item/assign/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/assign/index.ts index 30e6701a113..beba811cf9f 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/assign/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/assign/index.ts @@ -3,105 +3,27 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; import { createDeviceCompliancePolicyAssignmentFromDiscriminatorValue, serializeDeviceCompliancePolicyAssignment, type DeviceCompliancePolicyAssignment } from '../../../../models/deviceCompliancePolicyAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AssignPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The assignments property - */ - assignments?: DeviceCompliancePolicyAssignment[]; -} export interface AssignPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: DeviceCompliancePolicyAssignment[]; } -export function createAssignPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAssignPostRequestBody; -} export function createAssignPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAssignPostResponse; } -export function deserializeIntoAssignPostRequestBody(assignPostRequestBody: AssignPostRequestBody | undefined = {} as AssignPostRequestBody) : Record void> { - return { - "assignments": n => { assignPostRequestBody.assignments = n.getCollectionOfObjectValues(createDeviceCompliancePolicyAssignmentFromDiscriminatorValue); }, - } -} export function deserializeIntoAssignPostResponse(assignPostResponse: AssignPostResponse | undefined = {} as AssignPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(assignPostResponse), "value": n => { assignPostResponse.value = n.getCollectionOfObjectValues(createDeviceCompliancePolicyAssignmentFromDiscriminatorValue); }, } } -export function serializeAssignPostRequestBody(writer: SerializationWriter, assignPostRequestBody: AssignPostRequestBody | undefined = {} as AssignPostRequestBody) : void { - writer.writeCollectionOfObjectValues("assignments", assignPostRequestBody.assignments, serializeDeviceCompliancePolicyAssignment); - writer.writeAdditionalData(assignPostRequestBody.additionalData); -} export function serializeAssignPostResponse(writer: SerializationWriter, assignPostResponse: AssignPostResponse | undefined = {} as AssignPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, assignPostResponse) writer.writeCollectionOfObjectValues("value", assignPostResponse.value, serializeDeviceCompliancePolicyAssignment); } -/** - * Provides operations to call the assign method. - */ -export class AssignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assign"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AssignPostResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecompliancepolicy-assign?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAssignPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignRequestBuilder - */ - public withUrl(rawUrl: string) : AssignRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/deviceCompliancePolicies/item/assignments/count/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/assignments/count/index.ts index d8bba4b6b7e..6fd70227a55 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/assignments/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/assignments/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/assignments/index.ts index fe7298ed0ec..618072b3770 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/assignments/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCompliancePolicyAssignmentCollectionResponse } from '../../../../models/'; +import { type DeviceCompliancePolicyAssignmentCollectionResponse } from '../../../../models'; import { createDeviceCompliancePolicyAssignmentFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicyAssignment, serializeDeviceCompliancePolicyAssignment, type DeviceCompliancePolicyAssignment } from '../../../../models/deviceCompliancePolicyAssignment'; import { createDeviceCompliancePolicyAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCompliancePolicyAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceCompliancePolicyAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceCompliancePolicyAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicies/item/assignments/item/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/assignments/item/index.ts index cbd5ffe9c6e..de95aee077f 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/assignments/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCompliancePolicyAssignmentFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicyAssignment, serializeDeviceCompliancePolicyAssignment, type DeviceCompliancePolicyAssignment } from '../../../../../models/deviceCompliancePolicyAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/count/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/count/index.ts index 9b6566d5a65..0c0089ae4a3 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/index.ts index 99f1f45bab5..37b771c77be 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SettingStateDeviceSummaryCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SettingStateDeviceSummaryCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSettingStateDeviceSummaryFromDiscriminatorValue, deserializeIntoSettingStateDeviceSummary, serializeSettingStateDeviceSummary, type SettingStateDeviceSummary } from '../../../../models/settingStateDeviceSummary'; import { createSettingStateDeviceSummaryCollectionResponseFromDiscriminatorValue } from '../../../../models/settingStateDeviceSummaryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SettingStateDeviceSummaryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SettingStateDeviceSummaryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceSettingStateSummariesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/item/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/item/index.ts index ae4ed6c0682..07aaf5b9e06 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/deviceSettingStateSummaries/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSettingStateDeviceSummaryFromDiscriminatorValue, deserializeIntoSettingStateDeviceSummary, serializeSettingStateDeviceSummary, type SettingStateDeviceSummary } from '../../../../../models/settingStateDeviceSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/deviceStatusOverview/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/deviceStatusOverview/index.ts index 9e9753bf647..8f2a8ab16cf 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/deviceStatusOverview/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/deviceStatusOverview/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceComplianceDeviceOverviewFromDiscriminatorValue, deserializeIntoDeviceComplianceDeviceOverview, serializeDeviceComplianceDeviceOverview, type DeviceComplianceDeviceOverview } from '../../../../models/deviceComplianceDeviceOverview'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/count/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/count/index.ts index d1525fa7d15..85dd01f529d 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/index.ts index 9a73d0eb82f..57bb197978e 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceComplianceDeviceStatusCollectionResponse } from '../../../../models/'; +import { type DeviceComplianceDeviceStatusCollectionResponse } from '../../../../models'; import { createDeviceComplianceDeviceStatusFromDiscriminatorValue, deserializeIntoDeviceComplianceDeviceStatus, serializeDeviceComplianceDeviceStatus, type DeviceComplianceDeviceStatus } from '../../../../models/deviceComplianceDeviceStatus'; import { createDeviceComplianceDeviceStatusCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceComplianceDeviceStatusCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceComplianceDeviceStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceComplianceDeviceStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/item/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/item/index.ts index 5cca15d295e..59fdea97364 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/deviceStatuses/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceComplianceDeviceStatusFromDiscriminatorValue, deserializeIntoDeviceComplianceDeviceStatus, serializeDeviceComplianceDeviceStatus, type DeviceComplianceDeviceStatus } from '../../../../../models/deviceComplianceDeviceStatus'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/index.ts index c03cc5d5686..a9cf1f483c8 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCompliancePolicyFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicy, serializeDeviceCompliancePolicy, type DeviceCompliancePolicy } from '../../../models/deviceCompliancePolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignRequestBuilder } from './assign/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { DeviceSettingStateSummariesRequestBuilder } from './deviceSettingStateSummaries/'; -import { DeviceStatusesRequestBuilder } from './deviceStatuses/'; -import { DeviceStatusOverviewRequestBuilder } from './deviceStatusOverview/'; -import { ScheduleActionsForRulesRequestBuilder } from './scheduleActionsForRules/'; -import { ScheduledActionsForRuleRequestBuilder } from './scheduledActionsForRule/'; -import { UserStatusesRequestBuilder } from './userStatuses/'; -import { UserStatusOverviewRequestBuilder } from './userStatusOverview/'; +import { AssignRequestBuilder } from './assign'; +import { AssignmentsRequestBuilder } from './assignments'; +import { DeviceSettingStateSummariesRequestBuilder } from './deviceSettingStateSummaries'; +import { DeviceStatusesRequestBuilder } from './deviceStatuses'; +import { DeviceStatusOverviewRequestBuilder } from './deviceStatusOverview'; +import { ScheduleActionsForRulesRequestBuilder } from './scheduleActionsForRules'; +import { ScheduledActionsForRuleRequestBuilder } from './scheduledActionsForRule'; +import { UserStatusesRequestBuilder } from './userStatuses'; +import { UserStatusOverviewRequestBuilder } from './userStatusOverview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { @@ -92,9 +92,9 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24select,%24expand}"); }; /** - * Deletes a macOSCompliancePolicy. + * Deletes a iosCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -107,10 +107,10 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Read properties and relationships of the androidWorkProfileCompliancePolicy object. + * Read properties and relationships of the windows10MobileCompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceCompliancePolicy - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -140,7 +140,7 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createDeviceCompliancePolicyFromDiscriminatorValue, errorMapping); }; /** - * Deletes a macOSCompliancePolicy. + * Deletes a iosCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -151,7 +151,7 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return requestInfo; }; /** - * Read properties and relationships of the androidWorkProfileCompliancePolicy object. + * Read properties and relationships of the windows10MobileCompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceManagement/deviceCompliancePolicies/item/scheduleActionsForRules/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/scheduleActionsForRules/index.ts index 3c134ee8562..80dfaba62fc 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/scheduleActionsForRules/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/scheduleActionsForRules/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceComplianceScheduledActionForRuleFromDiscriminatorValue, serializeDeviceComplianceScheduledActionForRule, type DeviceComplianceScheduledActionForRule } from '../../../../models/deviceComplianceScheduledActionForRule'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createScheduleActionsForRulesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export function serializeScheduleActionsForRulesPostRequestBody(writer: Serializ writer.writeCollectionOfObjectValues("deviceComplianceScheduledActionForRules", scheduleActionsForRulesPostRequestBody.deviceComplianceScheduledActionForRules, serializeDeviceComplianceScheduledActionForRule); writer.writeAdditionalData(scheduleActionsForRulesPostRequestBody.additionalData); } -/** - * Provides operations to call the scheduleActionsForRules method. - */ -export class ScheduleActionsForRulesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ScheduleActionsForRulesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduleActionsForRules"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecompliancepolicy-scheduleactionsforrules?view=graph-rest-1.0|Find more info here} - */ - public post(body: ScheduleActionsForRulesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ScheduleActionsForRulesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeScheduleActionsForRulesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a scheduleActionsForRulesRequestBuilder - */ - public withUrl(rawUrl: string) : ScheduleActionsForRulesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ScheduleActionsForRulesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/count/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/count/index.ts index 527f63d6fe5..9c5a0c4f41d 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/index.ts index 60735309a44..40878a4f26c 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceComplianceScheduledActionForRuleCollectionResponse } from '../../../../models/'; +import { type DeviceComplianceScheduledActionForRuleCollectionResponse } from '../../../../models'; import { createDeviceComplianceScheduledActionForRuleFromDiscriminatorValue, deserializeIntoDeviceComplianceScheduledActionForRule, serializeDeviceComplianceScheduledActionForRule, type DeviceComplianceScheduledActionForRule } from '../../../../models/deviceComplianceScheduledActionForRule'; import { createDeviceComplianceScheduledActionForRuleCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceComplianceScheduledActionForRuleCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceComplianceScheduledActionForRuleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceComplianceScheduledActionForRuleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScheduledActionsForRuleRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/index.ts index bef19f717bd..4e9015683f0 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceComplianceScheduledActionForRuleFromDiscriminatorValue, deserializeIntoDeviceComplianceScheduledActionForRule, serializeDeviceComplianceScheduledActionForRule, type DeviceComplianceScheduledActionForRule } from '../../../../../models/deviceComplianceScheduledActionForRule'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ScheduledActionConfigurationsRequestBuilder } from './scheduledActionConfigurations/'; +import { ScheduledActionConfigurationsRequestBuilder } from './scheduledActionConfigurations'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/count/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/count/index.ts index a427f028f3c..68ccbe01afb 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/index.ts index d9410dcd843..97e9a0f5e62 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceComplianceActionItemCollectionResponse } from '../../../../../../models/'; +import { type DeviceComplianceActionItemCollectionResponse } from '../../../../../../models'; import { createDeviceComplianceActionItemFromDiscriminatorValue, deserializeIntoDeviceComplianceActionItem, serializeDeviceComplianceActionItem, type DeviceComplianceActionItem } from '../../../../../../models/deviceComplianceActionItem'; import { createDeviceComplianceActionItemCollectionResponseFromDiscriminatorValue } from '../../../../../../models/deviceComplianceActionItemCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceComplianceActionItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceComplianceActionItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScheduledActionConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/item/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/item/index.ts index ca7138c26b8..ec60041a736 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/scheduledActionsForRule/item/scheduledActionConfigurations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceComplianceActionItemFromDiscriminatorValue, deserializeIntoDeviceComplianceActionItem, serializeDeviceComplianceActionItem, type DeviceComplianceActionItem } from '../../../../../../../models/deviceComplianceActionItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/userStatusOverview/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/userStatusOverview/index.ts index 6baa2afb6bf..d974183012b 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/userStatusOverview/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/userStatusOverview/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceComplianceUserOverviewFromDiscriminatorValue, deserializeIntoDeviceComplianceUserOverview, serializeDeviceComplianceUserOverview, type DeviceComplianceUserOverview } from '../../../../models/deviceComplianceUserOverview'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/count/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/count/index.ts index 31a54c60395..2adbc5f50b1 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/index.ts index 4a34d6f7b8e..8a3207bb48f 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceComplianceUserStatusCollectionResponse } from '../../../../models/'; +import { type DeviceComplianceUserStatusCollectionResponse } from '../../../../models'; import { createDeviceComplianceUserStatusFromDiscriminatorValue, deserializeIntoDeviceComplianceUserStatus, serializeDeviceComplianceUserStatus, type DeviceComplianceUserStatus } from '../../../../models/deviceComplianceUserStatus'; import { createDeviceComplianceUserStatusCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceComplianceUserStatusCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceComplianceUserStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceComplianceUserStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/item/index.ts b/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/item/index.ts index d129c82facb..d6ca59e0952 100644 --- a/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/item/userStatuses/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceComplianceUserStatusFromDiscriminatorValue, deserializeIntoDeviceComplianceUserStatus, serializeDeviceComplianceUserStatus, type DeviceComplianceUserStatus } from '../../../../../models/deviceComplianceUserStatus'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicyDeviceStateSummary/index.ts b/src/deviceManagement/deviceCompliancePolicyDeviceStateSummary/index.ts index 3ee9f29f847..c473d387f09 100644 --- a/src/deviceManagement/deviceCompliancePolicyDeviceStateSummary/index.ts +++ b/src/deviceManagement/deviceCompliancePolicyDeviceStateSummary/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCompliancePolicyDeviceStateSummaryFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicyDeviceStateSummary, serializeDeviceCompliancePolicyDeviceStateSummary, type DeviceCompliancePolicyDeviceStateSummary } from '../../models/deviceCompliancePolicyDeviceStateSummary'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/count/index.ts b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/count/index.ts index 82e882e5bef..a7cc95d002b 100644 --- a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/index.ts b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/index.ts index 6b3efc1f2ce..176c3a61af8 100644 --- a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/index.ts +++ b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCompliancePolicySettingStateSummaryCollectionResponse } from '../../models/'; +import { type DeviceCompliancePolicySettingStateSummaryCollectionResponse } from '../../models'; import { createDeviceCompliancePolicySettingStateSummaryFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicySettingStateSummary, serializeDeviceCompliancePolicySettingStateSummary, type DeviceCompliancePolicySettingStateSummary } from '../../models/deviceCompliancePolicySettingStateSummary'; import { createDeviceCompliancePolicySettingStateSummaryCollectionResponseFromDiscriminatorValue } from '../../models/deviceCompliancePolicySettingStateSummaryCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceCompliancePolicySettingStateSummaryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceCompliancePolicySettingStateSummaryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceCompliancePolicySettingStateSummariesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/count/index.ts b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/count/index.ts index 737505d8be9..d515a7ec011 100644 --- a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/count/index.ts +++ b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/index.ts b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/index.ts index 1fb751f7765..2bf0b883cdd 100644 --- a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/index.ts +++ b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceComplianceSettingStateCollectionResponse } from '../../../../models/'; +import { type DeviceComplianceSettingStateCollectionResponse } from '../../../../models'; import { createDeviceComplianceSettingStateFromDiscriminatorValue, deserializeIntoDeviceComplianceSettingState, serializeDeviceComplianceSettingState, type DeviceComplianceSettingState } from '../../../../models/deviceComplianceSettingState'; import { createDeviceComplianceSettingStateCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceComplianceSettingStateCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceComplianceSettingStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceComplianceSettingStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceComplianceSettingStatesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/item/index.ts b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/item/index.ts index c7f49038dcc..c265f43796b 100644 --- a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/deviceComplianceSettingStates/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceComplianceSettingStateFromDiscriminatorValue, deserializeIntoDeviceComplianceSettingState, serializeDeviceComplianceSettingState, type DeviceComplianceSettingState } from '../../../../../models/deviceComplianceSettingState'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/index.ts b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/index.ts index a84d20e2501..8f7a2fa8fcd 100644 --- a/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/index.ts +++ b/src/deviceManagement/deviceCompliancePolicySettingStateSummaries/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCompliancePolicySettingStateSummaryFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicySettingStateSummary, serializeDeviceCompliancePolicySettingStateSummary, type DeviceCompliancePolicySettingStateSummary } from '../../../models/deviceCompliancePolicySettingStateSummary'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { DeviceComplianceSettingStatesRequestBuilder } from './deviceComplianceSettingStates/'; +import { DeviceComplianceSettingStatesRequestBuilder } from './deviceComplianceSettingStates'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceCompliancePolicySettingStateSummaryItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceConfigurationDeviceStateSummaries/index.ts b/src/deviceManagement/deviceConfigurationDeviceStateSummaries/index.ts index ef12e79b2a1..c25ddacb35a 100644 --- a/src/deviceManagement/deviceConfigurationDeviceStateSummaries/index.ts +++ b/src/deviceManagement/deviceConfigurationDeviceStateSummaries/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationDeviceStateSummaryFromDiscriminatorValue, deserializeIntoDeviceConfigurationDeviceStateSummary, serializeDeviceConfigurationDeviceStateSummary, type DeviceConfigurationDeviceStateSummary } from '../../models/deviceConfigurationDeviceStateSummary'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/count/index.ts b/src/deviceManagement/deviceConfigurations/count/index.ts index 377291239ae..f746fa63736 100644 --- a/src/deviceManagement/deviceConfigurations/count/index.ts +++ b/src/deviceManagement/deviceConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/index.ts b/src/deviceManagement/deviceConfigurations/index.ts index 5b39457aa59..66eae320071 100644 --- a/src/deviceManagement/deviceConfigurations/index.ts +++ b/src/deviceManagement/deviceConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceConfigurationCollectionResponse } from '../../models/'; +import { type DeviceConfigurationCollectionResponse } from '../../models'; import { createDeviceConfigurationFromDiscriminatorValue, deserializeIntoDeviceConfiguration, serializeDeviceConfiguration, type DeviceConfiguration } from '../../models/deviceConfiguration'; import { createDeviceConfigurationCollectionResponseFromDiscriminatorValue } from '../../models/deviceConfigurationCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceConfigurationsRequestBuilderGetQueryParameters { @@ -74,10 +74,10 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * List properties and relationships of the deviceConfiguration objects. + * List properties and relationships of the windows10CustomConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceConfigurationCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-deviceconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10customconfiguration-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -90,11 +90,11 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createDeviceConfigurationCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Create a new sharedPCConfiguration 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 a Promise of DeviceConfiguration - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-sharedpcconfiguration-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} */ public post(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -107,7 +107,7 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createDeviceConfigurationFromDiscriminatorValue, errorMapping); }; /** - * List properties and relationships of the deviceConfiguration objects. + * List properties and relationships of the windows10CustomConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -118,7 +118,7 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Create a new sharedPCConfiguration 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 a RequestInformation diff --git a/src/deviceManagement/deviceConfigurations/item/assign/index.ts b/src/deviceManagement/deviceConfigurations/item/assign/index.ts index 961dddb40de..b9bb4dc93eb 100644 --- a/src/deviceManagement/deviceConfigurations/item/assign/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/assign/index.ts @@ -3,105 +3,27 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; import { createDeviceConfigurationAssignmentFromDiscriminatorValue, serializeDeviceConfigurationAssignment, type DeviceConfigurationAssignment } from '../../../../models/deviceConfigurationAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AssignPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The assignments property - */ - assignments?: DeviceConfigurationAssignment[]; -} export interface AssignPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: DeviceConfigurationAssignment[]; } -export function createAssignPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAssignPostRequestBody; -} export function createAssignPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAssignPostResponse; } -export function deserializeIntoAssignPostRequestBody(assignPostRequestBody: AssignPostRequestBody | undefined = {} as AssignPostRequestBody) : Record void> { - return { - "assignments": n => { assignPostRequestBody.assignments = n.getCollectionOfObjectValues(createDeviceConfigurationAssignmentFromDiscriminatorValue); }, - } -} export function deserializeIntoAssignPostResponse(assignPostResponse: AssignPostResponse | undefined = {} as AssignPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(assignPostResponse), "value": n => { assignPostResponse.value = n.getCollectionOfObjectValues(createDeviceConfigurationAssignmentFromDiscriminatorValue); }, } } -export function serializeAssignPostRequestBody(writer: SerializationWriter, assignPostRequestBody: AssignPostRequestBody | undefined = {} as AssignPostRequestBody) : void { - writer.writeCollectionOfObjectValues("assignments", assignPostRequestBody.assignments, serializeDeviceConfigurationAssignment); - writer.writeAdditionalData(assignPostRequestBody.additionalData); -} export function serializeAssignPostResponse(writer: SerializationWriter, assignPostResponse: AssignPostResponse | undefined = {} as AssignPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, assignPostResponse) writer.writeCollectionOfObjectValues("value", assignPostResponse.value, serializeDeviceConfigurationAssignment); } -/** - * Provides operations to call the assign method. - */ -export class AssignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assign"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AssignPostResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-deviceconfiguration-assign?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAssignPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignRequestBuilder - */ - public withUrl(rawUrl: string) : AssignRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/deviceConfigurations/item/assignments/count/index.ts b/src/deviceManagement/deviceConfigurations/item/assignments/count/index.ts index 8c3b7d2a7f9..fde65e2d24d 100644 --- a/src/deviceManagement/deviceConfigurations/item/assignments/count/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/assignments/index.ts b/src/deviceManagement/deviceConfigurations/item/assignments/index.ts index 5b4486ae447..c6efdfff992 100644 --- a/src/deviceManagement/deviceConfigurations/item/assignments/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceConfigurationAssignmentCollectionResponse } from '../../../../models/'; +import { type DeviceConfigurationAssignmentCollectionResponse } from '../../../../models'; import { createDeviceConfigurationAssignmentFromDiscriminatorValue, deserializeIntoDeviceConfigurationAssignment, serializeDeviceConfigurationAssignment, type DeviceConfigurationAssignment } from '../../../../models/deviceConfigurationAssignment'; import { createDeviceConfigurationAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceConfigurationAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceConfigurationAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceConfigurationAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceConfigurations/item/assignments/item/index.ts b/src/deviceManagement/deviceConfigurations/item/assignments/item/index.ts index 5a452b30c7e..266fa660938 100644 --- a/src/deviceManagement/deviceConfigurations/item/assignments/item/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationAssignmentFromDiscriminatorValue, deserializeIntoDeviceConfigurationAssignment, serializeDeviceConfigurationAssignment, type DeviceConfigurationAssignment } from '../../../../../models/deviceConfigurationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/count/index.ts b/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/count/index.ts index 9ec970da408..98795b2ca52 100644 --- a/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/count/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/index.ts b/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/index.ts index 84c3689ccc4..fa3b1c98261 100644 --- a/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SettingStateDeviceSummaryCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SettingStateDeviceSummaryCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSettingStateDeviceSummaryFromDiscriminatorValue, deserializeIntoSettingStateDeviceSummary, serializeSettingStateDeviceSummary, type SettingStateDeviceSummary } from '../../../../models/settingStateDeviceSummary'; import { createSettingStateDeviceSummaryCollectionResponseFromDiscriminatorValue } from '../../../../models/settingStateDeviceSummaryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SettingStateDeviceSummaryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SettingStateDeviceSummaryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceSettingStateSummariesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/item/index.ts b/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/item/index.ts index 02a869d1597..88322058715 100644 --- a/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/item/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/deviceSettingStateSummaries/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSettingStateDeviceSummaryFromDiscriminatorValue, deserializeIntoSettingStateDeviceSummary, serializeSettingStateDeviceSummary, type SettingStateDeviceSummary } from '../../../../../models/settingStateDeviceSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/deviceStatusOverview/index.ts b/src/deviceManagement/deviceConfigurations/item/deviceStatusOverview/index.ts index 6ce1c90e5d2..f37e69da069 100644 --- a/src/deviceManagement/deviceConfigurations/item/deviceStatusOverview/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/deviceStatusOverview/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationDeviceOverviewFromDiscriminatorValue, deserializeIntoDeviceConfigurationDeviceOverview, serializeDeviceConfigurationDeviceOverview, type DeviceConfigurationDeviceOverview } from '../../../../models/deviceConfigurationDeviceOverview'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/deviceStatuses/count/index.ts b/src/deviceManagement/deviceConfigurations/item/deviceStatuses/count/index.ts index 29cbfed11ac..bdf2f1c10d9 100644 --- a/src/deviceManagement/deviceConfigurations/item/deviceStatuses/count/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/deviceStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/deviceStatuses/index.ts b/src/deviceManagement/deviceConfigurations/item/deviceStatuses/index.ts index 4795ccfece2..0f66bdc0a87 100644 --- a/src/deviceManagement/deviceConfigurations/item/deviceStatuses/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/deviceStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceConfigurationDeviceStatusCollectionResponse } from '../../../../models/'; +import { type DeviceConfigurationDeviceStatusCollectionResponse } from '../../../../models'; import { createDeviceConfigurationDeviceStatusFromDiscriminatorValue, deserializeIntoDeviceConfigurationDeviceStatus, serializeDeviceConfigurationDeviceStatus, type DeviceConfigurationDeviceStatus } from '../../../../models/deviceConfigurationDeviceStatus'; import { createDeviceConfigurationDeviceStatusCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceConfigurationDeviceStatusCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceConfigurationDeviceStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceConfigurationDeviceStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceConfigurations/item/deviceStatuses/item/index.ts b/src/deviceManagement/deviceConfigurations/item/deviceStatuses/item/index.ts index 8051a17d88c..ea8899876ef 100644 --- a/src/deviceManagement/deviceConfigurations/item/deviceStatuses/item/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/deviceStatuses/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationDeviceStatusFromDiscriminatorValue, deserializeIntoDeviceConfigurationDeviceStatus, serializeDeviceConfigurationDeviceStatus, type DeviceConfigurationDeviceStatus } from '../../../../../models/deviceConfigurationDeviceStatus'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/getOmaSettingPlainTextValueWithSecretReferenceValueId/index.ts b/src/deviceManagement/deviceConfigurations/item/getOmaSettingPlainTextValueWithSecretReferenceValueId/index.ts index 95a6867ad25..0fb98230f8c 100644 --- a/src/deviceManagement/deviceConfigurations/item/getOmaSettingPlainTextValueWithSecretReferenceValueId/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/getOmaSettingPlainTextValueWithSecretReferenceValueId/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,55 +26,5 @@ export function serializeGetOmaSettingPlainTextValueWithSecretReferenceValueIdGe writer.writeStringValue("value", getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.value); writer.writeAdditionalData(getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.additionalData); } -/** - * Provides operations to call the getOmaSettingPlainTextValue method. - */ -export class GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param secretReferenceValueId Usage: secretReferenceValueId='{secretReferenceValueId}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, secretReferenceValueId?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/getOmaSettingPlainTextValue(secretReferenceValueId='{secretReferenceValueId}')"); - this.pathParameters["secretReferenceValueId"] = secretReferenceValueId - }; - /** - * Invoke function getOmaSettingPlainTextValue - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getOmaSettingPlainTextValue - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder - */ - public withUrl(rawUrl: string) : GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/deviceConfigurations/item/index.ts b/src/deviceManagement/deviceConfigurations/item/index.ts index 9d16b805d6d..cc0f5b6c838 100644 --- a/src/deviceManagement/deviceConfigurations/item/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationFromDiscriminatorValue, deserializeIntoDeviceConfiguration, serializeDeviceConfiguration, type DeviceConfiguration } from '../../../models/deviceConfiguration'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignRequestBuilder } from './assign/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { DeviceSettingStateSummariesRequestBuilder } from './deviceSettingStateSummaries/'; -import { DeviceStatusesRequestBuilder } from './deviceStatuses/'; -import { DeviceStatusOverviewRequestBuilder } from './deviceStatusOverview/'; -import { GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder } from './getOmaSettingPlainTextValueWithSecretReferenceValueId/'; -import { UserStatusesRequestBuilder } from './userStatuses/'; -import { UserStatusOverviewRequestBuilder } from './userStatusOverview/'; +import { AssignRequestBuilder } from './assign'; +import { AssignmentsRequestBuilder } from './assignments'; +import { DeviceSettingStateSummariesRequestBuilder } from './deviceSettingStateSummaries'; +import { DeviceStatusesRequestBuilder } from './deviceStatuses'; +import { DeviceStatusOverviewRequestBuilder } from './deviceStatusOverview'; +import { GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder } from './getOmaSettingPlainTextValueWithSecretReferenceValueId'; +import { UserStatusesRequestBuilder } from './userStatuses'; +import { UserStatusOverviewRequestBuilder } from './userStatusOverview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceConfigurationItemRequestBuilderGetQueryParameters { @@ -79,9 +79,9 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24select,%24expand}"); }; /** - * Deletes a iosGeneralDeviceConfiguration. + * Deletes a androidCustomConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcustomconfiguration-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -94,10 +94,10 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Read properties and relationships of the deviceConfiguration object. + * Read properties and relationships of the iosGeneralDeviceConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceConfiguration - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-deviceconfiguration-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -119,11 +119,11 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder { return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(this.pathParameters, this.requestAdapter, secretReferenceValueId); }; /** - * Update the properties of a macOSCustomConfiguration object. + * Update the properties of a iosCustomConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceConfiguration - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscustomconfiguration-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscustomconfiguration-update?view=graph-rest-1.0|Find more info here} */ public patch(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -136,7 +136,7 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createDeviceConfigurationFromDiscriminatorValue, errorMapping); }; /** - * Deletes a iosGeneralDeviceConfiguration. + * Deletes a androidCustomConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -147,7 +147,7 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Read properties and relationships of the deviceConfiguration object. + * Read properties and relationships of the iosGeneralDeviceConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -158,7 +158,7 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the properties of a macOSCustomConfiguration object. + * Update the properties of a iosCustomConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceManagement/deviceConfigurations/item/userStatusOverview/index.ts b/src/deviceManagement/deviceConfigurations/item/userStatusOverview/index.ts index 2302b222a7f..bca37e8c95e 100644 --- a/src/deviceManagement/deviceConfigurations/item/userStatusOverview/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/userStatusOverview/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationUserOverviewFromDiscriminatorValue, deserializeIntoDeviceConfigurationUserOverview, serializeDeviceConfigurationUserOverview, type DeviceConfigurationUserOverview } from '../../../../models/deviceConfigurationUserOverview'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/userStatuses/count/index.ts b/src/deviceManagement/deviceConfigurations/item/userStatuses/count/index.ts index 5fe03cb0f31..4e0b4cf8f51 100644 --- a/src/deviceManagement/deviceConfigurations/item/userStatuses/count/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/userStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceConfigurations/item/userStatuses/index.ts b/src/deviceManagement/deviceConfigurations/item/userStatuses/index.ts index 7cb9743c340..46c7b5a1434 100644 --- a/src/deviceManagement/deviceConfigurations/item/userStatuses/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/userStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceConfigurationUserStatusCollectionResponse } from '../../../../models/'; +import { type DeviceConfigurationUserStatusCollectionResponse } from '../../../../models'; import { createDeviceConfigurationUserStatusFromDiscriminatorValue, deserializeIntoDeviceConfigurationUserStatus, serializeDeviceConfigurationUserStatus, type DeviceConfigurationUserStatus } from '../../../../models/deviceConfigurationUserStatus'; import { createDeviceConfigurationUserStatusCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceConfigurationUserStatusCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceConfigurationUserStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceConfigurationUserStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceConfigurations/item/userStatuses/item/index.ts b/src/deviceManagement/deviceConfigurations/item/userStatuses/item/index.ts index 74400f0342e..a37275e2fe8 100644 --- a/src/deviceManagement/deviceConfigurations/item/userStatuses/item/index.ts +++ b/src/deviceManagement/deviceConfigurations/item/userStatuses/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationUserStatusFromDiscriminatorValue, deserializeIntoDeviceConfigurationUserStatus, serializeDeviceConfigurationUserStatus, type DeviceConfigurationUserStatus } from '../../../../../models/deviceConfigurationUserStatus'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/count/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/count/index.ts index 0fc5ce0ee86..92e662a8e8b 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/count/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/index.ts index a89a0f9cada..3ee84ae6ea8 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceEnrollmentConfigurationCollectionResponse } from '../../models/'; +import { type DeviceEnrollmentConfigurationCollectionResponse } from '../../models'; import { createDeviceEnrollmentConfigurationFromDiscriminatorValue, deserializeIntoDeviceEnrollmentConfiguration, serializeDeviceEnrollmentConfiguration, type DeviceEnrollmentConfiguration } from '../../models/deviceEnrollmentConfiguration'; import { createDeviceEnrollmentConfigurationCollectionResponseFromDiscriminatorValue } from '../../models/deviceEnrollmentConfigurationCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceEnrollmentConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceEnrollmentConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { @@ -74,10 +74,10 @@ export class DeviceEnrollmentConfigurationsRequestBuilder extends BaseRequestBui super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceEnrollmentConfigurationCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -107,7 +107,7 @@ export class DeviceEnrollmentConfigurationsRequestBuilder extends BaseRequestBui return this.requestAdapter.sendAsync(requestInfo, createDeviceEnrollmentConfigurationFromDiscriminatorValue, errorMapping); }; /** - * List properties and relationships of the deviceEnrollmentConfiguration objects. + * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/item/assign/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/item/assign/index.ts index d6edda5e6e8..4bbc61e24aa 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/item/assign/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/item/assign/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEnrollmentConfigurationAssignmentFromDiscriminatorValue, serializeEnrollmentConfigurationAssignment, type EnrollmentConfigurationAssignment } from '../../../../models/enrollmentConfigurationAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssignPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,57 +27,5 @@ export function serializeAssignPostRequestBody(writer: SerializationWriter, assi writer.writeCollectionOfObjectValues("enrollmentConfigurationAssignments", assignPostRequestBody.enrollmentConfigurationAssignments, serializeEnrollmentConfigurationAssignment); writer.writeAdditionalData(assignPostRequestBody.additionalData); } -/** - * Provides operations to call the assign method. - */ -export class AssignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assign"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-assign?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignRequestBuilder - */ - public withUrl(rawUrl: string) : AssignRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/count/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/count/index.ts index 98d39dddf7e..02de0dd1601 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/count/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/index.ts index 88eaf40a346..da405df8406 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EnrollmentConfigurationAssignmentCollectionResponse } from '../../../../models/'; +import { type EnrollmentConfigurationAssignmentCollectionResponse } from '../../../../models'; import { createEnrollmentConfigurationAssignmentFromDiscriminatorValue, deserializeIntoEnrollmentConfigurationAssignment, serializeEnrollmentConfigurationAssignment, type EnrollmentConfigurationAssignment } from '../../../../models/enrollmentConfigurationAssignment'; import { createEnrollmentConfigurationAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/enrollmentConfigurationAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EnrollmentConfigurationAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EnrollmentConfigurationAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/item/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/item/index.ts index ca096466602..2ade5e23a26 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/item/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/item/assignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEnrollmentConfigurationAssignmentFromDiscriminatorValue, deserializeIntoEnrollmentConfigurationAssignment, serializeEnrollmentConfigurationAssignment, type EnrollmentConfigurationAssignment } from '../../../../../models/enrollmentConfigurationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/item/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/item/index.ts index f7abaaf9317..daa9f1a05e9 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/item/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceEnrollmentConfigurationFromDiscriminatorValue, deserializeIntoDeviceEnrollmentConfiguration, serializeDeviceEnrollmentConfiguration, type DeviceEnrollmentConfiguration } from '../../../models/deviceEnrollmentConfiguration'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignRequestBuilder } from './assign/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { SetPriorityRequestBuilder } from './setPriority/'; +import { AssignRequestBuilder } from './assign'; +import { AssignmentsRequestBuilder } from './assignments'; +import { SetPriorityRequestBuilder } from './setPriority'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { @@ -50,9 +50,9 @@ export class DeviceEnrollmentConfigurationItemRequestBuilder extends BaseRequest super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}{?%24select,%24expand}"); }; /** - * Deletes a deviceEnrollmentLimitConfiguration. + * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -81,11 +81,11 @@ export class DeviceEnrollmentConfigurationItemRequestBuilder extends BaseRequest return this.requestAdapter.sendAsync(requestInfo, createDeviceEnrollmentConfigurationFromDiscriminatorValue, errorMapping); }; /** - * 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 a Promise of DeviceEnrollmentConfiguration - * @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} */ public patch(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -98,7 +98,7 @@ export class DeviceEnrollmentConfigurationItemRequestBuilder extends BaseRequest return this.requestAdapter.sendAsync(requestInfo, createDeviceEnrollmentConfigurationFromDiscriminatorValue, errorMapping); }; /** - * Deletes a deviceEnrollmentLimitConfiguration. + * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -120,7 +120,7 @@ export class DeviceEnrollmentConfigurationItemRequestBuilder extends BaseRequest return requestInfo; }; /** - * 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 a RequestInformation diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/item/setPriority/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/item/setPriority/index.ts index c849e333690..9d08d3148b3 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/item/setPriority/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/item/setPriority/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetPriorityPostRequestBody, serializeSetPriorityPostRequestBody, type SetPriorityPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetPriorityPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetPriorityPostRequestBody; +} +export function deserializeIntoSetPriorityPostRequestBody(setPriorityPostRequestBody: SetPriorityPostRequestBody | undefined = {} as SetPriorityPostRequestBody) : Record void> { + return { + "priority": n => { setPriorityPostRequestBody.priority = n.getNumberValue(); }, + } +} +export function serializeSetPriorityPostRequestBody(writer: SerializationWriter, setPriorityPostRequestBody: SetPriorityPostRequestBody | undefined = {} as SetPriorityPostRequestBody) : void { + writer.writeNumberValue("priority", setPriorityPostRequestBody.priority); + writer.writeAdditionalData(setPriorityPostRequestBody.additionalData); +} +export interface SetPriorityPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The priority property + */ + priority?: number; +} /** * Provides operations to call the setPriority method. */ diff --git a/src/deviceManagement/deviceEnrollmentConfigurations/item/setPriority/setPriorityPostRequestBody.ts b/src/deviceManagement/deviceEnrollmentConfigurations/item/setPriority/setPriorityPostRequestBody.ts deleted file mode 100644 index 9b4df729c29..00000000000 --- a/src/deviceManagement/deviceEnrollmentConfigurations/item/setPriority/setPriorityPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetPriorityPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetPriorityPostRequestBody; -} -export function deserializeIntoSetPriorityPostRequestBody(setPriorityPostRequestBody: SetPriorityPostRequestBody | undefined = {} as SetPriorityPostRequestBody) : Record void> { - return { - "priority": n => { setPriorityPostRequestBody.priority = n.getNumberValue(); }, - } -} -export function serializeSetPriorityPostRequestBody(writer: SerializationWriter, setPriorityPostRequestBody: SetPriorityPostRequestBody | undefined = {} as SetPriorityPostRequestBody) : void { - writer.writeNumberValue("priority", setPriorityPostRequestBody.priority); - writer.writeAdditionalData(setPriorityPostRequestBody.additionalData); -} -export interface SetPriorityPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The priority property - */ - priority?: number; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/deviceManagementPartners/count/index.ts b/src/deviceManagement/deviceManagementPartners/count/index.ts index 80fa49460db..78c89359b31 100644 --- a/src/deviceManagement/deviceManagementPartners/count/index.ts +++ b/src/deviceManagement/deviceManagementPartners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/deviceManagementPartners/index.ts b/src/deviceManagement/deviceManagementPartners/index.ts index e3993f1d861..090e1eaa570 100644 --- a/src/deviceManagement/deviceManagementPartners/index.ts +++ b/src/deviceManagement/deviceManagementPartners/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceManagementPartnerCollectionResponse } from '../../models/'; +import { type DeviceManagementPartnerCollectionResponse } from '../../models'; import { createDeviceManagementPartnerFromDiscriminatorValue, deserializeIntoDeviceManagementPartner, serializeDeviceManagementPartner, type DeviceManagementPartner } from '../../models/deviceManagementPartner'; import { createDeviceManagementPartnerCollectionResponseFromDiscriminatorValue } from '../../models/deviceManagementPartnerCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceManagementPartnerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceManagementPartnerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceManagementPartnersRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceManagementPartners/item/index.ts b/src/deviceManagement/deviceManagementPartners/item/index.ts index 2f4d7d51c8e..357cfe43fb8 100644 --- a/src/deviceManagement/deviceManagementPartners/item/index.ts +++ b/src/deviceManagement/deviceManagementPartners/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceManagementPartnerFromDiscriminatorValue, deserializeIntoDeviceManagementPartner, serializeDeviceManagementPartner, type DeviceManagementPartner } from '../../../models/deviceManagementPartner'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { TerminateRequestBuilder } from './terminate/'; +import { TerminateRequestBuilder } from './terminate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceManagementPartnerItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/deviceManagementPartners/item/terminate/index.ts b/src/deviceManagement/deviceManagementPartners/item/terminate/index.ts index 2b26fa67675..32fea1d6acd 100644 --- a/src/deviceManagement/deviceManagementPartners/item/terminate/index.ts +++ b/src/deviceManagement/deviceManagementPartners/item/terminate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/exchangeConnectors/count/index.ts b/src/deviceManagement/exchangeConnectors/count/index.ts index 601b36b443f..662ab905727 100644 --- a/src/deviceManagement/exchangeConnectors/count/index.ts +++ b/src/deviceManagement/exchangeConnectors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/exchangeConnectors/index.ts b/src/deviceManagement/exchangeConnectors/index.ts index f3cdc9a1d9f..b936f03da75 100644 --- a/src/deviceManagement/exchangeConnectors/index.ts +++ b/src/deviceManagement/exchangeConnectors/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceManagementExchangeConnectorCollectionResponse } from '../../models/'; +import { type DeviceManagementExchangeConnectorCollectionResponse } from '../../models'; import { createDeviceManagementExchangeConnectorFromDiscriminatorValue, deserializeIntoDeviceManagementExchangeConnector, serializeDeviceManagementExchangeConnector, type DeviceManagementExchangeConnector } from '../../models/deviceManagementExchangeConnector'; import { createDeviceManagementExchangeConnectorCollectionResponseFromDiscriminatorValue } from '../../models/deviceManagementExchangeConnectorCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceManagementExchangeConnectorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceManagementExchangeConnectorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExchangeConnectorsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/exchangeConnectors/item/index.ts b/src/deviceManagement/exchangeConnectors/item/index.ts index 577ee474998..03b6ec78f6b 100644 --- a/src/deviceManagement/exchangeConnectors/item/index.ts +++ b/src/deviceManagement/exchangeConnectors/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceManagementExchangeConnectorFromDiscriminatorValue, deserializeIntoDeviceManagementExchangeConnector, serializeDeviceManagementExchangeConnector, type DeviceManagementExchangeConnector } from '../../../models/deviceManagementExchangeConnector'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { SyncRequestBuilder } from './sync/'; +import { SyncRequestBuilder } from './sync'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceManagementExchangeConnectorItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/exchangeConnectors/item/sync/index.ts b/src/deviceManagement/exchangeConnectors/item/sync/index.ts index f50a41e312d..ac9bd942b96 100644 --- a/src/deviceManagement/exchangeConnectors/item/sync/index.ts +++ b/src/deviceManagement/exchangeConnectors/item/sync/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { DeviceManagementExchangeConnectorSyncType } from '../../../../models/deviceManagementExchangeConnectorSyncType'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSyncPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SyncPostRequestBody extends AdditionalDataHolder, Parsable { */ syncType?: DeviceManagementExchangeConnectorSyncType; } -/** - * Provides operations to call the sync method. - */ -export class SyncRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SyncRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/exchangeConnectors/{deviceManagementExchangeConnector%2Did}/sync"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-devicemanagementexchangeconnector-sync?view=graph-rest-1.0|Find more info here} - */ - public post(body: SyncPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SyncPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSyncPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a syncRequestBuilder - */ - public withUrl(rawUrl: string) : SyncRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SyncRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/getEffectivePermissionsWithScope/getEffectivePermissionsWithScopeGetResponse.ts b/src/deviceManagement/getEffectivePermissionsWithScope/getEffectivePermissionsWithScopeGetResponse.ts deleted file mode 100644 index dccb9b7dcbe..00000000000 --- a/src/deviceManagement/getEffectivePermissionsWithScope/getEffectivePermissionsWithScopeGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createRolePermissionFromDiscriminatorValue, serializeRolePermission, type RolePermission } from '../../models/rolePermission'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetEffectivePermissionsWithScopeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetEffectivePermissionsWithScopeGetResponse; -} -export function deserializeIntoGetEffectivePermissionsWithScopeGetResponse(getEffectivePermissionsWithScopeGetResponse: GetEffectivePermissionsWithScopeGetResponse | undefined = {} as GetEffectivePermissionsWithScopeGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getEffectivePermissionsWithScopeGetResponse), - "value": n => { getEffectivePermissionsWithScopeGetResponse.value = n.getCollectionOfObjectValues(createRolePermissionFromDiscriminatorValue); }, - } -} -export interface GetEffectivePermissionsWithScopeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: RolePermission[]; -} -export function serializeGetEffectivePermissionsWithScopeGetResponse(writer: SerializationWriter, getEffectivePermissionsWithScopeGetResponse: GetEffectivePermissionsWithScopeGetResponse | undefined = {} as GetEffectivePermissionsWithScopeGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getEffectivePermissionsWithScopeGetResponse) - writer.writeCollectionOfObjectValues("value", getEffectivePermissionsWithScopeGetResponse.value, serializeRolePermission); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/getEffectivePermissionsWithScope/index.ts b/src/deviceManagement/getEffectivePermissionsWithScope/index.ts index dd5eeb1f3be..55c7e741c81 100644 --- a/src/deviceManagement/getEffectivePermissionsWithScope/index.ts +++ b/src/deviceManagement/getEffectivePermissionsWithScope/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { createGetEffectivePermissionsWithScopeGetResponseFromDiscriminatorValue } from './'; -import { type GetEffectivePermissionsWithScopeGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRolePermissionFromDiscriminatorValue, serializeRolePermission, type RolePermission } from '../../models/rolePermission'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetEffectivePermissionsWithScopeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetEffectivePermissionsWithScopeGetResponse; +} +export function deserializeIntoGetEffectivePermissionsWithScopeGetResponse(getEffectivePermissionsWithScopeGetResponse: GetEffectivePermissionsWithScopeGetResponse | undefined = {} as GetEffectivePermissionsWithScopeGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getEffectivePermissionsWithScopeGetResponse), + "value": n => { getEffectivePermissionsWithScopeGetResponse.value = n.getCollectionOfObjectValues(createRolePermissionFromDiscriminatorValue); }, + } +} +export interface GetEffectivePermissionsWithScopeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: RolePermission[]; +} export interface GetEffectivePermissionsWithScopeRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface GetEffectivePermissionsWithScopeRequestBuilderGetQueryParameter */ top?: number; } +export function serializeGetEffectivePermissionsWithScopeGetResponse(writer: SerializationWriter, getEffectivePermissionsWithScopeGetResponse: GetEffectivePermissionsWithScopeGetResponse | undefined = {} as GetEffectivePermissionsWithScopeGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getEffectivePermissionsWithScopeGetResponse) + writer.writeCollectionOfObjectValues("value", getEffectivePermissionsWithScopeGetResponse.value, serializeRolePermission); +} /** * Provides operations to call the getEffectivePermissions method. */ diff --git a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/count/index.ts b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/count/index.ts index 6d3fe94e7f9..dd363b20871 100644 --- a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/count/index.ts +++ b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/importPostRequestBody.ts b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/importPostRequestBody.ts deleted file mode 100644 index 64bfb51403c..00000000000 --- a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/importPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue, serializeImportedWindowsAutopilotDeviceIdentity, type ImportedWindowsAutopilotDeviceIdentity } from '../../../models/importedWindowsAutopilotDeviceIdentity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImportPostRequestBody; -} -export function deserializeIntoImportPostRequestBody(importPostRequestBody: ImportPostRequestBody | undefined = {} as ImportPostRequestBody) : Record void> { - return { - "importedWindowsAutopilotDeviceIdentities": n => { importPostRequestBody.importedWindowsAutopilotDeviceIdentities = n.getCollectionOfObjectValues(createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue); }, - } -} -export interface ImportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The importedWindowsAutopilotDeviceIdentities property - */ - importedWindowsAutopilotDeviceIdentities?: ImportedWindowsAutopilotDeviceIdentity[]; -} -export function serializeImportPostRequestBody(writer: SerializationWriter, importPostRequestBody: ImportPostRequestBody | undefined = {} as ImportPostRequestBody) : void { - writer.writeCollectionOfObjectValues("importedWindowsAutopilotDeviceIdentities", importPostRequestBody.importedWindowsAutopilotDeviceIdentities, serializeImportedWindowsAutopilotDeviceIdentity); - writer.writeAdditionalData(importPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/importPostResponse.ts b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/importPostResponse.ts deleted file mode 100644 index fcc2b3b2cbf..00000000000 --- a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/importPostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue, serializeImportedWindowsAutopilotDeviceIdentity, type ImportedWindowsAutopilotDeviceIdentity } from '../../../models/importedWindowsAutopilotDeviceIdentity'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImportPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImportPostResponse; -} -export function deserializeIntoImportPostResponse(importPostResponse: ImportPostResponse | undefined = {} as ImportPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(importPostResponse), - "value": n => { importPostResponse.value = n.getCollectionOfObjectValues(createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue); }, - } -} -export interface ImportPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ImportedWindowsAutopilotDeviceIdentity[]; -} -export function serializeImportPostResponse(writer: SerializationWriter, importPostResponse: ImportPostResponse | undefined = {} as ImportPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, importPostResponse) - writer.writeCollectionOfObjectValues("value", importPostResponse.value, serializeImportedWindowsAutopilotDeviceIdentity); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/index.ts b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/index.ts index 8d92d090604..f042d3c706e 100644 --- a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/index.ts +++ b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/importEscaped/index.ts @@ -1,11 +1,55 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue, serializeImportedWindowsAutopilotDeviceIdentity, type ImportedWindowsAutopilotDeviceIdentity } from '../../../models/importedWindowsAutopilotDeviceIdentity'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createImportPostResponseFromDiscriminatorValue, deserializeIntoImportPostRequestBody, deserializeIntoImportPostResponse, serializeImportPostRequestBody, serializeImportPostResponse, type ImportPostRequestBody, type ImportPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImportPostRequestBody; +} +export function createImportPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImportPostResponse; +} +export function deserializeIntoImportPostRequestBody(importPostRequestBody: ImportPostRequestBody | undefined = {} as ImportPostRequestBody) : Record void> { + return { + "importedWindowsAutopilotDeviceIdentities": n => { importPostRequestBody.importedWindowsAutopilotDeviceIdentities = n.getCollectionOfObjectValues(createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue); }, + } +} +export function deserializeIntoImportPostResponse(importPostResponse: ImportPostResponse | undefined = {} as ImportPostResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(importPostResponse), + "value": n => { importPostResponse.value = n.getCollectionOfObjectValues(createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue); }, + } +} +export interface ImportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The importedWindowsAutopilotDeviceIdentities property + */ + importedWindowsAutopilotDeviceIdentities?: ImportedWindowsAutopilotDeviceIdentity[]; +} +export interface ImportPostResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ImportedWindowsAutopilotDeviceIdentity[]; +} +export function serializeImportPostRequestBody(writer: SerializationWriter, importPostRequestBody: ImportPostRequestBody | undefined = {} as ImportPostRequestBody) : void { + writer.writeCollectionOfObjectValues("importedWindowsAutopilotDeviceIdentities", importPostRequestBody.importedWindowsAutopilotDeviceIdentities, serializeImportedWindowsAutopilotDeviceIdentity); + writer.writeAdditionalData(importPostRequestBody.additionalData); +} +export function serializeImportPostResponse(writer: SerializationWriter, importPostResponse: ImportPostResponse | undefined = {} as ImportPostResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, importPostResponse) + writer.writeCollectionOfObjectValues("value", importPostResponse.value, serializeImportedWindowsAutopilotDeviceIdentity); +} /** * Provides operations to call the import method. */ diff --git a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/index.ts b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/index.ts index fcfc7d82665..0f6a5b18201 100644 --- a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/index.ts +++ b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ImportedWindowsAutopilotDeviceIdentityCollectionResponse } from '../../models/'; +import { type ImportedWindowsAutopilotDeviceIdentityCollectionResponse } from '../../models'; import { createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue, deserializeIntoImportedWindowsAutopilotDeviceIdentity, serializeImportedWindowsAutopilotDeviceIdentity, type ImportedWindowsAutopilotDeviceIdentity } from '../../models/importedWindowsAutopilotDeviceIdentity'; import { createImportedWindowsAutopilotDeviceIdentityCollectionResponseFromDiscriminatorValue } from '../../models/importedWindowsAutopilotDeviceIdentityCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ImportRequestBuilder } from './importEscaped/'; -import { ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ImportRequestBuilder } from './importEscaped'; +import { ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ImportedWindowsAutopilotDeviceIdentitiesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/item/index.ts b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/item/index.ts index 5676e9ee845..83658d7a686 100644 --- a/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/item/index.ts +++ b/src/deviceManagement/importedWindowsAutopilotDeviceIdentities/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createImportedWindowsAutopilotDeviceIdentityFromDiscriminatorValue, deserializeIntoImportedWindowsAutopilotDeviceIdentity, serializeImportedWindowsAutopilotDeviceIdentity, type ImportedWindowsAutopilotDeviceIdentity } from '../../../models/importedWindowsAutopilotDeviceIdentity'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/index.ts b/src/deviceManagement/index.ts index 328d3020a2f..f3de46b0f73 100644 --- a/src/deviceManagement/index.ts +++ b/src/deviceManagement/index.ts @@ -2,68 +2,68 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceManagementFromDiscriminatorValue, deserializeIntoDeviceManagement, serializeDeviceManagement, type DeviceManagement } from '../models/deviceManagement'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { ApplePushNotificationCertificateRequestBuilder } from './applePushNotificationCertificate/'; -import { AuditEventsRequestBuilder } from './auditEvents/'; -import { ComplianceManagementPartnersRequestBuilder } from './complianceManagementPartners/'; -import { ConditionalAccessSettingsRequestBuilder } from './conditionalAccessSettings/'; -import { DetectedAppsRequestBuilder } from './detectedApps/'; -import { DeviceCategoriesRequestBuilder } from './deviceCategories/'; -import { DeviceCompliancePoliciesRequestBuilder } from './deviceCompliancePolicies/'; -import { DeviceCompliancePolicyDeviceStateSummaryRequestBuilder } from './deviceCompliancePolicyDeviceStateSummary/'; -import { DeviceCompliancePolicySettingStateSummariesRequestBuilder } from './deviceCompliancePolicySettingStateSummaries/'; -import { DeviceConfigurationDeviceStateSummariesRequestBuilder } from './deviceConfigurationDeviceStateSummaries/'; -import { DeviceConfigurationsRequestBuilder } from './deviceConfigurations/'; -import { DeviceEnrollmentConfigurationsRequestBuilder } from './deviceEnrollmentConfigurations/'; -import { DeviceManagementPartnersRequestBuilder } from './deviceManagementPartners/'; -import { ExchangeConnectorsRequestBuilder } from './exchangeConnectors/'; -import { GetEffectivePermissionsWithScopeRequestBuilder } from './getEffectivePermissionsWithScope/'; -import { ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder } from './importedWindowsAutopilotDeviceIdentities/'; -import { IosUpdateStatusesRequestBuilder } from './iosUpdateStatuses/'; -import { ManagedDeviceOverviewRequestBuilder } from './managedDeviceOverview/'; -import { ManagedDevicesRequestBuilder } from './managedDevices/'; -import { MobileAppTroubleshootingEventsRequestBuilder } from './mobileAppTroubleshootingEvents/'; -import { MobileThreatDefenseConnectorsRequestBuilder } from './mobileThreatDefenseConnectors/'; -import { NotificationMessageTemplatesRequestBuilder } from './notificationMessageTemplates/'; -import { RemoteAssistancePartnersRequestBuilder } from './remoteAssistancePartners/'; -import { ReportsRequestBuilder } from './reports/'; -import { ResourceOperationsRequestBuilder } from './resourceOperations/'; -import { RoleAssignmentsRequestBuilder } from './roleAssignments/'; -import { RoleDefinitionsRequestBuilder } from './roleDefinitions/'; -import { SoftwareUpdateStatusSummaryRequestBuilder } from './softwareUpdateStatusSummary/'; -import { TelecomExpenseManagementPartnersRequestBuilder } from './telecomExpenseManagementPartners/'; -import { TermsAndConditionsRequestBuilder } from './termsAndConditions/'; -import { TroubleshootingEventsRequestBuilder } from './troubleshootingEvents/'; -import { UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder } from './userExperienceAnalyticsAppHealthApplicationPerformance/'; -import { UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder } from './userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/'; -import { UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder } from './userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/'; -import { UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder } from './userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/'; -import { UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder } from './userExperienceAnalyticsAppHealthDeviceModelPerformance/'; -import { UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder } from './userExperienceAnalyticsAppHealthDevicePerformance/'; -import { UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder } from './userExperienceAnalyticsAppHealthDevicePerformanceDetails/'; -import { UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder } from './userExperienceAnalyticsAppHealthOSVersionPerformance/'; -import { UserExperienceAnalyticsAppHealthOverviewRequestBuilder } from './userExperienceAnalyticsAppHealthOverview/'; -import { UserExperienceAnalyticsBaselinesRequestBuilder } from './userExperienceAnalyticsBaselines/'; -import { UserExperienceAnalyticsCategoriesRequestBuilder } from './userExperienceAnalyticsCategories/'; -import { UserExperienceAnalyticsDevicePerformanceRequestBuilder } from './userExperienceAnalyticsDevicePerformance/'; -import { UserExperienceAnalyticsDeviceScoresRequestBuilder } from './userExperienceAnalyticsDeviceScores/'; -import { UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder } from './userExperienceAnalyticsDeviceStartupHistory/'; -import { UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder } from './userExperienceAnalyticsDeviceStartupProcesses/'; -import { UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder } from './userExperienceAnalyticsDeviceStartupProcessPerformance/'; -import { UserExperienceAnalyticsMetricHistoryRequestBuilder } from './userExperienceAnalyticsMetricHistory/'; -import { UserExperienceAnalyticsModelScoresRequestBuilder } from './userExperienceAnalyticsModelScores/'; -import { UserExperienceAnalyticsOverviewRequestBuilder } from './userExperienceAnalyticsOverview/'; -import { UserExperienceAnalyticsScoreHistoryRequestBuilder } from './userExperienceAnalyticsScoreHistory/'; -import { UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder } from './userExperienceAnalyticsSummarizeWorkFromAnywhereDevices/'; -import { UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder } from './userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/'; -import { UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder } from './userExperienceAnalyticsWorkFromAnywhereMetrics/'; -import { UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder } from './userExperienceAnalyticsWorkFromAnywhereModelPerformance/'; -import { VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder } from './verifyWindowsEnrollmentAutoDiscoveryWithDomainName/'; -import { WindowsAutopilotDeviceIdentitiesRequestBuilder } from './windowsAutopilotDeviceIdentities/'; -import { WindowsInformationProtectionAppLearningSummariesRequestBuilder } from './windowsInformationProtectionAppLearningSummaries/'; -import { WindowsInformationProtectionNetworkLearningSummariesRequestBuilder } from './windowsInformationProtectionNetworkLearningSummaries/'; -import { WindowsMalwareInformationRequestBuilder } from './windowsMalwareInformation/'; +import { ApplePushNotificationCertificateRequestBuilder } from './applePushNotificationCertificate'; +import { AuditEventsRequestBuilder } from './auditEvents'; +import { ComplianceManagementPartnersRequestBuilder } from './complianceManagementPartners'; +import { ConditionalAccessSettingsRequestBuilder } from './conditionalAccessSettings'; +import { DetectedAppsRequestBuilder } from './detectedApps'; +import { DeviceCategoriesRequestBuilder } from './deviceCategories'; +import { DeviceCompliancePoliciesRequestBuilder } from './deviceCompliancePolicies'; +import { DeviceCompliancePolicyDeviceStateSummaryRequestBuilder } from './deviceCompliancePolicyDeviceStateSummary'; +import { DeviceCompliancePolicySettingStateSummariesRequestBuilder } from './deviceCompliancePolicySettingStateSummaries'; +import { DeviceConfigurationDeviceStateSummariesRequestBuilder } from './deviceConfigurationDeviceStateSummaries'; +import { DeviceConfigurationsRequestBuilder } from './deviceConfigurations'; +import { DeviceEnrollmentConfigurationsRequestBuilder } from './deviceEnrollmentConfigurations'; +import { DeviceManagementPartnersRequestBuilder } from './deviceManagementPartners'; +import { ExchangeConnectorsRequestBuilder } from './exchangeConnectors'; +import { GetEffectivePermissionsWithScopeRequestBuilder } from './getEffectivePermissionsWithScope'; +import { ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder } from './importedWindowsAutopilotDeviceIdentities'; +import { IosUpdateStatusesRequestBuilder } from './iosUpdateStatuses'; +import { ManagedDeviceOverviewRequestBuilder } from './managedDeviceOverview'; +import { ManagedDevicesRequestBuilder } from './managedDevices'; +import { MobileAppTroubleshootingEventsRequestBuilder } from './mobileAppTroubleshootingEvents'; +import { MobileThreatDefenseConnectorsRequestBuilder } from './mobileThreatDefenseConnectors'; +import { NotificationMessageTemplatesRequestBuilder } from './notificationMessageTemplates'; +import { RemoteAssistancePartnersRequestBuilder } from './remoteAssistancePartners'; +import { ReportsRequestBuilder } from './reports'; +import { ResourceOperationsRequestBuilder } from './resourceOperations'; +import { RoleAssignmentsRequestBuilder } from './roleAssignments'; +import { RoleDefinitionsRequestBuilder } from './roleDefinitions'; +import { SoftwareUpdateStatusSummaryRequestBuilder } from './softwareUpdateStatusSummary'; +import { TelecomExpenseManagementPartnersRequestBuilder } from './telecomExpenseManagementPartners'; +import { TermsAndConditionsRequestBuilder } from './termsAndConditions'; +import { TroubleshootingEventsRequestBuilder } from './troubleshootingEvents'; +import { UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder } from './userExperienceAnalyticsAppHealthApplicationPerformance'; +import { UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder } from './userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails'; +import { UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder } from './userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId'; +import { UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder } from './userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion'; +import { UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder } from './userExperienceAnalyticsAppHealthDeviceModelPerformance'; +import { UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder } from './userExperienceAnalyticsAppHealthDevicePerformance'; +import { UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder } from './userExperienceAnalyticsAppHealthDevicePerformanceDetails'; +import { UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder } from './userExperienceAnalyticsAppHealthOSVersionPerformance'; +import { UserExperienceAnalyticsAppHealthOverviewRequestBuilder } from './userExperienceAnalyticsAppHealthOverview'; +import { UserExperienceAnalyticsBaselinesRequestBuilder } from './userExperienceAnalyticsBaselines'; +import { UserExperienceAnalyticsCategoriesRequestBuilder } from './userExperienceAnalyticsCategories'; +import { UserExperienceAnalyticsDevicePerformanceRequestBuilder } from './userExperienceAnalyticsDevicePerformance'; +import { UserExperienceAnalyticsDeviceScoresRequestBuilder } from './userExperienceAnalyticsDeviceScores'; +import { UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder } from './userExperienceAnalyticsDeviceStartupHistory'; +import { UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder } from './userExperienceAnalyticsDeviceStartupProcesses'; +import { UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder } from './userExperienceAnalyticsDeviceStartupProcessPerformance'; +import { UserExperienceAnalyticsMetricHistoryRequestBuilder } from './userExperienceAnalyticsMetricHistory'; +import { UserExperienceAnalyticsModelScoresRequestBuilder } from './userExperienceAnalyticsModelScores'; +import { UserExperienceAnalyticsOverviewRequestBuilder } from './userExperienceAnalyticsOverview'; +import { UserExperienceAnalyticsScoreHistoryRequestBuilder } from './userExperienceAnalyticsScoreHistory'; +import { UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder } from './userExperienceAnalyticsSummarizeWorkFromAnywhereDevices'; +import { UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder } from './userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric'; +import { UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder } from './userExperienceAnalyticsWorkFromAnywhereMetrics'; +import { UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder } from './userExperienceAnalyticsWorkFromAnywhereModelPerformance'; +import { VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder } from './verifyWindowsEnrollmentAutoDiscoveryWithDomainName'; +import { WindowsAutopilotDeviceIdentitiesRequestBuilder } from './windowsAutopilotDeviceIdentities'; +import { WindowsInformationProtectionAppLearningSummariesRequestBuilder } from './windowsInformationProtectionAppLearningSummaries'; +import { WindowsInformationProtectionNetworkLearningSummariesRequestBuilder } from './windowsInformationProtectionNetworkLearningSummaries'; +import { WindowsMalwareInformationRequestBuilder } from './windowsMalwareInformation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceManagementRequestBuilderGetQueryParameters { @@ -440,7 +440,7 @@ export class DeviceManagementRequestBuilder extends BaseRequestBuilder { * Read properties and relationships of the deviceManagement object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceManagement - * @see {@link https://learn.microsoft.com/graph/api/intune-mstunnel-devicemanagement-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-devicemanagement-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -466,7 +466,7 @@ export class DeviceManagementRequestBuilder extends BaseRequestBuilder { * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceManagement - * @see {@link https://learn.microsoft.com/graph/api/intune-enrollment-devicemanagement-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-gpanalyticsservice-devicemanagement-update?view=graph-rest-1.0|Find more info here} */ public patch(body: DeviceManagement, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( diff --git a/src/deviceManagement/iosUpdateStatuses/count/index.ts b/src/deviceManagement/iosUpdateStatuses/count/index.ts index 6368ad20160..7d07f33d33f 100644 --- a/src/deviceManagement/iosUpdateStatuses/count/index.ts +++ b/src/deviceManagement/iosUpdateStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/iosUpdateStatuses/index.ts b/src/deviceManagement/iosUpdateStatuses/index.ts index 50025e1d0ce..254ff4e83e3 100644 --- a/src/deviceManagement/iosUpdateStatuses/index.ts +++ b/src/deviceManagement/iosUpdateStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IosUpdateDeviceStatusCollectionResponse } from '../../models/'; +import { type IosUpdateDeviceStatusCollectionResponse } from '../../models'; import { createIosUpdateDeviceStatusFromDiscriminatorValue, deserializeIntoIosUpdateDeviceStatus, serializeIosUpdateDeviceStatus, type IosUpdateDeviceStatus } from '../../models/iosUpdateDeviceStatus'; import { createIosUpdateDeviceStatusCollectionResponseFromDiscriminatorValue } from '../../models/iosUpdateDeviceStatusCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { IosUpdateDeviceStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IosUpdateDeviceStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IosUpdateStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/iosUpdateStatuses/item/index.ts b/src/deviceManagement/iosUpdateStatuses/item/index.ts index 658231da7c3..7eaa41b40fb 100644 --- a/src/deviceManagement/iosUpdateStatuses/item/index.ts +++ b/src/deviceManagement/iosUpdateStatuses/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createIosUpdateDeviceStatusFromDiscriminatorValue, deserializeIntoIosUpdateDeviceStatus, serializeIosUpdateDeviceStatus, type IosUpdateDeviceStatus } from '../../../models/iosUpdateDeviceStatus'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDeviceOverview/index.ts b/src/deviceManagement/managedDeviceOverview/index.ts index 463ff4a339b..2daa8e3fe08 100644 --- a/src/deviceManagement/managedDeviceOverview/index.ts +++ b/src/deviceManagement/managedDeviceOverview/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDeviceOverview } from '../../models/'; +import { type ManagedDeviceOverview } from '../../models'; import { createManagedDeviceOverviewFromDiscriminatorValue } from '../../models/managedDeviceOverview'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/count/index.ts b/src/deviceManagement/managedDevices/count/index.ts index 7f7ce1a1673..0ac026f3f15 100644 --- a/src/deviceManagement/managedDevices/count/index.ts +++ b/src/deviceManagement/managedDevices/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/index.ts b/src/deviceManagement/managedDevices/index.ts index 226f3b24fad..07f3a0bb9e0 100644 --- a/src/deviceManagement/managedDevices/index.ts +++ b/src/deviceManagement/managedDevices/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDeviceCollectionResponse } from '../../models/'; +import { type ManagedDeviceCollectionResponse } from '../../models'; import { createManagedDeviceFromDiscriminatorValue, deserializeIntoManagedDevice, serializeManagedDevice, type ManagedDevice } from '../../models/managedDevice'; import { createManagedDeviceCollectionResponseFromDiscriminatorValue } from '../../models/managedDeviceCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedDeviceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedDeviceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedDevicesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/managedDevices/item/bypassActivationLock/index.ts b/src/deviceManagement/managedDevices/item/bypassActivationLock/index.ts index 8ff18ab2191..8706468e4fb 100644 --- a/src/deviceManagement/managedDevices/item/bypassActivationLock/index.ts +++ b/src/deviceManagement/managedDevices/item/bypassActivationLock/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/cleanWindowsDevice/cleanWindowsDevicePostRequestBody.ts b/src/deviceManagement/managedDevices/item/cleanWindowsDevice/cleanWindowsDevicePostRequestBody.ts deleted file mode 100644 index 02c64f964fd..00000000000 --- a/src/deviceManagement/managedDevices/item/cleanWindowsDevice/cleanWindowsDevicePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CleanWindowsDevicePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The keepUserData property - */ - keepUserData?: boolean; -} -export function createCleanWindowsDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCleanWindowsDevicePostRequestBody; -} -export function deserializeIntoCleanWindowsDevicePostRequestBody(cleanWindowsDevicePostRequestBody: CleanWindowsDevicePostRequestBody | undefined = {} as CleanWindowsDevicePostRequestBody) : Record void> { - return { - "keepUserData": n => { cleanWindowsDevicePostRequestBody.keepUserData = n.getBooleanValue(); }, - } -} -export function serializeCleanWindowsDevicePostRequestBody(writer: SerializationWriter, cleanWindowsDevicePostRequestBody: CleanWindowsDevicePostRequestBody | undefined = {} as CleanWindowsDevicePostRequestBody) : void { - writer.writeBooleanValue("keepUserData", cleanWindowsDevicePostRequestBody.keepUserData); - writer.writeAdditionalData(cleanWindowsDevicePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/managedDevices/item/cleanWindowsDevice/index.ts b/src/deviceManagement/managedDevices/item/cleanWindowsDevice/index.ts index 93cb97d060b..ef56ae4b167 100644 --- a/src/deviceManagement/managedDevices/item/cleanWindowsDevice/index.ts +++ b/src/deviceManagement/managedDevices/item/cleanWindowsDevice/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCleanWindowsDevicePostRequestBody, serializeCleanWindowsDevicePostRequestBody, type CleanWindowsDevicePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CleanWindowsDevicePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The keepUserData property + */ + keepUserData?: boolean; +} +export function createCleanWindowsDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCleanWindowsDevicePostRequestBody; +} +export function deserializeIntoCleanWindowsDevicePostRequestBody(cleanWindowsDevicePostRequestBody: CleanWindowsDevicePostRequestBody | undefined = {} as CleanWindowsDevicePostRequestBody) : Record void> { + return { + "keepUserData": n => { cleanWindowsDevicePostRequestBody.keepUserData = n.getBooleanValue(); }, + } +} +export function serializeCleanWindowsDevicePostRequestBody(writer: SerializationWriter, cleanWindowsDevicePostRequestBody: CleanWindowsDevicePostRequestBody | undefined = {} as CleanWindowsDevicePostRequestBody) : void { + writer.writeBooleanValue("keepUserData", cleanWindowsDevicePostRequestBody.keepUserData); + writer.writeAdditionalData(cleanWindowsDevicePostRequestBody.additionalData); +} /** * Provides operations to call the cleanWindowsDevice method. */ diff --git a/src/deviceManagement/managedDevices/item/deleteUserFromSharedAppleDevice/deleteUserFromSharedAppleDevicePostRequestBody.ts b/src/deviceManagement/managedDevices/item/deleteUserFromSharedAppleDevice/deleteUserFromSharedAppleDevicePostRequestBody.ts deleted file mode 100644 index 124aae1c805..00000000000 --- a/src/deviceManagement/managedDevices/item/deleteUserFromSharedAppleDevice/deleteUserFromSharedAppleDevicePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDeleteUserFromSharedAppleDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody; -} -export interface DeleteUserFromSharedAppleDevicePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The userPrincipalName property - */ - userPrincipalName?: string; -} -export function deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody(deleteUserFromSharedAppleDevicePostRequestBody: DeleteUserFromSharedAppleDevicePostRequestBody | undefined = {} as DeleteUserFromSharedAppleDevicePostRequestBody) : Record void> { - return { - "userPrincipalName": n => { deleteUserFromSharedAppleDevicePostRequestBody.userPrincipalName = n.getStringValue(); }, - } -} -export function serializeDeleteUserFromSharedAppleDevicePostRequestBody(writer: SerializationWriter, deleteUserFromSharedAppleDevicePostRequestBody: DeleteUserFromSharedAppleDevicePostRequestBody | undefined = {} as DeleteUserFromSharedAppleDevicePostRequestBody) : void { - writer.writeStringValue("userPrincipalName", deleteUserFromSharedAppleDevicePostRequestBody.userPrincipalName); - writer.writeAdditionalData(deleteUserFromSharedAppleDevicePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/managedDevices/item/deleteUserFromSharedAppleDevice/index.ts b/src/deviceManagement/managedDevices/item/deleteUserFromSharedAppleDevice/index.ts index 4c340aa4b93..11d5ce8e43e 100644 --- a/src/deviceManagement/managedDevices/item/deleteUserFromSharedAppleDevice/index.ts +++ b/src/deviceManagement/managedDevices/item/deleteUserFromSharedAppleDevice/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody, serializeDeleteUserFromSharedAppleDevicePostRequestBody, type DeleteUserFromSharedAppleDevicePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDeleteUserFromSharedAppleDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody; +} +export interface DeleteUserFromSharedAppleDevicePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The userPrincipalName property + */ + userPrincipalName?: string; +} +export function deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody(deleteUserFromSharedAppleDevicePostRequestBody: DeleteUserFromSharedAppleDevicePostRequestBody | undefined = {} as DeleteUserFromSharedAppleDevicePostRequestBody) : Record void> { + return { + "userPrincipalName": n => { deleteUserFromSharedAppleDevicePostRequestBody.userPrincipalName = n.getStringValue(); }, + } +} +export function serializeDeleteUserFromSharedAppleDevicePostRequestBody(writer: SerializationWriter, deleteUserFromSharedAppleDevicePostRequestBody: DeleteUserFromSharedAppleDevicePostRequestBody | undefined = {} as DeleteUserFromSharedAppleDevicePostRequestBody) : void { + writer.writeStringValue("userPrincipalName", deleteUserFromSharedAppleDevicePostRequestBody.userPrincipalName); + writer.writeAdditionalData(deleteUserFromSharedAppleDevicePostRequestBody.additionalData); +} /** * Provides operations to call the deleteUserFromSharedAppleDevice method. */ diff --git a/src/deviceManagement/managedDevices/item/deviceCategory/index.ts b/src/deviceManagement/managedDevices/item/deviceCategory/index.ts index 6fb347df3b3..2a2f656016a 100644 --- a/src/deviceManagement/managedDevices/item/deviceCategory/index.ts +++ b/src/deviceManagement/managedDevices/item/deviceCategory/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCategoryFromDiscriminatorValue, deserializeIntoDeviceCategory, serializeDeviceCategory, type DeviceCategory } from '../../../../models/deviceCategory'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/count/index.ts b/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/count/index.ts index 95b9105f67e..ecabfdc9e27 100644 --- a/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/count/index.ts +++ b/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/index.ts b/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/index.ts index 9439072f0e1..fb7938d30dc 100644 --- a/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/index.ts +++ b/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCompliancePolicyStateCollectionResponse } from '../../../../models/'; +import { type DeviceCompliancePolicyStateCollectionResponse } from '../../../../models'; import { createDeviceCompliancePolicyStateFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicyState, serializeDeviceCompliancePolicyState, type DeviceCompliancePolicyState } from '../../../../models/deviceCompliancePolicyState'; import { createDeviceCompliancePolicyStateCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCompliancePolicyStateCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceCompliancePolicyStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceCompliancePolicyStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceCompliancePolicyStatesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/item/index.ts b/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/item/index.ts index 5428391d50b..d2411baa165 100644 --- a/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/item/index.ts +++ b/src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCompliancePolicyStateFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicyState, serializeDeviceCompliancePolicyState, type DeviceCompliancePolicyState } from '../../../../../models/deviceCompliancePolicyState'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/deviceConfigurationStates/count/index.ts b/src/deviceManagement/managedDevices/item/deviceConfigurationStates/count/index.ts index ab5b8960d65..ad2561f66d3 100644 --- a/src/deviceManagement/managedDevices/item/deviceConfigurationStates/count/index.ts +++ b/src/deviceManagement/managedDevices/item/deviceConfigurationStates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/deviceConfigurationStates/index.ts b/src/deviceManagement/managedDevices/item/deviceConfigurationStates/index.ts index 20a230cef20..91eb10d822c 100644 --- a/src/deviceManagement/managedDevices/item/deviceConfigurationStates/index.ts +++ b/src/deviceManagement/managedDevices/item/deviceConfigurationStates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceConfigurationStateCollectionResponse } from '../../../../models/'; +import { type DeviceConfigurationStateCollectionResponse } from '../../../../models'; import { createDeviceConfigurationStateFromDiscriminatorValue, deserializeIntoDeviceConfigurationState, serializeDeviceConfigurationState, type DeviceConfigurationState } from '../../../../models/deviceConfigurationState'; import { createDeviceConfigurationStateCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceConfigurationStateCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceConfigurationStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceConfigurationStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceConfigurationStatesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/managedDevices/item/deviceConfigurationStates/item/index.ts b/src/deviceManagement/managedDevices/item/deviceConfigurationStates/item/index.ts index c6294a560fa..5e065c5b7a3 100644 --- a/src/deviceManagement/managedDevices/item/deviceConfigurationStates/item/index.ts +++ b/src/deviceManagement/managedDevices/item/deviceConfigurationStates/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationStateFromDiscriminatorValue, deserializeIntoDeviceConfigurationState, serializeDeviceConfigurationState, type DeviceConfigurationState } from '../../../../../models/deviceConfigurationState'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/disableLostMode/index.ts b/src/deviceManagement/managedDevices/item/disableLostMode/index.ts index 736826c2a40..19b3aa18f97 100644 --- a/src/deviceManagement/managedDevices/item/disableLostMode/index.ts +++ b/src/deviceManagement/managedDevices/item/disableLostMode/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/index.ts b/src/deviceManagement/managedDevices/item/index.ts index f81c8b7f127..2ada33674d5 100644 --- a/src/deviceManagement/managedDevices/item/index.ts +++ b/src/deviceManagement/managedDevices/item/index.ts @@ -2,32 +2,32 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceFromDiscriminatorValue, deserializeIntoManagedDevice, serializeManagedDevice, type ManagedDevice } from '../../../models/managedDevice'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BypassActivationLockRequestBuilder } from './bypassActivationLock/'; -import { CleanWindowsDeviceRequestBuilder } from './cleanWindowsDevice/'; -import { DeleteUserFromSharedAppleDeviceRequestBuilder } from './deleteUserFromSharedAppleDevice/'; -import { DeviceCategoryRequestBuilder } from './deviceCategory/'; -import { DeviceCompliancePolicyStatesRequestBuilder } from './deviceCompliancePolicyStates/'; -import { DeviceConfigurationStatesRequestBuilder } from './deviceConfigurationStates/'; -import { DisableLostModeRequestBuilder } from './disableLostMode/'; -import { LocateDeviceRequestBuilder } from './locateDevice/'; -import { LogCollectionRequestsRequestBuilder } from './logCollectionRequests/'; -import { LogoutSharedAppleDeviceActiveUserRequestBuilder } from './logoutSharedAppleDeviceActiveUser/'; -import { RebootNowRequestBuilder } from './rebootNow/'; -import { RecoverPasscodeRequestBuilder } from './recoverPasscode/'; -import { RemoteLockRequestBuilder } from './remoteLock/'; -import { RequestRemoteAssistanceRequestBuilder } from './requestRemoteAssistance/'; -import { ResetPasscodeRequestBuilder } from './resetPasscode/'; -import { RetireRequestBuilder } from './retire/'; -import { ShutDownRequestBuilder } from './shutDown/'; -import { SyncDeviceRequestBuilder } from './syncDevice/'; -import { UpdateWindowsDeviceAccountRequestBuilder } from './updateWindowsDeviceAccount/'; -import { UsersRequestBuilder } from './users/'; -import { WindowsDefenderScanRequestBuilder } from './windowsDefenderScan/'; -import { WindowsDefenderUpdateSignaturesRequestBuilder } from './windowsDefenderUpdateSignatures/'; -import { WindowsProtectionStateRequestBuilder } from './windowsProtectionState/'; -import { WipeRequestBuilder } from './wipe/'; +import { BypassActivationLockRequestBuilder } from './bypassActivationLock'; +import { CleanWindowsDeviceRequestBuilder } from './cleanWindowsDevice'; +import { DeleteUserFromSharedAppleDeviceRequestBuilder } from './deleteUserFromSharedAppleDevice'; +import { DeviceCategoryRequestBuilder } from './deviceCategory'; +import { DeviceCompliancePolicyStatesRequestBuilder } from './deviceCompliancePolicyStates'; +import { DeviceConfigurationStatesRequestBuilder } from './deviceConfigurationStates'; +import { DisableLostModeRequestBuilder } from './disableLostMode'; +import { LocateDeviceRequestBuilder } from './locateDevice'; +import { LogCollectionRequestsRequestBuilder } from './logCollectionRequests'; +import { LogoutSharedAppleDeviceActiveUserRequestBuilder } from './logoutSharedAppleDeviceActiveUser'; +import { RebootNowRequestBuilder } from './rebootNow'; +import { RecoverPasscodeRequestBuilder } from './recoverPasscode'; +import { RemoteLockRequestBuilder } from './remoteLock'; +import { RequestRemoteAssistanceRequestBuilder } from './requestRemoteAssistance'; +import { ResetPasscodeRequestBuilder } from './resetPasscode'; +import { RetireRequestBuilder } from './retire'; +import { ShutDownRequestBuilder } from './shutDown'; +import { SyncDeviceRequestBuilder } from './syncDevice'; +import { UpdateWindowsDeviceAccountRequestBuilder } from './updateWindowsDeviceAccount'; +import { UsersRequestBuilder } from './users'; +import { WindowsDefenderScanRequestBuilder } from './windowsDefenderScan'; +import { WindowsDefenderUpdateSignaturesRequestBuilder } from './windowsDefenderUpdateSignatures'; +import { WindowsProtectionStateRequestBuilder } from './windowsProtectionState'; +import { WipeRequestBuilder } from './wipe'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedDeviceItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/managedDevices/item/locateDevice/index.ts b/src/deviceManagement/managedDevices/item/locateDevice/index.ts index fa5edc62614..a840e6a5662 100644 --- a/src/deviceManagement/managedDevices/item/locateDevice/index.ts +++ b/src/deviceManagement/managedDevices/item/locateDevice/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/logCollectionRequests/count/index.ts b/src/deviceManagement/managedDevices/item/logCollectionRequests/count/index.ts index 9bd44574321..5d99fcc6ea4 100644 --- a/src/deviceManagement/managedDevices/item/logCollectionRequests/count/index.ts +++ b/src/deviceManagement/managedDevices/item/logCollectionRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/logCollectionRequests/index.ts b/src/deviceManagement/managedDevices/item/logCollectionRequests/index.ts index 9621c6fa899..c2445220dfb 100644 --- a/src/deviceManagement/managedDevices/item/logCollectionRequests/index.ts +++ b/src/deviceManagement/managedDevices/item/logCollectionRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceLogCollectionResponseCollectionResponse } from '../../../../models/'; +import { type DeviceLogCollectionResponseCollectionResponse } from '../../../../models'; import { createDeviceLogCollectionResponseFromDiscriminatorValue, deserializeIntoDeviceLogCollectionResponse, serializeDeviceLogCollectionResponse, type DeviceLogCollectionResponse } from '../../../../models/deviceLogCollectionResponse'; import { createDeviceLogCollectionResponseCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceLogCollectionResponseCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceLogCollectionResponseItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceLogCollectionResponseItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LogCollectionRequestsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/managedDevices/item/logCollectionRequests/item/createDownloadUrl/createDownloadUrlPostResponse.ts b/src/deviceManagement/managedDevices/item/logCollectionRequests/item/createDownloadUrl/createDownloadUrlPostResponse.ts deleted file mode 100644 index ada1ae34164..00000000000 --- a/src/deviceManagement/managedDevices/item/logCollectionRequests/item/createDownloadUrl/createDownloadUrlPostResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCreateDownloadUrlPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCreateDownloadUrlPostResponse; -} -export interface CreateDownloadUrlPostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: string; -} -export function deserializeIntoCreateDownloadUrlPostResponse(createDownloadUrlPostResponse: CreateDownloadUrlPostResponse | undefined = {} as CreateDownloadUrlPostResponse) : Record void> { - return { - "value": n => { createDownloadUrlPostResponse.value = n.getStringValue(); }, - } -} -export function serializeCreateDownloadUrlPostResponse(writer: SerializationWriter, createDownloadUrlPostResponse: CreateDownloadUrlPostResponse | undefined = {} as CreateDownloadUrlPostResponse) : void { - writer.writeStringValue("value", createDownloadUrlPostResponse.value); - writer.writeAdditionalData(createDownloadUrlPostResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/managedDevices/item/logCollectionRequests/item/createDownloadUrl/index.ts b/src/deviceManagement/managedDevices/item/logCollectionRequests/item/createDownloadUrl/index.ts index 6e4bcee6cf8..ba10999d712 100644 --- a/src/deviceManagement/managedDevices/item/logCollectionRequests/item/createDownloadUrl/index.ts +++ b/src/deviceManagement/managedDevices/item/logCollectionRequests/item/createDownloadUrl/index.ts @@ -1,7 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateDownloadUrlPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -26,5 +28,53 @@ export function serializeCreateDownloadUrlPostResponse(writer: SerializationWrit writer.writeStringValue("value", createDownloadUrlPostResponse.value); writer.writeAdditionalData(createDownloadUrlPostResponse.additionalData); } +/** + * Provides operations to call the createDownloadUrl method. + */ +export class CreateDownloadUrlRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CreateDownloadUrlRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/{deviceLogCollectionResponse%2Did}/createDownloadUrl"); + }; + /** + * Invoke action createDownloadUrl + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of CreateDownloadUrlPostResponse + */ + public post(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createCreateDownloadUrlPostResponseFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action createDownloadUrl + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a createDownloadUrlRequestBuilder + */ + public withUrl(rawUrl: string) : CreateDownloadUrlRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new CreateDownloadUrlRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/managedDevices/item/logCollectionRequests/item/index.ts b/src/deviceManagement/managedDevices/item/logCollectionRequests/item/index.ts index 8b2b296cb4c..ccde58f39fa 100644 --- a/src/deviceManagement/managedDevices/item/logCollectionRequests/item/index.ts +++ b/src/deviceManagement/managedDevices/item/logCollectionRequests/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceLogCollectionResponseFromDiscriminatorValue, deserializeIntoDeviceLogCollectionResponse, serializeDeviceLogCollectionResponse, type DeviceLogCollectionResponse } from '../../../../../models/deviceLogCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CreateDownloadUrlRequestBuilder } from './createDownloadUrl/'; +import { CreateDownloadUrlRequestBuilder } from './createDownloadUrl'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceLogCollectionResponseItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/managedDevices/item/logoutSharedAppleDeviceActiveUser/index.ts b/src/deviceManagement/managedDevices/item/logoutSharedAppleDeviceActiveUser/index.ts index 9d15e9499ae..e7d679a5247 100644 --- a/src/deviceManagement/managedDevices/item/logoutSharedAppleDeviceActiveUser/index.ts +++ b/src/deviceManagement/managedDevices/item/logoutSharedAppleDeviceActiveUser/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/rebootNow/index.ts b/src/deviceManagement/managedDevices/item/rebootNow/index.ts index 65e1b6da6a8..775cd1ed414 100644 --- a/src/deviceManagement/managedDevices/item/rebootNow/index.ts +++ b/src/deviceManagement/managedDevices/item/rebootNow/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/recoverPasscode/index.ts b/src/deviceManagement/managedDevices/item/recoverPasscode/index.ts index 1a377a5a421..2b6562787b4 100644 --- a/src/deviceManagement/managedDevices/item/recoverPasscode/index.ts +++ b/src/deviceManagement/managedDevices/item/recoverPasscode/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/remoteLock/index.ts b/src/deviceManagement/managedDevices/item/remoteLock/index.ts index 38f4bfabe0c..cf3bdcba60e 100644 --- a/src/deviceManagement/managedDevices/item/remoteLock/index.ts +++ b/src/deviceManagement/managedDevices/item/remoteLock/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/requestRemoteAssistance/index.ts b/src/deviceManagement/managedDevices/item/requestRemoteAssistance/index.ts index 19081c0ed8e..d9e59083aa1 100644 --- a/src/deviceManagement/managedDevices/item/requestRemoteAssistance/index.ts +++ b/src/deviceManagement/managedDevices/item/requestRemoteAssistance/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/resetPasscode/index.ts b/src/deviceManagement/managedDevices/item/resetPasscode/index.ts index 5e276309b06..6b36c2f8f62 100644 --- a/src/deviceManagement/managedDevices/item/resetPasscode/index.ts +++ b/src/deviceManagement/managedDevices/item/resetPasscode/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/retire/index.ts b/src/deviceManagement/managedDevices/item/retire/index.ts index d3425297653..c2f7e4546a6 100644 --- a/src/deviceManagement/managedDevices/item/retire/index.ts +++ b/src/deviceManagement/managedDevices/item/retire/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/shutDown/index.ts b/src/deviceManagement/managedDevices/item/shutDown/index.ts index f6314a099f8..e103e6a0c05 100644 --- a/src/deviceManagement/managedDevices/item/shutDown/index.ts +++ b/src/deviceManagement/managedDevices/item/shutDown/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/syncDevice/index.ts b/src/deviceManagement/managedDevices/item/syncDevice/index.ts index 673068810a8..7cf2c491ace 100644 --- a/src/deviceManagement/managedDevices/item/syncDevice/index.ts +++ b/src/deviceManagement/managedDevices/item/syncDevice/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/updateWindowsDeviceAccount/index.ts b/src/deviceManagement/managedDevices/item/updateWindowsDeviceAccount/index.ts index d7f386da770..07c235a0587 100644 --- a/src/deviceManagement/managedDevices/item/updateWindowsDeviceAccount/index.ts +++ b/src/deviceManagement/managedDevices/item/updateWindowsDeviceAccount/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUpdateWindowsDeviceAccountPostRequestBody, serializeUpdateWindowsDeviceAccountPostRequestBody, type UpdateWindowsDeviceAccountPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUpdateWindowsDeviceAccountActionParameterFromDiscriminatorValue, serializeUpdateWindowsDeviceAccountActionParameter, type UpdateWindowsDeviceAccountActionParameter } from '../../../../models/updateWindowsDeviceAccountActionParameter'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpdateWindowsDeviceAccountPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpdateWindowsDeviceAccountPostRequestBody; +} +export function deserializeIntoUpdateWindowsDeviceAccountPostRequestBody(updateWindowsDeviceAccountPostRequestBody: UpdateWindowsDeviceAccountPostRequestBody | undefined = {} as UpdateWindowsDeviceAccountPostRequestBody) : Record void> { + return { + "updateWindowsDeviceAccountActionParameter": n => { updateWindowsDeviceAccountPostRequestBody.updateWindowsDeviceAccountActionParameter = n.getObjectValue(createUpdateWindowsDeviceAccountActionParameterFromDiscriminatorValue); }, + } +} +export function serializeUpdateWindowsDeviceAccountPostRequestBody(writer: SerializationWriter, updateWindowsDeviceAccountPostRequestBody: UpdateWindowsDeviceAccountPostRequestBody | undefined = {} as UpdateWindowsDeviceAccountPostRequestBody) : void { + writer.writeObjectValue("updateWindowsDeviceAccountActionParameter", updateWindowsDeviceAccountPostRequestBody.updateWindowsDeviceAccountActionParameter, serializeUpdateWindowsDeviceAccountActionParameter); + writer.writeAdditionalData(updateWindowsDeviceAccountPostRequestBody.additionalData); +} +export interface UpdateWindowsDeviceAccountPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The updateWindowsDeviceAccountActionParameter property + */ + updateWindowsDeviceAccountActionParameter?: UpdateWindowsDeviceAccountActionParameter; +} /** * Provides operations to call the updateWindowsDeviceAccount method. */ diff --git a/src/deviceManagement/managedDevices/item/updateWindowsDeviceAccount/updateWindowsDeviceAccountPostRequestBody.ts b/src/deviceManagement/managedDevices/item/updateWindowsDeviceAccount/updateWindowsDeviceAccountPostRequestBody.ts deleted file mode 100644 index ca95c48edf4..00000000000 --- a/src/deviceManagement/managedDevices/item/updateWindowsDeviceAccount/updateWindowsDeviceAccountPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createUpdateWindowsDeviceAccountActionParameterFromDiscriminatorValue, serializeUpdateWindowsDeviceAccountActionParameter, type UpdateWindowsDeviceAccountActionParameter } from '../../../../models/updateWindowsDeviceAccountActionParameter'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpdateWindowsDeviceAccountPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpdateWindowsDeviceAccountPostRequestBody; -} -export function deserializeIntoUpdateWindowsDeviceAccountPostRequestBody(updateWindowsDeviceAccountPostRequestBody: UpdateWindowsDeviceAccountPostRequestBody | undefined = {} as UpdateWindowsDeviceAccountPostRequestBody) : Record void> { - return { - "updateWindowsDeviceAccountActionParameter": n => { updateWindowsDeviceAccountPostRequestBody.updateWindowsDeviceAccountActionParameter = n.getObjectValue(createUpdateWindowsDeviceAccountActionParameterFromDiscriminatorValue); }, - } -} -export function serializeUpdateWindowsDeviceAccountPostRequestBody(writer: SerializationWriter, updateWindowsDeviceAccountPostRequestBody: UpdateWindowsDeviceAccountPostRequestBody | undefined = {} as UpdateWindowsDeviceAccountPostRequestBody) : void { - writer.writeObjectValue("updateWindowsDeviceAccountActionParameter", updateWindowsDeviceAccountPostRequestBody.updateWindowsDeviceAccountActionParameter, serializeUpdateWindowsDeviceAccountActionParameter); - writer.writeAdditionalData(updateWindowsDeviceAccountPostRequestBody.additionalData); -} -export interface UpdateWindowsDeviceAccountPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The updateWindowsDeviceAccountActionParameter property - */ - updateWindowsDeviceAccountActionParameter?: UpdateWindowsDeviceAccountActionParameter; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/managedDevices/item/users/index.ts b/src/deviceManagement/managedDevices/item/users/index.ts index 6c70a075fa6..09205e6b54d 100644 --- a/src/deviceManagement/managedDevices/item/users/index.ts +++ b/src/deviceManagement/managedDevices/item/users/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/windowsDefenderScan/index.ts b/src/deviceManagement/managedDevices/item/windowsDefenderScan/index.ts index 7e74525faae..1434da0e6c8 100644 --- a/src/deviceManagement/managedDevices/item/windowsDefenderScan/index.ts +++ b/src/deviceManagement/managedDevices/item/windowsDefenderScan/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoWindowsDefenderScanPostRequestBody, serializeWindowsDefenderScanPostRequestBody, type WindowsDefenderScanPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createWindowsDefenderScanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoWindowsDefenderScanPostRequestBody; +} +export function deserializeIntoWindowsDefenderScanPostRequestBody(windowsDefenderScanPostRequestBody: WindowsDefenderScanPostRequestBody | undefined = {} as WindowsDefenderScanPostRequestBody) : Record void> { + return { + "quickScan": n => { windowsDefenderScanPostRequestBody.quickScan = n.getBooleanValue(); }, + } +} +export function serializeWindowsDefenderScanPostRequestBody(writer: SerializationWriter, windowsDefenderScanPostRequestBody: WindowsDefenderScanPostRequestBody | undefined = {} as WindowsDefenderScanPostRequestBody) : void { + writer.writeBooleanValue("quickScan", windowsDefenderScanPostRequestBody.quickScan); + writer.writeAdditionalData(windowsDefenderScanPostRequestBody.additionalData); +} +export interface WindowsDefenderScanPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The quickScan property + */ + quickScan?: boolean; +} /** * Provides operations to call the windowsDefenderScan method. */ diff --git a/src/deviceManagement/managedDevices/item/windowsDefenderScan/windowsDefenderScanPostRequestBody.ts b/src/deviceManagement/managedDevices/item/windowsDefenderScan/windowsDefenderScanPostRequestBody.ts deleted file mode 100644 index d4c649f7eca..00000000000 --- a/src/deviceManagement/managedDevices/item/windowsDefenderScan/windowsDefenderScanPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createWindowsDefenderScanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoWindowsDefenderScanPostRequestBody; -} -export function deserializeIntoWindowsDefenderScanPostRequestBody(windowsDefenderScanPostRequestBody: WindowsDefenderScanPostRequestBody | undefined = {} as WindowsDefenderScanPostRequestBody) : Record void> { - return { - "quickScan": n => { windowsDefenderScanPostRequestBody.quickScan = n.getBooleanValue(); }, - } -} -export function serializeWindowsDefenderScanPostRequestBody(writer: SerializationWriter, windowsDefenderScanPostRequestBody: WindowsDefenderScanPostRequestBody | undefined = {} as WindowsDefenderScanPostRequestBody) : void { - writer.writeBooleanValue("quickScan", windowsDefenderScanPostRequestBody.quickScan); - writer.writeAdditionalData(windowsDefenderScanPostRequestBody.additionalData); -} -export interface WindowsDefenderScanPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The quickScan property - */ - quickScan?: boolean; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/managedDevices/item/windowsDefenderUpdateSignatures/index.ts b/src/deviceManagement/managedDevices/item/windowsDefenderUpdateSignatures/index.ts index 65361bc972a..33b0a09e883 100644 --- a/src/deviceManagement/managedDevices/item/windowsDefenderUpdateSignatures/index.ts +++ b/src/deviceManagement/managedDevices/item/windowsDefenderUpdateSignatures/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/count/index.ts b/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/count/index.ts index fba477712b6..bd29b3bae13 100644 --- a/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/count/index.ts +++ b/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/index.ts b/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/index.ts index a5a2cd585b1..f0abb7f95f7 100644 --- a/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/index.ts +++ b/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsDeviceMalwareStateCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type WindowsDeviceMalwareStateCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createWindowsDeviceMalwareStateFromDiscriminatorValue, deserializeIntoWindowsDeviceMalwareState, serializeWindowsDeviceMalwareState, type WindowsDeviceMalwareState } from '../../../../../models/windowsDeviceMalwareState'; import { createWindowsDeviceMalwareStateCollectionResponseFromDiscriminatorValue } from '../../../../../models/windowsDeviceMalwareStateCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsDeviceMalwareStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsDeviceMalwareStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DetectedMalwareStateRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/item/index.ts b/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/item/index.ts index 2e99372cc85..0ccea70ba24 100644 --- a/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/item/index.ts +++ b/src/deviceManagement/managedDevices/item/windowsProtectionState/detectedMalwareState/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWindowsDeviceMalwareStateFromDiscriminatorValue, deserializeIntoWindowsDeviceMalwareState, serializeWindowsDeviceMalwareState, type WindowsDeviceMalwareState } from '../../../../../../models/windowsDeviceMalwareState'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/managedDevices/item/windowsProtectionState/index.ts b/src/deviceManagement/managedDevices/item/windowsProtectionState/index.ts index b164ecb471f..038feb626dc 100644 --- a/src/deviceManagement/managedDevices/item/windowsProtectionState/index.ts +++ b/src/deviceManagement/managedDevices/item/windowsProtectionState/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsProtectionStateFromDiscriminatorValue, deserializeIntoWindowsProtectionState, serializeWindowsProtectionState, type WindowsProtectionState } from '../../../../models/windowsProtectionState'; -import { DetectedMalwareStateRequestBuilder } from './detectedMalwareState/'; +import { DetectedMalwareStateRequestBuilder } from './detectedMalwareState'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsProtectionStateRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/managedDevices/item/wipe/index.ts b/src/deviceManagement/managedDevices/item/wipe/index.ts index e12c57947dd..41a85307ada 100644 --- a/src/deviceManagement/managedDevices/item/wipe/index.ts +++ b/src/deviceManagement/managedDevices/item/wipe/index.ts @@ -1,11 +1,51 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoWipePostRequestBody, serializeWipePostRequestBody, type WipePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createWipePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoWipePostRequestBody; +} +export function deserializeIntoWipePostRequestBody(wipePostRequestBody: WipePostRequestBody | undefined = {} as WipePostRequestBody) : Record void> { + return { + "keepEnrollmentData": n => { wipePostRequestBody.keepEnrollmentData = n.getBooleanValue(); }, + "keepUserData": n => { wipePostRequestBody.keepUserData = n.getBooleanValue(); }, + "macOsUnlockCode": n => { wipePostRequestBody.macOsUnlockCode = n.getStringValue(); }, + "persistEsimDataPlan": n => { wipePostRequestBody.persistEsimDataPlan = n.getBooleanValue(); }, + } +} +export function serializeWipePostRequestBody(writer: SerializationWriter, wipePostRequestBody: WipePostRequestBody | undefined = {} as WipePostRequestBody) : void { + writer.writeBooleanValue("keepEnrollmentData", wipePostRequestBody.keepEnrollmentData); + writer.writeBooleanValue("keepUserData", wipePostRequestBody.keepUserData); + writer.writeStringValue("macOsUnlockCode", wipePostRequestBody.macOsUnlockCode); + writer.writeBooleanValue("persistEsimDataPlan", wipePostRequestBody.persistEsimDataPlan); + writer.writeAdditionalData(wipePostRequestBody.additionalData); +} +export interface WipePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The keepEnrollmentData property + */ + keepEnrollmentData?: boolean; + /** + * The keepUserData property + */ + keepUserData?: boolean; + /** + * The macOsUnlockCode property + */ + macOsUnlockCode?: string; + /** + * The persistEsimDataPlan property + */ + persistEsimDataPlan?: boolean; +} /** * Provides operations to call the wipe method. */ diff --git a/src/deviceManagement/managedDevices/item/wipe/wipePostRequestBody.ts b/src/deviceManagement/managedDevices/item/wipe/wipePostRequestBody.ts deleted file mode 100644 index 49a6c514fc7..00000000000 --- a/src/deviceManagement/managedDevices/item/wipe/wipePostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createWipePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoWipePostRequestBody; -} -export function deserializeIntoWipePostRequestBody(wipePostRequestBody: WipePostRequestBody | undefined = {} as WipePostRequestBody) : Record void> { - return { - "keepEnrollmentData": n => { wipePostRequestBody.keepEnrollmentData = n.getBooleanValue(); }, - "keepUserData": n => { wipePostRequestBody.keepUserData = n.getBooleanValue(); }, - "macOsUnlockCode": n => { wipePostRequestBody.macOsUnlockCode = n.getStringValue(); }, - "persistEsimDataPlan": n => { wipePostRequestBody.persistEsimDataPlan = n.getBooleanValue(); }, - } -} -export function serializeWipePostRequestBody(writer: SerializationWriter, wipePostRequestBody: WipePostRequestBody | undefined = {} as WipePostRequestBody) : void { - writer.writeBooleanValue("keepEnrollmentData", wipePostRequestBody.keepEnrollmentData); - writer.writeBooleanValue("keepUserData", wipePostRequestBody.keepUserData); - writer.writeStringValue("macOsUnlockCode", wipePostRequestBody.macOsUnlockCode); - writer.writeBooleanValue("persistEsimDataPlan", wipePostRequestBody.persistEsimDataPlan); - writer.writeAdditionalData(wipePostRequestBody.additionalData); -} -export interface WipePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The keepEnrollmentData property - */ - keepEnrollmentData?: boolean; - /** - * The keepUserData property - */ - keepUserData?: boolean; - /** - * The macOsUnlockCode property - */ - macOsUnlockCode?: string; - /** - * The persistEsimDataPlan property - */ - persistEsimDataPlan?: boolean; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/mobileAppTroubleshootingEvents/count/index.ts b/src/deviceManagement/mobileAppTroubleshootingEvents/count/index.ts index 87b97ac9e6d..41257573131 100644 --- a/src/deviceManagement/mobileAppTroubleshootingEvents/count/index.ts +++ b/src/deviceManagement/mobileAppTroubleshootingEvents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/mobileAppTroubleshootingEvents/index.ts b/src/deviceManagement/mobileAppTroubleshootingEvents/index.ts index 3e81db4f532..1caeab822d7 100644 --- a/src/deviceManagement/mobileAppTroubleshootingEvents/index.ts +++ b/src/deviceManagement/mobileAppTroubleshootingEvents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileAppTroubleshootingEventCollectionResponse } from '../../models/'; +import { type MobileAppTroubleshootingEventCollectionResponse } from '../../models'; import { createMobileAppTroubleshootingEventFromDiscriminatorValue, deserializeIntoMobileAppTroubleshootingEvent, serializeMobileAppTroubleshootingEvent, type MobileAppTroubleshootingEvent } from '../../models/mobileAppTroubleshootingEvent'; import { createMobileAppTroubleshootingEventCollectionResponseFromDiscriminatorValue } from '../../models/mobileAppTroubleshootingEventCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileAppTroubleshootingEventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileAppTroubleshootingEventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppTroubleshootingEventsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/count/index.ts b/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/count/index.ts index f76a5d152a8..9eca1362a8b 100644 --- a/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/count/index.ts +++ b/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/index.ts b/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/index.ts index 826aec8d1c7..2e8692e74ea 100644 --- a/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/index.ts +++ b/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppLogCollectionRequestCollectionResponse } from '../../../../models/'; +import { type AppLogCollectionRequestCollectionResponse } from '../../../../models'; import { createAppLogCollectionRequestFromDiscriminatorValue, deserializeIntoAppLogCollectionRequest, serializeAppLogCollectionRequest, type AppLogCollectionRequest } from '../../../../models/appLogCollectionRequest'; import { createAppLogCollectionRequestCollectionResponseFromDiscriminatorValue } from '../../../../models/appLogCollectionRequestCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AppLogCollectionRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AppLogCollectionRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppLogCollectionRequestsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/item/createDownloadUrl/index.ts b/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/item/createDownloadUrl/index.ts index ab5848bef25..10a1dc4e97e 100644 --- a/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/item/createDownloadUrl/index.ts +++ b/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/item/createDownloadUrl/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppLogCollectionDownloadDetails } from '../../../../../../models/'; +import { type AppLogCollectionDownloadDetails } from '../../../../../../models'; import { createAppLogCollectionDownloadDetailsFromDiscriminatorValue } from '../../../../../../models/appLogCollectionDownloadDetails'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/item/index.ts b/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/item/index.ts index 3d0c3878d27..3f36b6f10c5 100644 --- a/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/item/index.ts +++ b/src/deviceManagement/mobileAppTroubleshootingEvents/item/appLogCollectionRequests/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppLogCollectionRequestFromDiscriminatorValue, deserializeIntoAppLogCollectionRequest, serializeAppLogCollectionRequest, type AppLogCollectionRequest } from '../../../../../models/appLogCollectionRequest'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CreateDownloadUrlRequestBuilder } from './createDownloadUrl/'; +import { CreateDownloadUrlRequestBuilder } from './createDownloadUrl'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppLogCollectionRequestItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/mobileAppTroubleshootingEvents/item/index.ts b/src/deviceManagement/mobileAppTroubleshootingEvents/item/index.ts index ddbfe3723e1..45213430a7f 100644 --- a/src/deviceManagement/mobileAppTroubleshootingEvents/item/index.ts +++ b/src/deviceManagement/mobileAppTroubleshootingEvents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileAppTroubleshootingEventFromDiscriminatorValue, deserializeIntoMobileAppTroubleshootingEvent, serializeMobileAppTroubleshootingEvent, type MobileAppTroubleshootingEvent } from '../../../models/mobileAppTroubleshootingEvent'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppLogCollectionRequestsRequestBuilder } from './appLogCollectionRequests/'; +import { AppLogCollectionRequestsRequestBuilder } from './appLogCollectionRequests'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileAppTroubleshootingEventItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/mobileThreatDefenseConnectors/count/index.ts b/src/deviceManagement/mobileThreatDefenseConnectors/count/index.ts index 5ce05242f30..5ed8b58d818 100644 --- a/src/deviceManagement/mobileThreatDefenseConnectors/count/index.ts +++ b/src/deviceManagement/mobileThreatDefenseConnectors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/mobileThreatDefenseConnectors/index.ts b/src/deviceManagement/mobileThreatDefenseConnectors/index.ts index 9f99b9b3396..a9c18ce5006 100644 --- a/src/deviceManagement/mobileThreatDefenseConnectors/index.ts +++ b/src/deviceManagement/mobileThreatDefenseConnectors/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MobileThreatDefenseConnectorCollectionResponse } from '../../models/'; +import { type MobileThreatDefenseConnectorCollectionResponse } from '../../models'; import { createMobileThreatDefenseConnectorFromDiscriminatorValue, deserializeIntoMobileThreatDefenseConnector, serializeMobileThreatDefenseConnector, type MobileThreatDefenseConnector } from '../../models/mobileThreatDefenseConnector'; import { createMobileThreatDefenseConnectorCollectionResponseFromDiscriminatorValue } from '../../models/mobileThreatDefenseConnectorCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MobileThreatDefenseConnectorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MobileThreatDefenseConnectorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MobileThreatDefenseConnectorsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/mobileThreatDefenseConnectors/item/index.ts b/src/deviceManagement/mobileThreatDefenseConnectors/item/index.ts index f20e9737ab4..ce52804b692 100644 --- a/src/deviceManagement/mobileThreatDefenseConnectors/item/index.ts +++ b/src/deviceManagement/mobileThreatDefenseConnectors/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMobileThreatDefenseConnectorFromDiscriminatorValue, deserializeIntoMobileThreatDefenseConnector, serializeMobileThreatDefenseConnector, type MobileThreatDefenseConnector } from '../../../models/mobileThreatDefenseConnector'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/notificationMessageTemplates/count/index.ts b/src/deviceManagement/notificationMessageTemplates/count/index.ts index fadfcab5728..ad72d261318 100644 --- a/src/deviceManagement/notificationMessageTemplates/count/index.ts +++ b/src/deviceManagement/notificationMessageTemplates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/notificationMessageTemplates/index.ts b/src/deviceManagement/notificationMessageTemplates/index.ts index 805f7c3073c..cd906c7a5e7 100644 --- a/src/deviceManagement/notificationMessageTemplates/index.ts +++ b/src/deviceManagement/notificationMessageTemplates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type NotificationMessageTemplateCollectionResponse } from '../../models/'; +import { type NotificationMessageTemplateCollectionResponse } from '../../models'; import { createNotificationMessageTemplateFromDiscriminatorValue, deserializeIntoNotificationMessageTemplate, serializeNotificationMessageTemplate, type NotificationMessageTemplate } from '../../models/notificationMessageTemplate'; import { createNotificationMessageTemplateCollectionResponseFromDiscriminatorValue } from '../../models/notificationMessageTemplateCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { NotificationMessageTemplateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { NotificationMessageTemplateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotificationMessageTemplatesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/notificationMessageTemplates/item/index.ts b/src/deviceManagement/notificationMessageTemplates/item/index.ts index 945e8c86bde..75004916db6 100644 --- a/src/deviceManagement/notificationMessageTemplates/item/index.ts +++ b/src/deviceManagement/notificationMessageTemplates/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createNotificationMessageTemplateFromDiscriminatorValue, deserializeIntoNotificationMessageTemplate, serializeNotificationMessageTemplate, type NotificationMessageTemplate } from '../../../models/notificationMessageTemplate'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { LocalizedNotificationMessagesRequestBuilder } from './localizedNotificationMessages/'; -import { SendTestMessageRequestBuilder } from './sendTestMessage/'; +import { LocalizedNotificationMessagesRequestBuilder } from './localizedNotificationMessages'; +import { SendTestMessageRequestBuilder } from './sendTestMessage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotificationMessageTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/count/index.ts b/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/count/index.ts index 098c0928568..cf6d5857c1d 100644 --- a/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/count/index.ts +++ b/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/index.ts b/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/index.ts index 516f2e97ace..f3ca7005c0d 100644 --- a/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/index.ts +++ b/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LocalizedNotificationMessageCollectionResponse } from '../../../../models/'; +import { type LocalizedNotificationMessageCollectionResponse } from '../../../../models'; import { createLocalizedNotificationMessageFromDiscriminatorValue, deserializeIntoLocalizedNotificationMessage, serializeLocalizedNotificationMessage, type LocalizedNotificationMessage } from '../../../../models/localizedNotificationMessage'; import { createLocalizedNotificationMessageCollectionResponseFromDiscriminatorValue } from '../../../../models/localizedNotificationMessageCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LocalizedNotificationMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LocalizedNotificationMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LocalizedNotificationMessagesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/item/index.ts b/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/item/index.ts index b3cc3fd9fd7..35f6175725b 100644 --- a/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/item/index.ts +++ b/src/deviceManagement/notificationMessageTemplates/item/localizedNotificationMessages/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLocalizedNotificationMessageFromDiscriminatorValue, deserializeIntoLocalizedNotificationMessage, serializeLocalizedNotificationMessage, type LocalizedNotificationMessage } from '../../../../../models/localizedNotificationMessage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/notificationMessageTemplates/item/sendTestMessage/index.ts b/src/deviceManagement/notificationMessageTemplates/item/sendTestMessage/index.ts index bbf1cdf6192..4a106604226 100644 --- a/src/deviceManagement/notificationMessageTemplates/item/sendTestMessage/index.ts +++ b/src/deviceManagement/notificationMessageTemplates/item/sendTestMessage/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/remoteAssistancePartners/count/index.ts b/src/deviceManagement/remoteAssistancePartners/count/index.ts index 54142b5380c..4266cf37091 100644 --- a/src/deviceManagement/remoteAssistancePartners/count/index.ts +++ b/src/deviceManagement/remoteAssistancePartners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/remoteAssistancePartners/index.ts b/src/deviceManagement/remoteAssistancePartners/index.ts index d6043e8d184..7e90385a51b 100644 --- a/src/deviceManagement/remoteAssistancePartners/index.ts +++ b/src/deviceManagement/remoteAssistancePartners/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RemoteAssistancePartnerCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type RemoteAssistancePartnerCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRemoteAssistancePartnerFromDiscriminatorValue, deserializeIntoRemoteAssistancePartner, serializeRemoteAssistancePartner, type RemoteAssistancePartner } from '../../models/remoteAssistancePartner'; import { createRemoteAssistancePartnerCollectionResponseFromDiscriminatorValue } from '../../models/remoteAssistancePartnerCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RemoteAssistancePartnerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RemoteAssistancePartnerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RemoteAssistancePartnersRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/remoteAssistancePartners/item/beginOnboarding/index.ts b/src/deviceManagement/remoteAssistancePartners/item/beginOnboarding/index.ts index 6dd2b179b85..800d4402a39 100644 --- a/src/deviceManagement/remoteAssistancePartners/item/beginOnboarding/index.ts +++ b/src/deviceManagement/remoteAssistancePartners/item/beginOnboarding/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/remoteAssistancePartners/item/disconnect/index.ts b/src/deviceManagement/remoteAssistancePartners/item/disconnect/index.ts index d3e6bc0a58c..8a488a53340 100644 --- a/src/deviceManagement/remoteAssistancePartners/item/disconnect/index.ts +++ b/src/deviceManagement/remoteAssistancePartners/item/disconnect/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/remoteAssistancePartners/item/index.ts b/src/deviceManagement/remoteAssistancePartners/item/index.ts index 174bea4eecc..1ee26debb2e 100644 --- a/src/deviceManagement/remoteAssistancePartners/item/index.ts +++ b/src/deviceManagement/remoteAssistancePartners/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRemoteAssistancePartnerFromDiscriminatorValue, deserializeIntoRemoteAssistancePartner, serializeRemoteAssistancePartner, type RemoteAssistancePartner } from '../../../models/remoteAssistancePartner'; -import { BeginOnboardingRequestBuilder } from './beginOnboarding/'; -import { DisconnectRequestBuilder } from './disconnect/'; +import { BeginOnboardingRequestBuilder } from './beginOnboarding'; +import { DisconnectRequestBuilder } from './disconnect'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RemoteAssistancePartnerItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/reports/exportJobs/count/index.ts b/src/deviceManagement/reports/exportJobs/count/index.ts index a227fb20db3..1cf45e3180f 100644 --- a/src/deviceManagement/reports/exportJobs/count/index.ts +++ b/src/deviceManagement/reports/exportJobs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/reports/exportJobs/index.ts b/src/deviceManagement/reports/exportJobs/index.ts index 0a388b68c5a..4f56d2357f0 100644 --- a/src/deviceManagement/reports/exportJobs/index.ts +++ b/src/deviceManagement/reports/exportJobs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceManagementExportJobCollectionResponse } from '../../../models/'; +import { type DeviceManagementExportJobCollectionResponse } from '../../../models'; import { createDeviceManagementExportJobFromDiscriminatorValue, deserializeIntoDeviceManagementExportJob, serializeDeviceManagementExportJob, type DeviceManagementExportJob } from '../../../models/deviceManagementExportJob'; import { createDeviceManagementExportJobCollectionResponseFromDiscriminatorValue } from '../../../models/deviceManagementExportJobCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceManagementExportJobItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceManagementExportJobItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExportJobsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/reports/exportJobs/item/index.ts b/src/deviceManagement/reports/exportJobs/item/index.ts index 3f190c1cafd..54d352c2fd9 100644 --- a/src/deviceManagement/reports/exportJobs/item/index.ts +++ b/src/deviceManagement/reports/exportJobs/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceManagementExportJobFromDiscriminatorValue, deserializeIntoDeviceManagementExportJob, serializeDeviceManagementExportJob, type DeviceManagementExportJob } from '../../../../models/deviceManagementExportJob'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/reports/getCachedReport/index.ts b/src/deviceManagement/reports/getCachedReport/index.ts index 1df3da9114a..ce6012a6436 100644 --- a/src/deviceManagement/reports/getCachedReport/index.ts +++ b/src/deviceManagement/reports/getCachedReport/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetCachedReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -64,58 +62,5 @@ export function serializeGetCachedReportPostRequestBody(writer: SerializationWri writer.writeNumberValue("top", getCachedReportPostRequestBody.top); writer.writeAdditionalData(getCachedReportPostRequestBody.additionalData); } -/** - * Provides operations to call the getCachedReport method. - */ -export class GetCachedReportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetCachedReportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/reports/getCachedReport"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ArrayBuffer - * @see {@link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagementreports-getcachedreport?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetCachedReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendPrimitiveAsync(requestInfo, "ArrayBuffer", errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetCachedReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetCachedReportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getCachedReportRequestBuilder - */ - public withUrl(rawUrl: string) : GetCachedReportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetCachedReportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/reports/getCompliancePolicyNonComplianceReport/index.ts b/src/deviceManagement/reports/getCompliancePolicyNonComplianceReport/index.ts index 801c53547db..104619d9c40 100644 --- a/src/deviceManagement/reports/getCompliancePolicyNonComplianceReport/index.ts +++ b/src/deviceManagement/reports/getCompliancePolicyNonComplianceReport/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetCompliancePolicyNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -76,58 +74,5 @@ export function serializeGetCompliancePolicyNonComplianceReportPostRequestBody(w writer.writeNumberValue("top", getCompliancePolicyNonComplianceReportPostRequestBody.top); writer.writeAdditionalData(getCompliancePolicyNonComplianceReportPostRequestBody.additionalData); } -/** - * Provides operations to call the getCompliancePolicyNonComplianceReport method. - */ -export class GetCompliancePolicyNonComplianceReportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetCompliancePolicyNonComplianceReportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/reports/getCompliancePolicyNonComplianceReport"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ArrayBuffer - * @see {@link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagementreports-getcompliancepolicynoncompliancereport?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetCompliancePolicyNonComplianceReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendPrimitiveAsync(requestInfo, "ArrayBuffer", errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetCompliancePolicyNonComplianceReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetCompliancePolicyNonComplianceReportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getCompliancePolicyNonComplianceReportRequestBuilder - */ - public withUrl(rawUrl: string) : GetCompliancePolicyNonComplianceReportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetCompliancePolicyNonComplianceReportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/reports/getCompliancePolicyNonComplianceSummaryReport/index.ts b/src/deviceManagement/reports/getCompliancePolicyNonComplianceSummaryReport/index.ts index 6bd94d47f79..3f910f067c9 100644 --- a/src/deviceManagement/reports/getCompliancePolicyNonComplianceSummaryReport/index.ts +++ b/src/deviceManagement/reports/getCompliancePolicyNonComplianceSummaryReport/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetCompliancePolicyNonComplianceSummaryReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -76,58 +74,5 @@ export function serializeGetCompliancePolicyNonComplianceSummaryReportPostReques writer.writeNumberValue("top", getCompliancePolicyNonComplianceSummaryReportPostRequestBody.top); writer.writeAdditionalData(getCompliancePolicyNonComplianceSummaryReportPostRequestBody.additionalData); } -/** - * Provides operations to call the getCompliancePolicyNonComplianceSummaryReport method. - */ -export class GetCompliancePolicyNonComplianceSummaryReportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetCompliancePolicyNonComplianceSummaryReportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/reports/getCompliancePolicyNonComplianceSummaryReport"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ArrayBuffer - * @see {@link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagementreports-getcompliancepolicynoncompliancesummaryreport?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetCompliancePolicyNonComplianceSummaryReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendPrimitiveAsync(requestInfo, "ArrayBuffer", errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetCompliancePolicyNonComplianceSummaryReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetCompliancePolicyNonComplianceSummaryReportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getCompliancePolicyNonComplianceSummaryReportRequestBuilder - */ - public withUrl(rawUrl: string) : GetCompliancePolicyNonComplianceSummaryReportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetCompliancePolicyNonComplianceSummaryReportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/reports/getComplianceSettingNonComplianceReport/index.ts b/src/deviceManagement/reports/getComplianceSettingNonComplianceReport/index.ts index 48426a7510f..9f36b9d4626 100644 --- a/src/deviceManagement/reports/getComplianceSettingNonComplianceReport/index.ts +++ b/src/deviceManagement/reports/getComplianceSettingNonComplianceReport/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetComplianceSettingNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -76,58 +74,5 @@ export function serializeGetComplianceSettingNonComplianceReportPostRequestBody( writer.writeNumberValue("top", getComplianceSettingNonComplianceReportPostRequestBody.top); writer.writeAdditionalData(getComplianceSettingNonComplianceReportPostRequestBody.additionalData); } -/** - * Provides operations to call the getComplianceSettingNonComplianceReport method. - */ -export class GetComplianceSettingNonComplianceReportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetComplianceSettingNonComplianceReportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/reports/getComplianceSettingNonComplianceReport"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ArrayBuffer - * @see {@link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagementreports-getcompliancesettingnoncompliancereport?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetComplianceSettingNonComplianceReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendPrimitiveAsync(requestInfo, "ArrayBuffer", errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetComplianceSettingNonComplianceReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetComplianceSettingNonComplianceReportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getComplianceSettingNonComplianceReportRequestBuilder - */ - public withUrl(rawUrl: string) : GetComplianceSettingNonComplianceReportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetComplianceSettingNonComplianceReportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/reports/getConfigurationPolicyNonComplianceReport/getConfigurationPolicyNonComplianceReportPostRequestBody.ts b/src/deviceManagement/reports/getConfigurationPolicyNonComplianceReport/getConfigurationPolicyNonComplianceReportPostRequestBody.ts deleted file mode 100644 index 24dab78a2d3..00000000000 --- a/src/deviceManagement/reports/getConfigurationPolicyNonComplianceReport/getConfigurationPolicyNonComplianceReportPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetConfigurationPolicyNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetConfigurationPolicyNonComplianceReportPostRequestBody; -} -export function deserializeIntoGetConfigurationPolicyNonComplianceReportPostRequestBody(getConfigurationPolicyNonComplianceReportPostRequestBody: GetConfigurationPolicyNonComplianceReportPostRequestBody | undefined = {} as GetConfigurationPolicyNonComplianceReportPostRequestBody) : Record void> { - return { - "filter": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.search = n.getStringValue(); }, - "select": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetConfigurationPolicyNonComplianceReportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetConfigurationPolicyNonComplianceReportPostRequestBody(writer: SerializationWriter, getConfigurationPolicyNonComplianceReportPostRequestBody: GetConfigurationPolicyNonComplianceReportPostRequestBody | undefined = {} as GetConfigurationPolicyNonComplianceReportPostRequestBody) : void { - writer.writeStringValue("filter", getConfigurationPolicyNonComplianceReportPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getConfigurationPolicyNonComplianceReportPostRequestBody.groupBy); - writer.writeStringValue("name", getConfigurationPolicyNonComplianceReportPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getConfigurationPolicyNonComplianceReportPostRequestBody.orderBy); - writer.writeStringValue("search", getConfigurationPolicyNonComplianceReportPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getConfigurationPolicyNonComplianceReportPostRequestBody.select); - writer.writeStringValue("sessionId", getConfigurationPolicyNonComplianceReportPostRequestBody.sessionId); - writer.writeNumberValue("skip", getConfigurationPolicyNonComplianceReportPostRequestBody.skip); - writer.writeNumberValue("top", getConfigurationPolicyNonComplianceReportPostRequestBody.top); - writer.writeAdditionalData(getConfigurationPolicyNonComplianceReportPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getConfigurationPolicyNonComplianceReport/index.ts b/src/deviceManagement/reports/getConfigurationPolicyNonComplianceReport/index.ts index 50f4dec226c..8807e8a2292 100644 --- a/src/deviceManagement/reports/getConfigurationPolicyNonComplianceReport/index.ts +++ b/src/deviceManagement/reports/getConfigurationPolicyNonComplianceReport/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetConfigurationPolicyNonComplianceReportPostRequestBody, serializeGetConfigurationPolicyNonComplianceReportPostRequestBody, type GetConfigurationPolicyNonComplianceReportPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetConfigurationPolicyNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetConfigurationPolicyNonComplianceReportPostRequestBody; +} +export function deserializeIntoGetConfigurationPolicyNonComplianceReportPostRequestBody(getConfigurationPolicyNonComplianceReportPostRequestBody: GetConfigurationPolicyNonComplianceReportPostRequestBody | undefined = {} as GetConfigurationPolicyNonComplianceReportPostRequestBody) : Record void> { + return { + "filter": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.search = n.getStringValue(); }, + "select": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getConfigurationPolicyNonComplianceReportPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetConfigurationPolicyNonComplianceReportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetConfigurationPolicyNonComplianceReportPostRequestBody(writer: SerializationWriter, getConfigurationPolicyNonComplianceReportPostRequestBody: GetConfigurationPolicyNonComplianceReportPostRequestBody | undefined = {} as GetConfigurationPolicyNonComplianceReportPostRequestBody) : void { + writer.writeStringValue("filter", getConfigurationPolicyNonComplianceReportPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getConfigurationPolicyNonComplianceReportPostRequestBody.groupBy); + writer.writeStringValue("name", getConfigurationPolicyNonComplianceReportPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getConfigurationPolicyNonComplianceReportPostRequestBody.orderBy); + writer.writeStringValue("search", getConfigurationPolicyNonComplianceReportPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getConfigurationPolicyNonComplianceReportPostRequestBody.select); + writer.writeStringValue("sessionId", getConfigurationPolicyNonComplianceReportPostRequestBody.sessionId); + writer.writeNumberValue("skip", getConfigurationPolicyNonComplianceReportPostRequestBody.skip); + writer.writeNumberValue("top", getConfigurationPolicyNonComplianceReportPostRequestBody.top); + writer.writeAdditionalData(getConfigurationPolicyNonComplianceReportPostRequestBody.additionalData); +} /** * Provides operations to call the getConfigurationPolicyNonComplianceReport method. */ diff --git a/src/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport/getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.ts b/src/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport/getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.ts deleted file mode 100644 index 7a0dccfb8c4..00000000000 --- a/src/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport/getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetConfigurationPolicyNonComplianceSummaryReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetConfigurationPolicyNonComplianceSummaryReportPostRequestBody; -} -export function deserializeIntoGetConfigurationPolicyNonComplianceSummaryReportPostRequestBody(getConfigurationPolicyNonComplianceSummaryReportPostRequestBody: GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody | undefined = {} as GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody) : Record void> { - return { - "filter": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.search = n.getStringValue(); }, - "select": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetConfigurationPolicyNonComplianceSummaryReportPostRequestBody(writer: SerializationWriter, getConfigurationPolicyNonComplianceSummaryReportPostRequestBody: GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody | undefined = {} as GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody) : void { - writer.writeStringValue("filter", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.groupBy); - writer.writeStringValue("name", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.orderBy); - writer.writeStringValue("search", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.select); - writer.writeStringValue("sessionId", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.sessionId); - writer.writeNumberValue("skip", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.skip); - writer.writeNumberValue("top", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.top); - writer.writeAdditionalData(getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport/index.ts b/src/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport/index.ts index 10770e7bbcb..1441e27ad67 100644 --- a/src/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport/index.ts +++ b/src/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetConfigurationPolicyNonComplianceSummaryReportPostRequestBody, serializeGetConfigurationPolicyNonComplianceSummaryReportPostRequestBody, type GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetConfigurationPolicyNonComplianceSummaryReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetConfigurationPolicyNonComplianceSummaryReportPostRequestBody; +} +export function deserializeIntoGetConfigurationPolicyNonComplianceSummaryReportPostRequestBody(getConfigurationPolicyNonComplianceSummaryReportPostRequestBody: GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody | undefined = {} as GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody) : Record void> { + return { + "filter": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.search = n.getStringValue(); }, + "select": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetConfigurationPolicyNonComplianceSummaryReportPostRequestBody(writer: SerializationWriter, getConfigurationPolicyNonComplianceSummaryReportPostRequestBody: GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody | undefined = {} as GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody) : void { + writer.writeStringValue("filter", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.groupBy); + writer.writeStringValue("name", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.orderBy); + writer.writeStringValue("search", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.select); + writer.writeStringValue("sessionId", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.sessionId); + writer.writeNumberValue("skip", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.skip); + writer.writeNumberValue("top", getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.top); + writer.writeAdditionalData(getConfigurationPolicyNonComplianceSummaryReportPostRequestBody.additionalData); +} /** * Provides operations to call the getConfigurationPolicyNonComplianceSummaryReport method. */ diff --git a/src/deviceManagement/reports/getConfigurationSettingNonComplianceReport/getConfigurationSettingNonComplianceReportPostRequestBody.ts b/src/deviceManagement/reports/getConfigurationSettingNonComplianceReport/getConfigurationSettingNonComplianceReportPostRequestBody.ts deleted file mode 100644 index 8c509d78bcb..00000000000 --- a/src/deviceManagement/reports/getConfigurationSettingNonComplianceReport/getConfigurationSettingNonComplianceReportPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetConfigurationSettingNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetConfigurationSettingNonComplianceReportPostRequestBody; -} -export function deserializeIntoGetConfigurationSettingNonComplianceReportPostRequestBody(getConfigurationSettingNonComplianceReportPostRequestBody: GetConfigurationSettingNonComplianceReportPostRequestBody | undefined = {} as GetConfigurationSettingNonComplianceReportPostRequestBody) : Record void> { - return { - "filter": n => { getConfigurationSettingNonComplianceReportPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getConfigurationSettingNonComplianceReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getConfigurationSettingNonComplianceReportPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getConfigurationSettingNonComplianceReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getConfigurationSettingNonComplianceReportPostRequestBody.search = n.getStringValue(); }, - "select": n => { getConfigurationSettingNonComplianceReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getConfigurationSettingNonComplianceReportPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getConfigurationSettingNonComplianceReportPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getConfigurationSettingNonComplianceReportPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetConfigurationSettingNonComplianceReportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetConfigurationSettingNonComplianceReportPostRequestBody(writer: SerializationWriter, getConfigurationSettingNonComplianceReportPostRequestBody: GetConfigurationSettingNonComplianceReportPostRequestBody | undefined = {} as GetConfigurationSettingNonComplianceReportPostRequestBody) : void { - writer.writeStringValue("filter", getConfigurationSettingNonComplianceReportPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getConfigurationSettingNonComplianceReportPostRequestBody.groupBy); - writer.writeStringValue("name", getConfigurationSettingNonComplianceReportPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getConfigurationSettingNonComplianceReportPostRequestBody.orderBy); - writer.writeStringValue("search", getConfigurationSettingNonComplianceReportPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getConfigurationSettingNonComplianceReportPostRequestBody.select); - writer.writeStringValue("sessionId", getConfigurationSettingNonComplianceReportPostRequestBody.sessionId); - writer.writeNumberValue("skip", getConfigurationSettingNonComplianceReportPostRequestBody.skip); - writer.writeNumberValue("top", getConfigurationSettingNonComplianceReportPostRequestBody.top); - writer.writeAdditionalData(getConfigurationSettingNonComplianceReportPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getConfigurationSettingNonComplianceReport/index.ts b/src/deviceManagement/reports/getConfigurationSettingNonComplianceReport/index.ts index f8929481e0d..fd9db4e0ba6 100644 --- a/src/deviceManagement/reports/getConfigurationSettingNonComplianceReport/index.ts +++ b/src/deviceManagement/reports/getConfigurationSettingNonComplianceReport/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetConfigurationSettingNonComplianceReportPostRequestBody, serializeGetConfigurationSettingNonComplianceReportPostRequestBody, type GetConfigurationSettingNonComplianceReportPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetConfigurationSettingNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetConfigurationSettingNonComplianceReportPostRequestBody; +} +export function deserializeIntoGetConfigurationSettingNonComplianceReportPostRequestBody(getConfigurationSettingNonComplianceReportPostRequestBody: GetConfigurationSettingNonComplianceReportPostRequestBody | undefined = {} as GetConfigurationSettingNonComplianceReportPostRequestBody) : Record void> { + return { + "filter": n => { getConfigurationSettingNonComplianceReportPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getConfigurationSettingNonComplianceReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getConfigurationSettingNonComplianceReportPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getConfigurationSettingNonComplianceReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getConfigurationSettingNonComplianceReportPostRequestBody.search = n.getStringValue(); }, + "select": n => { getConfigurationSettingNonComplianceReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getConfigurationSettingNonComplianceReportPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getConfigurationSettingNonComplianceReportPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getConfigurationSettingNonComplianceReportPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetConfigurationSettingNonComplianceReportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetConfigurationSettingNonComplianceReportPostRequestBody(writer: SerializationWriter, getConfigurationSettingNonComplianceReportPostRequestBody: GetConfigurationSettingNonComplianceReportPostRequestBody | undefined = {} as GetConfigurationSettingNonComplianceReportPostRequestBody) : void { + writer.writeStringValue("filter", getConfigurationSettingNonComplianceReportPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getConfigurationSettingNonComplianceReportPostRequestBody.groupBy); + writer.writeStringValue("name", getConfigurationSettingNonComplianceReportPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getConfigurationSettingNonComplianceReportPostRequestBody.orderBy); + writer.writeStringValue("search", getConfigurationSettingNonComplianceReportPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getConfigurationSettingNonComplianceReportPostRequestBody.select); + writer.writeStringValue("sessionId", getConfigurationSettingNonComplianceReportPostRequestBody.sessionId); + writer.writeNumberValue("skip", getConfigurationSettingNonComplianceReportPostRequestBody.skip); + writer.writeNumberValue("top", getConfigurationSettingNonComplianceReportPostRequestBody.top); + writer.writeAdditionalData(getConfigurationSettingNonComplianceReportPostRequestBody.additionalData); +} /** * Provides operations to call the getConfigurationSettingNonComplianceReport method. */ diff --git a/src/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles/getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.ts b/src/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles/getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.ts deleted file mode 100644 index 3a254d104a8..00000000000 --- a/src/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles/getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody; -} -export function deserializeIntoGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody(getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody: GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody | undefined = {} as GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody) : Record void> { - return { - "filter": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.search = n.getStringValue(); }, - "select": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody(writer: SerializationWriter, getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody: GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody | undefined = {} as GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody) : void { - writer.writeStringValue("filter", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.groupBy); - writer.writeStringValue("name", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.orderBy); - writer.writeStringValue("search", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.select); - writer.writeStringValue("sessionId", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.sessionId); - writer.writeNumberValue("skip", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.skip); - writer.writeNumberValue("top", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.top); - writer.writeAdditionalData(getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles/index.ts b/src/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles/index.ts index 42fe2665699..fcec95791dc 100644 --- a/src/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles/index.ts +++ b/src/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody, serializeGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody, type GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody; +} +export function deserializeIntoGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody(getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody: GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody | undefined = {} as GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody) : Record void> { + return { + "filter": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.search = n.getStringValue(); }, + "select": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody(writer: SerializationWriter, getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody: GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody | undefined = {} as GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody) : void { + writer.writeStringValue("filter", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.groupBy); + writer.writeStringValue("name", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.orderBy); + writer.writeStringValue("search", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.select); + writer.writeStringValue("sessionId", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.sessionId); + writer.writeNumberValue("skip", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.skip); + writer.writeNumberValue("top", getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.top); + writer.writeAdditionalData(getDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.additionalData); +} /** * Provides operations to call the getDeviceManagementIntentPerSettingContributingProfiles method. */ diff --git a/src/deviceManagement/reports/getDeviceManagementIntentSettingsReport/index.ts b/src/deviceManagement/reports/getDeviceManagementIntentSettingsReport/index.ts index ada22f5bc3c..bff3a552c55 100644 --- a/src/deviceManagement/reports/getDeviceManagementIntentSettingsReport/index.ts +++ b/src/deviceManagement/reports/getDeviceManagementIntentSettingsReport/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetDeviceManagementIntentSettingsReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -76,58 +74,5 @@ export function serializeGetDeviceManagementIntentSettingsReportPostRequestBody( writer.writeNumberValue("top", getDeviceManagementIntentSettingsReportPostRequestBody.top); writer.writeAdditionalData(getDeviceManagementIntentSettingsReportPostRequestBody.additionalData); } -/** - * Provides operations to call the getDeviceManagementIntentSettingsReport method. - */ -export class GetDeviceManagementIntentSettingsReportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetDeviceManagementIntentSettingsReportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/reports/getDeviceManagementIntentSettingsReport"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ArrayBuffer - * @see {@link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagementreports-getdevicemanagementintentsettingsreport?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetDeviceManagementIntentSettingsReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendPrimitiveAsync(requestInfo, "ArrayBuffer", errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetDeviceManagementIntentSettingsReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetDeviceManagementIntentSettingsReportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getDeviceManagementIntentSettingsReportRequestBuilder - */ - public withUrl(rawUrl: string) : GetDeviceManagementIntentSettingsReportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetDeviceManagementIntentSettingsReportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/reports/getDeviceNonComplianceReport/index.ts b/src/deviceManagement/reports/getDeviceNonComplianceReport/index.ts index 6c7be832781..b4b55229952 100644 --- a/src/deviceManagement/reports/getDeviceNonComplianceReport/index.ts +++ b/src/deviceManagement/reports/getDeviceNonComplianceReport/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetDeviceNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -76,58 +74,5 @@ export function serializeGetDeviceNonComplianceReportPostRequestBody(writer: Ser writer.writeNumberValue("top", getDeviceNonComplianceReportPostRequestBody.top); writer.writeAdditionalData(getDeviceNonComplianceReportPostRequestBody.additionalData); } -/** - * Provides operations to call the getDeviceNonComplianceReport method. - */ -export class GetDeviceNonComplianceReportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetDeviceNonComplianceReportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/reports/getDeviceNonComplianceReport"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ArrayBuffer - * @see {@link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagementreports-getdevicenoncompliancereport?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetDeviceNonComplianceReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendPrimitiveAsync(requestInfo, "ArrayBuffer", errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetDeviceNonComplianceReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetDeviceNonComplianceReportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getDeviceNonComplianceReportRequestBuilder - */ - public withUrl(rawUrl: string) : GetDeviceNonComplianceReportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetDeviceNonComplianceReportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport/getDevicesWithoutCompliancePolicyReportPostRequestBody.ts b/src/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport/getDevicesWithoutCompliancePolicyReportPostRequestBody.ts deleted file mode 100644 index 84c1e3d8f9e..00000000000 --- a/src/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport/getDevicesWithoutCompliancePolicyReportPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetDevicesWithoutCompliancePolicyReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetDevicesWithoutCompliancePolicyReportPostRequestBody; -} -export function deserializeIntoGetDevicesWithoutCompliancePolicyReportPostRequestBody(getDevicesWithoutCompliancePolicyReportPostRequestBody: GetDevicesWithoutCompliancePolicyReportPostRequestBody | undefined = {} as GetDevicesWithoutCompliancePolicyReportPostRequestBody) : Record void> { - return { - "filter": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.search = n.getStringValue(); }, - "select": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetDevicesWithoutCompliancePolicyReportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetDevicesWithoutCompliancePolicyReportPostRequestBody(writer: SerializationWriter, getDevicesWithoutCompliancePolicyReportPostRequestBody: GetDevicesWithoutCompliancePolicyReportPostRequestBody | undefined = {} as GetDevicesWithoutCompliancePolicyReportPostRequestBody) : void { - writer.writeStringValue("filter", getDevicesWithoutCompliancePolicyReportPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getDevicesWithoutCompliancePolicyReportPostRequestBody.groupBy); - writer.writeStringValue("name", getDevicesWithoutCompliancePolicyReportPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getDevicesWithoutCompliancePolicyReportPostRequestBody.orderBy); - writer.writeStringValue("search", getDevicesWithoutCompliancePolicyReportPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getDevicesWithoutCompliancePolicyReportPostRequestBody.select); - writer.writeStringValue("sessionId", getDevicesWithoutCompliancePolicyReportPostRequestBody.sessionId); - writer.writeNumberValue("skip", getDevicesWithoutCompliancePolicyReportPostRequestBody.skip); - writer.writeNumberValue("top", getDevicesWithoutCompliancePolicyReportPostRequestBody.top); - writer.writeAdditionalData(getDevicesWithoutCompliancePolicyReportPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport/index.ts b/src/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport/index.ts index 955d48c9c29..645899f903b 100644 --- a/src/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport/index.ts +++ b/src/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetDevicesWithoutCompliancePolicyReportPostRequestBody, serializeGetDevicesWithoutCompliancePolicyReportPostRequestBody, type GetDevicesWithoutCompliancePolicyReportPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetDevicesWithoutCompliancePolicyReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetDevicesWithoutCompliancePolicyReportPostRequestBody; +} +export function deserializeIntoGetDevicesWithoutCompliancePolicyReportPostRequestBody(getDevicesWithoutCompliancePolicyReportPostRequestBody: GetDevicesWithoutCompliancePolicyReportPostRequestBody | undefined = {} as GetDevicesWithoutCompliancePolicyReportPostRequestBody) : Record void> { + return { + "filter": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.search = n.getStringValue(); }, + "select": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getDevicesWithoutCompliancePolicyReportPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetDevicesWithoutCompliancePolicyReportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetDevicesWithoutCompliancePolicyReportPostRequestBody(writer: SerializationWriter, getDevicesWithoutCompliancePolicyReportPostRequestBody: GetDevicesWithoutCompliancePolicyReportPostRequestBody | undefined = {} as GetDevicesWithoutCompliancePolicyReportPostRequestBody) : void { + writer.writeStringValue("filter", getDevicesWithoutCompliancePolicyReportPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getDevicesWithoutCompliancePolicyReportPostRequestBody.groupBy); + writer.writeStringValue("name", getDevicesWithoutCompliancePolicyReportPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getDevicesWithoutCompliancePolicyReportPostRequestBody.orderBy); + writer.writeStringValue("search", getDevicesWithoutCompliancePolicyReportPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getDevicesWithoutCompliancePolicyReportPostRequestBody.select); + writer.writeStringValue("sessionId", getDevicesWithoutCompliancePolicyReportPostRequestBody.sessionId); + writer.writeNumberValue("skip", getDevicesWithoutCompliancePolicyReportPostRequestBody.skip); + writer.writeNumberValue("top", getDevicesWithoutCompliancePolicyReportPostRequestBody.top); + writer.writeAdditionalData(getDevicesWithoutCompliancePolicyReportPostRequestBody.additionalData); +} /** * Provides operations to call the getDevicesWithoutCompliancePolicyReport method. */ diff --git a/src/deviceManagement/reports/getHistoricalReport/getHistoricalReportPostRequestBody.ts b/src/deviceManagement/reports/getHistoricalReport/getHistoricalReportPostRequestBody.ts deleted file mode 100644 index f91925cdeb7..00000000000 --- a/src/deviceManagement/reports/getHistoricalReport/getHistoricalReportPostRequestBody.ts +++ /dev/null @@ -1,72 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetHistoricalReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetHistoricalReportPostRequestBody; -} -export function deserializeIntoGetHistoricalReportPostRequestBody(getHistoricalReportPostRequestBody: GetHistoricalReportPostRequestBody | undefined = {} as GetHistoricalReportPostRequestBody) : Record void> { - return { - "filter": n => { getHistoricalReportPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getHistoricalReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getHistoricalReportPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getHistoricalReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getHistoricalReportPostRequestBody.search = n.getStringValue(); }, - "select": n => { getHistoricalReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "skip": n => { getHistoricalReportPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getHistoricalReportPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetHistoricalReportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetHistoricalReportPostRequestBody(writer: SerializationWriter, getHistoricalReportPostRequestBody: GetHistoricalReportPostRequestBody | undefined = {} as GetHistoricalReportPostRequestBody) : void { - writer.writeStringValue("filter", getHistoricalReportPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getHistoricalReportPostRequestBody.groupBy); - writer.writeStringValue("name", getHistoricalReportPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getHistoricalReportPostRequestBody.orderBy); - writer.writeStringValue("search", getHistoricalReportPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getHistoricalReportPostRequestBody.select); - writer.writeNumberValue("skip", getHistoricalReportPostRequestBody.skip); - writer.writeNumberValue("top", getHistoricalReportPostRequestBody.top); - writer.writeAdditionalData(getHistoricalReportPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getHistoricalReport/index.ts b/src/deviceManagement/reports/getHistoricalReport/index.ts index 4c453f0ee12..9c40f84bc4d 100644 --- a/src/deviceManagement/reports/getHistoricalReport/index.ts +++ b/src/deviceManagement/reports/getHistoricalReport/index.ts @@ -1,11 +1,75 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetHistoricalReportPostRequestBody, serializeGetHistoricalReportPostRequestBody, type GetHistoricalReportPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetHistoricalReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetHistoricalReportPostRequestBody; +} +export function deserializeIntoGetHistoricalReportPostRequestBody(getHistoricalReportPostRequestBody: GetHistoricalReportPostRequestBody | undefined = {} as GetHistoricalReportPostRequestBody) : Record void> { + return { + "filter": n => { getHistoricalReportPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getHistoricalReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getHistoricalReportPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getHistoricalReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getHistoricalReportPostRequestBody.search = n.getStringValue(); }, + "select": n => { getHistoricalReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "skip": n => { getHistoricalReportPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getHistoricalReportPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetHistoricalReportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetHistoricalReportPostRequestBody(writer: SerializationWriter, getHistoricalReportPostRequestBody: GetHistoricalReportPostRequestBody | undefined = {} as GetHistoricalReportPostRequestBody) : void { + writer.writeStringValue("filter", getHistoricalReportPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getHistoricalReportPostRequestBody.groupBy); + writer.writeStringValue("name", getHistoricalReportPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getHistoricalReportPostRequestBody.orderBy); + writer.writeStringValue("search", getHistoricalReportPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getHistoricalReportPostRequestBody.select); + writer.writeNumberValue("skip", getHistoricalReportPostRequestBody.skip); + writer.writeNumberValue("top", getHistoricalReportPostRequestBody.top); + writer.writeAdditionalData(getHistoricalReportPostRequestBody.additionalData); +} /** * Provides operations to call the getHistoricalReport method. */ diff --git a/src/deviceManagement/reports/getNoncompliantDevicesAndSettingsReport/index.ts b/src/deviceManagement/reports/getNoncompliantDevicesAndSettingsReport/index.ts index 020970595bb..b4857d518fe 100644 --- a/src/deviceManagement/reports/getNoncompliantDevicesAndSettingsReport/index.ts +++ b/src/deviceManagement/reports/getNoncompliantDevicesAndSettingsReport/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetNoncompliantDevicesAndSettingsReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -76,58 +74,5 @@ export function serializeGetNoncompliantDevicesAndSettingsReportPostRequestBody( writer.writeNumberValue("top", getNoncompliantDevicesAndSettingsReportPostRequestBody.top); writer.writeAdditionalData(getNoncompliantDevicesAndSettingsReportPostRequestBody.additionalData); } -/** - * Provides operations to call the getNoncompliantDevicesAndSettingsReport method. - */ -export class GetNoncompliantDevicesAndSettingsReportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetNoncompliantDevicesAndSettingsReportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/reports/getNoncompliantDevicesAndSettingsReport"); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ArrayBuffer - * @see {@link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagementreports-getnoncompliantdevicesandsettingsreport?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetNoncompliantDevicesAndSettingsReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendPrimitiveAsync(requestInfo, "ArrayBuffer", errorMapping); - }; - /** - * Not yet documented - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetNoncompliantDevicesAndSettingsReportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetNoncompliantDevicesAndSettingsReportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getNoncompliantDevicesAndSettingsReportRequestBuilder - */ - public withUrl(rawUrl: string) : GetNoncompliantDevicesAndSettingsReportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetNoncompliantDevicesAndSettingsReportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/reports/getPolicyNonComplianceMetadata/getPolicyNonComplianceMetadataPostRequestBody.ts b/src/deviceManagement/reports/getPolicyNonComplianceMetadata/getPolicyNonComplianceMetadataPostRequestBody.ts deleted file mode 100644 index 2962917a966..00000000000 --- a/src/deviceManagement/reports/getPolicyNonComplianceMetadata/getPolicyNonComplianceMetadataPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetPolicyNonComplianceMetadataPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetPolicyNonComplianceMetadataPostRequestBody; -} -export function deserializeIntoGetPolicyNonComplianceMetadataPostRequestBody(getPolicyNonComplianceMetadataPostRequestBody: GetPolicyNonComplianceMetadataPostRequestBody | undefined = {} as GetPolicyNonComplianceMetadataPostRequestBody) : Record void> { - return { - "filter": n => { getPolicyNonComplianceMetadataPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getPolicyNonComplianceMetadataPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getPolicyNonComplianceMetadataPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getPolicyNonComplianceMetadataPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getPolicyNonComplianceMetadataPostRequestBody.search = n.getStringValue(); }, - "select": n => { getPolicyNonComplianceMetadataPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getPolicyNonComplianceMetadataPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getPolicyNonComplianceMetadataPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getPolicyNonComplianceMetadataPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetPolicyNonComplianceMetadataPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetPolicyNonComplianceMetadataPostRequestBody(writer: SerializationWriter, getPolicyNonComplianceMetadataPostRequestBody: GetPolicyNonComplianceMetadataPostRequestBody | undefined = {} as GetPolicyNonComplianceMetadataPostRequestBody) : void { - writer.writeStringValue("filter", getPolicyNonComplianceMetadataPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getPolicyNonComplianceMetadataPostRequestBody.groupBy); - writer.writeStringValue("name", getPolicyNonComplianceMetadataPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getPolicyNonComplianceMetadataPostRequestBody.orderBy); - writer.writeStringValue("search", getPolicyNonComplianceMetadataPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getPolicyNonComplianceMetadataPostRequestBody.select); - writer.writeStringValue("sessionId", getPolicyNonComplianceMetadataPostRequestBody.sessionId); - writer.writeNumberValue("skip", getPolicyNonComplianceMetadataPostRequestBody.skip); - writer.writeNumberValue("top", getPolicyNonComplianceMetadataPostRequestBody.top); - writer.writeAdditionalData(getPolicyNonComplianceMetadataPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getPolicyNonComplianceMetadata/index.ts b/src/deviceManagement/reports/getPolicyNonComplianceMetadata/index.ts index a11c93ad039..7ef8bbbbdb3 100644 --- a/src/deviceManagement/reports/getPolicyNonComplianceMetadata/index.ts +++ b/src/deviceManagement/reports/getPolicyNonComplianceMetadata/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetPolicyNonComplianceMetadataPostRequestBody, serializeGetPolicyNonComplianceMetadataPostRequestBody, type GetPolicyNonComplianceMetadataPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetPolicyNonComplianceMetadataPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetPolicyNonComplianceMetadataPostRequestBody; +} +export function deserializeIntoGetPolicyNonComplianceMetadataPostRequestBody(getPolicyNonComplianceMetadataPostRequestBody: GetPolicyNonComplianceMetadataPostRequestBody | undefined = {} as GetPolicyNonComplianceMetadataPostRequestBody) : Record void> { + return { + "filter": n => { getPolicyNonComplianceMetadataPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getPolicyNonComplianceMetadataPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getPolicyNonComplianceMetadataPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getPolicyNonComplianceMetadataPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getPolicyNonComplianceMetadataPostRequestBody.search = n.getStringValue(); }, + "select": n => { getPolicyNonComplianceMetadataPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getPolicyNonComplianceMetadataPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getPolicyNonComplianceMetadataPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getPolicyNonComplianceMetadataPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetPolicyNonComplianceMetadataPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetPolicyNonComplianceMetadataPostRequestBody(writer: SerializationWriter, getPolicyNonComplianceMetadataPostRequestBody: GetPolicyNonComplianceMetadataPostRequestBody | undefined = {} as GetPolicyNonComplianceMetadataPostRequestBody) : void { + writer.writeStringValue("filter", getPolicyNonComplianceMetadataPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getPolicyNonComplianceMetadataPostRequestBody.groupBy); + writer.writeStringValue("name", getPolicyNonComplianceMetadataPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getPolicyNonComplianceMetadataPostRequestBody.orderBy); + writer.writeStringValue("search", getPolicyNonComplianceMetadataPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getPolicyNonComplianceMetadataPostRequestBody.select); + writer.writeStringValue("sessionId", getPolicyNonComplianceMetadataPostRequestBody.sessionId); + writer.writeNumberValue("skip", getPolicyNonComplianceMetadataPostRequestBody.skip); + writer.writeNumberValue("top", getPolicyNonComplianceMetadataPostRequestBody.top); + writer.writeAdditionalData(getPolicyNonComplianceMetadataPostRequestBody.additionalData); +} /** * Provides operations to call the getPolicyNonComplianceMetadata method. */ diff --git a/src/deviceManagement/reports/getPolicyNonComplianceReport/getPolicyNonComplianceReportPostRequestBody.ts b/src/deviceManagement/reports/getPolicyNonComplianceReport/getPolicyNonComplianceReportPostRequestBody.ts deleted file mode 100644 index eb2cb8f05a4..00000000000 --- a/src/deviceManagement/reports/getPolicyNonComplianceReport/getPolicyNonComplianceReportPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetPolicyNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetPolicyNonComplianceReportPostRequestBody; -} -export function deserializeIntoGetPolicyNonComplianceReportPostRequestBody(getPolicyNonComplianceReportPostRequestBody: GetPolicyNonComplianceReportPostRequestBody | undefined = {} as GetPolicyNonComplianceReportPostRequestBody) : Record void> { - return { - "filter": n => { getPolicyNonComplianceReportPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getPolicyNonComplianceReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getPolicyNonComplianceReportPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getPolicyNonComplianceReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getPolicyNonComplianceReportPostRequestBody.search = n.getStringValue(); }, - "select": n => { getPolicyNonComplianceReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getPolicyNonComplianceReportPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getPolicyNonComplianceReportPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getPolicyNonComplianceReportPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetPolicyNonComplianceReportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetPolicyNonComplianceReportPostRequestBody(writer: SerializationWriter, getPolicyNonComplianceReportPostRequestBody: GetPolicyNonComplianceReportPostRequestBody | undefined = {} as GetPolicyNonComplianceReportPostRequestBody) : void { - writer.writeStringValue("filter", getPolicyNonComplianceReportPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getPolicyNonComplianceReportPostRequestBody.groupBy); - writer.writeStringValue("name", getPolicyNonComplianceReportPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getPolicyNonComplianceReportPostRequestBody.orderBy); - writer.writeStringValue("search", getPolicyNonComplianceReportPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getPolicyNonComplianceReportPostRequestBody.select); - writer.writeStringValue("sessionId", getPolicyNonComplianceReportPostRequestBody.sessionId); - writer.writeNumberValue("skip", getPolicyNonComplianceReportPostRequestBody.skip); - writer.writeNumberValue("top", getPolicyNonComplianceReportPostRequestBody.top); - writer.writeAdditionalData(getPolicyNonComplianceReportPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getPolicyNonComplianceReport/index.ts b/src/deviceManagement/reports/getPolicyNonComplianceReport/index.ts index ef4caf11e87..ffca36eafda 100644 --- a/src/deviceManagement/reports/getPolicyNonComplianceReport/index.ts +++ b/src/deviceManagement/reports/getPolicyNonComplianceReport/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetPolicyNonComplianceReportPostRequestBody, serializeGetPolicyNonComplianceReportPostRequestBody, type GetPolicyNonComplianceReportPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetPolicyNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetPolicyNonComplianceReportPostRequestBody; +} +export function deserializeIntoGetPolicyNonComplianceReportPostRequestBody(getPolicyNonComplianceReportPostRequestBody: GetPolicyNonComplianceReportPostRequestBody | undefined = {} as GetPolicyNonComplianceReportPostRequestBody) : Record void> { + return { + "filter": n => { getPolicyNonComplianceReportPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getPolicyNonComplianceReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getPolicyNonComplianceReportPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getPolicyNonComplianceReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getPolicyNonComplianceReportPostRequestBody.search = n.getStringValue(); }, + "select": n => { getPolicyNonComplianceReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getPolicyNonComplianceReportPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getPolicyNonComplianceReportPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getPolicyNonComplianceReportPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetPolicyNonComplianceReportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetPolicyNonComplianceReportPostRequestBody(writer: SerializationWriter, getPolicyNonComplianceReportPostRequestBody: GetPolicyNonComplianceReportPostRequestBody | undefined = {} as GetPolicyNonComplianceReportPostRequestBody) : void { + writer.writeStringValue("filter", getPolicyNonComplianceReportPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getPolicyNonComplianceReportPostRequestBody.groupBy); + writer.writeStringValue("name", getPolicyNonComplianceReportPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getPolicyNonComplianceReportPostRequestBody.orderBy); + writer.writeStringValue("search", getPolicyNonComplianceReportPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getPolicyNonComplianceReportPostRequestBody.select); + writer.writeStringValue("sessionId", getPolicyNonComplianceReportPostRequestBody.sessionId); + writer.writeNumberValue("skip", getPolicyNonComplianceReportPostRequestBody.skip); + writer.writeNumberValue("top", getPolicyNonComplianceReportPostRequestBody.top); + writer.writeAdditionalData(getPolicyNonComplianceReportPostRequestBody.additionalData); +} /** * Provides operations to call the getPolicyNonComplianceReport method. */ diff --git a/src/deviceManagement/reports/getPolicyNonComplianceSummaryReport/getPolicyNonComplianceSummaryReportPostRequestBody.ts b/src/deviceManagement/reports/getPolicyNonComplianceSummaryReport/getPolicyNonComplianceSummaryReportPostRequestBody.ts deleted file mode 100644 index 7318daf117f..00000000000 --- a/src/deviceManagement/reports/getPolicyNonComplianceSummaryReport/getPolicyNonComplianceSummaryReportPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetPolicyNonComplianceSummaryReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetPolicyNonComplianceSummaryReportPostRequestBody; -} -export function deserializeIntoGetPolicyNonComplianceSummaryReportPostRequestBody(getPolicyNonComplianceSummaryReportPostRequestBody: GetPolicyNonComplianceSummaryReportPostRequestBody | undefined = {} as GetPolicyNonComplianceSummaryReportPostRequestBody) : Record void> { - return { - "filter": n => { getPolicyNonComplianceSummaryReportPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getPolicyNonComplianceSummaryReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getPolicyNonComplianceSummaryReportPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getPolicyNonComplianceSummaryReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getPolicyNonComplianceSummaryReportPostRequestBody.search = n.getStringValue(); }, - "select": n => { getPolicyNonComplianceSummaryReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getPolicyNonComplianceSummaryReportPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getPolicyNonComplianceSummaryReportPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getPolicyNonComplianceSummaryReportPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetPolicyNonComplianceSummaryReportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetPolicyNonComplianceSummaryReportPostRequestBody(writer: SerializationWriter, getPolicyNonComplianceSummaryReportPostRequestBody: GetPolicyNonComplianceSummaryReportPostRequestBody | undefined = {} as GetPolicyNonComplianceSummaryReportPostRequestBody) : void { - writer.writeStringValue("filter", getPolicyNonComplianceSummaryReportPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getPolicyNonComplianceSummaryReportPostRequestBody.groupBy); - writer.writeStringValue("name", getPolicyNonComplianceSummaryReportPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getPolicyNonComplianceSummaryReportPostRequestBody.orderBy); - writer.writeStringValue("search", getPolicyNonComplianceSummaryReportPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getPolicyNonComplianceSummaryReportPostRequestBody.select); - writer.writeStringValue("sessionId", getPolicyNonComplianceSummaryReportPostRequestBody.sessionId); - writer.writeNumberValue("skip", getPolicyNonComplianceSummaryReportPostRequestBody.skip); - writer.writeNumberValue("top", getPolicyNonComplianceSummaryReportPostRequestBody.top); - writer.writeAdditionalData(getPolicyNonComplianceSummaryReportPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getPolicyNonComplianceSummaryReport/index.ts b/src/deviceManagement/reports/getPolicyNonComplianceSummaryReport/index.ts index d7bac3c590e..85eb875a2d9 100644 --- a/src/deviceManagement/reports/getPolicyNonComplianceSummaryReport/index.ts +++ b/src/deviceManagement/reports/getPolicyNonComplianceSummaryReport/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetPolicyNonComplianceSummaryReportPostRequestBody, serializeGetPolicyNonComplianceSummaryReportPostRequestBody, type GetPolicyNonComplianceSummaryReportPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetPolicyNonComplianceSummaryReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetPolicyNonComplianceSummaryReportPostRequestBody; +} +export function deserializeIntoGetPolicyNonComplianceSummaryReportPostRequestBody(getPolicyNonComplianceSummaryReportPostRequestBody: GetPolicyNonComplianceSummaryReportPostRequestBody | undefined = {} as GetPolicyNonComplianceSummaryReportPostRequestBody) : Record void> { + return { + "filter": n => { getPolicyNonComplianceSummaryReportPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getPolicyNonComplianceSummaryReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getPolicyNonComplianceSummaryReportPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getPolicyNonComplianceSummaryReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getPolicyNonComplianceSummaryReportPostRequestBody.search = n.getStringValue(); }, + "select": n => { getPolicyNonComplianceSummaryReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getPolicyNonComplianceSummaryReportPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getPolicyNonComplianceSummaryReportPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getPolicyNonComplianceSummaryReportPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetPolicyNonComplianceSummaryReportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetPolicyNonComplianceSummaryReportPostRequestBody(writer: SerializationWriter, getPolicyNonComplianceSummaryReportPostRequestBody: GetPolicyNonComplianceSummaryReportPostRequestBody | undefined = {} as GetPolicyNonComplianceSummaryReportPostRequestBody) : void { + writer.writeStringValue("filter", getPolicyNonComplianceSummaryReportPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getPolicyNonComplianceSummaryReportPostRequestBody.groupBy); + writer.writeStringValue("name", getPolicyNonComplianceSummaryReportPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getPolicyNonComplianceSummaryReportPostRequestBody.orderBy); + writer.writeStringValue("search", getPolicyNonComplianceSummaryReportPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getPolicyNonComplianceSummaryReportPostRequestBody.select); + writer.writeStringValue("sessionId", getPolicyNonComplianceSummaryReportPostRequestBody.sessionId); + writer.writeNumberValue("skip", getPolicyNonComplianceSummaryReportPostRequestBody.skip); + writer.writeNumberValue("top", getPolicyNonComplianceSummaryReportPostRequestBody.top); + writer.writeAdditionalData(getPolicyNonComplianceSummaryReportPostRequestBody.additionalData); +} /** * Provides operations to call the getPolicyNonComplianceSummaryReport method. */ diff --git a/src/deviceManagement/reports/getReportFilters/getReportFiltersPostRequestBody.ts b/src/deviceManagement/reports/getReportFilters/getReportFiltersPostRequestBody.ts deleted file mode 100644 index 1c9b76223ca..00000000000 --- a/src/deviceManagement/reports/getReportFilters/getReportFiltersPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetReportFiltersPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetReportFiltersPostRequestBody; -} -export function deserializeIntoGetReportFiltersPostRequestBody(getReportFiltersPostRequestBody: GetReportFiltersPostRequestBody | undefined = {} as GetReportFiltersPostRequestBody) : Record void> { - return { - "filter": n => { getReportFiltersPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getReportFiltersPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getReportFiltersPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getReportFiltersPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getReportFiltersPostRequestBody.search = n.getStringValue(); }, - "select": n => { getReportFiltersPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getReportFiltersPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getReportFiltersPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getReportFiltersPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetReportFiltersPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetReportFiltersPostRequestBody(writer: SerializationWriter, getReportFiltersPostRequestBody: GetReportFiltersPostRequestBody | undefined = {} as GetReportFiltersPostRequestBody) : void { - writer.writeStringValue("filter", getReportFiltersPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getReportFiltersPostRequestBody.groupBy); - writer.writeStringValue("name", getReportFiltersPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getReportFiltersPostRequestBody.orderBy); - writer.writeStringValue("search", getReportFiltersPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getReportFiltersPostRequestBody.select); - writer.writeStringValue("sessionId", getReportFiltersPostRequestBody.sessionId); - writer.writeNumberValue("skip", getReportFiltersPostRequestBody.skip); - writer.writeNumberValue("top", getReportFiltersPostRequestBody.top); - writer.writeAdditionalData(getReportFiltersPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getReportFilters/index.ts b/src/deviceManagement/reports/getReportFilters/index.ts index 28509b2e164..311c631e62e 100644 --- a/src/deviceManagement/reports/getReportFilters/index.ts +++ b/src/deviceManagement/reports/getReportFilters/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetReportFiltersPostRequestBody, serializeGetReportFiltersPostRequestBody, type GetReportFiltersPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetReportFiltersPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetReportFiltersPostRequestBody; +} +export function deserializeIntoGetReportFiltersPostRequestBody(getReportFiltersPostRequestBody: GetReportFiltersPostRequestBody | undefined = {} as GetReportFiltersPostRequestBody) : Record void> { + return { + "filter": n => { getReportFiltersPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getReportFiltersPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getReportFiltersPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getReportFiltersPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getReportFiltersPostRequestBody.search = n.getStringValue(); }, + "select": n => { getReportFiltersPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getReportFiltersPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getReportFiltersPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getReportFiltersPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetReportFiltersPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetReportFiltersPostRequestBody(writer: SerializationWriter, getReportFiltersPostRequestBody: GetReportFiltersPostRequestBody | undefined = {} as GetReportFiltersPostRequestBody) : void { + writer.writeStringValue("filter", getReportFiltersPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getReportFiltersPostRequestBody.groupBy); + writer.writeStringValue("name", getReportFiltersPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getReportFiltersPostRequestBody.orderBy); + writer.writeStringValue("search", getReportFiltersPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getReportFiltersPostRequestBody.select); + writer.writeStringValue("sessionId", getReportFiltersPostRequestBody.sessionId); + writer.writeNumberValue("skip", getReportFiltersPostRequestBody.skip); + writer.writeNumberValue("top", getReportFiltersPostRequestBody.top); + writer.writeAdditionalData(getReportFiltersPostRequestBody.additionalData); +} /** * Provides operations to call the getReportFilters method. */ diff --git a/src/deviceManagement/reports/getSettingNonComplianceReport/getSettingNonComplianceReportPostRequestBody.ts b/src/deviceManagement/reports/getSettingNonComplianceReport/getSettingNonComplianceReportPostRequestBody.ts deleted file mode 100644 index 507cb8c83a1..00000000000 --- a/src/deviceManagement/reports/getSettingNonComplianceReport/getSettingNonComplianceReportPostRequestBody.ts +++ /dev/null @@ -1,78 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetSettingNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetSettingNonComplianceReportPostRequestBody; -} -export function deserializeIntoGetSettingNonComplianceReportPostRequestBody(getSettingNonComplianceReportPostRequestBody: GetSettingNonComplianceReportPostRequestBody | undefined = {} as GetSettingNonComplianceReportPostRequestBody) : Record void> { - return { - "filter": n => { getSettingNonComplianceReportPostRequestBody.filter = n.getStringValue(); }, - "groupBy": n => { getSettingNonComplianceReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, - "name": n => { getSettingNonComplianceReportPostRequestBody.name = n.getStringValue(); }, - "orderBy": n => { getSettingNonComplianceReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, - "search": n => { getSettingNonComplianceReportPostRequestBody.search = n.getStringValue(); }, - "select": n => { getSettingNonComplianceReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, - "sessionId": n => { getSettingNonComplianceReportPostRequestBody.sessionId = n.getStringValue(); }, - "skip": n => { getSettingNonComplianceReportPostRequestBody.skip = n.getNumberValue(); }, - "top": n => { getSettingNonComplianceReportPostRequestBody.top = n.getNumberValue(); }, - } -} -export interface GetSettingNonComplianceReportPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The filter property - */ - filter?: string; - /** - * The groupBy property - */ - groupBy?: string[]; - /** - * The name property - */ - name?: string; - /** - * The orderBy property - */ - orderBy?: string[]; - /** - * The search property - */ - search?: string; - /** - * The select property - */ - select?: string[]; - /** - * The sessionId property - */ - sessionId?: string; - /** - * The skip property - */ - skip?: number; - /** - * The top property - */ - top?: number; -} -export function serializeGetSettingNonComplianceReportPostRequestBody(writer: SerializationWriter, getSettingNonComplianceReportPostRequestBody: GetSettingNonComplianceReportPostRequestBody | undefined = {} as GetSettingNonComplianceReportPostRequestBody) : void { - writer.writeStringValue("filter", getSettingNonComplianceReportPostRequestBody.filter); - writer.writeCollectionOfPrimitiveValues("groupBy", getSettingNonComplianceReportPostRequestBody.groupBy); - writer.writeStringValue("name", getSettingNonComplianceReportPostRequestBody.name); - writer.writeCollectionOfPrimitiveValues("orderBy", getSettingNonComplianceReportPostRequestBody.orderBy); - writer.writeStringValue("search", getSettingNonComplianceReportPostRequestBody.search); - writer.writeCollectionOfPrimitiveValues("select", getSettingNonComplianceReportPostRequestBody.select); - writer.writeStringValue("sessionId", getSettingNonComplianceReportPostRequestBody.sessionId); - writer.writeNumberValue("skip", getSettingNonComplianceReportPostRequestBody.skip); - writer.writeNumberValue("top", getSettingNonComplianceReportPostRequestBody.top); - writer.writeAdditionalData(getSettingNonComplianceReportPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/reports/getSettingNonComplianceReport/index.ts b/src/deviceManagement/reports/getSettingNonComplianceReport/index.ts index 16c62f55116..a1d0dbad1d3 100644 --- a/src/deviceManagement/reports/getSettingNonComplianceReport/index.ts +++ b/src/deviceManagement/reports/getSettingNonComplianceReport/index.ts @@ -1,11 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetSettingNonComplianceReportPostRequestBody, serializeGetSettingNonComplianceReportPostRequestBody, type GetSettingNonComplianceReportPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetSettingNonComplianceReportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetSettingNonComplianceReportPostRequestBody; +} +export function deserializeIntoGetSettingNonComplianceReportPostRequestBody(getSettingNonComplianceReportPostRequestBody: GetSettingNonComplianceReportPostRequestBody | undefined = {} as GetSettingNonComplianceReportPostRequestBody) : Record void> { + return { + "filter": n => { getSettingNonComplianceReportPostRequestBody.filter = n.getStringValue(); }, + "groupBy": n => { getSettingNonComplianceReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, + "name": n => { getSettingNonComplianceReportPostRequestBody.name = n.getStringValue(); }, + "orderBy": n => { getSettingNonComplianceReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, + "search": n => { getSettingNonComplianceReportPostRequestBody.search = n.getStringValue(); }, + "select": n => { getSettingNonComplianceReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, + "sessionId": n => { getSettingNonComplianceReportPostRequestBody.sessionId = n.getStringValue(); }, + "skip": n => { getSettingNonComplianceReportPostRequestBody.skip = n.getNumberValue(); }, + "top": n => { getSettingNonComplianceReportPostRequestBody.top = n.getNumberValue(); }, + } +} +export interface GetSettingNonComplianceReportPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The filter property + */ + filter?: string; + /** + * The groupBy property + */ + groupBy?: string[]; + /** + * The name property + */ + name?: string; + /** + * The orderBy property + */ + orderBy?: string[]; + /** + * The search property + */ + search?: string; + /** + * The select property + */ + select?: string[]; + /** + * The sessionId property + */ + sessionId?: string; + /** + * The skip property + */ + skip?: number; + /** + * The top property + */ + top?: number; +} +export function serializeGetSettingNonComplianceReportPostRequestBody(writer: SerializationWriter, getSettingNonComplianceReportPostRequestBody: GetSettingNonComplianceReportPostRequestBody | undefined = {} as GetSettingNonComplianceReportPostRequestBody) : void { + writer.writeStringValue("filter", getSettingNonComplianceReportPostRequestBody.filter); + writer.writeCollectionOfPrimitiveValues("groupBy", getSettingNonComplianceReportPostRequestBody.groupBy); + writer.writeStringValue("name", getSettingNonComplianceReportPostRequestBody.name); + writer.writeCollectionOfPrimitiveValues("orderBy", getSettingNonComplianceReportPostRequestBody.orderBy); + writer.writeStringValue("search", getSettingNonComplianceReportPostRequestBody.search); + writer.writeCollectionOfPrimitiveValues("select", getSettingNonComplianceReportPostRequestBody.select); + writer.writeStringValue("sessionId", getSettingNonComplianceReportPostRequestBody.sessionId); + writer.writeNumberValue("skip", getSettingNonComplianceReportPostRequestBody.skip); + writer.writeNumberValue("top", getSettingNonComplianceReportPostRequestBody.top); + writer.writeAdditionalData(getSettingNonComplianceReportPostRequestBody.additionalData); +} /** * Provides operations to call the getSettingNonComplianceReport method. */ diff --git a/src/deviceManagement/reports/index.ts b/src/deviceManagement/reports/index.ts index 87f0264a05e..705330c3d3b 100644 --- a/src/deviceManagement/reports/index.ts +++ b/src/deviceManagement/reports/index.ts @@ -2,27 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceManagementReportsFromDiscriminatorValue, deserializeIntoDeviceManagementReports, serializeDeviceManagementReports, type DeviceManagementReports } from '../../models/deviceManagementReports'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { ExportJobsRequestBuilder } from './exportJobs/'; -import { GetCachedReportRequestBuilder } from './getCachedReport/'; -import { GetCompliancePolicyNonComplianceReportRequestBuilder } from './getCompliancePolicyNonComplianceReport/'; -import { GetCompliancePolicyNonComplianceSummaryReportRequestBuilder } from './getCompliancePolicyNonComplianceSummaryReport/'; -import { GetComplianceSettingNonComplianceReportRequestBuilder } from './getComplianceSettingNonComplianceReport/'; -import { GetConfigurationPolicyNonComplianceReportRequestBuilder } from './getConfigurationPolicyNonComplianceReport/'; -import { GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder } from './getConfigurationPolicyNonComplianceSummaryReport/'; -import { GetConfigurationSettingNonComplianceReportRequestBuilder } from './getConfigurationSettingNonComplianceReport/'; -import { GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder } from './getDeviceManagementIntentPerSettingContributingProfiles/'; -import { GetDeviceManagementIntentSettingsReportRequestBuilder } from './getDeviceManagementIntentSettingsReport/'; -import { GetDeviceNonComplianceReportRequestBuilder } from './getDeviceNonComplianceReport/'; -import { GetDevicesWithoutCompliancePolicyReportRequestBuilder } from './getDevicesWithoutCompliancePolicyReport/'; -import { GetHistoricalReportRequestBuilder } from './getHistoricalReport/'; -import { GetNoncompliantDevicesAndSettingsReportRequestBuilder } from './getNoncompliantDevicesAndSettingsReport/'; -import { GetPolicyNonComplianceMetadataRequestBuilder } from './getPolicyNonComplianceMetadata/'; -import { GetPolicyNonComplianceReportRequestBuilder } from './getPolicyNonComplianceReport/'; -import { GetPolicyNonComplianceSummaryReportRequestBuilder } from './getPolicyNonComplianceSummaryReport/'; -import { GetReportFiltersRequestBuilder } from './getReportFilters/'; -import { GetSettingNonComplianceReportRequestBuilder } from './getSettingNonComplianceReport/'; +import { ExportJobsRequestBuilder } from './exportJobs'; +import { GetCachedReportRequestBuilder } from './getCachedReport'; +import { GetCompliancePolicyNonComplianceReportRequestBuilder } from './getCompliancePolicyNonComplianceReport'; +import { GetCompliancePolicyNonComplianceSummaryReportRequestBuilder } from './getCompliancePolicyNonComplianceSummaryReport'; +import { GetComplianceSettingNonComplianceReportRequestBuilder } from './getComplianceSettingNonComplianceReport'; +import { GetConfigurationPolicyNonComplianceReportRequestBuilder } from './getConfigurationPolicyNonComplianceReport'; +import { GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder } from './getConfigurationPolicyNonComplianceSummaryReport'; +import { GetConfigurationSettingNonComplianceReportRequestBuilder } from './getConfigurationSettingNonComplianceReport'; +import { GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder } from './getDeviceManagementIntentPerSettingContributingProfiles'; +import { GetDeviceManagementIntentSettingsReportRequestBuilder } from './getDeviceManagementIntentSettingsReport'; +import { GetDeviceNonComplianceReportRequestBuilder } from './getDeviceNonComplianceReport'; +import { GetDevicesWithoutCompliancePolicyReportRequestBuilder } from './getDevicesWithoutCompliancePolicyReport'; +import { GetHistoricalReportRequestBuilder } from './getHistoricalReport'; +import { GetNoncompliantDevicesAndSettingsReportRequestBuilder } from './getNoncompliantDevicesAndSettingsReport'; +import { GetPolicyNonComplianceMetadataRequestBuilder } from './getPolicyNonComplianceMetadata'; +import { GetPolicyNonComplianceReportRequestBuilder } from './getPolicyNonComplianceReport'; +import { GetPolicyNonComplianceSummaryReportRequestBuilder } from './getPolicyNonComplianceSummaryReport'; +import { GetReportFiltersRequestBuilder } from './getReportFilters'; +import { GetSettingNonComplianceReportRequestBuilder } from './getSettingNonComplianceReport'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ReportsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/resourceOperations/count/index.ts b/src/deviceManagement/resourceOperations/count/index.ts index f6646c30119..a20c56417c0 100644 --- a/src/deviceManagement/resourceOperations/count/index.ts +++ b/src/deviceManagement/resourceOperations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/resourceOperations/index.ts b/src/deviceManagement/resourceOperations/index.ts index 1f8f3862e32..d882043a59f 100644 --- a/src/deviceManagement/resourceOperations/index.ts +++ b/src/deviceManagement/resourceOperations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ResourceOperationCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ResourceOperationCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createResourceOperationFromDiscriminatorValue, deserializeIntoResourceOperation, serializeResourceOperation, type ResourceOperation } from '../../models/resourceOperation'; import { createResourceOperationCollectionResponseFromDiscriminatorValue } from '../../models/resourceOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ResourceOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ResourceOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceOperationsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/resourceOperations/item/index.ts b/src/deviceManagement/resourceOperations/item/index.ts index f06cf55dbf8..58813e03bc3 100644 --- a/src/deviceManagement/resourceOperations/item/index.ts +++ b/src/deviceManagement/resourceOperations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createResourceOperationFromDiscriminatorValue, deserializeIntoResourceOperation, serializeResourceOperation, type ResourceOperation } from '../../../models/resourceOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/roleAssignments/count/index.ts b/src/deviceManagement/roleAssignments/count/index.ts index c4f8b1a9d92..854a9aba1ea 100644 --- a/src/deviceManagement/roleAssignments/count/index.ts +++ b/src/deviceManagement/roleAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/roleAssignments/index.ts b/src/deviceManagement/roleAssignments/index.ts index a5f9acf3a97..17c78e6e09b 100644 --- a/src/deviceManagement/roleAssignments/index.ts +++ b/src/deviceManagement/roleAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceAndAppManagementRoleAssignmentCollectionResponse } from '../../models/'; +import { type DeviceAndAppManagementRoleAssignmentCollectionResponse } from '../../models'; import { createDeviceAndAppManagementRoleAssignmentFromDiscriminatorValue, deserializeIntoDeviceAndAppManagementRoleAssignment, serializeDeviceAndAppManagementRoleAssignment, type DeviceAndAppManagementRoleAssignment } from '../../models/deviceAndAppManagementRoleAssignment'; import { createDeviceAndAppManagementRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../models/deviceAndAppManagementRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceAndAppManagementRoleAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceAndAppManagementRoleAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/roleAssignments/item/index.ts b/src/deviceManagement/roleAssignments/item/index.ts index b71d6a7e0cd..cbdf66e0b17 100644 --- a/src/deviceManagement/roleAssignments/item/index.ts +++ b/src/deviceManagement/roleAssignments/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceAndAppManagementRoleAssignmentFromDiscriminatorValue, deserializeIntoDeviceAndAppManagementRoleAssignment, serializeDeviceAndAppManagementRoleAssignment, type DeviceAndAppManagementRoleAssignment } from '../../../models/deviceAndAppManagementRoleAssignment'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceAndAppManagementRoleAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/roleAssignments/item/roleDefinition/index.ts b/src/deviceManagement/roleAssignments/item/roleDefinition/index.ts index 0e5911e1c12..b1a4fbe9ee9 100644 --- a/src/deviceManagement/roleAssignments/item/roleDefinition/index.ts +++ b/src/deviceManagement/roleAssignments/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RoleDefinition } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type RoleDefinition } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRoleDefinitionFromDiscriminatorValue } from '../../../../models/roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/roleDefinitions/count/index.ts b/src/deviceManagement/roleDefinitions/count/index.ts index 4df0d662a83..fd2973fbde8 100644 --- a/src/deviceManagement/roleDefinitions/count/index.ts +++ b/src/deviceManagement/roleDefinitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/roleDefinitions/index.ts b/src/deviceManagement/roleDefinitions/index.ts index ddaa6b57252..194c6987bd3 100644 --- a/src/deviceManagement/roleDefinitions/index.ts +++ b/src/deviceManagement/roleDefinitions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RoleDefinitionCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type RoleDefinitionCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRoleDefinitionFromDiscriminatorValue, deserializeIntoRoleDefinition, serializeRoleDefinition, type RoleDefinition } from '../../models/roleDefinition'; import { createRoleDefinitionCollectionResponseFromDiscriminatorValue } from '../../models/roleDefinitionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RoleDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RoleDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleDefinitionsRequestBuilderGetQueryParameters { @@ -90,11 +90,11 @@ export class RoleDefinitionsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createRoleDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Create a new deviceAndAppManagementRoleDefinition object. + * Create a new roleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of RoleDefinition - * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-create?view=graph-rest-1.0|Find more info here} */ public post(body: RoleDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class RoleDefinitionsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Create a new deviceAndAppManagementRoleDefinition object. + * Create a new roleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceManagement/roleDefinitions/item/index.ts b/src/deviceManagement/roleDefinitions/item/index.ts index ba084ce142f..ef966ee75d2 100644 --- a/src/deviceManagement/roleDefinitions/item/index.ts +++ b/src/deviceManagement/roleDefinitions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRoleDefinitionFromDiscriminatorValue, deserializeIntoRoleDefinition, serializeRoleDefinition, type RoleDefinition } from '../../../models/roleDefinition'; -import { RoleAssignmentsRequestBuilder } from './roleAssignments/'; +import { RoleAssignmentsRequestBuilder } from './roleAssignments'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleDefinitionItemRequestBuilderGetQueryParameters { @@ -67,11 +67,11 @@ export class RoleDefinitionItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createRoleDefinitionFromDiscriminatorValue, errorMapping); }; /** - * Update the properties of a roleDefinition object. + * Update the properties of a deviceAndAppManagementRoleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of RoleDefinition - * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-update?view=graph-rest-1.0|Find more info here} */ public patch(body: RoleDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -106,7 +106,7 @@ export class RoleDefinitionItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the properties of a roleDefinition object. + * Update the properties of a deviceAndAppManagementRoleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceManagement/roleDefinitions/item/roleAssignments/count/index.ts b/src/deviceManagement/roleDefinitions/item/roleAssignments/count/index.ts index fa461021098..f062fac57c2 100644 --- a/src/deviceManagement/roleDefinitions/item/roleAssignments/count/index.ts +++ b/src/deviceManagement/roleDefinitions/item/roleAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/roleDefinitions/item/roleAssignments/index.ts b/src/deviceManagement/roleDefinitions/item/roleAssignments/index.ts index acb8e974a03..a7763592ad8 100644 --- a/src/deviceManagement/roleDefinitions/item/roleAssignments/index.ts +++ b/src/deviceManagement/roleDefinitions/item/roleAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RoleAssignmentCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type RoleAssignmentCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRoleAssignmentFromDiscriminatorValue, deserializeIntoRoleAssignment, serializeRoleAssignment, type RoleAssignment } from '../../../../models/roleAssignment'; import { createRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/roleAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RoleAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RoleAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/roleDefinitions/item/roleAssignments/item/index.ts b/src/deviceManagement/roleDefinitions/item/roleAssignments/item/index.ts index 6e0c3963490..50a11698d14 100644 --- a/src/deviceManagement/roleDefinitions/item/roleAssignments/item/index.ts +++ b/src/deviceManagement/roleDefinitions/item/roleAssignments/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createRoleAssignmentFromDiscriminatorValue, deserializeIntoRoleAssignment, serializeRoleAssignment, type RoleAssignment } from '../../../../../models/roleAssignment'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/roleDefinitions/item/roleAssignments/item/roleDefinition/index.ts b/src/deviceManagement/roleDefinitions/item/roleAssignments/item/roleDefinition/index.ts index 4202986176c..83ee871cf04 100644 --- a/src/deviceManagement/roleDefinitions/item/roleAssignments/item/roleDefinition/index.ts +++ b/src/deviceManagement/roleDefinitions/item/roleAssignments/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RoleDefinition } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type RoleDefinition } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createRoleDefinitionFromDiscriminatorValue } from '../../../../../../models/roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/softwareUpdateStatusSummary/index.ts b/src/deviceManagement/softwareUpdateStatusSummary/index.ts index a332b54d1c5..92771d089e6 100644 --- a/src/deviceManagement/softwareUpdateStatusSummary/index.ts +++ b/src/deviceManagement/softwareUpdateStatusSummary/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SoftwareUpdateStatusSummary } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type SoftwareUpdateStatusSummary } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSoftwareUpdateStatusSummaryFromDiscriminatorValue } from '../../models/softwareUpdateStatusSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/telecomExpenseManagementPartners/count/index.ts b/src/deviceManagement/telecomExpenseManagementPartners/count/index.ts index 9fc45814700..4025c7dd1c9 100644 --- a/src/deviceManagement/telecomExpenseManagementPartners/count/index.ts +++ b/src/deviceManagement/telecomExpenseManagementPartners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/telecomExpenseManagementPartners/index.ts b/src/deviceManagement/telecomExpenseManagementPartners/index.ts index 013fb380334..e431c2ce61e 100644 --- a/src/deviceManagement/telecomExpenseManagementPartners/index.ts +++ b/src/deviceManagement/telecomExpenseManagementPartners/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TelecomExpenseManagementPartnerCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type TelecomExpenseManagementPartnerCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTelecomExpenseManagementPartnerFromDiscriminatorValue, deserializeIntoTelecomExpenseManagementPartner, serializeTelecomExpenseManagementPartner, type TelecomExpenseManagementPartner } from '../../models/telecomExpenseManagementPartner'; import { createTelecomExpenseManagementPartnerCollectionResponseFromDiscriminatorValue } from '../../models/telecomExpenseManagementPartnerCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TelecomExpenseManagementPartnerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TelecomExpenseManagementPartnerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TelecomExpenseManagementPartnersRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/telecomExpenseManagementPartners/item/index.ts b/src/deviceManagement/telecomExpenseManagementPartners/item/index.ts index 2c58234b794..f97948626d3 100644 --- a/src/deviceManagement/telecomExpenseManagementPartners/item/index.ts +++ b/src/deviceManagement/telecomExpenseManagementPartners/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTelecomExpenseManagementPartnerFromDiscriminatorValue, deserializeIntoTelecomExpenseManagementPartner, serializeTelecomExpenseManagementPartner, type TelecomExpenseManagementPartner } from '../../../models/telecomExpenseManagementPartner'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/termsAndConditions/count/index.ts b/src/deviceManagement/termsAndConditions/count/index.ts index 495cb44989b..0f5ff9e6425 100644 --- a/src/deviceManagement/termsAndConditions/count/index.ts +++ b/src/deviceManagement/termsAndConditions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/termsAndConditions/index.ts b/src/deviceManagement/termsAndConditions/index.ts index 4ba1656d8b6..4c6190452bb 100644 --- a/src/deviceManagement/termsAndConditions/index.ts +++ b/src/deviceManagement/termsAndConditions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TermsAndConditionsCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type TermsAndConditionsCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTermsAndConditionsFromDiscriminatorValue, deserializeIntoTermsAndConditions, serializeTermsAndConditions, type TermsAndConditions } from '../../models/termsAndConditions'; import { createTermsAndConditionsCollectionResponseFromDiscriminatorValue } from '../../models/termsAndConditionsCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermsAndConditionsItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermsAndConditionsItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsAndConditionsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/count/index.ts b/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/count/index.ts index 92130969dc2..7e705feecd8 100644 --- a/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/count/index.ts +++ b/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/index.ts b/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/index.ts index 8e5df0255c0..8fa08854134 100644 --- a/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/index.ts +++ b/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TermsAndConditionsAcceptanceStatusCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TermsAndConditionsAcceptanceStatusCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTermsAndConditionsAcceptanceStatusFromDiscriminatorValue, deserializeIntoTermsAndConditionsAcceptanceStatus, serializeTermsAndConditionsAcceptanceStatus, type TermsAndConditionsAcceptanceStatus } from '../../../../models/termsAndConditionsAcceptanceStatus'; import { createTermsAndConditionsAcceptanceStatusCollectionResponseFromDiscriminatorValue } from '../../../../models/termsAndConditionsAcceptanceStatusCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermsAndConditionsAcceptanceStatusItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermsAndConditionsAcceptanceStatusItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AcceptanceStatusesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/item/index.ts b/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/item/index.ts index ccb49a3219c..c57b8496bf7 100644 --- a/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/item/index.ts +++ b/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTermsAndConditionsAcceptanceStatusFromDiscriminatorValue, deserializeIntoTermsAndConditionsAcceptanceStatus, serializeTermsAndConditionsAcceptanceStatus, type TermsAndConditionsAcceptanceStatus } from '../../../../../models/termsAndConditionsAcceptanceStatus'; -import { TermsAndConditionsRequestBuilder } from './termsAndConditions/'; +import { TermsAndConditionsRequestBuilder } from './termsAndConditions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsAndConditionsAcceptanceStatusItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/item/termsAndConditions/index.ts b/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/item/termsAndConditions/index.ts index dad94956edb..970bcbd1e82 100644 --- a/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/item/termsAndConditions/index.ts +++ b/src/deviceManagement/termsAndConditions/item/acceptanceStatuses/item/termsAndConditions/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TermsAndConditions } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TermsAndConditions } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTermsAndConditionsFromDiscriminatorValue } from '../../../../../../models/termsAndConditions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/termsAndConditions/item/assignments/count/index.ts b/src/deviceManagement/termsAndConditions/item/assignments/count/index.ts index 2f97c8eea09..1a7ac80f296 100644 --- a/src/deviceManagement/termsAndConditions/item/assignments/count/index.ts +++ b/src/deviceManagement/termsAndConditions/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/termsAndConditions/item/assignments/index.ts b/src/deviceManagement/termsAndConditions/item/assignments/index.ts index d813cbf948c..d8d0ceb14e9 100644 --- a/src/deviceManagement/termsAndConditions/item/assignments/index.ts +++ b/src/deviceManagement/termsAndConditions/item/assignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TermsAndConditionsAssignmentCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TermsAndConditionsAssignmentCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTermsAndConditionsAssignmentFromDiscriminatorValue, deserializeIntoTermsAndConditionsAssignment, serializeTermsAndConditionsAssignment, type TermsAndConditionsAssignment } from '../../../../models/termsAndConditionsAssignment'; import { createTermsAndConditionsAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/termsAndConditionsAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermsAndConditionsAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermsAndConditionsAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/termsAndConditions/item/assignments/item/index.ts b/src/deviceManagement/termsAndConditions/item/assignments/item/index.ts index 567f78417db..fb1c6b6ee56 100644 --- a/src/deviceManagement/termsAndConditions/item/assignments/item/index.ts +++ b/src/deviceManagement/termsAndConditions/item/assignments/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTermsAndConditionsAssignmentFromDiscriminatorValue, deserializeIntoTermsAndConditionsAssignment, serializeTermsAndConditionsAssignment, type TermsAndConditionsAssignment } from '../../../../../models/termsAndConditionsAssignment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/termsAndConditions/item/index.ts b/src/deviceManagement/termsAndConditions/item/index.ts index 70b597314da..e6de2944e85 100644 --- a/src/deviceManagement/termsAndConditions/item/index.ts +++ b/src/deviceManagement/termsAndConditions/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTermsAndConditionsFromDiscriminatorValue, deserializeIntoTermsAndConditions, serializeTermsAndConditions, type TermsAndConditions } from '../../../models/termsAndConditions'; -import { AcceptanceStatusesRequestBuilder } from './acceptanceStatuses/'; -import { AssignmentsRequestBuilder } from './assignments/'; +import { AcceptanceStatusesRequestBuilder } from './acceptanceStatuses'; +import { AssignmentsRequestBuilder } from './assignments'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsAndConditionsItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/troubleshootingEvents/count/index.ts b/src/deviceManagement/troubleshootingEvents/count/index.ts index 43b7c0ce722..3f57c095222 100644 --- a/src/deviceManagement/troubleshootingEvents/count/index.ts +++ b/src/deviceManagement/troubleshootingEvents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/troubleshootingEvents/index.ts b/src/deviceManagement/troubleshootingEvents/index.ts index 75415391d34..24a1f6b6b0b 100644 --- a/src/deviceManagement/troubleshootingEvents/index.ts +++ b/src/deviceManagement/troubleshootingEvents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceManagementTroubleshootingEventCollectionResponse } from '../../models/'; +import { type DeviceManagementTroubleshootingEventCollectionResponse } from '../../models'; import { createDeviceManagementTroubleshootingEventFromDiscriminatorValue, deserializeIntoDeviceManagementTroubleshootingEvent, serializeDeviceManagementTroubleshootingEvent, type DeviceManagementTroubleshootingEvent } from '../../models/deviceManagementTroubleshootingEvent'; import { createDeviceManagementTroubleshootingEventCollectionResponseFromDiscriminatorValue } from '../../models/deviceManagementTroubleshootingEventCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceManagementTroubleshootingEventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceManagementTroubleshootingEventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TroubleshootingEventsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/troubleshootingEvents/item/index.ts b/src/deviceManagement/troubleshootingEvents/item/index.ts index 4571dfe6471..d8e11574eae 100644 --- a/src/deviceManagement/troubleshootingEvents/item/index.ts +++ b/src/deviceManagement/troubleshootingEvents/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceManagementTroubleshootingEventFromDiscriminatorValue, deserializeIntoDeviceManagementTroubleshootingEvent, serializeDeviceManagementTroubleshootingEvent, type DeviceManagementTroubleshootingEvent } from '../../../models/deviceManagementTroubleshootingEvent'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/count/index.ts index 96e7a324093..9c9bdaa07fb 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/index.ts index 83ec61f2bc9..bd9f8ce1baa 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthApplicationPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthApplicationPerformance, serializeUserExperienceAnalyticsAppHealthApplicationPerformance, type UserExperienceAnalyticsAppHealthApplicationPerformance } from '../../models/userExperienceAnalyticsAppHealthApplicationPerformance'; import { createUserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/item/index.ts index 65076034b8d..1f990fdf6a0 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthApplicationPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthApplicationPerformance, serializeUserExperienceAnalyticsAppHealthApplicationPerformance, type UserExperienceAnalyticsAppHealthApplicationPerformance } from '../../../models/userExperienceAnalyticsAppHealthApplicationPerformance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/count/index.ts index c6037a0c3dd..e957d852b31 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/index.ts index 02416ef850f..8f533b65e4e 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails, serializeUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails, type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails } from '../../models/userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/item/index.ts index 4071629ce9c..8cf1912c27e 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails, serializeUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails, type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails } from '../../../models/userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/count/index.ts index 7221f3a93b4..f5d4ce680c2 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/index.ts index 2189cd58e05..dcf6f23acb3 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId, serializeUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId, type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId } from '../../models/userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/item/index.ts index 9fa87b7ab6d..9e3e1f23bc3 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId, serializeUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId, type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId } from '../../../models/userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/count/index.ts index 2478c85cccd..2b7f9c56865 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/index.ts index a482a2f8adb..c0ccfb4f5f1 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByOSVersionFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion, serializeUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion, type UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion } from '../../models/userExperienceAnalyticsAppHealthAppPerformanceByOSVersion'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/item/index.ts index de5ca797f74..cd5801876a0 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthAppPerformanceByOSVersionFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion, serializeUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion, type UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion } from '../../../models/userExperienceAnalyticsAppHealthAppPerformanceByOSVersion'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/count/index.ts index 5acc279f420..cf5eacd9bad 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/index.ts index 710ee7f3eb8..fbbe2d02cb3 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthDeviceModelPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthDeviceModelPerformance, serializeUserExperienceAnalyticsAppHealthDeviceModelPerformance, type UserExperienceAnalyticsAppHealthDeviceModelPerformance } from '../../models/userExperienceAnalyticsAppHealthDeviceModelPerformance'; import { createUserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/item/index.ts index 76fd8c10516..2ed4c907f79 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthDeviceModelPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthDeviceModelPerformance, serializeUserExperienceAnalyticsAppHealthDeviceModelPerformance, type UserExperienceAnalyticsAppHealthDeviceModelPerformance } from '../../../models/userExperienceAnalyticsAppHealthDeviceModelPerformance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/count/index.ts index 8c93bbaa20b..c9cd7a81a66 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/index.ts index 82d27d57fec..3e4b8751abb 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthDevicePerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthDevicePerformance, serializeUserExperienceAnalyticsAppHealthDevicePerformance, type UserExperienceAnalyticsAppHealthDevicePerformance } from '../../models/userExperienceAnalyticsAppHealthDevicePerformance'; import { createUserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/item/index.ts index d50d45e92db..ff15eeee62d 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthDevicePerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthDevicePerformance, serializeUserExperienceAnalyticsAppHealthDevicePerformance, type UserExperienceAnalyticsAppHealthDevicePerformance } from '../../../models/userExperienceAnalyticsAppHealthDevicePerformance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/count/index.ts index 1e742bad604..47cb1c9150c 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/index.ts index 9259166253f..f22293665df 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthDevicePerformanceDetailsFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthDevicePerformanceDetails, serializeUserExperienceAnalyticsAppHealthDevicePerformanceDetails, type UserExperienceAnalyticsAppHealthDevicePerformanceDetails } from '../../models/userExperienceAnalyticsAppHealthDevicePerformanceDetails'; import { createUserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/item/index.ts index 8567546d1fb..9c80c15fd8f 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthDevicePerformanceDetailsFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthDevicePerformanceDetails, serializeUserExperienceAnalyticsAppHealthDevicePerformanceDetails, type UserExperienceAnalyticsAppHealthDevicePerformanceDetails } from '../../../models/userExperienceAnalyticsAppHealthDevicePerformanceDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/count/index.ts index e66f02bcdfb..ba647d73057 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/index.ts index f7b7a6d84a4..f155f2adfd2 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthOSVersionPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthOSVersionPerformance, serializeUserExperienceAnalyticsAppHealthOSVersionPerformance, type UserExperienceAnalyticsAppHealthOSVersionPerformance } from '../../models/userExperienceAnalyticsAppHealthOSVersionPerformance'; import { createUserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/item/index.ts index 0f03195261e..b006c284bda 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsAppHealthOSVersionPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsAppHealthOSVersionPerformance, serializeUserExperienceAnalyticsAppHealthOSVersionPerformance, type UserExperienceAnalyticsAppHealthOSVersionPerformance } from '../../../models/userExperienceAnalyticsAppHealthOSVersionPerformance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/index.ts index ab347c594c6..82e6c1a052e 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsCategory, serializeUserExperienceAnalyticsCategory, type UserExperienceAnalyticsCategory } from '../../models/userExperienceAnalyticsCategory'; -import { MetricValuesRequestBuilder } from './metricValues/'; +import { MetricValuesRequestBuilder } from './metricValues'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsAppHealthOverviewRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/count/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/count/index.ts index 8bc1f5ecdf3..4939f3700d3 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/index.ts index 515f59a1b7b..b1ae375658a 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsMetricCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsMetricCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsMetricFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsMetric, serializeUserExperienceAnalyticsMetric, type UserExperienceAnalyticsMetric } from '../../../models/userExperienceAnalyticsMetric'; import { createUserExperienceAnalyticsMetricCollectionResponseFromDiscriminatorValue } from '../../../models/userExperienceAnalyticsMetricCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsMetricItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsMetricItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MetricValuesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/item/index.ts b/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/item/index.ts index 5bc9d477a34..451dcc877e5 100644 --- a/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsMetricFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsMetric, serializeUserExperienceAnalyticsMetric, type UserExperienceAnalyticsMetric } from '../../../../models/userExperienceAnalyticsMetric'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/count/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/count/index.ts index f80ae9e454d..6c5c1999e91 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/index.ts index 522fb207cf9..4def2f93e9c 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsBaselineCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsBaselineCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsBaselineFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsBaseline, serializeUserExperienceAnalyticsBaseline, type UserExperienceAnalyticsBaseline } from '../../models/userExperienceAnalyticsBaseline'; import { createUserExperienceAnalyticsBaselineCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsBaselineCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsBaselineItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsBaselineItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsBaselinesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/item/appHealthMetrics/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/item/appHealthMetrics/index.ts index 1fdb349c94e..cc5aa3f8e6d 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/item/appHealthMetrics/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/item/appHealthMetrics/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsCategory } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsCategory } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsCategory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/item/batteryHealthMetrics/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/item/batteryHealthMetrics/index.ts index 6797dd77ab6..e29fc85d55d 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/item/batteryHealthMetrics/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/item/batteryHealthMetrics/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsCategory } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsCategory } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsCategory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/item/bestPracticesMetrics/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/item/bestPracticesMetrics/index.ts index d60cd18a7ee..dde7d8ac5f6 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/item/bestPracticesMetrics/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/item/bestPracticesMetrics/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsCategory } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsCategory } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsCategory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/item/deviceBootPerformanceMetrics/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/item/deviceBootPerformanceMetrics/index.ts index d08308bd5f8..77879d9bf76 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/item/deviceBootPerformanceMetrics/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/item/deviceBootPerformanceMetrics/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsCategory } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsCategory } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsCategory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/item/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/item/index.ts index d1ed876180f..5a1e3d27173 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/item/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsBaselineFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsBaseline, serializeUserExperienceAnalyticsBaseline, type UserExperienceAnalyticsBaseline } from '../../../models/userExperienceAnalyticsBaseline'; -import { AppHealthMetricsRequestBuilder } from './appHealthMetrics/'; -import { BatteryHealthMetricsRequestBuilder } from './batteryHealthMetrics/'; -import { BestPracticesMetricsRequestBuilder } from './bestPracticesMetrics/'; -import { DeviceBootPerformanceMetricsRequestBuilder } from './deviceBootPerformanceMetrics/'; -import { RebootAnalyticsMetricsRequestBuilder } from './rebootAnalyticsMetrics/'; -import { ResourcePerformanceMetricsRequestBuilder } from './resourcePerformanceMetrics/'; -import { WorkFromAnywhereMetricsRequestBuilder } from './workFromAnywhereMetrics/'; +import { AppHealthMetricsRequestBuilder } from './appHealthMetrics'; +import { BatteryHealthMetricsRequestBuilder } from './batteryHealthMetrics'; +import { BestPracticesMetricsRequestBuilder } from './bestPracticesMetrics'; +import { DeviceBootPerformanceMetricsRequestBuilder } from './deviceBootPerformanceMetrics'; +import { RebootAnalyticsMetricsRequestBuilder } from './rebootAnalyticsMetrics'; +import { ResourcePerformanceMetricsRequestBuilder } from './resourcePerformanceMetrics'; +import { WorkFromAnywhereMetricsRequestBuilder } from './workFromAnywhereMetrics'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsBaselineItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/item/rebootAnalyticsMetrics/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/item/rebootAnalyticsMetrics/index.ts index f404276d61b..032383f4220 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/item/rebootAnalyticsMetrics/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/item/rebootAnalyticsMetrics/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsCategory } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsCategory } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsCategory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/item/resourcePerformanceMetrics/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/item/resourcePerformanceMetrics/index.ts index 13849a1b33c..2aad60d8905 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/item/resourcePerformanceMetrics/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/item/resourcePerformanceMetrics/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsCategory } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsCategory } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsCategory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsBaselines/item/workFromAnywhereMetrics/index.ts b/src/deviceManagement/userExperienceAnalyticsBaselines/item/workFromAnywhereMetrics/index.ts index ef43cfef42c..5b06baacf3c 100644 --- a/src/deviceManagement/userExperienceAnalyticsBaselines/item/workFromAnywhereMetrics/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsBaselines/item/workFromAnywhereMetrics/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsCategory } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsCategory } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsCategory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsCategories/count/index.ts b/src/deviceManagement/userExperienceAnalyticsCategories/count/index.ts index 0969dbbdc3d..9270c4f6339 100644 --- a/src/deviceManagement/userExperienceAnalyticsCategories/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsCategories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsCategories/index.ts b/src/deviceManagement/userExperienceAnalyticsCategories/index.ts index 9682537aa7e..bb72316e069 100644 --- a/src/deviceManagement/userExperienceAnalyticsCategories/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsCategories/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsCategoryCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsCategoryCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsCategory, serializeUserExperienceAnalyticsCategory, type UserExperienceAnalyticsCategory } from '../../models/userExperienceAnalyticsCategory'; import { createUserExperienceAnalyticsCategoryCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsCategoryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsCategoriesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsCategories/item/index.ts b/src/deviceManagement/userExperienceAnalyticsCategories/item/index.ts index 3f3cc918cd9..64321f79f6a 100644 --- a/src/deviceManagement/userExperienceAnalyticsCategories/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsCategories/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsCategoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsCategory, serializeUserExperienceAnalyticsCategory, type UserExperienceAnalyticsCategory } from '../../../models/userExperienceAnalyticsCategory'; -import { MetricValuesRequestBuilder } from './metricValues/'; +import { MetricValuesRequestBuilder } from './metricValues'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsCategoryItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/count/index.ts b/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/count/index.ts index 2aa30aa7e80..7176fb442b1 100644 --- a/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/index.ts b/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/index.ts index a9be98bf78a..5dbabbd1da1 100644 --- a/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsMetricCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsMetricCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsMetricFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsMetric, serializeUserExperienceAnalyticsMetric, type UserExperienceAnalyticsMetric } from '../../../../models/userExperienceAnalyticsMetric'; import { createUserExperienceAnalyticsMetricCollectionResponseFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsMetricCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsMetricItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsMetricItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MetricValuesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/item/index.ts b/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/item/index.ts index f14b59cf82c..e748e99cb92 100644 --- a/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsCategories/item/metricValues/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsMetricFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsMetric, serializeUserExperienceAnalyticsMetric, type UserExperienceAnalyticsMetric } from '../../../../../models/userExperienceAnalyticsMetric'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/count/index.ts b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/count/index.ts index 62c840b6ce2..54365cfddb0 100644 --- a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/index.ts b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/index.ts index 61b327fa179..af82a88ef1c 100644 --- a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsDevicePerformanceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsDevicePerformanceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDevicePerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDevicePerformance, serializeUserExperienceAnalyticsDevicePerformance, type UserExperienceAnalyticsDevicePerformance } from '../../models/userExperienceAnalyticsDevicePerformance'; import { createUserExperienceAnalyticsDevicePerformanceCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsDevicePerformanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsDevicePerformanceItemRequestBuilder } from './item/'; -import { SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder } from './summarizeDevicePerformanceDevicesWithSummarizeBy/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsDevicePerformanceItemRequestBuilder } from './item'; +import { SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder } from './summarizeDevicePerformanceDevicesWithSummarizeBy'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsDevicePerformanceRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/item/index.ts b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/item/index.ts index 72ff7c54832..703b82b9b88 100644 --- a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDevicePerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDevicePerformance, serializeUserExperienceAnalyticsDevicePerformance, type UserExperienceAnalyticsDevicePerformance } from '../../../models/userExperienceAnalyticsDevicePerformance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevicesWithSummarizeBy/index.ts b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevicesWithSummarizeBy/index.ts index 0d52b4b18f9..824775e161f 100644 --- a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevicesWithSummarizeBy/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevicesWithSummarizeBy/index.ts @@ -1,12 +1,32 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createSummarizeDevicePerformanceDevicesWithSummarizeByGetResponseFromDiscriminatorValue } from './'; -import { type SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUserExperienceAnalyticsDevicePerformanceFromDiscriminatorValue, serializeUserExperienceAnalyticsDevicePerformance, type UserExperienceAnalyticsDevicePerformance } from '../../../models/userExperienceAnalyticsDevicePerformance'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSummarizeDevicePerformanceDevicesWithSummarizeByGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSummarizeDevicePerformanceDevicesWithSummarizeByGetResponse; +} +export function deserializeIntoSummarizeDevicePerformanceDevicesWithSummarizeByGetResponse(summarizeDevicePerformanceDevicesWithSummarizeByGetResponse: SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse | undefined = {} as SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(summarizeDevicePerformanceDevicesWithSummarizeByGetResponse), + "value": n => { summarizeDevicePerformanceDevicesWithSummarizeByGetResponse.value = n.getCollectionOfObjectValues(createUserExperienceAnalyticsDevicePerformanceFromDiscriminatorValue); }, + } +} +export function serializeSummarizeDevicePerformanceDevicesWithSummarizeByGetResponse(writer: SerializationWriter, summarizeDevicePerformanceDevicesWithSummarizeByGetResponse: SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse | undefined = {} as SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, summarizeDevicePerformanceDevicesWithSummarizeByGetResponse) + writer.writeCollectionOfObjectValues("value", summarizeDevicePerformanceDevicesWithSummarizeByGetResponse.value, serializeUserExperienceAnalyticsDevicePerformance); +} +export interface SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UserExperienceAnalyticsDevicePerformance[]; +} export interface SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilderGetQueryParameters { /** * Include count of items diff --git a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevicesWithSummarizeBy/summarizeDevicePerformanceDevicesWithSummarizeByGetResponse.ts b/src/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevicesWithSummarizeBy/summarizeDevicePerformanceDevicesWithSummarizeByGetResponse.ts deleted file mode 100644 index 9ba116f0684..00000000000 --- a/src/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevicesWithSummarizeBy/summarizeDevicePerformanceDevicesWithSummarizeByGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createUserExperienceAnalyticsDevicePerformanceFromDiscriminatorValue, serializeUserExperienceAnalyticsDevicePerformance, type UserExperienceAnalyticsDevicePerformance } from '../../../models/userExperienceAnalyticsDevicePerformance'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSummarizeDevicePerformanceDevicesWithSummarizeByGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSummarizeDevicePerformanceDevicesWithSummarizeByGetResponse; -} -export function deserializeIntoSummarizeDevicePerformanceDevicesWithSummarizeByGetResponse(summarizeDevicePerformanceDevicesWithSummarizeByGetResponse: SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse | undefined = {} as SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(summarizeDevicePerformanceDevicesWithSummarizeByGetResponse), - "value": n => { summarizeDevicePerformanceDevicesWithSummarizeByGetResponse.value = n.getCollectionOfObjectValues(createUserExperienceAnalyticsDevicePerformanceFromDiscriminatorValue); }, - } -} -export function serializeSummarizeDevicePerformanceDevicesWithSummarizeByGetResponse(writer: SerializationWriter, summarizeDevicePerformanceDevicesWithSummarizeByGetResponse: SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse | undefined = {} as SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, summarizeDevicePerformanceDevicesWithSummarizeByGetResponse) - writer.writeCollectionOfObjectValues("value", summarizeDevicePerformanceDevicesWithSummarizeByGetResponse.value, serializeUserExperienceAnalyticsDevicePerformance); -} -export interface SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UserExperienceAnalyticsDevicePerformance[]; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceScores/count/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceScores/count/index.ts index 9f9e1fbd4d9..c50190e38e8 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceScores/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceScores/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceScores/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceScores/index.ts index 2e50f31b96c..60428020ed8 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceScores/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceScores/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsDeviceScoresCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsDeviceScoresCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDeviceScoresFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDeviceScores, serializeUserExperienceAnalyticsDeviceScores, type UserExperienceAnalyticsDeviceScores } from '../../models/userExperienceAnalyticsDeviceScores'; import { createUserExperienceAnalyticsDeviceScoresCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsDeviceScoresCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsDeviceScoresItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsDeviceScoresItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsDeviceScoresRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceScores/item/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceScores/item/index.ts index a6fcfd35a18..231e97a8017 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceScores/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceScores/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDeviceScoresFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDeviceScores, serializeUserExperienceAnalyticsDeviceScores, type UserExperienceAnalyticsDeviceScores } from '../../../models/userExperienceAnalyticsDeviceScores'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/count/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/count/index.ts index ab8d9a00781..f8abf9e9282 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/index.ts index b9e0b7480e2..caf38107f39 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDeviceStartupHistoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDeviceStartupHistory, serializeUserExperienceAnalyticsDeviceStartupHistory, type UserExperienceAnalyticsDeviceStartupHistory } from '../../models/userExperienceAnalyticsDeviceStartupHistory'; import { createUserExperienceAnalyticsDeviceStartupHistoryCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsDeviceStartupHistoryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsDeviceStartupHistoryRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/item/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/item/index.ts index 45d3d737b6c..1242652946a 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDeviceStartupHistoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDeviceStartupHistory, serializeUserExperienceAnalyticsDeviceStartupHistory, type UserExperienceAnalyticsDeviceStartupHistory } from '../../../models/userExperienceAnalyticsDeviceStartupHistory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/count/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/count/index.ts index 3d9a1d33910..78d8e40c9f3 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/index.ts index 666a98e292f..2d3039d315b 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDeviceStartupProcessPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDeviceStartupProcessPerformance, serializeUserExperienceAnalyticsDeviceStartupProcessPerformance, type UserExperienceAnalyticsDeviceStartupProcessPerformance } from '../../models/userExperienceAnalyticsDeviceStartupProcessPerformance'; import { createUserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/item/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/item/index.ts index ef65206d857..ec4d1850bb9 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDeviceStartupProcessPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDeviceStartupProcessPerformance, serializeUserExperienceAnalyticsDeviceStartupProcessPerformance, type UserExperienceAnalyticsDeviceStartupProcessPerformance } from '../../../models/userExperienceAnalyticsDeviceStartupProcessPerformance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/count/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/count/index.ts index 969efcfa6e7..1832e298bd7 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/index.ts index ff33ab3f2b6..2c40f42b758 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsDeviceStartupProcessCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsDeviceStartupProcessCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDeviceStartupProcessFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDeviceStartupProcess, serializeUserExperienceAnalyticsDeviceStartupProcess, type UserExperienceAnalyticsDeviceStartupProcess } from '../../models/userExperienceAnalyticsDeviceStartupProcess'; import { createUserExperienceAnalyticsDeviceStartupProcessCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsDeviceStartupProcessCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsDeviceStartupProcessesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/item/index.ts b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/item/index.ts index 417379df494..34dd8126de0 100644 --- a/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsDeviceStartupProcessFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsDeviceStartupProcess, serializeUserExperienceAnalyticsDeviceStartupProcess, type UserExperienceAnalyticsDeviceStartupProcess } from '../../../models/userExperienceAnalyticsDeviceStartupProcess'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsMetricHistory/count/index.ts b/src/deviceManagement/userExperienceAnalyticsMetricHistory/count/index.ts index a49f686be69..8763530135b 100644 --- a/src/deviceManagement/userExperienceAnalyticsMetricHistory/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsMetricHistory/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsMetricHistory/index.ts b/src/deviceManagement/userExperienceAnalyticsMetricHistory/index.ts index 4e4711a9f3e..e409efeac7b 100644 --- a/src/deviceManagement/userExperienceAnalyticsMetricHistory/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsMetricHistory/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsMetricHistoryCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsMetricHistoryCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsMetricHistoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsMetricHistory, serializeUserExperienceAnalyticsMetricHistory, type UserExperienceAnalyticsMetricHistory } from '../../models/userExperienceAnalyticsMetricHistory'; import { createUserExperienceAnalyticsMetricHistoryCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsMetricHistoryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsMetricHistoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsMetricHistoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsMetricHistoryRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsMetricHistory/item/index.ts b/src/deviceManagement/userExperienceAnalyticsMetricHistory/item/index.ts index 0d69ec2c43c..073a44552a8 100644 --- a/src/deviceManagement/userExperienceAnalyticsMetricHistory/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsMetricHistory/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsMetricHistoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsMetricHistory, serializeUserExperienceAnalyticsMetricHistory, type UserExperienceAnalyticsMetricHistory } from '../../../models/userExperienceAnalyticsMetricHistory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsModelScores/count/index.ts b/src/deviceManagement/userExperienceAnalyticsModelScores/count/index.ts index 9ed9b340c2a..d15ccdcc65f 100644 --- a/src/deviceManagement/userExperienceAnalyticsModelScores/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsModelScores/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsModelScores/index.ts b/src/deviceManagement/userExperienceAnalyticsModelScores/index.ts index 42de35dd2e8..d9378963eb1 100644 --- a/src/deviceManagement/userExperienceAnalyticsModelScores/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsModelScores/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsModelScoresCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsModelScoresCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsModelScoresFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsModelScores, serializeUserExperienceAnalyticsModelScores, type UserExperienceAnalyticsModelScores } from '../../models/userExperienceAnalyticsModelScores'; import { createUserExperienceAnalyticsModelScoresCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsModelScoresCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsModelScoresItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsModelScoresItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsModelScoresRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsModelScores/item/index.ts b/src/deviceManagement/userExperienceAnalyticsModelScores/item/index.ts index 8b15f0b9724..0680555d11a 100644 --- a/src/deviceManagement/userExperienceAnalyticsModelScores/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsModelScores/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsModelScoresFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsModelScores, serializeUserExperienceAnalyticsModelScores, type UserExperienceAnalyticsModelScores } from '../../../models/userExperienceAnalyticsModelScores'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsOverview/index.ts b/src/deviceManagement/userExperienceAnalyticsOverview/index.ts index 4f298356a38..7bba140d76a 100644 --- a/src/deviceManagement/userExperienceAnalyticsOverview/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsOverview/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsOverviewFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsOverview, serializeUserExperienceAnalyticsOverview, type UserExperienceAnalyticsOverview } from '../../models/userExperienceAnalyticsOverview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsScoreHistory/count/index.ts b/src/deviceManagement/userExperienceAnalyticsScoreHistory/count/index.ts index db8b0711772..cc017b6a320 100644 --- a/src/deviceManagement/userExperienceAnalyticsScoreHistory/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsScoreHistory/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsScoreHistory/index.ts b/src/deviceManagement/userExperienceAnalyticsScoreHistory/index.ts index 6e4edc19f05..8c816bbbc26 100644 --- a/src/deviceManagement/userExperienceAnalyticsScoreHistory/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsScoreHistory/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsScoreHistoryCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsScoreHistoryCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsScoreHistoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsScoreHistory, serializeUserExperienceAnalyticsScoreHistory, type UserExperienceAnalyticsScoreHistory } from '../../models/userExperienceAnalyticsScoreHistory'; import { createUserExperienceAnalyticsScoreHistoryCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsScoreHistoryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsScoreHistoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsScoreHistoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsScoreHistoryRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsScoreHistory/item/index.ts b/src/deviceManagement/userExperienceAnalyticsScoreHistory/item/index.ts index 81374bb5709..88a6ce9cea5 100644 --- a/src/deviceManagement/userExperienceAnalyticsScoreHistory/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsScoreHistory/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsScoreHistoryFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsScoreHistory, serializeUserExperienceAnalyticsScoreHistory, type UserExperienceAnalyticsScoreHistory } from '../../../models/userExperienceAnalyticsScoreHistory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsSummarizeWorkFromAnywhereDevices/index.ts b/src/deviceManagement/userExperienceAnalyticsSummarizeWorkFromAnywhereDevices/index.ts index 20439c65d97..9f4020b5e48 100644 --- a/src/deviceManagement/userExperienceAnalyticsSummarizeWorkFromAnywhereDevices/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsSummarizeWorkFromAnywhereDevices/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsWorkFromAnywhereDevicesSummary } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsWorkFromAnywhereDevicesSummary } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsWorkFromAnywhereDevicesSummaryFromDiscriminatorValue } from '../../models/userExperienceAnalyticsWorkFromAnywhereDevicesSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/index.ts index afd29f76121..b7c2809fe97 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric, serializeUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric, type UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric } from '../../models/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/count/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/count/index.ts index ae2a30992b8..e74ac6a6222 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/index.ts index c238bca51c3..aca42816e00 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsWorkFromAnywhereMetricFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsWorkFromAnywhereMetric, serializeUserExperienceAnalyticsWorkFromAnywhereMetric, type UserExperienceAnalyticsWorkFromAnywhereMetric } from '../../models/userExperienceAnalyticsWorkFromAnywhereMetric'; import { createUserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/index.ts index 2f9ebfb0fba..bf509b1d2e4 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsWorkFromAnywhereMetricFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsWorkFromAnywhereMetric, serializeUserExperienceAnalyticsWorkFromAnywhereMetric, type UserExperienceAnalyticsWorkFromAnywhereMetric } from '../../../models/userExperienceAnalyticsWorkFromAnywhereMetric'; -import { MetricDevicesRequestBuilder } from './metricDevices/'; +import { MetricDevicesRequestBuilder } from './metricDevices'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/count/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/count/index.ts index c4ecd46180f..519733e2aa7 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/index.ts index a5eadb462cb..af8e39f8c94 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsWorkFromAnywhereDeviceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsWorkFromAnywhereDevice, serializeUserExperienceAnalyticsWorkFromAnywhereDevice, type UserExperienceAnalyticsWorkFromAnywhereDevice } from '../../../../models/userExperienceAnalyticsWorkFromAnywhereDevice'; import { createUserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/userExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MetricDevicesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/item/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/item/index.ts index 499137f09c6..41041d02750 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/item/metricDevices/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsWorkFromAnywhereDeviceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsWorkFromAnywhereDevice, serializeUserExperienceAnalyticsWorkFromAnywhereDevice, type UserExperienceAnalyticsWorkFromAnywhereDevice } from '../../../../../models/userExperienceAnalyticsWorkFromAnywhereDevice'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/count/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/count/index.ts index ce5292a75e6..eec0df57a42 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/count/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/index.ts index 66a6c464b95..3297b31427b 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsWorkFromAnywhereModelPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsWorkFromAnywhereModelPerformance, serializeUserExperienceAnalyticsWorkFromAnywhereModelPerformance, type UserExperienceAnalyticsWorkFromAnywhereModelPerformance } from '../../models/userExperienceAnalyticsWorkFromAnywhereModelPerformance'; import { createUserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponseFromDiscriminatorValue } from '../../models/userExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/item/index.ts b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/item/index.ts index 01cdad7f260..2c65e92fbeb 100644 --- a/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/item/index.ts +++ b/src/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserExperienceAnalyticsWorkFromAnywhereModelPerformanceFromDiscriminatorValue, deserializeIntoUserExperienceAnalyticsWorkFromAnywhereModelPerformance, serializeUserExperienceAnalyticsWorkFromAnywhereModelPerformance, type UserExperienceAnalyticsWorkFromAnywhereModelPerformance } from '../../../models/userExperienceAnalyticsWorkFromAnywhereModelPerformance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/verifyWindowsEnrollmentAutoDiscoveryWithDomainName/index.ts b/src/deviceManagement/verifyWindowsEnrollmentAutoDiscoveryWithDomainName/index.ts index 08c05e4cbb0..3a53d04fa10 100644 --- a/src/deviceManagement/verifyWindowsEnrollmentAutoDiscoveryWithDomainName/index.ts +++ b/src/deviceManagement/verifyWindowsEnrollmentAutoDiscoveryWithDomainName/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,55 +26,5 @@ export interface VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse e */ value?: boolean; } -/** - * Provides operations to call the verifyWindowsEnrollmentAutoDiscovery method. - */ -export class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder and sets the default values. - * @param domainName Usage: domainName='{domainName}' - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, domainName?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/verifyWindowsEnrollmentAutoDiscovery(domainName='{domainName}')"); - this.pathParameters["domainName"] = domainName - }; - /** - * Invoke function verifyWindowsEnrollmentAutoDiscovery - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function verifyWindowsEnrollmentAutoDiscovery - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a verifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder - */ - public withUrl(rawUrl: string) : VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/deviceManagement/windowsAutopilotDeviceIdentities/count/index.ts b/src/deviceManagement/windowsAutopilotDeviceIdentities/count/index.ts index 8ad05f17f9c..1c8da0417a1 100644 --- a/src/deviceManagement/windowsAutopilotDeviceIdentities/count/index.ts +++ b/src/deviceManagement/windowsAutopilotDeviceIdentities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsAutopilotDeviceIdentities/index.ts b/src/deviceManagement/windowsAutopilotDeviceIdentities/index.ts index bb5991ac2ec..f7ad3d1d166 100644 --- a/src/deviceManagement/windowsAutopilotDeviceIdentities/index.ts +++ b/src/deviceManagement/windowsAutopilotDeviceIdentities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsAutopilotDeviceIdentityCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type WindowsAutopilotDeviceIdentityCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createWindowsAutopilotDeviceIdentityFromDiscriminatorValue, deserializeIntoWindowsAutopilotDeviceIdentity, serializeWindowsAutopilotDeviceIdentity, type WindowsAutopilotDeviceIdentity } from '../../models/windowsAutopilotDeviceIdentity'; import { createWindowsAutopilotDeviceIdentityCollectionResponseFromDiscriminatorValue } from '../../models/windowsAutopilotDeviceIdentityCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsAutopilotDeviceIdentityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsAutopilotDeviceIdentityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsAutopilotDeviceIdentitiesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/assignUserToDevice/assignUserToDevicePostRequestBody.ts b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/assignUserToDevice/assignUserToDevicePostRequestBody.ts deleted file mode 100644 index 99593eaff49..00000000000 --- a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/assignUserToDevice/assignUserToDevicePostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AssignUserToDevicePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The addressableUserName property - */ - addressableUserName?: string; - /** - * The userPrincipalName property - */ - userPrincipalName?: string; -} -export function createAssignUserToDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAssignUserToDevicePostRequestBody; -} -export function deserializeIntoAssignUserToDevicePostRequestBody(assignUserToDevicePostRequestBody: AssignUserToDevicePostRequestBody | undefined = {} as AssignUserToDevicePostRequestBody) : Record void> { - return { - "addressableUserName": n => { assignUserToDevicePostRequestBody.addressableUserName = n.getStringValue(); }, - "userPrincipalName": n => { assignUserToDevicePostRequestBody.userPrincipalName = n.getStringValue(); }, - } -} -export function serializeAssignUserToDevicePostRequestBody(writer: SerializationWriter, assignUserToDevicePostRequestBody: AssignUserToDevicePostRequestBody | undefined = {} as AssignUserToDevicePostRequestBody) : void { - writer.writeStringValue("addressableUserName", assignUserToDevicePostRequestBody.addressableUserName); - writer.writeStringValue("userPrincipalName", assignUserToDevicePostRequestBody.userPrincipalName); - writer.writeAdditionalData(assignUserToDevicePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/assignUserToDevice/index.ts b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/assignUserToDevice/index.ts index 90a872d710d..cffa3581399 100644 --- a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/assignUserToDevice/index.ts +++ b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/assignUserToDevice/index.ts @@ -1,11 +1,39 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAssignUserToDevicePostRequestBody, serializeAssignUserToDevicePostRequestBody, type AssignUserToDevicePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AssignUserToDevicePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The addressableUserName property + */ + addressableUserName?: string; + /** + * The userPrincipalName property + */ + userPrincipalName?: string; +} +export function createAssignUserToDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAssignUserToDevicePostRequestBody; +} +export function deserializeIntoAssignUserToDevicePostRequestBody(assignUserToDevicePostRequestBody: AssignUserToDevicePostRequestBody | undefined = {} as AssignUserToDevicePostRequestBody) : Record void> { + return { + "addressableUserName": n => { assignUserToDevicePostRequestBody.addressableUserName = n.getStringValue(); }, + "userPrincipalName": n => { assignUserToDevicePostRequestBody.userPrincipalName = n.getStringValue(); }, + } +} +export function serializeAssignUserToDevicePostRequestBody(writer: SerializationWriter, assignUserToDevicePostRequestBody: AssignUserToDevicePostRequestBody | undefined = {} as AssignUserToDevicePostRequestBody) : void { + writer.writeStringValue("addressableUserName", assignUserToDevicePostRequestBody.addressableUserName); + writer.writeStringValue("userPrincipalName", assignUserToDevicePostRequestBody.userPrincipalName); + writer.writeAdditionalData(assignUserToDevicePostRequestBody.additionalData); +} /** * Provides operations to call the assignUserToDevice method. */ diff --git a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/index.ts b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/index.ts index 9ec19278c41..3724fe4f6b4 100644 --- a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/index.ts +++ b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsAutopilotDeviceIdentityFromDiscriminatorValue, deserializeIntoWindowsAutopilotDeviceIdentity, serializeWindowsAutopilotDeviceIdentity, type WindowsAutopilotDeviceIdentity } from '../../../models/windowsAutopilotDeviceIdentity'; -import { AssignUserToDeviceRequestBuilder } from './assignUserToDevice/'; -import { UnassignUserFromDeviceRequestBuilder } from './unassignUserFromDevice/'; -import { UpdateDevicePropertiesRequestBuilder } from './updateDeviceProperties/'; +import { AssignUserToDeviceRequestBuilder } from './assignUserToDevice'; +import { UnassignUserFromDeviceRequestBuilder } from './unassignUserFromDevice'; +import { UpdateDevicePropertiesRequestBuilder } from './updateDeviceProperties'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsAutopilotDeviceIdentityItemRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/unassignUserFromDevice/index.ts b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/unassignUserFromDevice/index.ts index 56351bbfecf..06afa45fa6c 100644 --- a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/unassignUserFromDevice/index.ts +++ b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/unassignUserFromDevice/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/updateDeviceProperties/index.ts b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/updateDeviceProperties/index.ts index 9699e86fc49..8b8f42f702c 100644 --- a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/updateDeviceProperties/index.ts +++ b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/updateDeviceProperties/index.ts @@ -1,11 +1,51 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUpdateDevicePropertiesPostRequestBody, serializeUpdateDevicePropertiesPostRequestBody, type UpdateDevicePropertiesPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpdateDevicePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpdateDevicePropertiesPostRequestBody; +} +export function deserializeIntoUpdateDevicePropertiesPostRequestBody(updateDevicePropertiesPostRequestBody: UpdateDevicePropertiesPostRequestBody | undefined = {} as UpdateDevicePropertiesPostRequestBody) : Record void> { + return { + "addressableUserName": n => { updateDevicePropertiesPostRequestBody.addressableUserName = n.getStringValue(); }, + "displayName": n => { updateDevicePropertiesPostRequestBody.displayName = n.getStringValue(); }, + "groupTag": n => { updateDevicePropertiesPostRequestBody.groupTag = n.getStringValue(); }, + "userPrincipalName": n => { updateDevicePropertiesPostRequestBody.userPrincipalName = n.getStringValue(); }, + } +} +export function serializeUpdateDevicePropertiesPostRequestBody(writer: SerializationWriter, updateDevicePropertiesPostRequestBody: UpdateDevicePropertiesPostRequestBody | undefined = {} as UpdateDevicePropertiesPostRequestBody) : void { + writer.writeStringValue("addressableUserName", updateDevicePropertiesPostRequestBody.addressableUserName); + writer.writeStringValue("displayName", updateDevicePropertiesPostRequestBody.displayName); + writer.writeStringValue("groupTag", updateDevicePropertiesPostRequestBody.groupTag); + writer.writeStringValue("userPrincipalName", updateDevicePropertiesPostRequestBody.userPrincipalName); + writer.writeAdditionalData(updateDevicePropertiesPostRequestBody.additionalData); +} +export interface UpdateDevicePropertiesPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The addressableUserName property + */ + addressableUserName?: string; + /** + * The displayName property + */ + displayName?: string; + /** + * The groupTag property + */ + groupTag?: string; + /** + * The userPrincipalName property + */ + userPrincipalName?: string; +} /** * Provides operations to call the updateDeviceProperties method. */ diff --git a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/updateDeviceProperties/updateDevicePropertiesPostRequestBody.ts b/src/deviceManagement/windowsAutopilotDeviceIdentities/item/updateDeviceProperties/updateDevicePropertiesPostRequestBody.ts deleted file mode 100644 index 6b59bf303b4..00000000000 --- a/src/deviceManagement/windowsAutopilotDeviceIdentities/item/updateDeviceProperties/updateDevicePropertiesPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpdateDevicePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpdateDevicePropertiesPostRequestBody; -} -export function deserializeIntoUpdateDevicePropertiesPostRequestBody(updateDevicePropertiesPostRequestBody: UpdateDevicePropertiesPostRequestBody | undefined = {} as UpdateDevicePropertiesPostRequestBody) : Record void> { - return { - "addressableUserName": n => { updateDevicePropertiesPostRequestBody.addressableUserName = n.getStringValue(); }, - "displayName": n => { updateDevicePropertiesPostRequestBody.displayName = n.getStringValue(); }, - "groupTag": n => { updateDevicePropertiesPostRequestBody.groupTag = n.getStringValue(); }, - "userPrincipalName": n => { updateDevicePropertiesPostRequestBody.userPrincipalName = n.getStringValue(); }, - } -} -export function serializeUpdateDevicePropertiesPostRequestBody(writer: SerializationWriter, updateDevicePropertiesPostRequestBody: UpdateDevicePropertiesPostRequestBody | undefined = {} as UpdateDevicePropertiesPostRequestBody) : void { - writer.writeStringValue("addressableUserName", updateDevicePropertiesPostRequestBody.addressableUserName); - writer.writeStringValue("displayName", updateDevicePropertiesPostRequestBody.displayName); - writer.writeStringValue("groupTag", updateDevicePropertiesPostRequestBody.groupTag); - writer.writeStringValue("userPrincipalName", updateDevicePropertiesPostRequestBody.userPrincipalName); - writer.writeAdditionalData(updateDevicePropertiesPostRequestBody.additionalData); -} -export interface UpdateDevicePropertiesPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The addressableUserName property - */ - addressableUserName?: string; - /** - * The displayName property - */ - displayName?: string; - /** - * The groupTag property - */ - groupTag?: string; - /** - * The userPrincipalName property - */ - userPrincipalName?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/count/index.ts b/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/count/index.ts index 4eae11afa7c..58a09f71426 100644 --- a/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/count/index.ts +++ b/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/index.ts b/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/index.ts index a3e28cb9eb7..4c43e5ada75 100644 --- a/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/index.ts +++ b/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsInformationProtectionAppLearningSummaryCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type WindowsInformationProtectionAppLearningSummaryCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLearningSummaryFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLearningSummary, serializeWindowsInformationProtectionAppLearningSummary, type WindowsInformationProtectionAppLearningSummary } from '../../models/windowsInformationProtectionAppLearningSummary'; import { createWindowsInformationProtectionAppLearningSummaryCollectionResponseFromDiscriminatorValue } from '../../models/windowsInformationProtectionAppLearningSummaryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsInformationProtectionAppLearningSummaryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsInformationProtectionAppLearningSummaryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsInformationProtectionAppLearningSummariesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/item/index.ts b/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/item/index.ts index dffde8daa06..cf8e3b91d37 100644 --- a/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/item/index.ts +++ b/src/deviceManagement/windowsInformationProtectionAppLearningSummaries/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionAppLearningSummaryFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionAppLearningSummary, serializeWindowsInformationProtectionAppLearningSummary, type WindowsInformationProtectionAppLearningSummary } from '../../../models/windowsInformationProtectionAppLearningSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/count/index.ts b/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/count/index.ts index 28f0743aa37..be18b345840 100644 --- a/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/count/index.ts +++ b/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/index.ts b/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/index.ts index dee2e46ed92..38f0e219dc2 100644 --- a/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/index.ts +++ b/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsInformationProtectionNetworkLearningSummaryCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type WindowsInformationProtectionNetworkLearningSummaryCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionNetworkLearningSummaryFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionNetworkLearningSummary, serializeWindowsInformationProtectionNetworkLearningSummary, type WindowsInformationProtectionNetworkLearningSummary } from '../../models/windowsInformationProtectionNetworkLearningSummary'; import { createWindowsInformationProtectionNetworkLearningSummaryCollectionResponseFromDiscriminatorValue } from '../../models/windowsInformationProtectionNetworkLearningSummaryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsInformationProtectionNetworkLearningSummariesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/item/index.ts b/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/item/index.ts index 982a4c181c6..ec05dd000c5 100644 --- a/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/item/index.ts +++ b/src/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsInformationProtectionNetworkLearningSummaryFromDiscriminatorValue, deserializeIntoWindowsInformationProtectionNetworkLearningSummary, serializeWindowsInformationProtectionNetworkLearningSummary, type WindowsInformationProtectionNetworkLearningSummary } from '../../../models/windowsInformationProtectionNetworkLearningSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsMalwareInformation/count/index.ts b/src/deviceManagement/windowsMalwareInformation/count/index.ts index b13fcaef3c1..0c7f59fd13b 100644 --- a/src/deviceManagement/windowsMalwareInformation/count/index.ts +++ b/src/deviceManagement/windowsMalwareInformation/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsMalwareInformation/index.ts b/src/deviceManagement/windowsMalwareInformation/index.ts index 42e54f70ad3..bfeb92de18d 100644 --- a/src/deviceManagement/windowsMalwareInformation/index.ts +++ b/src/deviceManagement/windowsMalwareInformation/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsMalwareInformationCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type WindowsMalwareInformationCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createWindowsMalwareInformationFromDiscriminatorValue, deserializeIntoWindowsMalwareInformation, serializeWindowsMalwareInformation, type WindowsMalwareInformation } from '../../models/windowsMalwareInformation'; import { createWindowsMalwareInformationCollectionResponseFromDiscriminatorValue } from '../../models/windowsMalwareInformationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsMalwareInformationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsMalwareInformationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsMalwareInformationRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/count/index.ts b/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/count/index.ts index f9284c6e077..4eb24b674b1 100644 --- a/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/count/index.ts +++ b/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/index.ts b/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/index.ts index 7317246dd81..9fbf7b9ca54 100644 --- a/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/index.ts +++ b/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MalwareStateForWindowsDeviceCollectionResponse } from '../../../../models/'; +import { type MalwareStateForWindowsDeviceCollectionResponse } from '../../../../models'; import { createMalwareStateForWindowsDeviceFromDiscriminatorValue, deserializeIntoMalwareStateForWindowsDevice, serializeMalwareStateForWindowsDevice, type MalwareStateForWindowsDevice } from '../../../../models/malwareStateForWindowsDevice'; import { createMalwareStateForWindowsDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/malwareStateForWindowsDeviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MalwareStateForWindowsDeviceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MalwareStateForWindowsDeviceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceMalwareStatesRequestBuilderGetQueryParameters { diff --git a/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/item/index.ts b/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/item/index.ts index 60eb36f8045..ac79d949983 100644 --- a/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/item/index.ts +++ b/src/deviceManagement/windowsMalwareInformation/item/deviceMalwareStates/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMalwareStateForWindowsDeviceFromDiscriminatorValue, deserializeIntoMalwareStateForWindowsDevice, serializeMalwareStateForWindowsDevice, type MalwareStateForWindowsDevice } from '../../../../../models/malwareStateForWindowsDevice'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/deviceManagement/windowsMalwareInformation/item/index.ts b/src/deviceManagement/windowsMalwareInformation/item/index.ts index 9a27df8c86a..2b8f6539dde 100644 --- a/src/deviceManagement/windowsMalwareInformation/item/index.ts +++ b/src/deviceManagement/windowsMalwareInformation/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWindowsMalwareInformationFromDiscriminatorValue, deserializeIntoWindowsMalwareInformation, serializeWindowsMalwareInformation, type WindowsMalwareInformation } from '../../../models/windowsMalwareInformation'; -import { DeviceMalwareStatesRequestBuilder } from './deviceMalwareStates/'; +import { DeviceMalwareStatesRequestBuilder } from './deviceMalwareStates'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsMalwareInformationItemRequestBuilderGetQueryParameters { diff --git a/src/devices/count/index.ts b/src/devices/count/index.ts index a16663cc509..aee0a9cf5fa 100644 --- a/src/devices/count/index.ts +++ b/src/devices/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/delta/index.ts b/src/devices/delta/index.ts index 8b0463bd437..1b96e5051e3 100644 --- a/src/devices/delta/index.ts +++ b/src/devices/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createDeviceFromDiscriminatorValue, serializeDevice, type Device } from '../../models/device'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Device[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDevice); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/devices/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/devices/getAvailableExtensionProperties/index.ts b/src/devices/getAvailableExtensionProperties/index.ts index ef3d35887a5..7800d3c8b0a 100644 --- a/src/devices/getAvailableExtensionProperties/index.ts +++ b/src/devices/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/devices/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/devices/getByIds/getByIdsPostRequestBody.ts b/src/devices/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/devices/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/devices/getByIds/index.ts b/src/devices/getByIds/index.ts index f21d7147854..49172d3c7dd 100644 --- a/src/devices/getByIds/index.ts +++ b/src/devices/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/devices/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/devices/index.ts b/src/devices/index.ts index 7c8e614d7c3..5e1f4404151 100644 --- a/src/devices/index.ts +++ b/src/devices/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../models/'; +import { type DeviceCollectionResponse } from '../models'; import { createDeviceFromDiscriminatorValue, deserializeIntoDevice, serializeDevice, type Device } from '../models/device'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../models/deviceCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { DeviceItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { DeviceItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DevicesRequestBuilderGetQueryParameters { diff --git a/src/devices/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/devices/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/devices/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/devices/item/checkMemberGroups/index.ts b/src/devices/item/checkMemberGroups/index.ts index 19071f7766a..dcf9cd58809 100644 --- a/src/devices/item/checkMemberGroups/index.ts +++ b/src/devices/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/devices/{device%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/devices/item/checkMemberObjects/index.ts b/src/devices/item/checkMemberObjects/index.ts index b5879123226..d53883127a7 100644 --- a/src/devices/item/checkMemberObjects/index.ts +++ b/src/devices/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/devices/{device%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/devices/item/extensions/count/index.ts b/src/devices/item/extensions/count/index.ts index 2ada984b1c5..56a7df48c77 100644 --- a/src/devices/item/extensions/count/index.ts +++ b/src/devices/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/extensions/index.ts b/src/devices/item/extensions/index.ts index bfed094d30e..49c4dffa6c2 100644 --- a/src/devices/item/extensions/index.ts +++ b/src/devices/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../models/'; +import { type ExtensionCollectionResponse } from '../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/devices/item/extensions/item/index.ts b/src/devices/item/extensions/item/index.ts index 0663025a0ee..7fedc0550e8 100644 --- a/src/devices/item/extensions/item/index.ts +++ b/src/devices/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../models/extension'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/devices/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/devices/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/devices/item/getMemberGroups/index.ts b/src/devices/item/getMemberGroups/index.ts index b968d3e8396..e7344ba5741 100644 --- a/src/devices/item/getMemberGroups/index.ts +++ b/src/devices/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/devices/{device%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/devices/item/getMemberObjects/index.ts b/src/devices/item/getMemberObjects/index.ts index 449403095d3..1d90b3647dc 100644 --- a/src/devices/item/getMemberObjects/index.ts +++ b/src/devices/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/devices/{device%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/devices/item/index.ts b/src/devices/item/index.ts index cc259d8407c..4a43d8c7856 100644 --- a/src/devices/item/index.ts +++ b/src/devices/item/index.ts @@ -2,18 +2,18 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceFromDiscriminatorValue, deserializeIntoDevice, serializeDevice, type Device } from '../../models/device'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { MemberOfRequestBuilder } from './memberOf/'; -import { RegisteredOwnersRequestBuilder } from './registeredOwners/'; -import { RegisteredUsersRequestBuilder } from './registeredUsers/'; -import { RestoreRequestBuilder } from './restore/'; -import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { ExtensionsRequestBuilder } from './extensions'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { MemberOfRequestBuilder } from './memberOf'; +import { RegisteredOwnersRequestBuilder } from './registeredOwners'; +import { RegisteredUsersRequestBuilder } from './registeredUsers'; +import { RestoreRequestBuilder } from './restore'; +import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceItemRequestBuilderGetQueryParameters { diff --git a/src/devices/item/memberOf/count/index.ts b/src/devices/item/memberOf/count/index.ts index e38a64a04b3..88f8dc0f497 100644 --- a/src/devices/item/memberOf/count/index.ts +++ b/src/devices/item/memberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/memberOf/graphAdministrativeUnit/count/index.ts b/src/devices/item/memberOf/graphAdministrativeUnit/count/index.ts index a67f27cd4b9..d924dd77f8a 100644 --- a/src/devices/item/memberOf/graphAdministrativeUnit/count/index.ts +++ b/src/devices/item/memberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/memberOf/graphAdministrativeUnit/index.ts b/src/devices/item/memberOf/graphAdministrativeUnit/index.ts index 48ac69230da..0607881a211 100644 --- a/src/devices/item/memberOf/graphAdministrativeUnit/index.ts +++ b/src/devices/item/memberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/devices/item/memberOf/graphGroup/count/index.ts b/src/devices/item/memberOf/graphGroup/count/index.ts index e9796837d57..8be7d0de4cd 100644 --- a/src/devices/item/memberOf/graphGroup/count/index.ts +++ b/src/devices/item/memberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/memberOf/graphGroup/index.ts b/src/devices/item/memberOf/graphGroup/index.ts index 538d5697fd8..08661af042f 100644 --- a/src/devices/item/memberOf/graphGroup/index.ts +++ b/src/devices/item/memberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/devices/item/memberOf/index.ts b/src/devices/item/memberOf/index.ts index 7a556cd87a1..67b482fe6e4 100644 --- a/src/devices/item/memberOf/index.ts +++ b/src/devices/item/memberOf/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MemberOfRequestBuilderGetQueryParameters { diff --git a/src/devices/item/memberOf/item/graphAdministrativeUnit/index.ts b/src/devices/item/memberOf/item/graphAdministrativeUnit/index.ts index 297361492d3..45a9553e7ae 100644 --- a/src/devices/item/memberOf/item/graphAdministrativeUnit/index.ts +++ b/src/devices/item/memberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/memberOf/item/graphGroup/index.ts b/src/devices/item/memberOf/item/graphGroup/index.ts index a53ed63d9ef..dfb16d90c14 100644 --- a/src/devices/item/memberOf/item/graphGroup/index.ts +++ b/src/devices/item/memberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/memberOf/item/index.ts b/src/devices/item/memberOf/item/index.ts index 3f4bba09441..be0fe00b808 100644 --- a/src/devices/item/memberOf/item/index.ts +++ b/src/devices/item/memberOf/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredOwners/count/index.ts b/src/devices/item/registeredOwners/count/index.ts index 15200c59a99..c1b69db83df 100644 --- a/src/devices/item/registeredOwners/count/index.ts +++ b/src/devices/item/registeredOwners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/graphAppRoleAssignment/count/index.ts b/src/devices/item/registeredOwners/graphAppRoleAssignment/count/index.ts index 6e4639405ee..13f7ee04cf1 100644 --- a/src/devices/item/registeredOwners/graphAppRoleAssignment/count/index.ts +++ b/src/devices/item/registeredOwners/graphAppRoleAssignment/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/graphAppRoleAssignment/index.ts b/src/devices/item/registeredOwners/graphAppRoleAssignment/index.ts index 5abde18a176..ff1a7cb306f 100644 --- a/src/devices/item/registeredOwners/graphAppRoleAssignment/index.ts +++ b/src/devices/item/registeredOwners/graphAppRoleAssignment/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../../models'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAppRoleAssignmentRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredOwners/graphEndpoint/count/index.ts b/src/devices/item/registeredOwners/graphEndpoint/count/index.ts index 07c440e9fc5..1655cc889aa 100644 --- a/src/devices/item/registeredOwners/graphEndpoint/count/index.ts +++ b/src/devices/item/registeredOwners/graphEndpoint/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/graphEndpoint/index.ts b/src/devices/item/registeredOwners/graphEndpoint/index.ts index 84aeb133ce5..9b4a1bb99ca 100644 --- a/src/devices/item/registeredOwners/graphEndpoint/index.ts +++ b/src/devices/item/registeredOwners/graphEndpoint/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndpointCollectionResponse } from '../../../../models/'; +import { type EndpointCollectionResponse } from '../../../../models'; import { createEndpointCollectionResponseFromDiscriminatorValue } from '../../../../models/endpointCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphEndpointRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredOwners/graphServicePrincipal/count/index.ts b/src/devices/item/registeredOwners/graphServicePrincipal/count/index.ts index 7b6263ee716..94a1efa229a 100644 --- a/src/devices/item/registeredOwners/graphServicePrincipal/count/index.ts +++ b/src/devices/item/registeredOwners/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/graphServicePrincipal/index.ts b/src/devices/item/registeredOwners/graphServicePrincipal/index.ts index 13ab49b3d81..bd111983d4d 100644 --- a/src/devices/item/registeredOwners/graphServicePrincipal/index.ts +++ b/src/devices/item/registeredOwners/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredOwners/graphUser/count/index.ts b/src/devices/item/registeredOwners/graphUser/count/index.ts index 938a1d376ef..3a3c927d69d 100644 --- a/src/devices/item/registeredOwners/graphUser/count/index.ts +++ b/src/devices/item/registeredOwners/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/graphUser/index.ts b/src/devices/item/registeredOwners/graphUser/index.ts index d91a22abe59..0df2ac53438 100644 --- a/src/devices/item/registeredOwners/graphUser/index.ts +++ b/src/devices/item/registeredOwners/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredOwners/index.ts b/src/devices/item/registeredOwners/index.ts index 24758338c52..b71374d6732 100644 --- a/src/devices/item/registeredOwners/index.ts +++ b/src/devices/item/registeredOwners/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RegisteredOwnersRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredOwners/item/graphAppRoleAssignment/index.ts b/src/devices/item/registeredOwners/item/graphAppRoleAssignment/index.ts index e386ab1a156..7a7d99f8536 100644 --- a/src/devices/item/registeredOwners/item/graphAppRoleAssignment/index.ts +++ b/src/devices/item/registeredOwners/item/graphAppRoleAssignment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignment } from '../../../../../models/'; +import { type AppRoleAssignment } from '../../../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue } from '../../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/item/graphEndpoint/index.ts b/src/devices/item/registeredOwners/item/graphEndpoint/index.ts index eb18333a9df..cbc70d5209a 100644 --- a/src/devices/item/registeredOwners/item/graphEndpoint/index.ts +++ b/src/devices/item/registeredOwners/item/graphEndpoint/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Endpoint } from '../../../../../models/'; +import { type Endpoint } from '../../../../../models'; import { createEndpointFromDiscriminatorValue } from '../../../../../models/endpoint'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/item/graphServicePrincipal/index.ts b/src/devices/item/registeredOwners/item/graphServicePrincipal/index.ts index 12a40b08812..86c38f2c850 100644 --- a/src/devices/item/registeredOwners/item/graphServicePrincipal/index.ts +++ b/src/devices/item/registeredOwners/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/item/graphUser/index.ts b/src/devices/item/registeredOwners/item/graphUser/index.ts index 8e0fcf94529..367c3e6edd3 100644 --- a/src/devices/item/registeredOwners/item/graphUser/index.ts +++ b/src/devices/item/registeredOwners/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/item/index.ts b/src/devices/item/registeredOwners/item/index.ts index 845e365abe3..279179647b9 100644 --- a/src/devices/item/registeredOwners/item/index.ts +++ b/src/devices/item/registeredOwners/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RefRequestBuilder } from './ref/'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/devices/item/registeredOwners/item/ref/index.ts b/src/devices/item/registeredOwners/item/ref/index.ts index d7a40611201..7c0815329dc 100644 --- a/src/devices/item/registeredOwners/item/ref/index.ts +++ b/src/devices/item/registeredOwners/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredOwners/ref/index.ts b/src/devices/item/registeredOwners/ref/index.ts index db270ea5e47..d58a7bd9d6b 100644 --- a/src/devices/item/registeredOwners/ref/index.ts +++ b/src/devices/item/registeredOwners/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/devices/item/registeredUsers/count/index.ts b/src/devices/item/registeredUsers/count/index.ts index bc3cab9b1c1..d0000a68025 100644 --- a/src/devices/item/registeredUsers/count/index.ts +++ b/src/devices/item/registeredUsers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/graphAppRoleAssignment/count/index.ts b/src/devices/item/registeredUsers/graphAppRoleAssignment/count/index.ts index 52b7a9e8aed..d5fc3a8083f 100644 --- a/src/devices/item/registeredUsers/graphAppRoleAssignment/count/index.ts +++ b/src/devices/item/registeredUsers/graphAppRoleAssignment/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/graphAppRoleAssignment/index.ts b/src/devices/item/registeredUsers/graphAppRoleAssignment/index.ts index 6075976faf6..70d70b54e5f 100644 --- a/src/devices/item/registeredUsers/graphAppRoleAssignment/index.ts +++ b/src/devices/item/registeredUsers/graphAppRoleAssignment/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../../models'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAppRoleAssignmentRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredUsers/graphEndpoint/count/index.ts b/src/devices/item/registeredUsers/graphEndpoint/count/index.ts index 4f14ec02720..931aadbe1bf 100644 --- a/src/devices/item/registeredUsers/graphEndpoint/count/index.ts +++ b/src/devices/item/registeredUsers/graphEndpoint/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/graphEndpoint/index.ts b/src/devices/item/registeredUsers/graphEndpoint/index.ts index 1c475a4ec0a..c0b3e8469f6 100644 --- a/src/devices/item/registeredUsers/graphEndpoint/index.ts +++ b/src/devices/item/registeredUsers/graphEndpoint/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndpointCollectionResponse } from '../../../../models/'; +import { type EndpointCollectionResponse } from '../../../../models'; import { createEndpointCollectionResponseFromDiscriminatorValue } from '../../../../models/endpointCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphEndpointRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredUsers/graphServicePrincipal/count/index.ts b/src/devices/item/registeredUsers/graphServicePrincipal/count/index.ts index 9e8695fbbcd..86d22522143 100644 --- a/src/devices/item/registeredUsers/graphServicePrincipal/count/index.ts +++ b/src/devices/item/registeredUsers/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/graphServicePrincipal/index.ts b/src/devices/item/registeredUsers/graphServicePrincipal/index.ts index b260ddafabc..4ce826c734c 100644 --- a/src/devices/item/registeredUsers/graphServicePrincipal/index.ts +++ b/src/devices/item/registeredUsers/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredUsers/graphUser/count/index.ts b/src/devices/item/registeredUsers/graphUser/count/index.ts index df0f999c9aa..f1d869c3777 100644 --- a/src/devices/item/registeredUsers/graphUser/count/index.ts +++ b/src/devices/item/registeredUsers/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/graphUser/index.ts b/src/devices/item/registeredUsers/graphUser/index.ts index 0a5e5247d03..cd421c2d129 100644 --- a/src/devices/item/registeredUsers/graphUser/index.ts +++ b/src/devices/item/registeredUsers/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredUsers/index.ts b/src/devices/item/registeredUsers/index.ts index 73e56867d5b..f5571de8a3f 100644 --- a/src/devices/item/registeredUsers/index.ts +++ b/src/devices/item/registeredUsers/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RegisteredUsersRequestBuilderGetQueryParameters { diff --git a/src/devices/item/registeredUsers/item/graphAppRoleAssignment/index.ts b/src/devices/item/registeredUsers/item/graphAppRoleAssignment/index.ts index 36772cd8654..abba7f7f777 100644 --- a/src/devices/item/registeredUsers/item/graphAppRoleAssignment/index.ts +++ b/src/devices/item/registeredUsers/item/graphAppRoleAssignment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignment } from '../../../../../models/'; +import { type AppRoleAssignment } from '../../../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue } from '../../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/item/graphEndpoint/index.ts b/src/devices/item/registeredUsers/item/graphEndpoint/index.ts index 53cd9b90b2a..642e6c5788a 100644 --- a/src/devices/item/registeredUsers/item/graphEndpoint/index.ts +++ b/src/devices/item/registeredUsers/item/graphEndpoint/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Endpoint } from '../../../../../models/'; +import { type Endpoint } from '../../../../../models'; import { createEndpointFromDiscriminatorValue } from '../../../../../models/endpoint'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/item/graphServicePrincipal/index.ts b/src/devices/item/registeredUsers/item/graphServicePrincipal/index.ts index bcf6b444c0d..4e3d74d1db7 100644 --- a/src/devices/item/registeredUsers/item/graphServicePrincipal/index.ts +++ b/src/devices/item/registeredUsers/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/item/graphUser/index.ts b/src/devices/item/registeredUsers/item/graphUser/index.ts index 5015d14a49a..b3b1209a315 100644 --- a/src/devices/item/registeredUsers/item/graphUser/index.ts +++ b/src/devices/item/registeredUsers/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/item/index.ts b/src/devices/item/registeredUsers/item/index.ts index 32d731f878f..e40b86c4b51 100644 --- a/src/devices/item/registeredUsers/item/index.ts +++ b/src/devices/item/registeredUsers/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RefRequestBuilder } from './ref/'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/devices/item/registeredUsers/item/ref/index.ts b/src/devices/item/registeredUsers/item/ref/index.ts index b3ed35e5f12..4f54cbd2d2d 100644 --- a/src/devices/item/registeredUsers/item/ref/index.ts +++ b/src/devices/item/registeredUsers/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/registeredUsers/ref/index.ts b/src/devices/item/registeredUsers/ref/index.ts index 31a104a999b..ab8428514ad 100644 --- a/src/devices/item/registeredUsers/ref/index.ts +++ b/src/devices/item/registeredUsers/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/devices/item/restore/index.ts b/src/devices/item/restore/index.ts index 019f83b0b9e..61c9dafbca9 100644 --- a/src/devices/item/restore/index.ts +++ b/src/devices/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/transitiveMemberOf/count/index.ts b/src/devices/item/transitiveMemberOf/count/index.ts index 5f4170cf68c..1383cf73956 100644 --- a/src/devices/item/transitiveMemberOf/count/index.ts +++ b/src/devices/item/transitiveMemberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts b/src/devices/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts index d0402e2ae66..2289719b561 100644 --- a/src/devices/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts +++ b/src/devices/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/transitiveMemberOf/graphAdministrativeUnit/index.ts b/src/devices/item/transitiveMemberOf/graphAdministrativeUnit/index.ts index bdb6a6a6c26..2d0fd415448 100644 --- a/src/devices/item/transitiveMemberOf/graphAdministrativeUnit/index.ts +++ b/src/devices/item/transitiveMemberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/devices/item/transitiveMemberOf/graphGroup/count/index.ts b/src/devices/item/transitiveMemberOf/graphGroup/count/index.ts index 8297bfc7a7f..c1c507b4cfe 100644 --- a/src/devices/item/transitiveMemberOf/graphGroup/count/index.ts +++ b/src/devices/item/transitiveMemberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/transitiveMemberOf/graphGroup/index.ts b/src/devices/item/transitiveMemberOf/graphGroup/index.ts index c692e67b35a..1c3c223941d 100644 --- a/src/devices/item/transitiveMemberOf/graphGroup/index.ts +++ b/src/devices/item/transitiveMemberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/devices/item/transitiveMemberOf/index.ts b/src/devices/item/transitiveMemberOf/index.ts index a176b1949dc..a593f82efaa 100644 --- a/src/devices/item/transitiveMemberOf/index.ts +++ b/src/devices/item/transitiveMemberOf/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TransitiveMemberOfRequestBuilderGetQueryParameters { diff --git a/src/devices/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts b/src/devices/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts index 295b4da96f8..c5f06087cc2 100644 --- a/src/devices/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts +++ b/src/devices/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/transitiveMemberOf/item/graphGroup/index.ts b/src/devices/item/transitiveMemberOf/item/graphGroup/index.ts index a9054d81e2d..ae57e6cc12f 100644 --- a/src/devices/item/transitiveMemberOf/item/graphGroup/index.ts +++ b/src/devices/item/transitiveMemberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/devices/item/transitiveMemberOf/item/index.ts b/src/devices/item/transitiveMemberOf/item/index.ts index 92022d7b8d4..7d411266450 100644 --- a/src/devices/item/transitiveMemberOf/item/index.ts +++ b/src/devices/item/transitiveMemberOf/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/devices/validateProperties/index.ts b/src/devices/validateProperties/index.ts index 2ee4771ef71..3c9a114e085 100644 --- a/src/devices/validateProperties/index.ts +++ b/src/devices/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/devices/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/devicesWithDeviceId/index.ts b/src/devicesWithDeviceId/index.ts index 8b543a34908..b87a4c078de 100644 --- a/src/devicesWithDeviceId/index.ts +++ b/src/devicesWithDeviceId/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceFromDiscriminatorValue, deserializeIntoDevice, serializeDevice, type Device } from '../models/device'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/count/index.ts b/src/directory/administrativeUnits/count/index.ts index ee07992335a..c22ff8ba0bc 100644 --- a/src/directory/administrativeUnits/count/index.ts +++ b/src/directory/administrativeUnits/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/delta/index.ts b/src/directory/administrativeUnits/delta/index.ts index 5430755537a..5e086ea7ab2 100644 --- a/src/directory/administrativeUnits/delta/index.ts +++ b/src/directory/administrativeUnits/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { createAdministrativeUnitFromDiscriminatorValue, serializeAdministrativeUnit, type AdministrativeUnit } from '../../../models/administrativeUnit'; import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: AdministrativeUnit[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeAdministrativeUnit); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directory/administrativeUnits/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/directory/administrativeUnits/index.ts b/src/directory/administrativeUnits/index.ts index 3022285253d..5d9f876c2b6 100644 --- a/src/directory/administrativeUnits/index.ts +++ b/src/directory/administrativeUnits/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../models'; import { createAdministrativeUnitFromDiscriminatorValue, deserializeIntoAdministrativeUnit, serializeAdministrativeUnit, type AdministrativeUnit } from '../../models/administrativeUnit'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { AdministrativeUnitItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { AdministrativeUnitItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AdministrativeUnitsRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/extensions/count/index.ts b/src/directory/administrativeUnits/item/extensions/count/index.ts index 2585841012a..4b7007b369b 100644 --- a/src/directory/administrativeUnits/item/extensions/count/index.ts +++ b/src/directory/administrativeUnits/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/extensions/index.ts b/src/directory/administrativeUnits/item/extensions/index.ts index e502042facc..bb2f993201c 100644 --- a/src/directory/administrativeUnits/item/extensions/index.ts +++ b/src/directory/administrativeUnits/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/extensions/item/index.ts b/src/directory/administrativeUnits/item/extensions/item/index.ts index d2fd71e1692..93f5a208c13 100644 --- a/src/directory/administrativeUnits/item/extensions/item/index.ts +++ b/src/directory/administrativeUnits/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../models/extension'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/index.ts b/src/directory/administrativeUnits/item/index.ts index bf908481390..345425ff4c2 100644 --- a/src/directory/administrativeUnits/item/index.ts +++ b/src/directory/administrativeUnits/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAdministrativeUnitFromDiscriminatorValue, deserializeIntoAdministrativeUnit, serializeAdministrativeUnit, type AdministrativeUnit } from '../../../models/administrativeUnit'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { MembersRequestBuilder } from './members/'; -import { ScopedRoleMembersRequestBuilder } from './scopedRoleMembers/'; +import { ExtensionsRequestBuilder } from './extensions'; +import { MembersRequestBuilder } from './members'; +import { ScopedRoleMembersRequestBuilder } from './scopedRoleMembers'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AdministrativeUnitItemRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/members/count/index.ts b/src/directory/administrativeUnits/item/members/count/index.ts index bee3794cb45..2e66cad3958 100644 --- a/src/directory/administrativeUnits/item/members/count/index.ts +++ b/src/directory/administrativeUnits/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/graphApplication/count/index.ts b/src/directory/administrativeUnits/item/members/graphApplication/count/index.ts index 563c13a7ba6..fd802e6397e 100644 --- a/src/directory/administrativeUnits/item/members/graphApplication/count/index.ts +++ b/src/directory/administrativeUnits/item/members/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/graphApplication/index.ts b/src/directory/administrativeUnits/item/members/graphApplication/index.ts index d7f2f3c8443..b7abd1eb762 100644 --- a/src/directory/administrativeUnits/item/members/graphApplication/index.ts +++ b/src/directory/administrativeUnits/item/members/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../../../models/'; +import { type ApplicationCollectionResponse } from '../../../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/members/graphDevice/count/index.ts b/src/directory/administrativeUnits/item/members/graphDevice/count/index.ts index e3ab8b827fa..debb3766125 100644 --- a/src/directory/administrativeUnits/item/members/graphDevice/count/index.ts +++ b/src/directory/administrativeUnits/item/members/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/graphDevice/index.ts b/src/directory/administrativeUnits/item/members/graphDevice/index.ts index 2943c183223..dc153eda647 100644 --- a/src/directory/administrativeUnits/item/members/graphDevice/index.ts +++ b/src/directory/administrativeUnits/item/members/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../../../models/'; +import { type DeviceCollectionResponse } from '../../../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/members/graphGroup/count/index.ts b/src/directory/administrativeUnits/item/members/graphGroup/count/index.ts index 143f352a409..58df46d08b7 100644 --- a/src/directory/administrativeUnits/item/members/graphGroup/count/index.ts +++ b/src/directory/administrativeUnits/item/members/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/graphGroup/index.ts b/src/directory/administrativeUnits/item/members/graphGroup/index.ts index 6d930a0ac57..198dd7d62b9 100644 --- a/src/directory/administrativeUnits/item/members/graphGroup/index.ts +++ b/src/directory/administrativeUnits/item/members/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../../models/'; +import { type GroupCollectionResponse } from '../../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/members/graphOrgContact/count/index.ts b/src/directory/administrativeUnits/item/members/graphOrgContact/count/index.ts index d84c05ed1a7..b3439bd5a62 100644 --- a/src/directory/administrativeUnits/item/members/graphOrgContact/count/index.ts +++ b/src/directory/administrativeUnits/item/members/graphOrgContact/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/graphOrgContact/index.ts b/src/directory/administrativeUnits/item/members/graphOrgContact/index.ts index a44f2413d17..ff491c57514 100644 --- a/src/directory/administrativeUnits/item/members/graphOrgContact/index.ts +++ b/src/directory/administrativeUnits/item/members/graphOrgContact/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../../../../../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphOrgContactRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/members/graphServicePrincipal/count/index.ts b/src/directory/administrativeUnits/item/members/graphServicePrincipal/count/index.ts index b323b02afb1..f2de9f78118 100644 --- a/src/directory/administrativeUnits/item/members/graphServicePrincipal/count/index.ts +++ b/src/directory/administrativeUnits/item/members/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/graphServicePrincipal/index.ts b/src/directory/administrativeUnits/item/members/graphServicePrincipal/index.ts index 660d50d4acc..53900bc2e3f 100644 --- a/src/directory/administrativeUnits/item/members/graphServicePrincipal/index.ts +++ b/src/directory/administrativeUnits/item/members/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/members/graphUser/count/index.ts b/src/directory/administrativeUnits/item/members/graphUser/count/index.ts index 655a826214c..482234f6754 100644 --- a/src/directory/administrativeUnits/item/members/graphUser/count/index.ts +++ b/src/directory/administrativeUnits/item/members/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/graphUser/index.ts b/src/directory/administrativeUnits/item/members/graphUser/index.ts index 3d92a33c04a..d5658826e72 100644 --- a/src/directory/administrativeUnits/item/members/graphUser/index.ts +++ b/src/directory/administrativeUnits/item/members/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/members/index.ts b/src/directory/administrativeUnits/item/members/index.ts index eb2058f00a4..ce414b3c95b 100644 --- a/src/directory/administrativeUnits/item/members/index.ts +++ b/src/directory/administrativeUnits/item/members/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue, deserializeIntoDirectoryObject, serializeDirectoryObject, type DirectoryObject } from '../../../../models/directoryObject'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/members/item/graphApplication/index.ts b/src/directory/administrativeUnits/item/members/item/graphApplication/index.ts index 3eabc9309bd..7a077a2ff06 100644 --- a/src/directory/administrativeUnits/item/members/item/graphApplication/index.ts +++ b/src/directory/administrativeUnits/item/members/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../../../models/'; +import { type Application } from '../../../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../../../models/application'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/item/graphDevice/index.ts b/src/directory/administrativeUnits/item/members/item/graphDevice/index.ts index 4ebef76fd09..819db56016c 100644 --- a/src/directory/administrativeUnits/item/members/item/graphDevice/index.ts +++ b/src/directory/administrativeUnits/item/members/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../../models/'; +import { type Device } from '../../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../../models/device'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/item/graphGroup/index.ts b/src/directory/administrativeUnits/item/members/item/graphGroup/index.ts index 4f3c03822ef..74f8bc43d52 100644 --- a/src/directory/administrativeUnits/item/members/item/graphGroup/index.ts +++ b/src/directory/administrativeUnits/item/members/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../../models/'; +import { type Group } from '../../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../../models/group'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/item/graphOrgContact/index.ts b/src/directory/administrativeUnits/item/members/item/graphOrgContact/index.ts index 3e2b3d90105..65f21c960a5 100644 --- a/src/directory/administrativeUnits/item/members/item/graphOrgContact/index.ts +++ b/src/directory/administrativeUnits/item/members/item/graphOrgContact/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContact } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OrgContact } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue } from '../../../../../../models/orgContact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/item/graphServicePrincipal/index.ts b/src/directory/administrativeUnits/item/members/item/graphServicePrincipal/index.ts index 0f9f42242ae..4e965240ba9 100644 --- a/src/directory/administrativeUnits/item/members/item/graphServicePrincipal/index.ts +++ b/src/directory/administrativeUnits/item/members/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/item/graphUser/index.ts b/src/directory/administrativeUnits/item/members/item/graphUser/index.ts index ab9f8beebad..034c85eb9cf 100644 --- a/src/directory/administrativeUnits/item/members/item/graphUser/index.ts +++ b/src/directory/administrativeUnits/item/members/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/item/index.ts b/src/directory/administrativeUnits/item/members/item/index.ts index 7f4298751e4..f349b123d06 100644 --- a/src/directory/administrativeUnits/item/members/item/index.ts +++ b/src/directory/administrativeUnits/item/members/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RefRequestBuilder } from './ref/'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/directory/administrativeUnits/item/members/item/ref/index.ts b/src/directory/administrativeUnits/item/members/item/ref/index.ts index 2cb19e1c225..67e9140cb9e 100644 --- a/src/directory/administrativeUnits/item/members/item/ref/index.ts +++ b/src/directory/administrativeUnits/item/members/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/members/ref/index.ts b/src/directory/administrativeUnits/item/members/ref/index.ts index c3430777df4..6a4076d86a2 100644 --- a/src/directory/administrativeUnits/item/members/ref/index.ts +++ b/src/directory/administrativeUnits/item/members/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/directory/administrativeUnits/item/scopedRoleMembers/count/index.ts b/src/directory/administrativeUnits/item/scopedRoleMembers/count/index.ts index b45aaa93131..2088cc17ffe 100644 --- a/src/directory/administrativeUnits/item/scopedRoleMembers/count/index.ts +++ b/src/directory/administrativeUnits/item/scopedRoleMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/administrativeUnits/item/scopedRoleMembers/index.ts b/src/directory/administrativeUnits/item/scopedRoleMembers/index.ts index 8f5bcb9960b..c2059528fc3 100644 --- a/src/directory/administrativeUnits/item/scopedRoleMembers/index.ts +++ b/src/directory/administrativeUnits/item/scopedRoleMembers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ScopedRoleMembershipCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ScopedRoleMembershipCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createScopedRoleMembershipFromDiscriminatorValue, deserializeIntoScopedRoleMembership, serializeScopedRoleMembership, type ScopedRoleMembership } from '../../../../models/scopedRoleMembership'; import { createScopedRoleMembershipCollectionResponseFromDiscriminatorValue } from '../../../../models/scopedRoleMembershipCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ScopedRoleMembershipItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ScopedRoleMembershipItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopedRoleMembersRequestBuilderGetQueryParameters { diff --git a/src/directory/administrativeUnits/item/scopedRoleMembers/item/index.ts b/src/directory/administrativeUnits/item/scopedRoleMembers/item/index.ts index 6cbdc017627..b319c97decb 100644 --- a/src/directory/administrativeUnits/item/scopedRoleMembers/item/index.ts +++ b/src/directory/administrativeUnits/item/scopedRoleMembers/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createScopedRoleMembershipFromDiscriminatorValue, deserializeIntoScopedRoleMembership, serializeScopedRoleMembership, type ScopedRoleMembership } from '../../../../../models/scopedRoleMembership'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/attributeSets/count/index.ts b/src/directory/attributeSets/count/index.ts index 482910ffd99..aee982ab768 100644 --- a/src/directory/attributeSets/count/index.ts +++ b/src/directory/attributeSets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/attributeSets/index.ts b/src/directory/attributeSets/index.ts index b73da997cdb..97542a0667a 100644 --- a/src/directory/attributeSets/index.ts +++ b/src/directory/attributeSets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttributeSetCollectionResponse } from '../../models/'; +import { type AttributeSetCollectionResponse } from '../../models'; import { createAttributeSetFromDiscriminatorValue, deserializeIntoAttributeSet, serializeAttributeSet, type AttributeSet } from '../../models/attributeSet'; import { createAttributeSetCollectionResponseFromDiscriminatorValue } from '../../models/attributeSetCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AttributeSetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AttributeSetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttributeSetsRequestBuilderGetQueryParameters { diff --git a/src/directory/attributeSets/item/index.ts b/src/directory/attributeSets/item/index.ts index b49210167e0..434a20e86b0 100644 --- a/src/directory/attributeSets/item/index.ts +++ b/src/directory/attributeSets/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttributeSetFromDiscriminatorValue, deserializeIntoAttributeSet, serializeAttributeSet, type AttributeSet } from '../../../models/attributeSet'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/customSecurityAttributeDefinitions/count/index.ts b/src/directory/customSecurityAttributeDefinitions/count/index.ts index 05081c65550..812ef44e2d6 100644 --- a/src/directory/customSecurityAttributeDefinitions/count/index.ts +++ b/src/directory/customSecurityAttributeDefinitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/customSecurityAttributeDefinitions/index.ts b/src/directory/customSecurityAttributeDefinitions/index.ts index a85c9a2b0c0..87b6d66d58a 100644 --- a/src/directory/customSecurityAttributeDefinitions/index.ts +++ b/src/directory/customSecurityAttributeDefinitions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomSecurityAttributeDefinitionCollectionResponse } from '../../models/'; +import { type CustomSecurityAttributeDefinitionCollectionResponse } from '../../models'; import { createCustomSecurityAttributeDefinitionFromDiscriminatorValue, deserializeIntoCustomSecurityAttributeDefinition, serializeCustomSecurityAttributeDefinition, type CustomSecurityAttributeDefinition } from '../../models/customSecurityAttributeDefinition'; import { createCustomSecurityAttributeDefinitionCollectionResponseFromDiscriminatorValue } from '../../models/customSecurityAttributeDefinitionCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CustomSecurityAttributeDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CustomSecurityAttributeDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/directory/customSecurityAttributeDefinitions/item/allowedValues/count/index.ts b/src/directory/customSecurityAttributeDefinitions/item/allowedValues/count/index.ts index c8a4028fbb1..d5368ea30b8 100644 --- a/src/directory/customSecurityAttributeDefinitions/item/allowedValues/count/index.ts +++ b/src/directory/customSecurityAttributeDefinitions/item/allowedValues/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/customSecurityAttributeDefinitions/item/allowedValues/index.ts b/src/directory/customSecurityAttributeDefinitions/item/allowedValues/index.ts index 8594c135366..92602f17091 100644 --- a/src/directory/customSecurityAttributeDefinitions/item/allowedValues/index.ts +++ b/src/directory/customSecurityAttributeDefinitions/item/allowedValues/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AllowedValueCollectionResponse } from '../../../../models/'; +import { type AllowedValueCollectionResponse } from '../../../../models'; import { createAllowedValueFromDiscriminatorValue, deserializeIntoAllowedValue, serializeAllowedValue, type AllowedValue } from '../../../../models/allowedValue'; import { createAllowedValueCollectionResponseFromDiscriminatorValue } from '../../../../models/allowedValueCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AllowedValueItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AllowedValueItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedValuesRequestBuilderGetQueryParameters { diff --git a/src/directory/customSecurityAttributeDefinitions/item/allowedValues/item/index.ts b/src/directory/customSecurityAttributeDefinitions/item/allowedValues/item/index.ts index 8b278170f3d..be59ddaf5ba 100644 --- a/src/directory/customSecurityAttributeDefinitions/item/allowedValues/item/index.ts +++ b/src/directory/customSecurityAttributeDefinitions/item/allowedValues/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAllowedValueFromDiscriminatorValue, deserializeIntoAllowedValue, serializeAllowedValue, type AllowedValue } from '../../../../../models/allowedValue'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/customSecurityAttributeDefinitions/item/index.ts b/src/directory/customSecurityAttributeDefinitions/item/index.ts index df39d2fa261..05938b65ffb 100644 --- a/src/directory/customSecurityAttributeDefinitions/item/index.ts +++ b/src/directory/customSecurityAttributeDefinitions/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCustomSecurityAttributeDefinitionFromDiscriminatorValue, deserializeIntoCustomSecurityAttributeDefinition, serializeCustomSecurityAttributeDefinition, type CustomSecurityAttributeDefinition } from '../../../models/customSecurityAttributeDefinition'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AllowedValuesRequestBuilder } from './allowedValues/'; +import { AllowedValuesRequestBuilder } from './allowedValues'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/count/index.ts b/src/directory/deletedItems/count/index.ts index ff99e964233..98fa6dd20dc 100644 --- a/src/directory/deletedItems/count/index.ts +++ b/src/directory/deletedItems/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/getAvailableExtensionProperties/index.ts b/src/directory/deletedItems/getAvailableExtensionProperties/index.ts index 4613ff828fa..7800d3c8b0a 100644 --- a/src/directory/deletedItems/getAvailableExtensionProperties/index.ts +++ b/src/directory/deletedItems/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../../models/extensionProperty'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directory/deletedItems/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directory/deletedItems/getByIds/getByIdsPostRequestBody.ts b/src/directory/deletedItems/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/directory/deletedItems/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/directory/deletedItems/getByIds/index.ts b/src/directory/deletedItems/getByIds/index.ts index d1fd7830ae9..cf4b3c25f9e 100644 --- a/src/directory/deletedItems/getByIds/index.ts +++ b/src/directory/deletedItems/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directory/deletedItems/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directory/deletedItems/graphAdministrativeUnit/count/index.ts b/src/directory/deletedItems/graphAdministrativeUnit/count/index.ts index d92901957da..6d553019d69 100644 --- a/src/directory/deletedItems/graphAdministrativeUnit/count/index.ts +++ b/src/directory/deletedItems/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/graphAdministrativeUnit/index.ts b/src/directory/deletedItems/graphAdministrativeUnit/index.ts index 79cac76e7cb..f232075e3ea 100644 --- a/src/directory/deletedItems/graphAdministrativeUnit/index.ts +++ b/src/directory/deletedItems/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/graphApplication/count/index.ts b/src/directory/deletedItems/graphApplication/count/index.ts index 7e2882a9aae..c087e8f84fe 100644 --- a/src/directory/deletedItems/graphApplication/count/index.ts +++ b/src/directory/deletedItems/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/graphApplication/index.ts b/src/directory/deletedItems/graphApplication/index.ts index 77993208f94..7f1276d4531 100644 --- a/src/directory/deletedItems/graphApplication/index.ts +++ b/src/directory/deletedItems/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../models/'; +import { type ApplicationCollectionResponse } from '../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/graphDevice/count/index.ts b/src/directory/deletedItems/graphDevice/count/index.ts index 07425ec0037..d9bdede87eb 100644 --- a/src/directory/deletedItems/graphDevice/count/index.ts +++ b/src/directory/deletedItems/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/graphDevice/index.ts b/src/directory/deletedItems/graphDevice/index.ts index dd72b31f34d..32cf8899d35 100644 --- a/src/directory/deletedItems/graphDevice/index.ts +++ b/src/directory/deletedItems/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../models/'; +import { type DeviceCollectionResponse } from '../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/graphGroup/count/index.ts b/src/directory/deletedItems/graphGroup/count/index.ts index 8694626f634..2ad73a4515b 100644 --- a/src/directory/deletedItems/graphGroup/count/index.ts +++ b/src/directory/deletedItems/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/graphGroup/index.ts b/src/directory/deletedItems/graphGroup/index.ts index 53ac83c488e..42051dda0c4 100644 --- a/src/directory/deletedItems/graphGroup/index.ts +++ b/src/directory/deletedItems/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../models/'; +import { type GroupCollectionResponse } from '../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/graphServicePrincipal/count/index.ts b/src/directory/deletedItems/graphServicePrincipal/count/index.ts index 61fcb84568f..fb3150fdd05 100644 --- a/src/directory/deletedItems/graphServicePrincipal/count/index.ts +++ b/src/directory/deletedItems/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/graphServicePrincipal/index.ts b/src/directory/deletedItems/graphServicePrincipal/index.ts index 14c4d705d33..9f1c68e5997 100644 --- a/src/directory/deletedItems/graphServicePrincipal/index.ts +++ b/src/directory/deletedItems/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/graphUser/count/index.ts b/src/directory/deletedItems/graphUser/count/index.ts index 54dce7ea9a9..6e54b736d84 100644 --- a/src/directory/deletedItems/graphUser/count/index.ts +++ b/src/directory/deletedItems/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/graphUser/index.ts b/src/directory/deletedItems/graphUser/index.ts index 4ae9edc81eb..d112b2377ea 100644 --- a/src/directory/deletedItems/graphUser/index.ts +++ b/src/directory/deletedItems/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/index.ts b/src/directory/deletedItems/index.ts index 35f6b626c7d..a6435beec35 100644 --- a/src/directory/deletedItems/index.ts +++ b/src/directory/deletedItems/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeletedItemsRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/directory/deletedItems/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/directory/deletedItems/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/directory/deletedItems/item/checkMemberGroups/index.ts b/src/directory/deletedItems/item/checkMemberGroups/index.ts index 575437267ee..6c8ac40e5bf 100644 --- a/src/directory/deletedItems/item/checkMemberGroups/index.ts +++ b/src/directory/deletedItems/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directory/deletedItems/item/checkMemberObjects/index.ts b/src/directory/deletedItems/item/checkMemberObjects/index.ts index 84936b2e810..cab7162f9ab 100644 --- a/src/directory/deletedItems/item/checkMemberObjects/index.ts +++ b/src/directory/deletedItems/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directory/deletedItems/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/directory/deletedItems/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index 72f7c1b2d8b..00000000000 --- a/src/directory/deletedItems/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/directory/deletedItems/item/getMemberGroups/index.ts b/src/directory/deletedItems/item/getMemberGroups/index.ts index bd8cf57d056..e7344ba5741 100644 --- a/src/directory/deletedItems/item/getMemberGroups/index.ts +++ b/src/directory/deletedItems/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directory/deletedItems/item/getMemberObjects/index.ts b/src/directory/deletedItems/item/getMemberObjects/index.ts index cf1c2532fef..1d90b3647dc 100644 --- a/src/directory/deletedItems/item/getMemberObjects/index.ts +++ b/src/directory/deletedItems/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directory/deletedItems/item/graphAdministrativeUnit/index.ts b/src/directory/deletedItems/item/graphAdministrativeUnit/index.ts index 04895f94e93..c2409a6903b 100644 --- a/src/directory/deletedItems/item/graphAdministrativeUnit/index.ts +++ b/src/directory/deletedItems/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../models/'; +import { type AdministrativeUnit } from '../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/item/graphApplication/index.ts b/src/directory/deletedItems/item/graphApplication/index.ts index dca13106f3a..2a112476d00 100644 --- a/src/directory/deletedItems/item/graphApplication/index.ts +++ b/src/directory/deletedItems/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../models/'; +import { type Application } from '../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../models/application'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/item/graphDevice/index.ts b/src/directory/deletedItems/item/graphDevice/index.ts index b66eb39d0cc..f6bbe065833 100644 --- a/src/directory/deletedItems/item/graphDevice/index.ts +++ b/src/directory/deletedItems/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../models/'; +import { type Device } from '../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../models/device'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/item/graphGroup/index.ts b/src/directory/deletedItems/item/graphGroup/index.ts index d5e1293c586..b8a13c3d2a3 100644 --- a/src/directory/deletedItems/item/graphGroup/index.ts +++ b/src/directory/deletedItems/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../models/'; +import { type Group } from '../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../models/group'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/item/graphServicePrincipal/index.ts b/src/directory/deletedItems/item/graphServicePrincipal/index.ts index 68efa61dea7..28b4c6e5e2d 100644 --- a/src/directory/deletedItems/item/graphServicePrincipal/index.ts +++ b/src/directory/deletedItems/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/item/graphUser/index.ts b/src/directory/deletedItems/item/graphUser/index.ts index 0815306f812..cfdde51d68d 100644 --- a/src/directory/deletedItems/item/graphUser/index.ts +++ b/src/directory/deletedItems/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type User } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/item/index.ts b/src/directory/deletedItems/item/index.ts index 7f9b3bd4e0a..db005031982 100644 --- a/src/directory/deletedItems/item/index.ts +++ b/src/directory/deletedItems/item/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RestoreRequestBuilder } from './restore/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/directory/deletedItems/item/restore/index.ts b/src/directory/deletedItems/item/restore/index.ts index a06a0666930..669c7d6366c 100644 --- a/src/directory/deletedItems/item/restore/index.ts +++ b/src/directory/deletedItems/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deletedItems/validateProperties/index.ts b/src/directory/deletedItems/validateProperties/index.ts index 89a55b1abfb..3c9a114e085 100644 --- a/src/directory/deletedItems/validateProperties/index.ts +++ b/src/directory/deletedItems/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directory/deletedItems/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directory/deviceLocalCredentials/count/index.ts b/src/directory/deviceLocalCredentials/count/index.ts index 81cf71a80f0..7e8bb62a166 100644 --- a/src/directory/deviceLocalCredentials/count/index.ts +++ b/src/directory/deviceLocalCredentials/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/deviceLocalCredentials/index.ts b/src/directory/deviceLocalCredentials/index.ts index b5e8d6a0d10..bd63ca4bb35 100644 --- a/src/directory/deviceLocalCredentials/index.ts +++ b/src/directory/deviceLocalCredentials/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceLocalCredentialInfoCollectionResponse } from '../../models/'; +import { type DeviceLocalCredentialInfoCollectionResponse } from '../../models'; import { createDeviceLocalCredentialInfoFromDiscriminatorValue, deserializeIntoDeviceLocalCredentialInfo, serializeDeviceLocalCredentialInfo, type DeviceLocalCredentialInfo } from '../../models/deviceLocalCredentialInfo'; import { createDeviceLocalCredentialInfoCollectionResponseFromDiscriminatorValue } from '../../models/deviceLocalCredentialInfoCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceLocalCredentialInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceLocalCredentialInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceLocalCredentialsRequestBuilderGetQueryParameters { diff --git a/src/directory/deviceLocalCredentials/item/index.ts b/src/directory/deviceLocalCredentials/item/index.ts index 3e801691ce5..b6dfd8e31a2 100644 --- a/src/directory/deviceLocalCredentials/item/index.ts +++ b/src/directory/deviceLocalCredentials/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceLocalCredentialInfoFromDiscriminatorValue, deserializeIntoDeviceLocalCredentialInfo, serializeDeviceLocalCredentialInfo, type DeviceLocalCredentialInfo } from '../../../models/deviceLocalCredentialInfo'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/federationConfigurations/availableProviderTypes/availableProviderTypesGetResponse.ts b/src/directory/federationConfigurations/availableProviderTypes/availableProviderTypesGetResponse.ts deleted file mode 100644 index 4156856cbe7..00000000000 --- a/src/directory/federationConfigurations/availableProviderTypes/availableProviderTypesGetResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AvailableProviderTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function createAvailableProviderTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAvailableProviderTypesGetResponse; -} -export function deserializeIntoAvailableProviderTypesGetResponse(availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(availableProviderTypesGetResponse), - "value": n => { availableProviderTypesGetResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeAvailableProviderTypesGetResponse(writer: SerializationWriter, availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, availableProviderTypesGetResponse) - writer.writeCollectionOfPrimitiveValues("value", availableProviderTypesGetResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/directory/federationConfigurations/availableProviderTypes/index.ts b/src/directory/federationConfigurations/availableProviderTypes/index.ts index 398db3ae1d1..b8ea8de145a 100644 --- a/src/directory/federationConfigurations/availableProviderTypes/index.ts +++ b/src/directory/federationConfigurations/availableProviderTypes/index.ts @@ -1,12 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createAvailableProviderTypesGetResponseFromDiscriminatorValue } from './'; -import { type AvailableProviderTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AvailableProviderTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: string[]; +} export interface AvailableProviderTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +34,20 @@ export interface AvailableProviderTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function createAvailableProviderTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAvailableProviderTypesGetResponse; +} +export function deserializeIntoAvailableProviderTypesGetResponse(availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(availableProviderTypesGetResponse), + "value": n => { availableProviderTypesGetResponse.value = n.getCollectionOfPrimitiveValues(); }, + } +} +export function serializeAvailableProviderTypesGetResponse(writer: SerializationWriter, availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, availableProviderTypesGetResponse) + writer.writeCollectionOfPrimitiveValues("value", availableProviderTypesGetResponse.value); +} /** * Provides operations to call the availableProviderTypes method. */ diff --git a/src/directory/federationConfigurations/count/index.ts b/src/directory/federationConfigurations/count/index.ts index 53970c711ba..5edbef9b258 100644 --- a/src/directory/federationConfigurations/count/index.ts +++ b/src/directory/federationConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/federationConfigurations/index.ts b/src/directory/federationConfigurations/index.ts index 69432a4eefb..a67fcd919bd 100644 --- a/src/directory/federationConfigurations/index.ts +++ b/src/directory/federationConfigurations/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityProviderBaseCollectionResponse } from '../../models/'; +import { type IdentityProviderBaseCollectionResponse } from '../../models'; import { createIdentityProviderBaseFromDiscriminatorValue, deserializeIntoIdentityProviderBase, serializeIdentityProviderBase, type IdentityProviderBase } from '../../models/identityProviderBase'; import { createIdentityProviderBaseCollectionResponseFromDiscriminatorValue } from '../../models/identityProviderBaseCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AvailableProviderTypesRequestBuilder } from './availableProviderTypes/'; -import { CountRequestBuilder } from './count/'; -import { IdentityProviderBaseItemRequestBuilder } from './item/'; +import { AvailableProviderTypesRequestBuilder } from './availableProviderTypes'; +import { CountRequestBuilder } from './count'; +import { IdentityProviderBaseItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FederationConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/directory/federationConfigurations/item/index.ts b/src/directory/federationConfigurations/item/index.ts index 0f96c544ab0..0a4be448804 100644 --- a/src/directory/federationConfigurations/item/index.ts +++ b/src/directory/federationConfigurations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityProviderBaseFromDiscriminatorValue, deserializeIntoIdentityProviderBase, serializeIdentityProviderBase, type IdentityProviderBase } from '../../../models/identityProviderBase'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/index.ts b/src/directory/index.ts index 581ae7c9e95..229c34e76b9 100644 --- a/src/directory/index.ts +++ b/src/directory/index.ts @@ -2,15 +2,15 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryFromDiscriminatorValue, deserializeIntoDirectory, serializeDirectory, type Directory } from '../models/directory'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { AdministrativeUnitsRequestBuilder } from './administrativeUnits/'; -import { AttributeSetsRequestBuilder } from './attributeSets/'; -import { CustomSecurityAttributeDefinitionsRequestBuilder } from './customSecurityAttributeDefinitions/'; -import { DeletedItemsRequestBuilder } from './deletedItems/'; -import { DeviceLocalCredentialsRequestBuilder } from './deviceLocalCredentials/'; -import { FederationConfigurationsRequestBuilder } from './federationConfigurations/'; -import { OnPremisesSynchronizationRequestBuilder } from './onPremisesSynchronization/'; +import { AdministrativeUnitsRequestBuilder } from './administrativeUnits'; +import { AttributeSetsRequestBuilder } from './attributeSets'; +import { CustomSecurityAttributeDefinitionsRequestBuilder } from './customSecurityAttributeDefinitions'; +import { DeletedItemsRequestBuilder } from './deletedItems'; +import { DeviceLocalCredentialsRequestBuilder } from './deviceLocalCredentials'; +import { FederationConfigurationsRequestBuilder } from './federationConfigurations'; +import { OnPremisesSynchronizationRequestBuilder } from './onPremisesSynchronization'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryRequestBuilderGetQueryParameters { diff --git a/src/directory/onPremisesSynchronization/count/index.ts b/src/directory/onPremisesSynchronization/count/index.ts index 34307583fae..54e610eb030 100644 --- a/src/directory/onPremisesSynchronization/count/index.ts +++ b/src/directory/onPremisesSynchronization/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directory/onPremisesSynchronization/index.ts b/src/directory/onPremisesSynchronization/index.ts index 4489da661e8..71dd0260494 100644 --- a/src/directory/onPremisesSynchronization/index.ts +++ b/src/directory/onPremisesSynchronization/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnPremisesDirectorySynchronizationCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type OnPremisesDirectorySynchronizationCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createOnPremisesDirectorySynchronizationFromDiscriminatorValue, deserializeIntoOnPremisesDirectorySynchronization, serializeOnPremisesDirectorySynchronization, type OnPremisesDirectorySynchronization } from '../../models/onPremisesDirectorySynchronization'; import { createOnPremisesDirectorySynchronizationCollectionResponseFromDiscriminatorValue } from '../../models/onPremisesDirectorySynchronizationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnPremisesDirectorySynchronizationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnPremisesDirectorySynchronizationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnPremisesSynchronizationRequestBuilderGetQueryParameters { diff --git a/src/directory/onPremisesSynchronization/item/index.ts b/src/directory/onPremisesSynchronization/item/index.ts index 0bcd5fe01f7..cf03437d1d2 100644 --- a/src/directory/onPremisesSynchronization/item/index.ts +++ b/src/directory/onPremisesSynchronization/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOnPremisesDirectorySynchronizationFromDiscriminatorValue, deserializeIntoOnPremisesDirectorySynchronization, serializeOnPremisesDirectorySynchronization, type OnPremisesDirectorySynchronization } from '../../../models/onPremisesDirectorySynchronization'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryObjects/count/index.ts b/src/directoryObjects/count/index.ts index 81740920e96..84ae1d0c7be 100644 --- a/src/directoryObjects/count/index.ts +++ b/src/directoryObjects/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryObjects/delta/index.ts b/src/directoryObjects/delta/index.ts index 976b3e50dee..145d5b0230d 100644 --- a/src/directoryObjects/delta/index.ts +++ b/src/directoryObjects/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: DirectoryObject[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryObjects/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/directoryObjects/getAvailableExtensionProperties/index.ts b/src/directoryObjects/getAvailableExtensionProperties/index.ts index 76c05778a8f..7800d3c8b0a 100644 --- a/src/directoryObjects/getAvailableExtensionProperties/index.ts +++ b/src/directoryObjects/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryObjects/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryObjects/getByIds/getByIdsPostRequestBody.ts b/src/directoryObjects/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/directoryObjects/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryObjects/getByIds/index.ts b/src/directoryObjects/getByIds/index.ts index 903eeff8cb5..49172d3c7dd 100644 --- a/src/directoryObjects/getByIds/index.ts +++ b/src/directoryObjects/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryObjects/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryObjects/index.ts b/src/directoryObjects/index.ts index 4c25bc16481..1c13f76e993 100644 --- a/src/directoryObjects/index.ts +++ b/src/directoryObjects/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../models/'; +import { type DirectoryObjectCollectionResponse } from '../models'; import { createDirectoryObjectFromDiscriminatorValue, deserializeIntoDirectoryObject, serializeDirectoryObject, type DirectoryObject } from '../models/directoryObject'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectsRequestBuilderGetQueryParameters { diff --git a/src/directoryObjects/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/directoryObjects/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/directoryObjects/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryObjects/item/checkMemberGroups/index.ts b/src/directoryObjects/item/checkMemberGroups/index.ts index fcea1b55fe9..dcf9cd58809 100644 --- a/src/directoryObjects/item/checkMemberGroups/index.ts +++ b/src/directoryObjects/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryObjects/item/checkMemberObjects/index.ts b/src/directoryObjects/item/checkMemberObjects/index.ts index 54a4e495081..d53883127a7 100644 --- a/src/directoryObjects/item/checkMemberObjects/index.ts +++ b/src/directoryObjects/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryObjects/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/directoryObjects/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/directoryObjects/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryObjects/item/getMemberGroups/index.ts b/src/directoryObjects/item/getMemberGroups/index.ts index c3f6e323e2f..e7344ba5741 100644 --- a/src/directoryObjects/item/getMemberGroups/index.ts +++ b/src/directoryObjects/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryObjects/item/getMemberObjects/index.ts b/src/directoryObjects/item/getMemberObjects/index.ts index 4e3f2a01082..1d90b3647dc 100644 --- a/src/directoryObjects/item/getMemberObjects/index.ts +++ b/src/directoryObjects/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryObjects/item/index.ts b/src/directoryObjects/item/index.ts index 39d2abc6f96..15c2e6d7b06 100644 --- a/src/directoryObjects/item/index.ts +++ b/src/directoryObjects/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryObjectFromDiscriminatorValue, deserializeIntoDirectoryObject, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { RestoreRequestBuilder } from './restore/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/directoryObjects/item/restore/index.ts b/src/directoryObjects/item/restore/index.ts index 33427dfe2d3..009fecce970 100644 --- a/src/directoryObjects/item/restore/index.ts +++ b/src/directoryObjects/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryObjects/validateProperties/index.ts b/src/directoryObjects/validateProperties/index.ts index 8ed2d555847..3c9a114e085 100644 --- a/src/directoryObjects/validateProperties/index.ts +++ b/src/directoryObjects/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryObjects/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoleTemplates/count/index.ts b/src/directoryRoleTemplates/count/index.ts index 0ac43036d36..95586b17b56 100644 --- a/src/directoryRoleTemplates/count/index.ts +++ b/src/directoryRoleTemplates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoleTemplates/delta/index.ts b/src/directoryRoleTemplates/delta/index.ts index 0b8408b6f22..145d5b0230d 100644 --- a/src/directoryRoleTemplates/delta/index.ts +++ b/src/directoryRoleTemplates/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: DirectoryObject[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoleTemplates/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/directoryRoleTemplates/getAvailableExtensionProperties/index.ts b/src/directoryRoleTemplates/getAvailableExtensionProperties/index.ts index ab51bf35c81..7800d3c8b0a 100644 --- a/src/directoryRoleTemplates/getAvailableExtensionProperties/index.ts +++ b/src/directoryRoleTemplates/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoleTemplates/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoleTemplates/getByIds/getByIdsPostRequestBody.ts b/src/directoryRoleTemplates/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/directoryRoleTemplates/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryRoleTemplates/getByIds/index.ts b/src/directoryRoleTemplates/getByIds/index.ts index 97016ee9b0c..49172d3c7dd 100644 --- a/src/directoryRoleTemplates/getByIds/index.ts +++ b/src/directoryRoleTemplates/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoleTemplates/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoleTemplates/index.ts b/src/directoryRoleTemplates/index.ts index d644f2113a7..6a870960a63 100644 --- a/src/directoryRoleTemplates/index.ts +++ b/src/directoryRoleTemplates/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRoleTemplateCollectionResponse } from '../models/'; +import { type DirectoryRoleTemplateCollectionResponse } from '../models'; import { createDirectoryRoleTemplateFromDiscriminatorValue, deserializeIntoDirectoryRoleTemplate, serializeDirectoryRoleTemplate, type DirectoryRoleTemplate } from '../models/directoryRoleTemplate'; import { createDirectoryRoleTemplateCollectionResponseFromDiscriminatorValue } from '../models/directoryRoleTemplateCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { DirectoryRoleTemplateItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { DirectoryRoleTemplateItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryRoleTemplatesRequestBuilderGetQueryParameters { diff --git a/src/directoryRoleTemplates/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/directoryRoleTemplates/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/directoryRoleTemplates/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryRoleTemplates/item/checkMemberGroups/index.ts b/src/directoryRoleTemplates/item/checkMemberGroups/index.ts index 3f38d51172b..dcf9cd58809 100644 --- a/src/directoryRoleTemplates/item/checkMemberGroups/index.ts +++ b/src/directoryRoleTemplates/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoleTemplates/item/checkMemberObjects/index.ts b/src/directoryRoleTemplates/item/checkMemberObjects/index.ts index 660f28ed17a..d53883127a7 100644 --- a/src/directoryRoleTemplates/item/checkMemberObjects/index.ts +++ b/src/directoryRoleTemplates/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoleTemplates/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/directoryRoleTemplates/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/directoryRoleTemplates/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryRoleTemplates/item/getMemberGroups/index.ts b/src/directoryRoleTemplates/item/getMemberGroups/index.ts index 41fc421443e..e7344ba5741 100644 --- a/src/directoryRoleTemplates/item/getMemberGroups/index.ts +++ b/src/directoryRoleTemplates/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoleTemplates/item/getMemberObjects/index.ts b/src/directoryRoleTemplates/item/getMemberObjects/index.ts index e244e23b634..1d90b3647dc 100644 --- a/src/directoryRoleTemplates/item/getMemberObjects/index.ts +++ b/src/directoryRoleTemplates/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoleTemplates/item/index.ts b/src/directoryRoleTemplates/item/index.ts index ba8afb5fd7c..bf04a4fc9a4 100644 --- a/src/directoryRoleTemplates/item/index.ts +++ b/src/directoryRoleTemplates/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryRoleTemplateFromDiscriminatorValue, deserializeIntoDirectoryRoleTemplate, serializeDirectoryRoleTemplate, type DirectoryRoleTemplate } from '../../models/directoryRoleTemplate'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { RestoreRequestBuilder } from './restore/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryRoleTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/directoryRoleTemplates/item/restore/index.ts b/src/directoryRoleTemplates/item/restore/index.ts index 6e98cfa11e1..086e4f9264d 100644 --- a/src/directoryRoleTemplates/item/restore/index.ts +++ b/src/directoryRoleTemplates/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoleTemplates/validateProperties/index.ts b/src/directoryRoleTemplates/validateProperties/index.ts index 455a580f376..3c9a114e085 100644 --- a/src/directoryRoleTemplates/validateProperties/index.ts +++ b/src/directoryRoleTemplates/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoleTemplates/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoles/count/index.ts b/src/directoryRoles/count/index.ts index b330faa9fdf..1bfd577e61e 100644 --- a/src/directoryRoles/count/index.ts +++ b/src/directoryRoles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/delta/index.ts b/src/directoryRoles/delta/index.ts index 36e698a64af..e148a33f833 100644 --- a/src/directoryRoles/delta/index.ts +++ b/src/directoryRoles/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createDirectoryRoleFromDiscriminatorValue, serializeDirectoryRole, type DirectoryRole } from '../../models/directoryRole'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: DirectoryRole[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDirectoryRole); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoles/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/directoryRoles/getAvailableExtensionProperties/index.ts b/src/directoryRoles/getAvailableExtensionProperties/index.ts index f6ce19c2889..7800d3c8b0a 100644 --- a/src/directoryRoles/getAvailableExtensionProperties/index.ts +++ b/src/directoryRoles/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoles/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoles/getByIds/getByIdsPostRequestBody.ts b/src/directoryRoles/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/directoryRoles/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryRoles/getByIds/index.ts b/src/directoryRoles/getByIds/index.ts index ffb1f8ca2fc..49172d3c7dd 100644 --- a/src/directoryRoles/getByIds/index.ts +++ b/src/directoryRoles/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoles/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoles/index.ts b/src/directoryRoles/index.ts index c297d4aae89..861116da359 100644 --- a/src/directoryRoles/index.ts +++ b/src/directoryRoles/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRoleCollectionResponse } from '../models/'; +import { type DirectoryRoleCollectionResponse } from '../models'; import { createDirectoryRoleFromDiscriminatorValue, deserializeIntoDirectoryRole, serializeDirectoryRole, type DirectoryRole } from '../models/directoryRole'; import { createDirectoryRoleCollectionResponseFromDiscriminatorValue } from '../models/directoryRoleCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { DirectoryRoleItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { DirectoryRoleItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryRolesRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/directoryRoles/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/directoryRoles/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryRoles/item/checkMemberGroups/index.ts b/src/directoryRoles/item/checkMemberGroups/index.ts index c92b22453a5..dcf9cd58809 100644 --- a/src/directoryRoles/item/checkMemberGroups/index.ts +++ b/src/directoryRoles/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoles/item/checkMemberObjects/index.ts b/src/directoryRoles/item/checkMemberObjects/index.ts index 390e8432280..d53883127a7 100644 --- a/src/directoryRoles/item/checkMemberObjects/index.ts +++ b/src/directoryRoles/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoles/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/directoryRoles/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/directoryRoles/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/directoryRoles/item/getMemberGroups/index.ts b/src/directoryRoles/item/getMemberGroups/index.ts index 73de418bea5..e7344ba5741 100644 --- a/src/directoryRoles/item/getMemberGroups/index.ts +++ b/src/directoryRoles/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoles/item/getMemberObjects/index.ts b/src/directoryRoles/item/getMemberObjects/index.ts index 4b2c4ebccb2..1d90b3647dc 100644 --- a/src/directoryRoles/item/getMemberObjects/index.ts +++ b/src/directoryRoles/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRoles/item/index.ts b/src/directoryRoles/item/index.ts index 0be717274ad..6f9121ad068 100644 --- a/src/directoryRoles/item/index.ts +++ b/src/directoryRoles/item/index.ts @@ -2,15 +2,15 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryRoleFromDiscriminatorValue, deserializeIntoDirectoryRole, serializeDirectoryRole, type DirectoryRole } from '../../models/directoryRole'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { MembersRequestBuilder } from './members/'; -import { RestoreRequestBuilder } from './restore/'; -import { ScopedMembersRequestBuilder } from './scopedMembers/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { MembersRequestBuilder } from './members'; +import { RestoreRequestBuilder } from './restore'; +import { ScopedMembersRequestBuilder } from './scopedMembers'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryRoleItemRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/members/count/index.ts b/src/directoryRoles/item/members/count/index.ts index 826fe2c86e0..d6964a2ef79 100644 --- a/src/directoryRoles/item/members/count/index.ts +++ b/src/directoryRoles/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/graphApplication/count/index.ts b/src/directoryRoles/item/members/graphApplication/count/index.ts index bc0e079f7e8..7958ecbd438 100644 --- a/src/directoryRoles/item/members/graphApplication/count/index.ts +++ b/src/directoryRoles/item/members/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/graphApplication/index.ts b/src/directoryRoles/item/members/graphApplication/index.ts index d5ea95e2c12..8a13975690f 100644 --- a/src/directoryRoles/item/members/graphApplication/index.ts +++ b/src/directoryRoles/item/members/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../../models/'; +import { type ApplicationCollectionResponse } from '../../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/members/graphDevice/count/index.ts b/src/directoryRoles/item/members/graphDevice/count/index.ts index 843392448bc..f8f862a0a30 100644 --- a/src/directoryRoles/item/members/graphDevice/count/index.ts +++ b/src/directoryRoles/item/members/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/graphDevice/index.ts b/src/directoryRoles/item/members/graphDevice/index.ts index bc318f6ec53..cae4b96adb6 100644 --- a/src/directoryRoles/item/members/graphDevice/index.ts +++ b/src/directoryRoles/item/members/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../../models/'; +import { type DeviceCollectionResponse } from '../../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/members/graphGroup/count/index.ts b/src/directoryRoles/item/members/graphGroup/count/index.ts index 94bc9b93231..b09b5d4705b 100644 --- a/src/directoryRoles/item/members/graphGroup/count/index.ts +++ b/src/directoryRoles/item/members/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/graphGroup/index.ts b/src/directoryRoles/item/members/graphGroup/index.ts index 6697cce4055..0030d7a81da 100644 --- a/src/directoryRoles/item/members/graphGroup/index.ts +++ b/src/directoryRoles/item/members/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/members/graphOrgContact/count/index.ts b/src/directoryRoles/item/members/graphOrgContact/count/index.ts index d538db6d450..556785a430f 100644 --- a/src/directoryRoles/item/members/graphOrgContact/count/index.ts +++ b/src/directoryRoles/item/members/graphOrgContact/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/graphOrgContact/index.ts b/src/directoryRoles/item/members/graphOrgContact/index.ts index cb9ca5dd565..2b3c656ad2c 100644 --- a/src/directoryRoles/item/members/graphOrgContact/index.ts +++ b/src/directoryRoles/item/members/graphOrgContact/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../../../../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphOrgContactRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/members/graphServicePrincipal/count/index.ts b/src/directoryRoles/item/members/graphServicePrincipal/count/index.ts index 6dc317355c5..e5668b7eb60 100644 --- a/src/directoryRoles/item/members/graphServicePrincipal/count/index.ts +++ b/src/directoryRoles/item/members/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/graphServicePrincipal/index.ts b/src/directoryRoles/item/members/graphServicePrincipal/index.ts index c10da8c6571..abe5013cc62 100644 --- a/src/directoryRoles/item/members/graphServicePrincipal/index.ts +++ b/src/directoryRoles/item/members/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/members/graphUser/count/index.ts b/src/directoryRoles/item/members/graphUser/count/index.ts index cde6be58933..6a4cc470b82 100644 --- a/src/directoryRoles/item/members/graphUser/count/index.ts +++ b/src/directoryRoles/item/members/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/graphUser/index.ts b/src/directoryRoles/item/members/graphUser/index.ts index d55f2ef7ae3..7f5f60bcda9 100644 --- a/src/directoryRoles/item/members/graphUser/index.ts +++ b/src/directoryRoles/item/members/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/members/index.ts b/src/directoryRoles/item/members/index.ts index 7b36bc8cd94..35a233aca20 100644 --- a/src/directoryRoles/item/members/index.ts +++ b/src/directoryRoles/item/members/index.ts @@ -1,19 +1,19 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/members/item/graphApplication/index.ts b/src/directoryRoles/item/members/item/graphApplication/index.ts index e0bdb13fdbd..94bdb99f2ac 100644 --- a/src/directoryRoles/item/members/item/graphApplication/index.ts +++ b/src/directoryRoles/item/members/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../../models/'; +import { type Application } from '../../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../../models/application'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/item/graphDevice/index.ts b/src/directoryRoles/item/members/item/graphDevice/index.ts index f6f5a87e573..26951c99cba 100644 --- a/src/directoryRoles/item/members/item/graphDevice/index.ts +++ b/src/directoryRoles/item/members/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../models/'; +import { type Device } from '../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../models/device'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/item/graphGroup/index.ts b/src/directoryRoles/item/members/item/graphGroup/index.ts index 989b5a7eb0b..3418f986d47 100644 --- a/src/directoryRoles/item/members/item/graphGroup/index.ts +++ b/src/directoryRoles/item/members/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/item/graphOrgContact/index.ts b/src/directoryRoles/item/members/item/graphOrgContact/index.ts index 3b9d69c2bc8..890165fd95a 100644 --- a/src/directoryRoles/item/members/item/graphOrgContact/index.ts +++ b/src/directoryRoles/item/members/item/graphOrgContact/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContact } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OrgContact } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue } from '../../../../../models/orgContact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/item/graphServicePrincipal/index.ts b/src/directoryRoles/item/members/item/graphServicePrincipal/index.ts index 33d6a7f5fa4..9fec4ccbc1f 100644 --- a/src/directoryRoles/item/members/item/graphServicePrincipal/index.ts +++ b/src/directoryRoles/item/members/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/item/graphUser/index.ts b/src/directoryRoles/item/members/item/graphUser/index.ts index 1e22b2d62d0..38fc0c89437 100644 --- a/src/directoryRoles/item/members/item/graphUser/index.ts +++ b/src/directoryRoles/item/members/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/item/index.ts b/src/directoryRoles/item/members/item/index.ts index 241059b2f53..e4dd4c14310 100644 --- a/src/directoryRoles/item/members/item/index.ts +++ b/src/directoryRoles/item/members/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RefRequestBuilder } from './ref/'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/directoryRoles/item/members/item/ref/index.ts b/src/directoryRoles/item/members/item/ref/index.ts index ac8fadd33f8..0378ac523df 100644 --- a/src/directoryRoles/item/members/item/ref/index.ts +++ b/src/directoryRoles/item/members/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/members/ref/index.ts b/src/directoryRoles/item/members/ref/index.ts index 4806bd34f80..662f2c9613c 100644 --- a/src/directoryRoles/item/members/ref/index.ts +++ b/src/directoryRoles/item/members/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/directoryRoles/item/restore/index.ts b/src/directoryRoles/item/restore/index.ts index 1dbbf62925b..27b7bdb7984 100644 --- a/src/directoryRoles/item/restore/index.ts +++ b/src/directoryRoles/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/scopedMembers/count/index.ts b/src/directoryRoles/item/scopedMembers/count/index.ts index 483637ff334..c6af224cdbf 100644 --- a/src/directoryRoles/item/scopedMembers/count/index.ts +++ b/src/directoryRoles/item/scopedMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/item/scopedMembers/index.ts b/src/directoryRoles/item/scopedMembers/index.ts index 2380095d378..e0573aa2269 100644 --- a/src/directoryRoles/item/scopedMembers/index.ts +++ b/src/directoryRoles/item/scopedMembers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ScopedRoleMembershipCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ScopedRoleMembershipCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createScopedRoleMembershipFromDiscriminatorValue, deserializeIntoScopedRoleMembership, serializeScopedRoleMembership, type ScopedRoleMembership } from '../../../models/scopedRoleMembership'; import { createScopedRoleMembershipCollectionResponseFromDiscriminatorValue } from '../../../models/scopedRoleMembershipCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ScopedRoleMembershipItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ScopedRoleMembershipItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopedMembersRequestBuilderGetQueryParameters { diff --git a/src/directoryRoles/item/scopedMembers/item/index.ts b/src/directoryRoles/item/scopedMembers/item/index.ts index 3a5f416bee5..297100528e8 100644 --- a/src/directoryRoles/item/scopedMembers/item/index.ts +++ b/src/directoryRoles/item/scopedMembers/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createScopedRoleMembershipFromDiscriminatorValue, deserializeIntoScopedRoleMembership, serializeScopedRoleMembership, type ScopedRoleMembership } from '../../../../models/scopedRoleMembership'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/directoryRoles/validateProperties/index.ts b/src/directoryRoles/validateProperties/index.ts index 67cc9286ae5..3c9a114e085 100644 --- a/src/directoryRoles/validateProperties/index.ts +++ b/src/directoryRoles/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/directoryRoles/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/directoryRolesWithRoleTemplateId/index.ts b/src/directoryRolesWithRoleTemplateId/index.ts index fd38c861235..4449b84f77a 100644 --- a/src/directoryRolesWithRoleTemplateId/index.ts +++ b/src/directoryRolesWithRoleTemplateId/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryRoleFromDiscriminatorValue, deserializeIntoDirectoryRole, serializeDirectoryRole, type DirectoryRole } from '../models/directoryRole'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domainDnsRecords/count/index.ts b/src/domainDnsRecords/count/index.ts index 8cd944e0ce3..ac1703dbba4 100644 --- a/src/domainDnsRecords/count/index.ts +++ b/src/domainDnsRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domainDnsRecords/index.ts b/src/domainDnsRecords/index.ts index 51b076abd1c..7639d238c07 100644 --- a/src/domainDnsRecords/index.ts +++ b/src/domainDnsRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DomainDnsRecordCollectionResponse } from '../models/'; +import { type DomainDnsRecordCollectionResponse } from '../models'; import { createDomainDnsRecordFromDiscriminatorValue, deserializeIntoDomainDnsRecord, serializeDomainDnsRecord, type DomainDnsRecord } from '../models/domainDnsRecord'; import { createDomainDnsRecordCollectionResponseFromDiscriminatorValue } from '../models/domainDnsRecordCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DomainDnsRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DomainDnsRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DomainDnsRecordsRequestBuilderGetQueryParameters { diff --git a/src/domainDnsRecords/item/index.ts b/src/domainDnsRecords/item/index.ts index 58824f3b431..1744c99b3af 100644 --- a/src/domainDnsRecords/item/index.ts +++ b/src/domainDnsRecords/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDomainDnsRecordFromDiscriminatorValue, deserializeIntoDomainDnsRecord, serializeDomainDnsRecord, type DomainDnsRecord } from '../../models/domainDnsRecord'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/count/index.ts b/src/domains/count/index.ts index a3e4bb77084..5e6f57a4cc8 100644 --- a/src/domains/count/index.ts +++ b/src/domains/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/index.ts b/src/domains/index.ts index 701190aff43..2bae6324e0d 100644 --- a/src/domains/index.ts +++ b/src/domains/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DomainCollectionResponse } from '../models/'; +import { type DomainCollectionResponse } from '../models'; import { createDomainFromDiscriminatorValue, deserializeIntoDomain, serializeDomain, type Domain } from '../models/domain'; import { createDomainCollectionResponseFromDiscriminatorValue } from '../models/domainCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DomainItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DomainItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DomainsRequestBuilderGetQueryParameters { diff --git a/src/domains/item/domainNameReferences/count/index.ts b/src/domains/item/domainNameReferences/count/index.ts index c60dc719b85..1c7cf7d8d91 100644 --- a/src/domains/item/domainNameReferences/count/index.ts +++ b/src/domains/item/domainNameReferences/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/item/domainNameReferences/index.ts b/src/domains/item/domainNameReferences/index.ts index 11c48f98797..54c432ad972 100644 --- a/src/domains/item/domainNameReferences/index.ts +++ b/src/domains/item/domainNameReferences/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DomainNameReferencesRequestBuilderGetQueryParameters { diff --git a/src/domains/item/domainNameReferences/item/index.ts b/src/domains/item/domainNameReferences/item/index.ts index 37a4b45d230..75b8461d0b7 100644 --- a/src/domains/item/domainNameReferences/item/index.ts +++ b/src/domains/item/domainNameReferences/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/item/federationConfiguration/count/index.ts b/src/domains/item/federationConfiguration/count/index.ts index 8edeae9d169..325164afdcb 100644 --- a/src/domains/item/federationConfiguration/count/index.ts +++ b/src/domains/item/federationConfiguration/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/item/federationConfiguration/index.ts b/src/domains/item/federationConfiguration/index.ts index 86f52daf262..02c23ad7206 100644 --- a/src/domains/item/federationConfiguration/index.ts +++ b/src/domains/item/federationConfiguration/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type InternalDomainFederationCollectionResponse } from '../../../models/'; +import { type InternalDomainFederationCollectionResponse } from '../../../models'; import { createInternalDomainFederationFromDiscriminatorValue, deserializeIntoInternalDomainFederation, serializeInternalDomainFederation, type InternalDomainFederation } from '../../../models/internalDomainFederation'; import { createInternalDomainFederationCollectionResponseFromDiscriminatorValue } from '../../../models/internalDomainFederationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { InternalDomainFederationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { InternalDomainFederationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FederationConfigurationRequestBuilderGetQueryParameters { diff --git a/src/domains/item/federationConfiguration/item/index.ts b/src/domains/item/federationConfiguration/item/index.ts index 30b4e22deda..293b58166ab 100644 --- a/src/domains/item/federationConfiguration/item/index.ts +++ b/src/domains/item/federationConfiguration/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createInternalDomainFederationFromDiscriminatorValue, deserializeIntoInternalDomainFederation, serializeInternalDomainFederation, type InternalDomainFederation } from '../../../../models/internalDomainFederation'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/item/forceDelete/index.ts b/src/domains/item/forceDelete/index.ts index 4d2c9701c0b..a60ce60b99d 100644 --- a/src/domains/item/forceDelete/index.ts +++ b/src/domains/item/forceDelete/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createForceDeletePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,57 +26,5 @@ export function serializeForceDeletePostRequestBody(writer: SerializationWriter, writer.writeBooleanValue("disableUserAccounts", forceDeletePostRequestBody.disableUserAccounts); writer.writeAdditionalData(forceDeletePostRequestBody.additionalData); } -/** - * Provides operations to call the forceDelete method. - */ -export class ForceDeleteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ForceDeleteRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/domains/{domain%2Did}/forceDelete"); - }; - /** - * Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/domain-forcedelete?view=graph-rest-1.0|Find more info here} - */ - public post(body: ForceDeletePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ForceDeletePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeForceDeletePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a forceDeleteRequestBuilder - */ - public withUrl(rawUrl: string) : ForceDeleteRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ForceDeleteRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/domains/item/index.ts b/src/domains/item/index.ts index f13a422e282..2f1b9d523cf 100644 --- a/src/domains/item/index.ts +++ b/src/domains/item/index.ts @@ -2,15 +2,15 @@ // eslint-disable // Generated by Microsoft Kiota import { createDomainFromDiscriminatorValue, deserializeIntoDomain, serializeDomain, type Domain } from '../../models/domain'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { DomainNameReferencesRequestBuilder } from './domainNameReferences/'; -import { FederationConfigurationRequestBuilder } from './federationConfiguration/'; -import { ForceDeleteRequestBuilder } from './forceDelete/'; -import { PromoteRequestBuilder } from './promote/'; -import { ServiceConfigurationRecordsRequestBuilder } from './serviceConfigurationRecords/'; -import { VerificationDnsRecordsRequestBuilder } from './verificationDnsRecords/'; -import { VerifyRequestBuilder } from './verify/'; +import { DomainNameReferencesRequestBuilder } from './domainNameReferences'; +import { FederationConfigurationRequestBuilder } from './federationConfiguration'; +import { ForceDeleteRequestBuilder } from './forceDelete'; +import { PromoteRequestBuilder } from './promote'; +import { ServiceConfigurationRecordsRequestBuilder } from './serviceConfigurationRecords'; +import { VerificationDnsRecordsRequestBuilder } from './verificationDnsRecords'; +import { VerifyRequestBuilder } from './verify'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DomainItemRequestBuilderGetQueryParameters { diff --git a/src/domains/item/promote/index.ts b/src/domains/item/promote/index.ts index 12df53feb11..97b0aeacad4 100644 --- a/src/domains/item/promote/index.ts +++ b/src/domains/item/promote/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createPromotePostResponseFromDiscriminatorValue } from './'; -import { type PromotePostResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPromotePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPromotePostResponse; +} +export function deserializeIntoPromotePostResponse(promotePostResponse: PromotePostResponse | undefined = {} as PromotePostResponse) : Record void> { + return { + "value": n => { promotePostResponse.value = n.getBooleanValue(); }, + } +} +export interface PromotePostResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} +export function serializePromotePostResponse(writer: SerializationWriter, promotePostResponse: PromotePostResponse | undefined = {} as PromotePostResponse) : void { + writer.writeBooleanValue("value", promotePostResponse.value); + writer.writeAdditionalData(promotePostResponse.additionalData); +} /** * Provides operations to call the promote method. */ diff --git a/src/domains/item/promote/promotePostResponse.ts b/src/domains/item/promote/promotePostResponse.ts deleted file mode 100644 index bdec85699cb..00000000000 --- a/src/domains/item/promote/promotePostResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPromotePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPromotePostResponse; -} -export function deserializeIntoPromotePostResponse(promotePostResponse: PromotePostResponse | undefined = {} as PromotePostResponse) : Record void> { - return { - "value": n => { promotePostResponse.value = n.getBooleanValue(); }, - } -} -export interface PromotePostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializePromotePostResponse(writer: SerializationWriter, promotePostResponse: PromotePostResponse | undefined = {} as PromotePostResponse) : void { - writer.writeBooleanValue("value", promotePostResponse.value); - writer.writeAdditionalData(promotePostResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/domains/item/serviceConfigurationRecords/count/index.ts b/src/domains/item/serviceConfigurationRecords/count/index.ts index 41e5d894de6..43b77d89a27 100644 --- a/src/domains/item/serviceConfigurationRecords/count/index.ts +++ b/src/domains/item/serviceConfigurationRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/item/serviceConfigurationRecords/index.ts b/src/domains/item/serviceConfigurationRecords/index.ts index b6c820f51ee..2d7eef2d4b0 100644 --- a/src/domains/item/serviceConfigurationRecords/index.ts +++ b/src/domains/item/serviceConfigurationRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DomainDnsRecordCollectionResponse } from '../../../models/'; +import { type DomainDnsRecordCollectionResponse } from '../../../models'; import { createDomainDnsRecordFromDiscriminatorValue, deserializeIntoDomainDnsRecord, serializeDomainDnsRecord, type DomainDnsRecord } from '../../../models/domainDnsRecord'; import { createDomainDnsRecordCollectionResponseFromDiscriminatorValue } from '../../../models/domainDnsRecordCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DomainDnsRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DomainDnsRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceConfigurationRecordsRequestBuilderGetQueryParameters { diff --git a/src/domains/item/serviceConfigurationRecords/item/index.ts b/src/domains/item/serviceConfigurationRecords/item/index.ts index 8f38ce14d74..9936b5d5e2c 100644 --- a/src/domains/item/serviceConfigurationRecords/item/index.ts +++ b/src/domains/item/serviceConfigurationRecords/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDomainDnsRecordFromDiscriminatorValue, deserializeIntoDomainDnsRecord, serializeDomainDnsRecord, type DomainDnsRecord } from '../../../../models/domainDnsRecord'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/item/verificationDnsRecords/count/index.ts b/src/domains/item/verificationDnsRecords/count/index.ts index 32916261ae9..555bcd9a624 100644 --- a/src/domains/item/verificationDnsRecords/count/index.ts +++ b/src/domains/item/verificationDnsRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/item/verificationDnsRecords/index.ts b/src/domains/item/verificationDnsRecords/index.ts index 1ed802dec59..b7cdf50e47c 100644 --- a/src/domains/item/verificationDnsRecords/index.ts +++ b/src/domains/item/verificationDnsRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DomainDnsRecordCollectionResponse } from '../../../models/'; +import { type DomainDnsRecordCollectionResponse } from '../../../models'; import { createDomainDnsRecordFromDiscriminatorValue, deserializeIntoDomainDnsRecord, serializeDomainDnsRecord, type DomainDnsRecord } from '../../../models/domainDnsRecord'; import { createDomainDnsRecordCollectionResponseFromDiscriminatorValue } from '../../../models/domainDnsRecordCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DomainDnsRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DomainDnsRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VerificationDnsRecordsRequestBuilderGetQueryParameters { diff --git a/src/domains/item/verificationDnsRecords/item/index.ts b/src/domains/item/verificationDnsRecords/item/index.ts index bb2615a03c8..22aabdf7eca 100644 --- a/src/domains/item/verificationDnsRecords/item/index.ts +++ b/src/domains/item/verificationDnsRecords/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDomainDnsRecordFromDiscriminatorValue, deserializeIntoDomainDnsRecord, serializeDomainDnsRecord, type DomainDnsRecord } from '../../../../models/domainDnsRecord'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/domains/item/verify/index.ts b/src/domains/item/verify/index.ts index 30af29a31cb..04c6f64cdc5 100644 --- a/src/domains/item/verify/index.ts +++ b/src/domains/item/verify/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Domain } from '../../../models/'; +import { type Domain } from '../../../models'; import { createDomainFromDiscriminatorValue } from '../../../models/domain'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/index.ts b/src/drives/index.ts index 76c3618aa54..c5d1167a721 100644 --- a/src/drives/index.ts +++ b/src/drives/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveCollectionResponse } from '../models/'; +import { type DriveCollectionResponse } from '../models'; import { createDriveFromDiscriminatorValue, deserializeIntoDrive, serializeDrive, type Drive } from '../models/drive'; import { createDriveCollectionResponseFromDiscriminatorValue } from '../models/driveCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { DriveItemRequestBuilder } from './item/'; +import { DriveItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DrivesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/bundles/count/index.ts b/src/drives/item/bundles/count/index.ts index 4fd95e20465..0cfe13a2f5f 100644 --- a/src/drives/item/bundles/count/index.ts +++ b/src/drives/item/bundles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/bundles/index.ts b/src/drives/item/bundles/index.ts index e08b14ef58d..ab8e6024735 100644 --- a/src/drives/item/bundles/index.ts +++ b/src/drives/item/bundles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItemCollectionResponse } from '../../../models/'; +import { type DriveItemCollectionResponse } from '../../../models'; import { createDriveItemFromDiscriminatorValue, deserializeIntoDriveItem, serializeDriveItem, type DriveItem } from '../../../models/driveItem'; import { createDriveItemCollectionResponseFromDiscriminatorValue } from '../../../models/driveItemCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BundlesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/bundles/item/content/index.ts b/src/drives/item/bundles/item/content/index.ts index e4f440f5151..b1a0c7740c9 100644 --- a/src/drives/item/bundles/item/content/index.ts +++ b/src/drives/item/bundles/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/bundles/item/index.ts b/src/drives/item/bundles/item/index.ts index 35dd8b3e321..1a0cc0deae1 100644 --- a/src/drives/item/bundles/item/index.ts +++ b/src/drives/item/bundles/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../models/'; +import { type DriveItem } from '../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/createdByUser/index.ts b/src/drives/item/createdByUser/index.ts index f0b43171e8d..147728760f8 100644 --- a/src/drives/item/createdByUser/index.ts +++ b/src/drives/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/drives/item/createdByUser/mailboxSettings/index.ts b/src/drives/item/createdByUser/mailboxSettings/index.ts index 1c7419ec71d..65a6ff55f8b 100644 --- a/src/drives/item/createdByUser/mailboxSettings/index.ts +++ b/src/drives/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/drives/item/createdByUser/serviceProvisioningErrors/count/index.ts index 931af21b292..c65f6210357 100644 --- a/src/drives/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/drives/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/createdByUser/serviceProvisioningErrors/index.ts b/src/drives/item/createdByUser/serviceProvisioningErrors/index.ts index 52173eec7f1..efc9db2e12b 100644 --- a/src/drives/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/drives/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/following/count/index.ts b/src/drives/item/following/count/index.ts index c9b50fc1fc2..8e2683f07ba 100644 --- a/src/drives/item/following/count/index.ts +++ b/src/drives/item/following/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/following/index.ts b/src/drives/item/following/index.ts index d30502b4ab7..ff6187b2fa9 100644 --- a/src/drives/item/following/index.ts +++ b/src/drives/item/following/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItemCollectionResponse } from '../../../models/'; +import { type DriveItemCollectionResponse } from '../../../models'; import { createDriveItemCollectionResponseFromDiscriminatorValue } from '../../../models/driveItemCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FollowingRequestBuilderGetQueryParameters { diff --git a/src/drives/item/following/item/content/index.ts b/src/drives/item/following/item/content/index.ts index 35931a92026..a187845b62a 100644 --- a/src/drives/item/following/item/content/index.ts +++ b/src/drives/item/following/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/following/item/index.ts b/src/drives/item/following/item/index.ts index a2e78ca1bec..663118c0640 100644 --- a/src/drives/item/following/item/index.ts +++ b/src/drives/item/following/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../models/'; +import { type DriveItem } from '../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/index.ts b/src/drives/item/index.ts index c8bf125fa28..d3c8d23632f 100644 --- a/src/drives/item/index.ts +++ b/src/drives/item/index.ts @@ -2,19 +2,19 @@ // eslint-disable // Generated by Microsoft Kiota import { createDriveFromDiscriminatorValue, deserializeIntoDrive, serializeDrive, type Drive } from '../../models/drive'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BundlesRequestBuilder } from './bundles/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { FollowingRequestBuilder } from './following/'; -import { ItemsRequestBuilder } from './items/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { ListRequestBuilder } from './list/'; -import { RecentRequestBuilder } from './recent/'; -import { RootRequestBuilder } from './root/'; -import { SearchWithQRequestBuilder } from './searchWithQ/'; -import { SharedWithMeRequestBuilder } from './sharedWithMe/'; -import { SpecialRequestBuilder } from './special/'; +import { BundlesRequestBuilder } from './bundles'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { FollowingRequestBuilder } from './following'; +import { ItemsRequestBuilder } from './items'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { ListRequestBuilder } from './list'; +import { RecentRequestBuilder } from './recent'; +import { RootRequestBuilder } from './root'; +import { SearchWithQRequestBuilder } from './searchWithQ'; +import { SharedWithMeRequestBuilder } from './sharedWithMe'; +import { SpecialRequestBuilder } from './special'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/count/index.ts b/src/drives/item/items/count/index.ts index c70d0a09b1d..71c74ef1e13 100644 --- a/src/drives/item/items/count/index.ts +++ b/src/drives/item/items/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/index.ts b/src/drives/item/items/index.ts index 1129f512558..253daca7899 100644 --- a/src/drives/item/items/index.ts +++ b/src/drives/item/items/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItemCollectionResponse } from '../../../models/'; +import { type DriveItemCollectionResponse } from '../../../models'; import { createDriveItemFromDiscriminatorValue, deserializeIntoDriveItem, serializeDriveItem, type DriveItem } from '../../../models/driveItem'; import { createDriveItemCollectionResponseFromDiscriminatorValue } from '../../../models/driveItemCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/analytics/allTime/index.ts b/src/drives/item/items/item/analytics/allTime/index.ts index 21c5f957096..5b1a7a373d5 100644 --- a/src/drives/item/items/item/analytics/allTime/index.ts +++ b/src/drives/item/items/item/analytics/allTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStat } from '../../../../../../models/'; +import { type ItemActivityStat } from '../../../../../../models'; import { createItemActivityStatFromDiscriminatorValue } from '../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/analytics/index.ts b/src/drives/item/items/item/analytics/index.ts index ea2b3c7ac22..cf952ccca4f 100644 --- a/src/drives/item/items/item/analytics/index.ts +++ b/src/drives/item/items/item/analytics/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemAnalyticsFromDiscriminatorValue, deserializeIntoItemAnalytics, serializeItemAnalytics, type ItemAnalytics } from '../../../../../models/itemAnalytics'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AllTimeRequestBuilder } from './allTime/'; -import { ItemActivityStatsRequestBuilder } from './itemActivityStats/'; -import { LastSevenDaysRequestBuilder } from './lastSevenDays/'; +import { AllTimeRequestBuilder } from './allTime'; +import { ItemActivityStatsRequestBuilder } from './itemActivityStats'; +import { LastSevenDaysRequestBuilder } from './lastSevenDays'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AnalyticsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/analytics/itemActivityStats/count/index.ts b/src/drives/item/items/item/analytics/itemActivityStats/count/index.ts index 51c4f40942f..61bf5096883 100644 --- a/src/drives/item/items/item/analytics/itemActivityStats/count/index.ts +++ b/src/drives/item/items/item/analytics/itemActivityStats/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/analytics/itemActivityStats/index.ts b/src/drives/item/items/item/analytics/itemActivityStats/index.ts index 1e758b7fafb..c8e5a26b518 100644 --- a/src/drives/item/items/item/analytics/itemActivityStats/index.ts +++ b/src/drives/item/items/item/analytics/itemActivityStats/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStatCollectionResponse } from '../../../../../../models/'; +import { type ItemActivityStatCollectionResponse } from '../../../../../../models'; import { createItemActivityStatFromDiscriminatorValue, deserializeIntoItemActivityStat, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../models/itemActivityStat'; import { createItemActivityStatCollectionResponseFromDiscriminatorValue } from '../../../../../../models/itemActivityStatCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ItemActivityStatItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ItemActivityStatItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityStatsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/count/index.ts b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/count/index.ts index f6dcda2676b..77a5828f43e 100644 --- a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/count/index.ts +++ b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/index.ts b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/index.ts index 99799a3b9b5..c1e6f62c2de 100644 --- a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/index.ts +++ b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityCollectionResponse } from '../../../../../../../../models/'; +import { type ItemActivityCollectionResponse } from '../../../../../../../../models'; import { createItemActivityFromDiscriminatorValue, deserializeIntoItemActivity, serializeItemActivity, type ItemActivity } from '../../../../../../../../models/itemActivity'; import { createItemActivityCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/itemActivityCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ItemActivityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ItemActivityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivitiesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts index 1ad97ebc0b3..51c8dc8030d 100644 --- a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts +++ b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts index 4a029865bb3..a2d611ac7ec 100644 --- a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts +++ b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/index.ts b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/index.ts index b4d2f228a20..765f7ddd81f 100644 --- a/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/index.ts +++ b/src/drives/item/items/item/analytics/itemActivityStats/item/activities/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemActivityFromDiscriminatorValue, deserializeIntoItemActivity, serializeItemActivity, type ItemActivity } from '../../../../../../../../../models/itemActivity'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { DriveItemRequestBuilder } from './driveItem/'; +import { DriveItemRequestBuilder } from './driveItem'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/analytics/itemActivityStats/item/index.ts b/src/drives/item/items/item/analytics/itemActivityStats/item/index.ts index 6caa050cf55..3eec5f0a6b9 100644 --- a/src/drives/item/items/item/analytics/itemActivityStats/item/index.ts +++ b/src/drives/item/items/item/analytics/itemActivityStats/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemActivityStatFromDiscriminatorValue, deserializeIntoItemActivityStat, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ActivitiesRequestBuilder } from './activities/'; +import { ActivitiesRequestBuilder } from './activities'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityStatItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/analytics/lastSevenDays/index.ts b/src/drives/item/items/item/analytics/lastSevenDays/index.ts index 96b20389c85..07ba10aa610 100644 --- a/src/drives/item/items/item/analytics/lastSevenDays/index.ts +++ b/src/drives/item/items/item/analytics/lastSevenDays/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStat } from '../../../../../../models/'; +import { type ItemActivityStat } from '../../../../../../models'; import { createItemActivityStatFromDiscriminatorValue } from '../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/assignSensitivityLabel/index.ts b/src/drives/item/items/item/assignSensitivityLabel/index.ts index 8eb52969358..4f8ce6d578c 100644 --- a/src/drives/item/items/item/assignSensitivityLabel/index.ts +++ b/src/drives/item/items/item/assignSensitivityLabel/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { SensitivityLabelAssignmentMethod } from '../../../../../models/sensitivityLabelAssignmentMethod'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssignSensitivityLabelPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -41,56 +39,5 @@ export function serializeAssignSensitivityLabelPostRequestBody(writer: Serializa writer.writeStringValue("sensitivityLabelId", assignSensitivityLabelPostRequestBody.sensitivityLabelId); writer.writeAdditionalData(assignSensitivityLabelPostRequestBody.additionalData); } -/** - * Provides operations to call the assignSensitivityLabel method. - */ -export class AssignSensitivityLabelRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignSensitivityLabelRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/assignSensitivityLabel"); - }; - /** - * Invoke action assignSensitivityLabel - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - */ - public post(body: AssignSensitivityLabelPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Invoke action assignSensitivityLabel - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignSensitivityLabelPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignSensitivityLabelPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignSensitivityLabelRequestBuilder - */ - public withUrl(rawUrl: string) : AssignSensitivityLabelRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignSensitivityLabelRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/checkin/index.ts b/src/drives/item/items/item/checkin/index.ts index 52b8618f7f2..aff7024df91 100644 --- a/src/drives/item/items/item/checkin/index.ts +++ b/src/drives/item/items/item/checkin/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckinPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeCheckinPostRequestBody(writer: SerializationWriter, che writer.writeStringValue("comment", checkinPostRequestBody.comment); writer.writeAdditionalData(checkinPostRequestBody.additionalData); } -/** - * Provides operations to call the checkin method. - */ -export class CheckinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckinRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/checkin"); - }; - /** - * Check in a checked out driveItem resource, which makes the version of the document available to others. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/driveitem-checkin?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Check in a checked out driveItem resource, which makes the version of the document available to others. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckinPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkinRequestBuilder - */ - public withUrl(rawUrl: string) : CheckinRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckinRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/checkout/index.ts b/src/drives/item/items/item/checkout/index.ts index 7095f5365df..c6d0a043788 100644 --- a/src/drives/item/items/item/checkout/index.ts +++ b/src/drives/item/items/item/checkout/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/children/count/index.ts b/src/drives/item/items/item/children/count/index.ts index 5c3096b7084..8f042355917 100644 --- a/src/drives/item/items/item/children/count/index.ts +++ b/src/drives/item/items/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/children/index.ts b/src/drives/item/items/item/children/index.ts index 7afaf807f83..5bab9344662 100644 --- a/src/drives/item/items/item/children/index.ts +++ b/src/drives/item/items/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItemCollectionResponse } from '../../../../../models/'; +import { type DriveItemCollectionResponse } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue, deserializeIntoDriveItem, serializeDriveItem, type DriveItem } from '../../../../../models/driveItem'; import { createDriveItemCollectionResponseFromDiscriminatorValue } from '../../../../../models/driveItemCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/children/item/content/index.ts b/src/drives/item/items/item/children/item/content/index.ts index f8eadf7b760..3510b5cd78c 100644 --- a/src/drives/item/items/item/children/item/content/index.ts +++ b/src/drives/item/items/item/children/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/children/item/index.ts b/src/drives/item/items/item/children/item/index.ts index 12cb7704e81..0f65fc9561d 100644 --- a/src/drives/item/items/item/children/item/index.ts +++ b/src/drives/item/items/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../models/'; +import { type DriveItem } from '../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/content/index.ts b/src/drives/item/items/item/content/index.ts index 3b65359f3cf..e57d7055585 100644 --- a/src/drives/item/items/item/content/index.ts +++ b/src/drives/item/items/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/copy/index.ts b/src/drives/item/items/item/copy/index.ts index 7c6a1c11afb..a4dc0594609 100644 --- a/src/drives/item/items/item/copy/index.ts +++ b/src/drives/item/items/item/copy/index.ts @@ -1,11 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createDriveItemFromDiscriminatorValue, deserializeIntoDriveItem, serializeDriveItem, type DriveItem } from '../../../../../models/driveItem'; import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../models/itemReference'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,58 +33,5 @@ export function serializeCopyPostRequestBody(writer: SerializationWriter, copyPo writer.writeObjectValue("parentReference", copyPostRequestBody.parentReference, serializeItemReference); writer.writeAdditionalData(copyPostRequestBody.additionalData); } -/** - * Provides operations to call the copy method. - */ -export class CopyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/copy"); - }; - /** - * Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DriveItem - * @see {@link https://learn.microsoft.com/graph/api/driveitem-copy?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDriveItemFromDiscriminatorValue, errorMapping); - }; - /** - * Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyRequestBuilder - */ - public withUrl(rawUrl: string) : CopyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/createLink/createLinkPostRequestBody.ts b/src/drives/item/items/item/createLink/createLinkPostRequestBody.ts deleted file mode 100644 index cc8b5b6d938..00000000000 --- a/src/drives/item/items/item/createLink/createLinkPostRequestBody.ts +++ /dev/null @@ -1,60 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCreateLinkPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCreateLinkPostRequestBody; -} -export interface CreateLinkPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The expirationDateTime property - */ - expirationDateTime?: Date; - /** - * The message property - */ - message?: string; - /** - * The password property - */ - password?: string; - /** - * The retainInheritedPermissions property - */ - retainInheritedPermissions?: boolean; - /** - * The scope property - */ - scope?: string; - /** - * The type property - */ - type?: string; -} -export function deserializeIntoCreateLinkPostRequestBody(createLinkPostRequestBody: CreateLinkPostRequestBody | undefined = {} as CreateLinkPostRequestBody) : Record void> { - return { - "expirationDateTime": n => { createLinkPostRequestBody.expirationDateTime = n.getDateValue(); }, - "message": n => { createLinkPostRequestBody.message = n.getStringValue(); }, - "password": n => { createLinkPostRequestBody.password = n.getStringValue(); }, - "retainInheritedPermissions": n => { createLinkPostRequestBody.retainInheritedPermissions = n.getBooleanValue(); }, - "scope": n => { createLinkPostRequestBody.scope = n.getStringValue(); }, - "type": n => { createLinkPostRequestBody.type = n.getStringValue(); }, - } -} -export function serializeCreateLinkPostRequestBody(writer: SerializationWriter, createLinkPostRequestBody: CreateLinkPostRequestBody | undefined = {} as CreateLinkPostRequestBody) : void { - writer.writeDateValue("expirationDateTime", createLinkPostRequestBody.expirationDateTime); - writer.writeStringValue("message", createLinkPostRequestBody.message); - writer.writeStringValue("password", createLinkPostRequestBody.password); - writer.writeBooleanValue("retainInheritedPermissions", createLinkPostRequestBody.retainInheritedPermissions); - writer.writeStringValue("scope", createLinkPostRequestBody.scope); - writer.writeStringValue("type", createLinkPostRequestBody.type); - writer.writeAdditionalData(createLinkPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/createLink/index.ts b/src/drives/item/items/item/createLink/index.ts index 63472eb90a3..3d8488532c6 100644 --- a/src/drives/item/items/item/createLink/index.ts +++ b/src/drives/item/items/item/createLink/index.ts @@ -1,12 +1,64 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../../../models/permission'; -import { deserializeIntoCreateLinkPostRequestBody, serializeCreateLinkPostRequestBody, type CreateLinkPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createCreateLinkPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCreateLinkPostRequestBody; +} +export interface CreateLinkPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The expirationDateTime property + */ + expirationDateTime?: Date; + /** + * The message property + */ + message?: string; + /** + * The password property + */ + password?: string; + /** + * The retainInheritedPermissions property + */ + retainInheritedPermissions?: boolean; + /** + * The scope property + */ + scope?: string; + /** + * The type property + */ + type?: string; +} +export function deserializeIntoCreateLinkPostRequestBody(createLinkPostRequestBody: CreateLinkPostRequestBody | undefined = {} as CreateLinkPostRequestBody) : Record void> { + return { + "expirationDateTime": n => { createLinkPostRequestBody.expirationDateTime = n.getDateValue(); }, + "message": n => { createLinkPostRequestBody.message = n.getStringValue(); }, + "password": n => { createLinkPostRequestBody.password = n.getStringValue(); }, + "retainInheritedPermissions": n => { createLinkPostRequestBody.retainInheritedPermissions = n.getBooleanValue(); }, + "scope": n => { createLinkPostRequestBody.scope = n.getStringValue(); }, + "type": n => { createLinkPostRequestBody.type = n.getStringValue(); }, + } +} +export function serializeCreateLinkPostRequestBody(writer: SerializationWriter, createLinkPostRequestBody: CreateLinkPostRequestBody | undefined = {} as CreateLinkPostRequestBody) : void { + writer.writeDateValue("expirationDateTime", createLinkPostRequestBody.expirationDateTime); + writer.writeStringValue("message", createLinkPostRequestBody.message); + writer.writeStringValue("password", createLinkPostRequestBody.password); + writer.writeBooleanValue("retainInheritedPermissions", createLinkPostRequestBody.retainInheritedPermissions); + writer.writeStringValue("scope", createLinkPostRequestBody.scope); + writer.writeStringValue("type", createLinkPostRequestBody.type); + writer.writeAdditionalData(createLinkPostRequestBody.additionalData); +} /** * Provides operations to call the createLink method. */ diff --git a/src/drives/item/items/item/createUploadSession/index.ts b/src/drives/item/items/item/createUploadSession/index.ts index f9bec542539..799e8a7e266 100644 --- a/src/drives/item/items/item/createUploadSession/index.ts +++ b/src/drives/item/items/item/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDriveItemUploadablePropertiesFromDiscriminatorValue, serializeDriveItemUploadableProperties, type DriveItemUploadableProperties } from '../../../../../models/driveItemUploadableProperties'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("item", createUploadSessionPostRequestBody.item, serializeDriveItemUploadableProperties); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createUploadSession"); - }; - /** - * Invoke action createUploadSession - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action createUploadSession - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/createdByUser/index.ts b/src/drives/item/items/item/createdByUser/index.ts index 40fc1ce80f8..fdb872bf93a 100644 --- a/src/drives/item/items/item/createdByUser/index.ts +++ b/src/drives/item/items/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/createdByUser/mailboxSettings/index.ts b/src/drives/item/items/item/createdByUser/mailboxSettings/index.ts index cfb2caa4def..9a999e09bb8 100644 --- a/src/drives/item/items/item/createdByUser/mailboxSettings/index.ts +++ b/src/drives/item/items/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/drives/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts index 6e67e6ad5aa..666599f641a 100644 --- a/src/drives/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/drives/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/createdByUser/serviceProvisioningErrors/index.ts b/src/drives/item/items/item/createdByUser/serviceProvisioningErrors/index.ts index 92f505d3fe1..5a351183287 100644 --- a/src/drives/item/items/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/drives/item/items/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/delta/index.ts b/src/drives/item/items/item/delta/index.ts index fe90a260676..03c482006df 100644 --- a/src/drives/item/items/item/delta/index.ts +++ b/src/drives/item/items/item/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createDriveItemFromDiscriminatorValue, serializeDriveItem, type DriveItem } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: DriveItem[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDriveItem); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/deltaWithToken/index.ts b/src/drives/item/items/item/deltaWithToken/index.ts index 28e3b0fa004..7d048559658 100644 --- a/src/drives/item/items/item/deltaWithToken/index.ts +++ b/src/drives/item/items/item/deltaWithToken/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createDriveItemFromDiscriminatorValue, serializeDriveItem, type DriveItem } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaWithTokenGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaWithTokenGetResponse extends BaseDeltaFunctionResponse, Pa */ value?: DriveItem[]; } -export interface DeltaWithTokenRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaWithTokenGetResponse(deltaWithTokenGetResponse: DeltaWithTokenGetResponse | undefined = {} as DeltaWithTokenGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaWithTokenGetResponse), @@ -57,64 +25,5 @@ export function serializeDeltaWithTokenGetResponse(writer: SerializationWriter, serializeBaseDeltaFunctionResponse(writer, deltaWithTokenGetResponse) writer.writeCollectionOfObjectValues("value", deltaWithTokenGetResponse.value, serializeDriveItem); } -/** - * Provides operations to call the delta method. - */ -export class DeltaWithTokenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaWithTokenRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param token Usage: token='{token}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, token?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(token='{token}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["token"] = token - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaWithTokenGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaWithTokenGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaWithTokenRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaWithTokenRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaWithTokenRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaWithTokenRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaWithTokenRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/extractSensitivityLabels/index.ts b/src/drives/item/items/item/extractSensitivityLabels/index.ts index f8b749c6dd9..dab6cabcbe2 100644 --- a/src/drives/item/items/item/extractSensitivityLabels/index.ts +++ b/src/drives/item/items/item/extractSensitivityLabels/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtractSensitivityLabelsResult } from '../../../../../models/'; +import { type ExtractSensitivityLabelsResult } from '../../../../../models'; import { createExtractSensitivityLabelsResultFromDiscriminatorValue } from '../../../../../models/extractSensitivityLabelsResult'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/follow/index.ts b/src/drives/item/items/item/follow/index.ts index 99db7ca786d..c9afec031ff 100644 --- a/src/drives/item/items/item/follow/index.ts +++ b/src/drives/item/items/item/follow/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts b/src/drives/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts deleted file mode 100644 index 7d1a17014e2..00000000000 --- a/src/drives/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../models/itemActivityStat'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetActivitiesByIntervalGetResponse; -} -export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), - "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, - } -} -export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ItemActivityStat[]; -} -export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) - writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/getActivitiesByInterval/index.ts b/src/drives/item/items/item/getActivitiesByInterval/index.ts index b35864eee22..8d17e950de1 100644 --- a/src/drives/item/items/item/getActivitiesByInterval/index.ts +++ b/src/drives/item/items/item/getActivitiesByInterval/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../models/itemActivityStat'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetActivitiesByIntervalGetResponseFromDiscriminatorValue } from './'; -import { type GetActivitiesByIntervalGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetActivitiesByIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), + "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ItemActivityStat[]; +} export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) + writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); +} /** * Provides operations to call the getActivitiesByInterval method. */ diff --git a/src/drives/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/drives/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts index 077bbcbefdd..951587e3c2d 100644 --- a/src/drives/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts +++ b/src/drives/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,102 +21,9 @@ export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInte */ value?: ItemActivityStat[]; } -export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value, serializeItemActivityStat); } -/** - * Provides operations to call the getActivitiesByInterval method. - */ -export class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: string | undefined, interval?: string | undefined, startDateTime?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["interval"] = interval - this.pathParameters["startDateTime"] = startDateTime - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder - */ - public withUrl(rawUrl: string) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/index.ts b/src/drives/item/items/item/index.ts index acf01c006fb..4260da31130 100644 --- a/src/drives/item/items/item/index.ts +++ b/src/drives/item/items/item/index.ts @@ -2,39 +2,39 @@ // eslint-disable // Generated by Microsoft Kiota import { createDriveItemFromDiscriminatorValue, deserializeIntoDriveItem, serializeDriveItem, type DriveItem } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AnalyticsRequestBuilder } from './analytics/'; -import { AssignSensitivityLabelRequestBuilder } from './assignSensitivityLabel/'; -import { CheckinRequestBuilder } from './checkin/'; -import { CheckoutRequestBuilder } from './checkout/'; -import { ChildrenRequestBuilder } from './children/'; -import { ContentRequestBuilder } from './content/'; -import { CopyRequestBuilder } from './copy/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { CreateLinkRequestBuilder } from './createLink/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { DeltaRequestBuilder } from './delta/'; -import { DeltaWithTokenRequestBuilder } from './deltaWithToken/'; -import { ExtractSensitivityLabelsRequestBuilder } from './extractSensitivityLabels/'; -import { FollowRequestBuilder } from './follow/'; -import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval/'; -import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/'; -import { InviteRequestBuilder } from './invite/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { ListItemRequestBuilder } from './listItem/'; -import { PermanentDeleteRequestBuilder } from './permanentDelete/'; -import { PermissionsRequestBuilder } from './permissions/'; -import { PreviewRequestBuilder } from './preview/'; -import { RestoreRequestBuilder } from './restore/'; -import { RetentionLabelRequestBuilder } from './retentionLabel/'; -import { SearchWithQRequestBuilder } from './searchWithQ/'; -import { SubscriptionsRequestBuilder } from './subscriptions/'; -import { ThumbnailsRequestBuilder } from './thumbnails/'; -import { UnfollowRequestBuilder } from './unfollow/'; -import { ValidatePermissionRequestBuilder } from './validatePermission/'; -import { VersionsRequestBuilder } from './versions/'; -import { WorkbookRequestBuilder } from './workbook/'; +import { AnalyticsRequestBuilder } from './analytics'; +import { AssignSensitivityLabelRequestBuilder } from './assignSensitivityLabel'; +import { CheckinRequestBuilder } from './checkin'; +import { CheckoutRequestBuilder } from './checkout'; +import { ChildrenRequestBuilder } from './children'; +import { ContentRequestBuilder } from './content'; +import { CopyRequestBuilder } from './copy'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { CreateLinkRequestBuilder } from './createLink'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { DeltaRequestBuilder } from './delta'; +import { DeltaWithTokenRequestBuilder } from './deltaWithToken'; +import { ExtractSensitivityLabelsRequestBuilder } from './extractSensitivityLabels'; +import { FollowRequestBuilder } from './follow'; +import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval'; +import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval'; +import { InviteRequestBuilder } from './invite'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { ListItemRequestBuilder } from './listItem'; +import { PermanentDeleteRequestBuilder } from './permanentDelete'; +import { PermissionsRequestBuilder } from './permissions'; +import { PreviewRequestBuilder } from './preview'; +import { RestoreRequestBuilder } from './restore'; +import { RetentionLabelRequestBuilder } from './retentionLabel'; +import { SearchWithQRequestBuilder } from './searchWithQ'; +import { SubscriptionsRequestBuilder } from './subscriptions'; +import { ThumbnailsRequestBuilder } from './thumbnails'; +import { UnfollowRequestBuilder } from './unfollow'; +import { ValidatePermissionRequestBuilder } from './validatePermission'; +import { VersionsRequestBuilder } from './versions'; +import { WorkbookRequestBuilder } from './workbook'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/invite/index.ts b/src/drives/item/items/item/invite/index.ts index 3cccedc5273..86a23bf526e 100644 --- a/src/drives/item/items/item/invite/index.ts +++ b/src/drives/item/items/item/invite/index.ts @@ -2,11 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, serializePermission, type Permission } from '../../../../../models/permission'; -import { deserializeIntoInvitePostRequestBody, serializeInvitePostRequestBody, type InvitePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createInvitePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeInvitePostResponse(writer: SerializationWriter, inviteP serializeBaseCollectionPaginationCountResponse(writer, invitePostResponse) writer.writeCollectionOfObjectValues("value", invitePostResponse.value, serializePermission); } -/** - * Provides operations to call the invite method. - */ -export class InviteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new InviteRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/invite"); - }; - /** - * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a [sharing link][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of InvitePostResponse - * @see {@link https://learn.microsoft.com/graph/api/driveitem-invite?view=graph-rest-1.0|Find more info here} - */ - public post(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createInvitePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a [sharing link][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeInvitePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a inviteRequestBuilder - */ - public withUrl(rawUrl: string) : InviteRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new InviteRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/invite/invitePostRequestBody.ts b/src/drives/item/items/item/invite/invitePostRequestBody.ts deleted file mode 100644 index 04922c05edd..00000000000 --- a/src/drives/item/items/item/invite/invitePostRequestBody.ts +++ /dev/null @@ -1,73 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createDriveRecipientFromDiscriminatorValue, serializeDriveRecipient, type DriveRecipient } from '../../../../../models/driveRecipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createInvitePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoInvitePostRequestBody; -} -export function deserializeIntoInvitePostRequestBody(invitePostRequestBody: InvitePostRequestBody | undefined = {} as InvitePostRequestBody) : Record void> { - return { - "expirationDateTime": n => { invitePostRequestBody.expirationDateTime = n.getStringValue(); }, - "message": n => { invitePostRequestBody.message = n.getStringValue(); }, - "password": n => { invitePostRequestBody.password = n.getStringValue(); }, - "recipients": n => { invitePostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); }, - "requireSignIn": n => { invitePostRequestBody.requireSignIn = n.getBooleanValue(); }, - "retainInheritedPermissions": n => { invitePostRequestBody.retainInheritedPermissions = n.getBooleanValue(); }, - "roles": n => { invitePostRequestBody.roles = n.getCollectionOfPrimitiveValues(); }, - "sendInvitation": n => { invitePostRequestBody.sendInvitation = n.getBooleanValue(); }, - } -} -export interface InvitePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The expirationDateTime property - */ - expirationDateTime?: string; - /** - * The message property - */ - message?: string; - /** - * The password property - */ - password?: string; - /** - * The recipients property - */ - recipients?: DriveRecipient[]; - /** - * The requireSignIn property - */ - requireSignIn?: boolean; - /** - * The retainInheritedPermissions property - */ - retainInheritedPermissions?: boolean; - /** - * The roles property - */ - roles?: string[]; - /** - * The sendInvitation property - */ - sendInvitation?: boolean; -} -export function serializeInvitePostRequestBody(writer: SerializationWriter, invitePostRequestBody: InvitePostRequestBody | undefined = {} as InvitePostRequestBody) : void { - writer.writeStringValue("expirationDateTime", invitePostRequestBody.expirationDateTime); - writer.writeStringValue("message", invitePostRequestBody.message); - writer.writeStringValue("password", invitePostRequestBody.password); - writer.writeCollectionOfObjectValues("recipients", invitePostRequestBody.recipients, serializeDriveRecipient); - writer.writeBooleanValue("requireSignIn", invitePostRequestBody.requireSignIn); - writer.writeBooleanValue("retainInheritedPermissions", invitePostRequestBody.retainInheritedPermissions); - writer.writeCollectionOfPrimitiveValues("roles", invitePostRequestBody.roles); - writer.writeBooleanValue("sendInvitation", invitePostRequestBody.sendInvitation); - writer.writeAdditionalData(invitePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/lastModifiedByUser/index.ts b/src/drives/item/items/item/lastModifiedByUser/index.ts index 6ee92dc866a..79220bc34bf 100644 --- a/src/drives/item/items/item/lastModifiedByUser/index.ts +++ b/src/drives/item/items/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/lastModifiedByUser/mailboxSettings/index.ts b/src/drives/item/items/item/lastModifiedByUser/mailboxSettings/index.ts index e4470681570..16bcb3dc9bd 100644 --- a/src/drives/item/items/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/drives/item/items/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/drives/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 1de075781d4..95e2664f6e2 100644 --- a/src/drives/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/drives/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/drives/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index 135bc43adf2..8652f252e81 100644 --- a/src/drives/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/drives/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/listItem/index.ts b/src/drives/item/items/item/listItem/index.ts index 16e82cf7d31..be7dbb64347 100644 --- a/src/drives/item/items/item/listItem/index.ts +++ b/src/drives/item/items/item/listItem/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItem } from '../../../../../models/'; +import { type ListItem } from '../../../../../models'; import { createListItemFromDiscriminatorValue } from '../../../../../models/listItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/permanentDelete/index.ts b/src/drives/item/items/item/permanentDelete/index.ts index 386887e7d2d..564e6649edd 100644 --- a/src/drives/item/items/item/permanentDelete/index.ts +++ b/src/drives/item/items/item/permanentDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/permissions/count/index.ts b/src/drives/item/items/item/permissions/count/index.ts index dde72e17451..98c8e27b51c 100644 --- a/src/drives/item/items/item/permissions/count/index.ts +++ b/src/drives/item/items/item/permissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/permissions/index.ts b/src/drives/item/items/item/permissions/index.ts index 3590c27c453..f2de124b038 100644 --- a/src/drives/item/items/item/permissions/index.ts +++ b/src/drives/item/items/item/permissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PermissionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type PermissionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../../../models/permission'; import { createPermissionCollectionResponseFromDiscriminatorValue } from '../../../../../models/permissionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PermissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PermissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/permissions/item/grant/index.ts b/src/drives/item/items/item/permissions/item/grant/index.ts index 9b8484815b5..4d4fc270da0 100644 --- a/src/drives/item/items/item/permissions/item/grant/index.ts +++ b/src/drives/item/items/item/permissions/item/grant/index.ts @@ -2,113 +2,28 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createDriveRecipientFromDiscriminatorValue, serializeDriveRecipient, type DriveRecipient } from '../../../../../../../models/driveRecipient'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, serializePermission, type Permission } from '../../../../../../../models/permission'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export function createGrantPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGrantPostRequestBody; -} export function createGrantPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGrantPostResponse; } -export function deserializeIntoGrantPostRequestBody(grantPostRequestBody: GrantPostRequestBody | undefined = {} as GrantPostRequestBody) : Record void> { - return { - "recipients": n => { grantPostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); }, - "roles": n => { grantPostRequestBody.roles = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoGrantPostResponse(grantPostResponse: GrantPostResponse | undefined = {} as GrantPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(grantPostResponse), "value": n => { grantPostResponse.value = n.getCollectionOfObjectValues(createPermissionFromDiscriminatorValue); }, } } -export interface GrantPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The recipients property - */ - recipients?: DriveRecipient[]; - /** - * The roles property - */ - roles?: string[]; -} export interface GrantPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: Permission[]; } -export function serializeGrantPostRequestBody(writer: SerializationWriter, grantPostRequestBody: GrantPostRequestBody | undefined = {} as GrantPostRequestBody) : void { - writer.writeCollectionOfObjectValues("recipients", grantPostRequestBody.recipients, serializeDriveRecipient); - writer.writeCollectionOfPrimitiveValues("roles", grantPostRequestBody.roles); - writer.writeAdditionalData(grantPostRequestBody.additionalData); -} export function serializeGrantPostResponse(writer: SerializationWriter, grantPostResponse: GrantPostResponse | undefined = {} as GrantPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, grantPostResponse) writer.writeCollectionOfObjectValues("value", grantPostResponse.value, serializePermission); } -/** - * Provides operations to call the grant method. - */ -export class GrantRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GrantRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}/grant"); - }; - /** - * Grant users access to a link represented by a [permission][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GrantPostResponse - * @see {@link https://learn.microsoft.com/graph/api/permission-grant?view=graph-rest-1.0|Find more info here} - */ - public post(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGrantPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Grant users access to a link represented by a [permission][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGrantPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a grantRequestBuilder - */ - public withUrl(rawUrl: string) : GrantRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GrantRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/permissions/item/index.ts b/src/drives/item/items/item/permissions/item/index.ts index 80a87b8dc96..9f891364d60 100644 --- a/src/drives/item/items/item/permissions/item/index.ts +++ b/src/drives/item/items/item/permissions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../../../../models/permission'; -import { GrantRequestBuilder } from './grant/'; +import { GrantRequestBuilder } from './grant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/preview/index.ts b/src/drives/item/items/item/preview/index.ts index 76d77662c0b..24dc4b53bd7 100644 --- a/src/drives/item/items/item/preview/index.ts +++ b/src/drives/item/items/item/preview/index.ts @@ -2,11 +2,39 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemPreviewInfoFromDiscriminatorValue, deserializeIntoItemPreviewInfo, serializeItemPreviewInfo, type ItemPreviewInfo } from '../../../../../models/itemPreviewInfo'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoPreviewPostRequestBody, serializePreviewPostRequestBody, type PreviewPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPreviewPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPreviewPostRequestBody; +} +export function deserializeIntoPreviewPostRequestBody(previewPostRequestBody: PreviewPostRequestBody | undefined = {} as PreviewPostRequestBody) : Record void> { + return { + "page": n => { previewPostRequestBody.page = n.getStringValue(); }, + "zoom": n => { previewPostRequestBody.zoom = n.getNumberValue(); }, + } +} +export interface PreviewPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The page property + */ + page?: string; + /** + * The zoom property + */ + zoom?: number; +} +export function serializePreviewPostRequestBody(writer: SerializationWriter, previewPostRequestBody: PreviewPostRequestBody | undefined = {} as PreviewPostRequestBody) : void { + writer.writeStringValue("page", previewPostRequestBody.page); + writer.writeNumberValue("zoom", previewPostRequestBody.zoom); + writer.writeAdditionalData(previewPostRequestBody.additionalData); +} /** * Provides operations to call the preview method. */ diff --git a/src/drives/item/items/item/preview/previewPostRequestBody.ts b/src/drives/item/items/item/preview/previewPostRequestBody.ts deleted file mode 100644 index 50a1aa89476..00000000000 --- a/src/drives/item/items/item/preview/previewPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPreviewPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPreviewPostRequestBody; -} -export function deserializeIntoPreviewPostRequestBody(previewPostRequestBody: PreviewPostRequestBody | undefined = {} as PreviewPostRequestBody) : Record void> { - return { - "page": n => { previewPostRequestBody.page = n.getStringValue(); }, - "zoom": n => { previewPostRequestBody.zoom = n.getNumberValue(); }, - } -} -export interface PreviewPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The page property - */ - page?: string; - /** - * The zoom property - */ - zoom?: number; -} -export function serializePreviewPostRequestBody(writer: SerializationWriter, previewPostRequestBody: PreviewPostRequestBody | undefined = {} as PreviewPostRequestBody) : void { - writer.writeStringValue("page", previewPostRequestBody.page); - writer.writeNumberValue("zoom", previewPostRequestBody.zoom); - writer.writeAdditionalData(previewPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/restore/index.ts b/src/drives/item/items/item/restore/index.ts index f63e1fd5ccb..e9b00c0b0f4 100644 --- a/src/drives/item/items/item/restore/index.ts +++ b/src/drives/item/items/item/restore/index.ts @@ -2,11 +2,40 @@ // eslint-disable // Generated by Microsoft Kiota import { createDriveItemFromDiscriminatorValue, deserializeIntoDriveItem, serializeDriveItem, type DriveItem } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../models/itemReference'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoRestorePostRequestBody, serializeRestorePostRequestBody, type RestorePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRestorePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRestorePostRequestBody; +} +export function deserializeIntoRestorePostRequestBody(restorePostRequestBody: RestorePostRequestBody | undefined = {} as RestorePostRequestBody) : Record void> { + return { + "name": n => { restorePostRequestBody.name = n.getStringValue(); }, + "parentReference": n => { restorePostRequestBody.parentReference = n.getObjectValue(createItemReferenceFromDiscriminatorValue); }, + } +} +export interface RestorePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The name property + */ + name?: string; + /** + * The parentReference property + */ + parentReference?: ItemReference; +} +export function serializeRestorePostRequestBody(writer: SerializationWriter, restorePostRequestBody: RestorePostRequestBody | undefined = {} as RestorePostRequestBody) : void { + writer.writeStringValue("name", restorePostRequestBody.name); + writer.writeObjectValue("parentReference", restorePostRequestBody.parentReference, serializeItemReference); + writer.writeAdditionalData(restorePostRequestBody.additionalData); +} /** * Provides operations to call the restore method. */ diff --git a/src/drives/item/items/item/restore/restorePostRequestBody.ts b/src/drives/item/items/item/restore/restorePostRequestBody.ts deleted file mode 100644 index 3d401966f38..00000000000 --- a/src/drives/item/items/item/restore/restorePostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../models/itemReference'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRestorePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRestorePostRequestBody; -} -export function deserializeIntoRestorePostRequestBody(restorePostRequestBody: RestorePostRequestBody | undefined = {} as RestorePostRequestBody) : Record void> { - return { - "name": n => { restorePostRequestBody.name = n.getStringValue(); }, - "parentReference": n => { restorePostRequestBody.parentReference = n.getObjectValue(createItemReferenceFromDiscriminatorValue); }, - } -} -export interface RestorePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The name property - */ - name?: string; - /** - * The parentReference property - */ - parentReference?: ItemReference; -} -export function serializeRestorePostRequestBody(writer: SerializationWriter, restorePostRequestBody: RestorePostRequestBody | undefined = {} as RestorePostRequestBody) : void { - writer.writeStringValue("name", restorePostRequestBody.name); - writer.writeObjectValue("parentReference", restorePostRequestBody.parentReference, serializeItemReference); - writer.writeAdditionalData(restorePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/retentionLabel/index.ts b/src/drives/item/items/item/retentionLabel/index.ts index 80fc755a5b0..0a8929316e1 100644 --- a/src/drives/item/items/item/retentionLabel/index.ts +++ b/src/drives/item/items/item/retentionLabel/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemRetentionLabelFromDiscriminatorValue, deserializeIntoItemRetentionLabel, serializeItemRetentionLabel, type ItemRetentionLabel } from '../../../../../models/itemRetentionLabel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -59,11 +59,11 @@ export class RetentionLabelRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createItemRetentionLabelFromDiscriminatorValue, errorMapping); }; /** - * Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + * Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ItemRetentionLabel - * @see {@link https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/driveitem-lockorunlockrecord?view=graph-rest-1.0|Find more info here} */ public patch(body: ItemRetentionLabel, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -98,7 +98,7 @@ export class RetentionLabelRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + * Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/drives/item/items/item/searchWithQ/index.ts b/src/drives/item/items/item/searchWithQ/index.ts index a14c54d4b0f..290de835822 100644 --- a/src/drives/item/items/item/searchWithQ/index.ts +++ b/src/drives/item/items/item/searchWithQ/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; import { createDriveItemFromDiscriminatorValue, serializeDriveItem, type DriveItem } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSearchWithQGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,98 +21,9 @@ export interface SearchWithQGetResponse extends BaseCollectionPaginationCountRes */ value?: DriveItem[]; } -export interface SearchWithQRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeSearchWithQGetResponse(writer: SerializationWriter, searchWithQGetResponse: SearchWithQGetResponse | undefined = {} as SearchWithQGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, searchWithQGetResponse) writer.writeCollectionOfObjectValues("value", searchWithQGetResponse.value, serializeDriveItem); } -/** - * Provides operations to call the search method. - */ -export class SearchWithQRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SearchWithQRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param q Usage: q='{q}' - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, q?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/search(q='{q}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["q"] = q - }; - /** - * Invoke function search - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of SearchWithQGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createSearchWithQGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function search - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, searchWithQRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a searchWithQRequestBuilder - */ - public withUrl(rawUrl: string) : SearchWithQRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SearchWithQRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const searchWithQRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/subscriptions/count/index.ts b/src/drives/item/items/item/subscriptions/count/index.ts index e8d7e2812bd..95b0ddbd9fb 100644 --- a/src/drives/item/items/item/subscriptions/count/index.ts +++ b/src/drives/item/items/item/subscriptions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/subscriptions/index.ts b/src/drives/item/items/item/subscriptions/index.ts index c38ad8af175..d0f80b7f864 100644 --- a/src/drives/item/items/item/subscriptions/index.ts +++ b/src/drives/item/items/item/subscriptions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubscriptionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SubscriptionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../../models/subscription'; import { createSubscriptionCollectionResponseFromDiscriminatorValue } from '../../../../../models/subscriptionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubscriptionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubscriptionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/subscriptions/item/index.ts b/src/drives/item/items/item/subscriptions/item/index.ts index d3f9d2bfdf4..fe68b0b4763 100644 --- a/src/drives/item/items/item/subscriptions/item/index.ts +++ b/src/drives/item/items/item/subscriptions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../../../models/subscription'; -import { ReauthorizeRequestBuilder } from './reauthorize/'; +import { ReauthorizeRequestBuilder } from './reauthorize'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/subscriptions/item/reauthorize/index.ts b/src/drives/item/items/item/subscriptions/item/reauthorize/index.ts index 5e21fe8e516..970df225932 100644 --- a/src/drives/item/items/item/subscriptions/item/reauthorize/index.ts +++ b/src/drives/item/items/item/subscriptions/item/reauthorize/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/thumbnails/count/index.ts b/src/drives/item/items/item/thumbnails/count/index.ts index 195ae5127ca..bf291a762d4 100644 --- a/src/drives/item/items/item/thumbnails/count/index.ts +++ b/src/drives/item/items/item/thumbnails/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/thumbnails/index.ts b/src/drives/item/items/item/thumbnails/index.ts index 13dd8d3ea5b..9e9d5230fb1 100644 --- a/src/drives/item/items/item/thumbnails/index.ts +++ b/src/drives/item/items/item/thumbnails/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ThumbnailSetCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ThumbnailSetCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createThumbnailSetFromDiscriminatorValue, deserializeIntoThumbnailSet, serializeThumbnailSet, type ThumbnailSet } from '../../../../../models/thumbnailSet'; import { createThumbnailSetCollectionResponseFromDiscriminatorValue } from '../../../../../models/thumbnailSetCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ThumbnailSetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ThumbnailSetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ThumbnailsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/thumbnails/item/index.ts b/src/drives/item/items/item/thumbnails/item/index.ts index 1d1a2a58b89..28c75db3edb 100644 --- a/src/drives/item/items/item/thumbnails/item/index.ts +++ b/src/drives/item/items/item/thumbnails/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createThumbnailSetFromDiscriminatorValue, deserializeIntoThumbnailSet, serializeThumbnailSet, type ThumbnailSet } from '../../../../../../models/thumbnailSet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/unfollow/index.ts b/src/drives/item/items/item/unfollow/index.ts index 6fb1ba4cb05..802d39a60d9 100644 --- a/src/drives/item/items/item/unfollow/index.ts +++ b/src/drives/item/items/item/unfollow/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/validatePermission/index.ts b/src/drives/item/items/item/validatePermission/index.ts index 4e692e219e4..9c3d1bd4b34 100644 --- a/src/drives/item/items/item/validatePermission/index.ts +++ b/src/drives/item/items/item/validatePermission/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createValidatePermissionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -34,56 +32,5 @@ export interface ValidatePermissionPostRequestBody extends AdditionalDataHolder, */ password?: string; } -/** - * Provides operations to call the validatePermission method. - */ -export class ValidatePermissionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePermissionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/validatePermission"); - }; - /** - * Invoke action validatePermission - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - */ - public post(body: ValidatePermissionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Invoke action validatePermission - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePermissionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePermissionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePermissionRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePermissionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePermissionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/versions/count/index.ts b/src/drives/item/items/item/versions/count/index.ts index 4c42c7f3766..5b2bc96d3ee 100644 --- a/src/drives/item/items/item/versions/count/index.ts +++ b/src/drives/item/items/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/versions/index.ts b/src/drives/item/items/item/versions/index.ts index 102aa1bfb70..6899613d4ab 100644 --- a/src/drives/item/items/item/versions/index.ts +++ b/src/drives/item/items/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItemVersionCollectionResponse } from '../../../../../models/'; +import { type DriveItemVersionCollectionResponse } from '../../../../../models'; import { createDriveItemVersionFromDiscriminatorValue, deserializeIntoDriveItemVersion, serializeDriveItemVersion, type DriveItemVersion } from '../../../../../models/driveItemVersion'; import { createDriveItemVersionCollectionResponseFromDiscriminatorValue } from '../../../../../models/driveItemVersionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/versions/item/content/index.ts b/src/drives/item/items/item/versions/item/content/index.ts index 55468844954..0112d6a5aa3 100644 --- a/src/drives/item/items/item/versions/item/content/index.ts +++ b/src/drives/item/items/item/versions/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItemVersion } from '../../../../../../../models/'; +import { type DriveItemVersion } from '../../../../../../../models'; import { createDriveItemVersionFromDiscriminatorValue } from '../../../../../../../models/driveItemVersion'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/versions/item/index.ts b/src/drives/item/items/item/versions/item/index.ts index 537522665bf..7776ccc1636 100644 --- a/src/drives/item/items/item/versions/item/index.ts +++ b/src/drives/item/items/item/versions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createDriveItemVersionFromDiscriminatorValue, deserializeIntoDriveItemVersion, serializeDriveItemVersion, type DriveItemVersion } from '../../../../../../models/driveItemVersion'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; -import { RestoreVersionRequestBuilder } from './restoreVersion/'; +import { ContentRequestBuilder } from './content'; +import { RestoreVersionRequestBuilder } from './restoreVersion'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemVersionItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/versions/item/restoreVersion/index.ts b/src/drives/item/items/item/versions/item/restoreVersion/index.ts index 798ee817579..42f093b6f43 100644 --- a/src/drives/item/items/item/versions/item/restoreVersion/index.ts +++ b/src/drives/item/items/item/versions/item/restoreVersion/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/application/calculate/calculatePostRequestBody.ts b/src/drives/item/items/item/workbook/application/calculate/calculatePostRequestBody.ts deleted file mode 100644 index 32ca6c59ade..00000000000 --- a/src/drives/item/items/item/workbook/application/calculate/calculatePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CalculatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The calculationType property - */ - calculationType?: string; -} -export function createCalculatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCalculatePostRequestBody; -} -export function deserializeIntoCalculatePostRequestBody(calculatePostRequestBody: CalculatePostRequestBody | undefined = {} as CalculatePostRequestBody) : Record void> { - return { - "calculationType": n => { calculatePostRequestBody.calculationType = n.getStringValue(); }, - } -} -export function serializeCalculatePostRequestBody(writer: SerializationWriter, calculatePostRequestBody: CalculatePostRequestBody | undefined = {} as CalculatePostRequestBody) : void { - writer.writeStringValue("calculationType", calculatePostRequestBody.calculationType); - writer.writeAdditionalData(calculatePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/application/calculate/index.ts b/src/drives/item/items/item/workbook/application/calculate/index.ts index f6f33a8c67c..0513c7934ea 100644 --- a/src/drives/item/items/item/workbook/application/calculate/index.ts +++ b/src/drives/item/items/item/workbook/application/calculate/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCalculatePostRequestBody, serializeCalculatePostRequestBody, type CalculatePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CalculatePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The calculationType property + */ + calculationType?: string; +} +export function createCalculatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCalculatePostRequestBody; +} +export function deserializeIntoCalculatePostRequestBody(calculatePostRequestBody: CalculatePostRequestBody | undefined = {} as CalculatePostRequestBody) : Record void> { + return { + "calculationType": n => { calculatePostRequestBody.calculationType = n.getStringValue(); }, + } +} +export function serializeCalculatePostRequestBody(writer: SerializationWriter, calculatePostRequestBody: CalculatePostRequestBody | undefined = {} as CalculatePostRequestBody) : void { + writer.writeStringValue("calculationType", calculatePostRequestBody.calculationType); + writer.writeAdditionalData(calculatePostRequestBody.additionalData); +} /** * Provides operations to call the calculate method. */ diff --git a/src/drives/item/items/item/workbook/application/index.ts b/src/drives/item/items/item/workbook/application/index.ts index 7b750ae4473..7e1a7189497 100644 --- a/src/drives/item/items/item/workbook/application/index.ts +++ b/src/drives/item/items/item/workbook/application/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookApplicationFromDiscriminatorValue, deserializeIntoWorkbookApplication, serializeWorkbookApplication, type WorkbookApplication } from '../../../../../../models/workbookApplication'; -import { CalculateRequestBuilder } from './calculate/'; +import { CalculateRequestBuilder } from './calculate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApplicationRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/closeSession/index.ts b/src/drives/item/items/item/workbook/closeSession/index.ts index d8fa0e59338..d674252abef 100644 --- a/src/drives/item/items/item/workbook/closeSession/index.ts +++ b/src/drives/item/items/item/workbook/closeSession/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/comments/count/index.ts b/src/drives/item/items/item/workbook/comments/count/index.ts index ca906a4487a..5cb5a0acec3 100644 --- a/src/drives/item/items/item/workbook/comments/count/index.ts +++ b/src/drives/item/items/item/workbook/comments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/comments/index.ts b/src/drives/item/items/item/workbook/comments/index.ts index ed5be2aeb2c..1656e716923 100644 --- a/src/drives/item/items/item/workbook/comments/index.ts +++ b/src/drives/item/items/item/workbook/comments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookCommentCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type WorkbookCommentCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookCommentFromDiscriminatorValue, deserializeIntoWorkbookComment, serializeWorkbookComment, type WorkbookComment } from '../../../../../../models/workbookComment'; import { createWorkbookCommentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/workbookCommentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WorkbookCommentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkbookCommentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CommentsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/comments/item/index.ts b/src/drives/item/items/item/workbook/comments/item/index.ts index 2ec42a8268c..77f1aec75bc 100644 --- a/src/drives/item/items/item/workbook/comments/item/index.ts +++ b/src/drives/item/items/item/workbook/comments/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookCommentFromDiscriminatorValue, deserializeIntoWorkbookComment, serializeWorkbookComment, type WorkbookComment } from '../../../../../../../models/workbookComment'; -import { RepliesRequestBuilder } from './replies/'; +import { RepliesRequestBuilder } from './replies'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookCommentItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/comments/item/replies/count/index.ts b/src/drives/item/items/item/workbook/comments/item/replies/count/index.ts index 609f031b736..1e8db54a399 100644 --- a/src/drives/item/items/item/workbook/comments/item/replies/count/index.ts +++ b/src/drives/item/items/item/workbook/comments/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/comments/item/replies/index.ts b/src/drives/item/items/item/workbook/comments/item/replies/index.ts index f126688dad4..04c938e6c59 100644 --- a/src/drives/item/items/item/workbook/comments/item/replies/index.ts +++ b/src/drives/item/items/item/workbook/comments/item/replies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookCommentReplyCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookCommentReplyCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookCommentReplyFromDiscriminatorValue, deserializeIntoWorkbookCommentReply, serializeWorkbookCommentReply, type WorkbookCommentReply } from '../../../../../../../../models/workbookCommentReply'; import { createWorkbookCommentReplyCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/workbookCommentReplyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WorkbookCommentReplyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkbookCommentReplyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/comments/item/replies/item/index.ts b/src/drives/item/items/item/workbook/comments/item/replies/item/index.ts index 9a531320d94..4851c1a6944 100644 --- a/src/drives/item/items/item/workbook/comments/item/replies/item/index.ts +++ b/src/drives/item/items/item/workbook/comments/item/replies/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookCommentReplyFromDiscriminatorValue, deserializeIntoWorkbookCommentReply, serializeWorkbookCommentReply, type WorkbookCommentReply } from '../../../../../../../../../models/workbookCommentReply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/createSession/createSessionPostRequestBody.ts b/src/drives/item/items/item/workbook/createSession/createSessionPostRequestBody.ts deleted file mode 100644 index 433ce431f11..00000000000 --- a/src/drives/item/items/item/workbook/createSession/createSessionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCreateSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCreateSessionPostRequestBody; -} -export interface CreateSessionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The persistChanges property - */ - persistChanges?: boolean; -} -export function deserializeIntoCreateSessionPostRequestBody(createSessionPostRequestBody: CreateSessionPostRequestBody | undefined = {} as CreateSessionPostRequestBody) : Record void> { - return { - "persistChanges": n => { createSessionPostRequestBody.persistChanges = n.getBooleanValue(); }, - } -} -export function serializeCreateSessionPostRequestBody(writer: SerializationWriter, createSessionPostRequestBody: CreateSessionPostRequestBody | undefined = {} as CreateSessionPostRequestBody) : void { - writer.writeBooleanValue("persistChanges", createSessionPostRequestBody.persistChanges); - writer.writeAdditionalData(createSessionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/createSession/index.ts b/src/drives/item/items/item/workbook/createSession/index.ts index cf4ff730ba0..ca45a45ccd3 100644 --- a/src/drives/item/items/item/workbook/createSession/index.ts +++ b/src/drives/item/items/item/workbook/createSession/index.ts @@ -1,12 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookSessionInfoFromDiscriminatorValue, deserializeIntoWorkbookSessionInfo, serializeWorkbookSessionInfo, type WorkbookSessionInfo } from '../../../../../../models/workbookSessionInfo'; -import { deserializeIntoCreateSessionPostRequestBody, serializeCreateSessionPostRequestBody, type CreateSessionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createCreateSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCreateSessionPostRequestBody; +} +export interface CreateSessionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The persistChanges property + */ + persistChanges?: boolean; +} +export function deserializeIntoCreateSessionPostRequestBody(createSessionPostRequestBody: CreateSessionPostRequestBody | undefined = {} as CreateSessionPostRequestBody) : Record void> { + return { + "persistChanges": n => { createSessionPostRequestBody.persistChanges = n.getBooleanValue(); }, + } +} +export function serializeCreateSessionPostRequestBody(writer: SerializationWriter, createSessionPostRequestBody: CreateSessionPostRequestBody | undefined = {} as CreateSessionPostRequestBody) : void { + writer.writeBooleanValue("persistChanges", createSessionPostRequestBody.persistChanges); + writer.writeAdditionalData(createSessionPostRequestBody.additionalData); +} /** * Provides operations to call the createSession method. */ diff --git a/src/drives/item/items/item/workbook/functions/abs/index.ts b/src/drives/item/items/item/workbook/functions/abs/index.ts index 0a6cc2d099d..9efd9f77c39 100644 --- a/src/drives/item/items/item/workbook/functions/abs/index.ts +++ b/src/drives/item/items/item/workbook/functions/abs/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AbsPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAbsPostRequestBody(writer: SerializationWriter, absPost writer.writeObjectValue("number", absPostRequestBody.number, serializeJson); writer.writeAdditionalData(absPostRequestBody.additionalData); } -/** - * Provides operations to call the abs method. - */ -export class AbsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AbsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/abs"); - }; - /** - * Invoke action abs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AbsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action abs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AbsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAbsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a absRequestBuilder - */ - public withUrl(rawUrl: string) : AbsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AbsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/accrInt/index.ts b/src/drives/item/items/item/workbook/functions/accrInt/index.ts index 69623e7c623..ea1facc3bee 100644 --- a/src/drives/item/items/item/workbook/functions/accrInt/index.ts +++ b/src/drives/item/items/item/workbook/functions/accrInt/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AccrIntPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -72,57 +69,5 @@ export function serializeAccrIntPostRequestBody(writer: SerializationWriter, acc writer.writeObjectValue("settlement", accrIntPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(accrIntPostRequestBody.additionalData); } -/** - * Provides operations to call the accrInt method. - */ -export class AccrIntRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AccrIntRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/accrInt"); - }; - /** - * Invoke action accrInt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AccrIntPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action accrInt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AccrIntPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAccrIntPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a accrIntRequestBuilder - */ - public withUrl(rawUrl: string) : AccrIntRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AccrIntRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/accrIntM/index.ts b/src/drives/item/items/item/workbook/functions/accrIntM/index.ts index 9977c50403f..e2312186029 100644 --- a/src/drives/item/items/item/workbook/functions/accrIntM/index.ts +++ b/src/drives/item/items/item/workbook/functions/accrIntM/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AccrIntMPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -54,57 +51,5 @@ export function serializeAccrIntMPostRequestBody(writer: SerializationWriter, ac writer.writeObjectValue("settlement", accrIntMPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(accrIntMPostRequestBody.additionalData); } -/** - * Provides operations to call the accrIntM method. - */ -export class AccrIntMRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AccrIntMRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/accrIntM"); - }; - /** - * Invoke action accrIntM - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AccrIntMPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action accrIntM - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AccrIntMPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAccrIntMPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a accrIntMRequestBuilder - */ - public withUrl(rawUrl: string) : AccrIntMRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AccrIntMRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/acos/index.ts b/src/drives/item/items/item/workbook/functions/acos/index.ts index 9bf007fb7b7..5fd17f835c0 100644 --- a/src/drives/item/items/item/workbook/functions/acos/index.ts +++ b/src/drives/item/items/item/workbook/functions/acos/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcosPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAcosPostRequestBody(writer: SerializationWriter, acosPo writer.writeObjectValue("number", acosPostRequestBody.number, serializeJson); writer.writeAdditionalData(acosPostRequestBody.additionalData); } -/** - * Provides operations to call the acos method. - */ -export class AcosRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcosRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acos"); - }; - /** - * Invoke action acos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AcosPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action acos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcosPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcosPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acosRequestBuilder - */ - public withUrl(rawUrl: string) : AcosRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcosRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/acosh/acoshPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/acosh/acoshPostRequestBody.ts deleted file mode 100644 index 801715f70c8..00000000000 --- a/src/drives/item/items/item/workbook/functions/acosh/acoshPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AcoshPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function createAcoshPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAcoshPostRequestBody; -} -export function deserializeIntoAcoshPostRequestBody(acoshPostRequestBody: AcoshPostRequestBody | undefined = {} as AcoshPostRequestBody) : Record void> { - return { - "number": n => { acoshPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeAcoshPostRequestBody(writer: SerializationWriter, acoshPostRequestBody: AcoshPostRequestBody | undefined = {} as AcoshPostRequestBody) : void { - writer.writeObjectValue("number", acoshPostRequestBody.number, serializeJson); - writer.writeAdditionalData(acoshPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/acosh/index.ts b/src/drives/item/items/item/workbook/functions/acosh/index.ts index 0f6beaa909d..062e8bff3d3 100644 --- a/src/drives/item/items/item/workbook/functions/acosh/index.ts +++ b/src/drives/item/items/item/workbook/functions/acosh/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoAcoshPostRequestBody, serializeAcoshPostRequestBody, type AcoshPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AcoshPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function createAcoshPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAcoshPostRequestBody; +} +export function deserializeIntoAcoshPostRequestBody(acoshPostRequestBody: AcoshPostRequestBody | undefined = {} as AcoshPostRequestBody) : Record void> { + return { + "number": n => { acoshPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeAcoshPostRequestBody(writer: SerializationWriter, acoshPostRequestBody: AcoshPostRequestBody | undefined = {} as AcoshPostRequestBody) : void { + writer.writeObjectValue("number", acoshPostRequestBody.number, serializeJson); + writer.writeAdditionalData(acoshPostRequestBody.additionalData); +} /** * Provides operations to call the acosh method. */ diff --git a/src/drives/item/items/item/workbook/functions/acot/acotPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/acot/acotPostRequestBody.ts deleted file mode 100644 index c3ed7998ebd..00000000000 --- a/src/drives/item/items/item/workbook/functions/acot/acotPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AcotPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function createAcotPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAcotPostRequestBody; -} -export function deserializeIntoAcotPostRequestBody(acotPostRequestBody: AcotPostRequestBody | undefined = {} as AcotPostRequestBody) : Record void> { - return { - "number": n => { acotPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeAcotPostRequestBody(writer: SerializationWriter, acotPostRequestBody: AcotPostRequestBody | undefined = {} as AcotPostRequestBody) : void { - writer.writeObjectValue("number", acotPostRequestBody.number, serializeJson); - writer.writeAdditionalData(acotPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/acot/index.ts b/src/drives/item/items/item/workbook/functions/acot/index.ts index cbcb706d8bf..4c36273d50e 100644 --- a/src/drives/item/items/item/workbook/functions/acot/index.ts +++ b/src/drives/item/items/item/workbook/functions/acot/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoAcotPostRequestBody, serializeAcotPostRequestBody, type AcotPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AcotPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function createAcotPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAcotPostRequestBody; +} +export function deserializeIntoAcotPostRequestBody(acotPostRequestBody: AcotPostRequestBody | undefined = {} as AcotPostRequestBody) : Record void> { + return { + "number": n => { acotPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeAcotPostRequestBody(writer: SerializationWriter, acotPostRequestBody: AcotPostRequestBody | undefined = {} as AcotPostRequestBody) : void { + writer.writeObjectValue("number", acotPostRequestBody.number, serializeJson); + writer.writeAdditionalData(acotPostRequestBody.additionalData); +} /** * Provides operations to call the acot method. */ diff --git a/src/drives/item/items/item/workbook/functions/acoth/acothPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/acoth/acothPostRequestBody.ts deleted file mode 100644 index a4b2ae9b6e7..00000000000 --- a/src/drives/item/items/item/workbook/functions/acoth/acothPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AcothPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function createAcothPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAcothPostRequestBody; -} -export function deserializeIntoAcothPostRequestBody(acothPostRequestBody: AcothPostRequestBody | undefined = {} as AcothPostRequestBody) : Record void> { - return { - "number": n => { acothPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeAcothPostRequestBody(writer: SerializationWriter, acothPostRequestBody: AcothPostRequestBody | undefined = {} as AcothPostRequestBody) : void { - writer.writeObjectValue("number", acothPostRequestBody.number, serializeJson); - writer.writeAdditionalData(acothPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/acoth/index.ts b/src/drives/item/items/item/workbook/functions/acoth/index.ts index 38d157759cc..d99b1af482a 100644 --- a/src/drives/item/items/item/workbook/functions/acoth/index.ts +++ b/src/drives/item/items/item/workbook/functions/acoth/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoAcothPostRequestBody, serializeAcothPostRequestBody, type AcothPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AcothPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function createAcothPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAcothPostRequestBody; +} +export function deserializeIntoAcothPostRequestBody(acothPostRequestBody: AcothPostRequestBody | undefined = {} as AcothPostRequestBody) : Record void> { + return { + "number": n => { acothPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeAcothPostRequestBody(writer: SerializationWriter, acothPostRequestBody: AcothPostRequestBody | undefined = {} as AcothPostRequestBody) : void { + writer.writeObjectValue("number", acothPostRequestBody.number, serializeJson); + writer.writeAdditionalData(acothPostRequestBody.additionalData); +} /** * Provides operations to call the acoth method. */ diff --git a/src/drives/item/items/item/workbook/functions/amorDegrc/index.ts b/src/drives/item/items/item/workbook/functions/amorDegrc/index.ts index 96da05016f9..98354ec35da 100644 --- a/src/drives/item/items/item/workbook/functions/amorDegrc/index.ts +++ b/src/drives/item/items/item/workbook/functions/amorDegrc/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AmorDegrcPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -66,57 +63,5 @@ export function serializeAmorDegrcPostRequestBody(writer: SerializationWriter, a writer.writeObjectValue("salvage", amorDegrcPostRequestBody.salvage, serializeJson); writer.writeAdditionalData(amorDegrcPostRequestBody.additionalData); } -/** - * Provides operations to call the amorDegrc method. - */ -export class AmorDegrcRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AmorDegrcRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/amorDegrc"); - }; - /** - * Invoke action amorDegrc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AmorDegrcPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action amorDegrc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AmorDegrcPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAmorDegrcPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a amorDegrcRequestBuilder - */ - public withUrl(rawUrl: string) : AmorDegrcRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AmorDegrcRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/amorLinc/index.ts b/src/drives/item/items/item/workbook/functions/amorLinc/index.ts index e4a1ace4615..117288bb0fc 100644 --- a/src/drives/item/items/item/workbook/functions/amorLinc/index.ts +++ b/src/drives/item/items/item/workbook/functions/amorLinc/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AmorLincPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -66,57 +63,5 @@ export function serializeAmorLincPostRequestBody(writer: SerializationWriter, am writer.writeObjectValue("salvage", amorLincPostRequestBody.salvage, serializeJson); writer.writeAdditionalData(amorLincPostRequestBody.additionalData); } -/** - * Provides operations to call the amorLinc method. - */ -export class AmorLincRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AmorLincRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/amorLinc"); - }; - /** - * Invoke action amorLinc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AmorLincPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action amorLinc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AmorLincPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAmorLincPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a amorLincRequestBuilder - */ - public withUrl(rawUrl: string) : AmorLincRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AmorLincRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/and/index.ts b/src/drives/item/items/item/workbook/functions/and/index.ts index b3653f8245c..6a86d4d1436 100644 --- a/src/drives/item/items/item/workbook/functions/and/index.ts +++ b/src/drives/item/items/item/workbook/functions/and/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AndPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAndPostRequestBody(writer: SerializationWriter, andPost writer.writeObjectValue("values", andPostRequestBody.values, serializeJson); writer.writeAdditionalData(andPostRequestBody.additionalData); } -/** - * Provides operations to call the and method. - */ -export class AndRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AndRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/and"); - }; - /** - * Invoke action and - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AndPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action and - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AndPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAndPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a andRequestBuilder - */ - public withUrl(rawUrl: string) : AndRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AndRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/arabic/arabicPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/arabic/arabicPostRequestBody.ts deleted file mode 100644 index c0b4413d350..00000000000 --- a/src/drives/item/items/item/workbook/functions/arabic/arabicPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ArabicPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The text property - */ - text?: Json; -} -export function createArabicPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoArabicPostRequestBody; -} -export function deserializeIntoArabicPostRequestBody(arabicPostRequestBody: ArabicPostRequestBody | undefined = {} as ArabicPostRequestBody) : Record void> { - return { - "text": n => { arabicPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeArabicPostRequestBody(writer: SerializationWriter, arabicPostRequestBody: ArabicPostRequestBody | undefined = {} as ArabicPostRequestBody) : void { - writer.writeObjectValue("text", arabicPostRequestBody.text, serializeJson); - writer.writeAdditionalData(arabicPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/arabic/index.ts b/src/drives/item/items/item/workbook/functions/arabic/index.ts index 74e24700a2d..e91344f7977 100644 --- a/src/drives/item/items/item/workbook/functions/arabic/index.ts +++ b/src/drives/item/items/item/workbook/functions/arabic/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoArabicPostRequestBody, serializeArabicPostRequestBody, type ArabicPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ArabicPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The text property + */ + text?: Json; +} +export function createArabicPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoArabicPostRequestBody; +} +export function deserializeIntoArabicPostRequestBody(arabicPostRequestBody: ArabicPostRequestBody | undefined = {} as ArabicPostRequestBody) : Record void> { + return { + "text": n => { arabicPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeArabicPostRequestBody(writer: SerializationWriter, arabicPostRequestBody: ArabicPostRequestBody | undefined = {} as ArabicPostRequestBody) : void { + writer.writeObjectValue("text", arabicPostRequestBody.text, serializeJson); + writer.writeAdditionalData(arabicPostRequestBody.additionalData); +} /** * Provides operations to call the arabic method. */ diff --git a/src/drives/item/items/item/workbook/functions/areas/index.ts b/src/drives/item/items/item/workbook/functions/areas/index.ts index bd668771e11..10b0b98f91e 100644 --- a/src/drives/item/items/item/workbook/functions/areas/index.ts +++ b/src/drives/item/items/item/workbook/functions/areas/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AreasPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAreasPostRequestBody(writer: SerializationWriter, areas writer.writeObjectValue("reference", areasPostRequestBody.reference, serializeJson); writer.writeAdditionalData(areasPostRequestBody.additionalData); } -/** - * Provides operations to call the areas method. - */ -export class AreasRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AreasRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/areas"); - }; - /** - * Invoke action areas - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AreasPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action areas - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AreasPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAreasPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a areasRequestBuilder - */ - public withUrl(rawUrl: string) : AreasRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AreasRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/asc/index.ts b/src/drives/item/items/item/workbook/functions/asc/index.ts index 3aa761d9dd1..4776b7f398c 100644 --- a/src/drives/item/items/item/workbook/functions/asc/index.ts +++ b/src/drives/item/items/item/workbook/functions/asc/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AscPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAscPostRequestBody(writer: SerializationWriter, ascPost writer.writeObjectValue("text", ascPostRequestBody.text, serializeJson); writer.writeAdditionalData(ascPostRequestBody.additionalData); } -/** - * Provides operations to call the asc method. - */ -export class AscRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AscRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/asc"); - }; - /** - * Invoke action asc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AscPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action asc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AscPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAscPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a ascRequestBuilder - */ - public withUrl(rawUrl: string) : AscRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AscRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/asin/index.ts b/src/drives/item/items/item/workbook/functions/asin/index.ts index 1e409f4dd44..3dcec516673 100644 --- a/src/drives/item/items/item/workbook/functions/asin/index.ts +++ b/src/drives/item/items/item/workbook/functions/asin/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AsinPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAsinPostRequestBody(writer: SerializationWriter, asinPo writer.writeObjectValue("number", asinPostRequestBody.number, serializeJson); writer.writeAdditionalData(asinPostRequestBody.additionalData); } -/** - * Provides operations to call the asin method. - */ -export class AsinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AsinRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/asin"); - }; - /** - * Invoke action asin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AsinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action asin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AsinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAsinPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a asinRequestBuilder - */ - public withUrl(rawUrl: string) : AsinRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AsinRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/asinh/asinhPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/asinh/asinhPostRequestBody.ts deleted file mode 100644 index ae8495422f0..00000000000 --- a/src/drives/item/items/item/workbook/functions/asinh/asinhPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AsinhPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function createAsinhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAsinhPostRequestBody; -} -export function deserializeIntoAsinhPostRequestBody(asinhPostRequestBody: AsinhPostRequestBody | undefined = {} as AsinhPostRequestBody) : Record void> { - return { - "number": n => { asinhPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeAsinhPostRequestBody(writer: SerializationWriter, asinhPostRequestBody: AsinhPostRequestBody | undefined = {} as AsinhPostRequestBody) : void { - writer.writeObjectValue("number", asinhPostRequestBody.number, serializeJson); - writer.writeAdditionalData(asinhPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/asinh/index.ts b/src/drives/item/items/item/workbook/functions/asinh/index.ts index 657e371ea95..c0bae80de56 100644 --- a/src/drives/item/items/item/workbook/functions/asinh/index.ts +++ b/src/drives/item/items/item/workbook/functions/asinh/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoAsinhPostRequestBody, serializeAsinhPostRequestBody, type AsinhPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AsinhPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function createAsinhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAsinhPostRequestBody; +} +export function deserializeIntoAsinhPostRequestBody(asinhPostRequestBody: AsinhPostRequestBody | undefined = {} as AsinhPostRequestBody) : Record void> { + return { + "number": n => { asinhPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeAsinhPostRequestBody(writer: SerializationWriter, asinhPostRequestBody: AsinhPostRequestBody | undefined = {} as AsinhPostRequestBody) : void { + writer.writeObjectValue("number", asinhPostRequestBody.number, serializeJson); + writer.writeAdditionalData(asinhPostRequestBody.additionalData); +} /** * Provides operations to call the asinh method. */ diff --git a/src/drives/item/items/item/workbook/functions/atan/index.ts b/src/drives/item/items/item/workbook/functions/atan/index.ts index 61c5f43722f..84ee6c5b89a 100644 --- a/src/drives/item/items/item/workbook/functions/atan/index.ts +++ b/src/drives/item/items/item/workbook/functions/atan/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AtanPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAtanPostRequestBody(writer: SerializationWriter, atanPo writer.writeObjectValue("number", atanPostRequestBody.number, serializeJson); writer.writeAdditionalData(atanPostRequestBody.additionalData); } -/** - * Provides operations to call the atan method. - */ -export class AtanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AtanRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/atan"); - }; - /** - * Invoke action atan - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AtanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action atan - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AtanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAtanPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a atanRequestBuilder - */ - public withUrl(rawUrl: string) : AtanRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AtanRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/atan2/index.ts b/src/drives/item/items/item/workbook/functions/atan2/index.ts index d910fd13813..ed7fd1f78aa 100644 --- a/src/drives/item/items/item/workbook/functions/atan2/index.ts +++ b/src/drives/item/items/item/workbook/functions/atan2/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface Atan2PostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeAtan2PostRequestBody(writer: SerializationWriter, atan2 writer.writeObjectValue("yNum", atan2PostRequestBody.yNum, serializeJson); writer.writeAdditionalData(atan2PostRequestBody.additionalData); } -/** - * Provides operations to call the atan2 method. - */ -export class Atan2RequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Atan2RequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/atan2"); - }; - /** - * Invoke action atan2 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Atan2PostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action atan2 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Atan2PostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAtan2PostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a atan2RequestBuilder - */ - public withUrl(rawUrl: string) : Atan2RequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Atan2RequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/atanh/atanhPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/atanh/atanhPostRequestBody.ts deleted file mode 100644 index e5ef0c53fe9..00000000000 --- a/src/drives/item/items/item/workbook/functions/atanh/atanhPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AtanhPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function createAtanhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAtanhPostRequestBody; -} -export function deserializeIntoAtanhPostRequestBody(atanhPostRequestBody: AtanhPostRequestBody | undefined = {} as AtanhPostRequestBody) : Record void> { - return { - "number": n => { atanhPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeAtanhPostRequestBody(writer: SerializationWriter, atanhPostRequestBody: AtanhPostRequestBody | undefined = {} as AtanhPostRequestBody) : void { - writer.writeObjectValue("number", atanhPostRequestBody.number, serializeJson); - writer.writeAdditionalData(atanhPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/atanh/index.ts b/src/drives/item/items/item/workbook/functions/atanh/index.ts index d098d33c9cb..a86459136c3 100644 --- a/src/drives/item/items/item/workbook/functions/atanh/index.ts +++ b/src/drives/item/items/item/workbook/functions/atanh/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoAtanhPostRequestBody, serializeAtanhPostRequestBody, type AtanhPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AtanhPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function createAtanhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAtanhPostRequestBody; +} +export function deserializeIntoAtanhPostRequestBody(atanhPostRequestBody: AtanhPostRequestBody | undefined = {} as AtanhPostRequestBody) : Record void> { + return { + "number": n => { atanhPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeAtanhPostRequestBody(writer: SerializationWriter, atanhPostRequestBody: AtanhPostRequestBody | undefined = {} as AtanhPostRequestBody) : void { + writer.writeObjectValue("number", atanhPostRequestBody.number, serializeJson); + writer.writeAdditionalData(atanhPostRequestBody.additionalData); +} /** * Provides operations to call the atanh method. */ diff --git a/src/drives/item/items/item/workbook/functions/aveDev/index.ts b/src/drives/item/items/item/workbook/functions/aveDev/index.ts index f942ac98d32..b607a06a99f 100644 --- a/src/drives/item/items/item/workbook/functions/aveDev/index.ts +++ b/src/drives/item/items/item/workbook/functions/aveDev/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AveDevPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAveDevPostRequestBody(writer: SerializationWriter, aveD writer.writeObjectValue("values", aveDevPostRequestBody.values, serializeJson); writer.writeAdditionalData(aveDevPostRequestBody.additionalData); } -/** - * Provides operations to call the aveDev method. - */ -export class AveDevRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AveDevRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/aveDev"); - }; - /** - * Invoke action aveDev - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AveDevPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action aveDev - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AveDevPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAveDevPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a aveDevRequestBuilder - */ - public withUrl(rawUrl: string) : AveDevRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AveDevRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/average/index.ts b/src/drives/item/items/item/workbook/functions/average/index.ts index b79a3734a06..d069926d13c 100644 --- a/src/drives/item/items/item/workbook/functions/average/index.ts +++ b/src/drives/item/items/item/workbook/functions/average/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AveragePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeAveragePostRequestBody(writer: SerializationWriter, ave writer.writeObjectValue("values", averagePostRequestBody.values, serializeJson); writer.writeAdditionalData(averagePostRequestBody.additionalData); } -/** - * Provides operations to call the average method. - */ -export class AverageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AverageRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/average"); - }; - /** - * Invoke action average - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AveragePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action average - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AveragePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAveragePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a averageRequestBuilder - */ - public withUrl(rawUrl: string) : AverageRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AverageRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/averageA/averageAPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/averageA/averageAPostRequestBody.ts deleted file mode 100644 index 993131a14c6..00000000000 --- a/src/drives/item/items/item/workbook/functions/averageA/averageAPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AverageAPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function createAverageAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAverageAPostRequestBody; -} -export function deserializeIntoAverageAPostRequestBody(averageAPostRequestBody: AverageAPostRequestBody | undefined = {} as AverageAPostRequestBody) : Record void> { - return { - "values": n => { averageAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeAverageAPostRequestBody(writer: SerializationWriter, averageAPostRequestBody: AverageAPostRequestBody | undefined = {} as AverageAPostRequestBody) : void { - writer.writeObjectValue("values", averageAPostRequestBody.values, serializeJson); - writer.writeAdditionalData(averageAPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/averageA/index.ts b/src/drives/item/items/item/workbook/functions/averageA/index.ts index 567c3675aa3..63287bec57a 100644 --- a/src/drives/item/items/item/workbook/functions/averageA/index.ts +++ b/src/drives/item/items/item/workbook/functions/averageA/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoAverageAPostRequestBody, serializeAverageAPostRequestBody, type AverageAPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AverageAPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function createAverageAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAverageAPostRequestBody; +} +export function deserializeIntoAverageAPostRequestBody(averageAPostRequestBody: AverageAPostRequestBody | undefined = {} as AverageAPostRequestBody) : Record void> { + return { + "values": n => { averageAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeAverageAPostRequestBody(writer: SerializationWriter, averageAPostRequestBody: AverageAPostRequestBody | undefined = {} as AverageAPostRequestBody) : void { + writer.writeObjectValue("values", averageAPostRequestBody.values, serializeJson); + writer.writeAdditionalData(averageAPostRequestBody.additionalData); +} /** * Provides operations to call the averageA method. */ diff --git a/src/drives/item/items/item/workbook/functions/averageIf/index.ts b/src/drives/item/items/item/workbook/functions/averageIf/index.ts index bb8ff59a4ce..cf31fd99bd0 100644 --- a/src/drives/item/items/item/workbook/functions/averageIf/index.ts +++ b/src/drives/item/items/item/workbook/functions/averageIf/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AverageIfPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,57 +39,5 @@ export function serializeAverageIfPostRequestBody(writer: SerializationWriter, a writer.writeObjectValue("range", averageIfPostRequestBody.range, serializeJson); writer.writeAdditionalData(averageIfPostRequestBody.additionalData); } -/** - * Provides operations to call the averageIf method. - */ -export class AverageIfRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AverageIfRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/averageIf"); - }; - /** - * Invoke action averageIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: AverageIfPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action averageIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AverageIfPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAverageIfPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a averageIfRequestBuilder - */ - public withUrl(rawUrl: string) : AverageIfRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AverageIfRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/averageIfs/averageIfsPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/averageIfs/averageIfsPostRequestBody.ts deleted file mode 100644 index c08ce4620f2..00000000000 --- a/src/drives/item/items/item/workbook/functions/averageIfs/averageIfsPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AverageIfsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The averageRange property - */ - averageRange?: Json; - /** - * The values property - */ - values?: Json; -} -export function createAverageIfsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAverageIfsPostRequestBody; -} -export function deserializeIntoAverageIfsPostRequestBody(averageIfsPostRequestBody: AverageIfsPostRequestBody | undefined = {} as AverageIfsPostRequestBody) : Record void> { - return { - "averageRange": n => { averageIfsPostRequestBody.averageRange = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "values": n => { averageIfsPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeAverageIfsPostRequestBody(writer: SerializationWriter, averageIfsPostRequestBody: AverageIfsPostRequestBody | undefined = {} as AverageIfsPostRequestBody) : void { - writer.writeObjectValue("averageRange", averageIfsPostRequestBody.averageRange, serializeJson); - writer.writeObjectValue("values", averageIfsPostRequestBody.values, serializeJson); - writer.writeAdditionalData(averageIfsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/averageIfs/index.ts b/src/drives/item/items/item/workbook/functions/averageIfs/index.ts index 0b7d2429e90..7898525076d 100644 --- a/src/drives/item/items/item/workbook/functions/averageIfs/index.ts +++ b/src/drives/item/items/item/workbook/functions/averageIfs/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoAverageIfsPostRequestBody, serializeAverageIfsPostRequestBody, type AverageIfsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AverageIfsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The averageRange property + */ + averageRange?: Json; + /** + * The values property + */ + values?: Json; +} +export function createAverageIfsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAverageIfsPostRequestBody; +} +export function deserializeIntoAverageIfsPostRequestBody(averageIfsPostRequestBody: AverageIfsPostRequestBody | undefined = {} as AverageIfsPostRequestBody) : Record void> { + return { + "averageRange": n => { averageIfsPostRequestBody.averageRange = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "values": n => { averageIfsPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeAverageIfsPostRequestBody(writer: SerializationWriter, averageIfsPostRequestBody: AverageIfsPostRequestBody | undefined = {} as AverageIfsPostRequestBody) : void { + writer.writeObjectValue("averageRange", averageIfsPostRequestBody.averageRange, serializeJson); + writer.writeObjectValue("values", averageIfsPostRequestBody.values, serializeJson); + writer.writeAdditionalData(averageIfsPostRequestBody.additionalData); +} /** * Provides operations to call the averageIfs method. */ diff --git a/src/drives/item/items/item/workbook/functions/bahtText/index.ts b/src/drives/item/items/item/workbook/functions/bahtText/index.ts index 71223bdb66f..ab681b7e36d 100644 --- a/src/drives/item/items/item/workbook/functions/bahtText/index.ts +++ b/src/drives/item/items/item/workbook/functions/bahtText/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface BahtTextPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeBahtTextPostRequestBody(writer: SerializationWriter, ba writer.writeObjectValue("number", bahtTextPostRequestBody.number, serializeJson); writer.writeAdditionalData(bahtTextPostRequestBody.additionalData); } -/** - * Provides operations to call the bahtText method. - */ -export class BahtTextRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new BahtTextRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bahtText"); - }; - /** - * Invoke action bahtText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: BahtTextPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action bahtText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: BahtTextPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBahtTextPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a bahtTextRequestBuilder - */ - public withUrl(rawUrl: string) : BahtTextRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new BahtTextRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/base/index.ts b/src/drives/item/items/item/workbook/functions/base/index.ts index c4d3d653116..5a787ef25ee 100644 --- a/src/drives/item/items/item/workbook/functions/base/index.ts +++ b/src/drives/item/items/item/workbook/functions/base/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface BasePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,57 +39,5 @@ export function serializeBasePostRequestBody(writer: SerializationWriter, basePo writer.writeObjectValue("radix", basePostRequestBody.radix, serializeJson); writer.writeAdditionalData(basePostRequestBody.additionalData); } -/** - * Provides operations to call the base method. - */ -export class BaseRequestBuilderEscaped extends BaseRequestBuilder { - /** - * Instantiates a new BaseRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/base"); - }; - /** - * Invoke action base - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: BasePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action base - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: BasePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBasePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a baseRequestBuilderEscaped - */ - public withUrl(rawUrl: string) : BaseRequestBuilderEscaped { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new BaseRequestBuilderEscaped(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/besselI/index.ts b/src/drives/item/items/item/workbook/functions/besselI/index.ts index 65d83b2fd4b..c96be46b9fc 100644 --- a/src/drives/item/items/item/workbook/functions/besselI/index.ts +++ b/src/drives/item/items/item/workbook/functions/besselI/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface BesselIPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeBesselIPostRequestBody(writer: SerializationWriter, bes writer.writeObjectValue("x", besselIPostRequestBody.x, serializeJson); writer.writeAdditionalData(besselIPostRequestBody.additionalData); } -/** - * Provides operations to call the besselI method. - */ -export class BesselIRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new BesselIRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselI"); - }; - /** - * Invoke action besselI - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: BesselIPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action besselI - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: BesselIPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBesselIPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a besselIRequestBuilder - */ - public withUrl(rawUrl: string) : BesselIRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new BesselIRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/besselJ/besselJPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/besselJ/besselJPostRequestBody.ts deleted file mode 100644 index f6bd6286ea0..00000000000 --- a/src/drives/item/items/item/workbook/functions/besselJ/besselJPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface BesselJPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The n property - */ - n?: Json; - /** - * The x property - */ - x?: Json; -} -export function createBesselJPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBesselJPostRequestBody; -} -export function deserializeIntoBesselJPostRequestBody(besselJPostRequestBody: BesselJPostRequestBody | undefined = {} as BesselJPostRequestBody) : Record void> { - return { - "n": n => { besselJPostRequestBody.n = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { besselJPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBesselJPostRequestBody(writer: SerializationWriter, besselJPostRequestBody: BesselJPostRequestBody | undefined = {} as BesselJPostRequestBody) : void { - writer.writeObjectValue("n", besselJPostRequestBody.n, serializeJson); - writer.writeObjectValue("x", besselJPostRequestBody.x, serializeJson); - writer.writeAdditionalData(besselJPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/besselJ/index.ts b/src/drives/item/items/item/workbook/functions/besselJ/index.ts index f5805c69882..a890895f2d2 100644 --- a/src/drives/item/items/item/workbook/functions/besselJ/index.ts +++ b/src/drives/item/items/item/workbook/functions/besselJ/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBesselJPostRequestBody, serializeBesselJPostRequestBody, type BesselJPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface BesselJPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The n property + */ + n?: Json; + /** + * The x property + */ + x?: Json; +} +export function createBesselJPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBesselJPostRequestBody; +} +export function deserializeIntoBesselJPostRequestBody(besselJPostRequestBody: BesselJPostRequestBody | undefined = {} as BesselJPostRequestBody) : Record void> { + return { + "n": n => { besselJPostRequestBody.n = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { besselJPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBesselJPostRequestBody(writer: SerializationWriter, besselJPostRequestBody: BesselJPostRequestBody | undefined = {} as BesselJPostRequestBody) : void { + writer.writeObjectValue("n", besselJPostRequestBody.n, serializeJson); + writer.writeObjectValue("x", besselJPostRequestBody.x, serializeJson); + writer.writeAdditionalData(besselJPostRequestBody.additionalData); +} /** * Provides operations to call the besselJ method. */ diff --git a/src/drives/item/items/item/workbook/functions/besselK/index.ts b/src/drives/item/items/item/workbook/functions/besselK/index.ts index 4cc0d2b7ae7..e9ab6849bab 100644 --- a/src/drives/item/items/item/workbook/functions/besselK/index.ts +++ b/src/drives/item/items/item/workbook/functions/besselK/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface BesselKPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeBesselKPostRequestBody(writer: SerializationWriter, bes writer.writeObjectValue("x", besselKPostRequestBody.x, serializeJson); writer.writeAdditionalData(besselKPostRequestBody.additionalData); } -/** - * Provides operations to call the besselK method. - */ -export class BesselKRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new BesselKRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselK"); - }; - /** - * Invoke action besselK - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: BesselKPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action besselK - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: BesselKPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBesselKPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a besselKRequestBuilder - */ - public withUrl(rawUrl: string) : BesselKRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new BesselKRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/besselY/besselYPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/besselY/besselYPostRequestBody.ts deleted file mode 100644 index dfa437d8f50..00000000000 --- a/src/drives/item/items/item/workbook/functions/besselY/besselYPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface BesselYPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The n property - */ - n?: Json; - /** - * The x property - */ - x?: Json; -} -export function createBesselYPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBesselYPostRequestBody; -} -export function deserializeIntoBesselYPostRequestBody(besselYPostRequestBody: BesselYPostRequestBody | undefined = {} as BesselYPostRequestBody) : Record void> { - return { - "n": n => { besselYPostRequestBody.n = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { besselYPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBesselYPostRequestBody(writer: SerializationWriter, besselYPostRequestBody: BesselYPostRequestBody | undefined = {} as BesselYPostRequestBody) : void { - writer.writeObjectValue("n", besselYPostRequestBody.n, serializeJson); - writer.writeObjectValue("x", besselYPostRequestBody.x, serializeJson); - writer.writeAdditionalData(besselYPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/besselY/index.ts b/src/drives/item/items/item/workbook/functions/besselY/index.ts index 900ef2b339a..8a31e664421 100644 --- a/src/drives/item/items/item/workbook/functions/besselY/index.ts +++ b/src/drives/item/items/item/workbook/functions/besselY/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBesselYPostRequestBody, serializeBesselYPostRequestBody, type BesselYPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface BesselYPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The n property + */ + n?: Json; + /** + * The x property + */ + x?: Json; +} +export function createBesselYPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBesselYPostRequestBody; +} +export function deserializeIntoBesselYPostRequestBody(besselYPostRequestBody: BesselYPostRequestBody | undefined = {} as BesselYPostRequestBody) : Record void> { + return { + "n": n => { besselYPostRequestBody.n = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { besselYPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBesselYPostRequestBody(writer: SerializationWriter, besselYPostRequestBody: BesselYPostRequestBody | undefined = {} as BesselYPostRequestBody) : void { + writer.writeObjectValue("n", besselYPostRequestBody.n, serializeJson); + writer.writeObjectValue("x", besselYPostRequestBody.x, serializeJson); + writer.writeAdditionalData(besselYPostRequestBody.additionalData); +} /** * Provides operations to call the besselY method. */ diff --git a/src/drives/item/items/item/workbook/functions/beta_Dist/beta_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/beta_Dist/beta_DistPostRequestBody.ts deleted file mode 100644 index 82abbe33fe1..00000000000 --- a/src/drives/item/items/item/workbook/functions/beta_Dist/beta_DistPostRequestBody.ts +++ /dev/null @@ -1,61 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Beta_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The A property - */ - a?: Json; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The alpha property - */ - alpha?: Json; - /** - * The B property - */ - b?: Json; - /** - * The beta property - */ - beta?: Json; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The x property - */ - x?: Json; -} -export function createBeta_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBeta_DistPostRequestBody; -} -export function deserializeIntoBeta_DistPostRequestBody(beta_DistPostRequestBody: Beta_DistPostRequestBody | undefined = {} as Beta_DistPostRequestBody) : Record void> { - return { - "a": n => { beta_DistPostRequestBody.a = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "alpha": n => { beta_DistPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "b": n => { beta_DistPostRequestBody.b = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "beta": n => { beta_DistPostRequestBody.beta = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "cumulative": n => { beta_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { beta_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBeta_DistPostRequestBody(writer: SerializationWriter, beta_DistPostRequestBody: Beta_DistPostRequestBody | undefined = {} as Beta_DistPostRequestBody) : void { - writer.writeObjectValue("A", beta_DistPostRequestBody.a, serializeJson); - writer.writeObjectValue("alpha", beta_DistPostRequestBody.alpha, serializeJson); - writer.writeObjectValue("B", beta_DistPostRequestBody.b, serializeJson); - writer.writeObjectValue("beta", beta_DistPostRequestBody.beta, serializeJson); - writer.writeObjectValue("cumulative", beta_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("x", beta_DistPostRequestBody.x, serializeJson); - writer.writeAdditionalData(beta_DistPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/beta_Dist/index.ts b/src/drives/item/items/item/workbook/functions/beta_Dist/index.ts index 595f2d12a25..2ca23115bef 100644 --- a/src/drives/item/items/item/workbook/functions/beta_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/beta_Dist/index.ts @@ -1,12 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBeta_DistPostRequestBody, serializeBeta_DistPostRequestBody, type Beta_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Beta_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The A property + */ + a?: Json; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The alpha property + */ + alpha?: Json; + /** + * The B property + */ + b?: Json; + /** + * The beta property + */ + beta?: Json; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The x property + */ + x?: Json; +} +export function createBeta_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBeta_DistPostRequestBody; +} +export function deserializeIntoBeta_DistPostRequestBody(beta_DistPostRequestBody: Beta_DistPostRequestBody | undefined = {} as Beta_DistPostRequestBody) : Record void> { + return { + "a": n => { beta_DistPostRequestBody.a = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "alpha": n => { beta_DistPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "b": n => { beta_DistPostRequestBody.b = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "beta": n => { beta_DistPostRequestBody.beta = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "cumulative": n => { beta_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { beta_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBeta_DistPostRequestBody(writer: SerializationWriter, beta_DistPostRequestBody: Beta_DistPostRequestBody | undefined = {} as Beta_DistPostRequestBody) : void { + writer.writeObjectValue("A", beta_DistPostRequestBody.a, serializeJson); + writer.writeObjectValue("alpha", beta_DistPostRequestBody.alpha, serializeJson); + writer.writeObjectValue("B", beta_DistPostRequestBody.b, serializeJson); + writer.writeObjectValue("beta", beta_DistPostRequestBody.beta, serializeJson); + writer.writeObjectValue("cumulative", beta_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("x", beta_DistPostRequestBody.x, serializeJson); + writer.writeAdditionalData(beta_DistPostRequestBody.additionalData); +} /** * Provides operations to call the beta_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/beta_Inv/beta_InvPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/beta_Inv/beta_InvPostRequestBody.ts deleted file mode 100644 index e0bf6d0693e..00000000000 --- a/src/drives/item/items/item/workbook/functions/beta_Inv/beta_InvPostRequestBody.ts +++ /dev/null @@ -1,55 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Beta_InvPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The A property - */ - a?: Json; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The alpha property - */ - alpha?: Json; - /** - * The B property - */ - b?: Json; - /** - * The beta property - */ - beta?: Json; - /** - * The probability property - */ - probability?: Json; -} -export function createBeta_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBeta_InvPostRequestBody; -} -export function deserializeIntoBeta_InvPostRequestBody(beta_InvPostRequestBody: Beta_InvPostRequestBody | undefined = {} as Beta_InvPostRequestBody) : Record void> { - return { - "a": n => { beta_InvPostRequestBody.a = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "alpha": n => { beta_InvPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "b": n => { beta_InvPostRequestBody.b = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "beta": n => { beta_InvPostRequestBody.beta = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probability": n => { beta_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBeta_InvPostRequestBody(writer: SerializationWriter, beta_InvPostRequestBody: Beta_InvPostRequestBody | undefined = {} as Beta_InvPostRequestBody) : void { - writer.writeObjectValue("A", beta_InvPostRequestBody.a, serializeJson); - writer.writeObjectValue("alpha", beta_InvPostRequestBody.alpha, serializeJson); - writer.writeObjectValue("B", beta_InvPostRequestBody.b, serializeJson); - writer.writeObjectValue("beta", beta_InvPostRequestBody.beta, serializeJson); - writer.writeObjectValue("probability", beta_InvPostRequestBody.probability, serializeJson); - writer.writeAdditionalData(beta_InvPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/beta_Inv/index.ts b/src/drives/item/items/item/workbook/functions/beta_Inv/index.ts index e862f1d6bc4..80b7f0ebe7d 100644 --- a/src/drives/item/items/item/workbook/functions/beta_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/beta_Inv/index.ts @@ -1,12 +1,59 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBeta_InvPostRequestBody, serializeBeta_InvPostRequestBody, type Beta_InvPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Beta_InvPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The A property + */ + a?: Json; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The alpha property + */ + alpha?: Json; + /** + * The B property + */ + b?: Json; + /** + * The beta property + */ + beta?: Json; + /** + * The probability property + */ + probability?: Json; +} +export function createBeta_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBeta_InvPostRequestBody; +} +export function deserializeIntoBeta_InvPostRequestBody(beta_InvPostRequestBody: Beta_InvPostRequestBody | undefined = {} as Beta_InvPostRequestBody) : Record void> { + return { + "a": n => { beta_InvPostRequestBody.a = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "alpha": n => { beta_InvPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "b": n => { beta_InvPostRequestBody.b = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "beta": n => { beta_InvPostRequestBody.beta = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probability": n => { beta_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBeta_InvPostRequestBody(writer: SerializationWriter, beta_InvPostRequestBody: Beta_InvPostRequestBody | undefined = {} as Beta_InvPostRequestBody) : void { + writer.writeObjectValue("A", beta_InvPostRequestBody.a, serializeJson); + writer.writeObjectValue("alpha", beta_InvPostRequestBody.alpha, serializeJson); + writer.writeObjectValue("B", beta_InvPostRequestBody.b, serializeJson); + writer.writeObjectValue("beta", beta_InvPostRequestBody.beta, serializeJson); + writer.writeObjectValue("probability", beta_InvPostRequestBody.probability, serializeJson); + writer.writeAdditionalData(beta_InvPostRequestBody.additionalData); +} /** * Provides operations to call the beta_Inv method. */ diff --git a/src/drives/item/items/item/workbook/functions/bin2Dec/index.ts b/src/drives/item/items/item/workbook/functions/bin2Dec/index.ts index 8f9ccd653b4..2ad7884ace2 100644 --- a/src/drives/item/items/item/workbook/functions/bin2Dec/index.ts +++ b/src/drives/item/items/item/workbook/functions/bin2Dec/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface Bin2DecPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeBin2DecPostRequestBody(writer: SerializationWriter, bin writer.writeObjectValue("number", bin2DecPostRequestBody.number, serializeJson); writer.writeAdditionalData(bin2DecPostRequestBody.additionalData); } -/** - * Provides operations to call the bin2Dec method. - */ -export class Bin2DecRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Bin2DecRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bin2Dec"); - }; - /** - * Invoke action bin2Dec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Bin2DecPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action bin2Dec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Bin2DecPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBin2DecPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a bin2DecRequestBuilder - */ - public withUrl(rawUrl: string) : Bin2DecRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Bin2DecRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/bin2Hex/bin2HexPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/bin2Hex/bin2HexPostRequestBody.ts deleted file mode 100644 index 51abebe005f..00000000000 --- a/src/drives/item/items/item/workbook/functions/bin2Hex/bin2HexPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Bin2HexPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The places property - */ - places?: Json; -} -export function createBin2HexPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBin2HexPostRequestBody; -} -export function deserializeIntoBin2HexPostRequestBody(bin2HexPostRequestBody: Bin2HexPostRequestBody | undefined = {} as Bin2HexPostRequestBody) : Record void> { - return { - "number": n => { bin2HexPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "places": n => { bin2HexPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBin2HexPostRequestBody(writer: SerializationWriter, bin2HexPostRequestBody: Bin2HexPostRequestBody | undefined = {} as Bin2HexPostRequestBody) : void { - writer.writeObjectValue("number", bin2HexPostRequestBody.number, serializeJson); - writer.writeObjectValue("places", bin2HexPostRequestBody.places, serializeJson); - writer.writeAdditionalData(bin2HexPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/bin2Hex/index.ts b/src/drives/item/items/item/workbook/functions/bin2Hex/index.ts index 1bbc117d7e5..4e7d740f3c3 100644 --- a/src/drives/item/items/item/workbook/functions/bin2Hex/index.ts +++ b/src/drives/item/items/item/workbook/functions/bin2Hex/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBin2HexPostRequestBody, serializeBin2HexPostRequestBody, type Bin2HexPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Bin2HexPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The places property + */ + places?: Json; +} +export function createBin2HexPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBin2HexPostRequestBody; +} +export function deserializeIntoBin2HexPostRequestBody(bin2HexPostRequestBody: Bin2HexPostRequestBody | undefined = {} as Bin2HexPostRequestBody) : Record void> { + return { + "number": n => { bin2HexPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "places": n => { bin2HexPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBin2HexPostRequestBody(writer: SerializationWriter, bin2HexPostRequestBody: Bin2HexPostRequestBody | undefined = {} as Bin2HexPostRequestBody) : void { + writer.writeObjectValue("number", bin2HexPostRequestBody.number, serializeJson); + writer.writeObjectValue("places", bin2HexPostRequestBody.places, serializeJson); + writer.writeAdditionalData(bin2HexPostRequestBody.additionalData); +} /** * Provides operations to call the bin2Hex method. */ diff --git a/src/drives/item/items/item/workbook/functions/bin2Oct/bin2OctPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/bin2Oct/bin2OctPostRequestBody.ts deleted file mode 100644 index f0ffbf53c4d..00000000000 --- a/src/drives/item/items/item/workbook/functions/bin2Oct/bin2OctPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Bin2OctPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The places property - */ - places?: Json; -} -export function createBin2OctPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBin2OctPostRequestBody; -} -export function deserializeIntoBin2OctPostRequestBody(bin2OctPostRequestBody: Bin2OctPostRequestBody | undefined = {} as Bin2OctPostRequestBody) : Record void> { - return { - "number": n => { bin2OctPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "places": n => { bin2OctPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBin2OctPostRequestBody(writer: SerializationWriter, bin2OctPostRequestBody: Bin2OctPostRequestBody | undefined = {} as Bin2OctPostRequestBody) : void { - writer.writeObjectValue("number", bin2OctPostRequestBody.number, serializeJson); - writer.writeObjectValue("places", bin2OctPostRequestBody.places, serializeJson); - writer.writeAdditionalData(bin2OctPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/bin2Oct/index.ts b/src/drives/item/items/item/workbook/functions/bin2Oct/index.ts index abd904cd74a..205f1064d04 100644 --- a/src/drives/item/items/item/workbook/functions/bin2Oct/index.ts +++ b/src/drives/item/items/item/workbook/functions/bin2Oct/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBin2OctPostRequestBody, serializeBin2OctPostRequestBody, type Bin2OctPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Bin2OctPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The places property + */ + places?: Json; +} +export function createBin2OctPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBin2OctPostRequestBody; +} +export function deserializeIntoBin2OctPostRequestBody(bin2OctPostRequestBody: Bin2OctPostRequestBody | undefined = {} as Bin2OctPostRequestBody) : Record void> { + return { + "number": n => { bin2OctPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "places": n => { bin2OctPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBin2OctPostRequestBody(writer: SerializationWriter, bin2OctPostRequestBody: Bin2OctPostRequestBody | undefined = {} as Bin2OctPostRequestBody) : void { + writer.writeObjectValue("number", bin2OctPostRequestBody.number, serializeJson); + writer.writeObjectValue("places", bin2OctPostRequestBody.places, serializeJson); + writer.writeAdditionalData(bin2OctPostRequestBody.additionalData); +} /** * Provides operations to call the bin2Oct method. */ diff --git a/src/drives/item/items/item/workbook/functions/binom_Dist/binom_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/binom_Dist/binom_DistPostRequestBody.ts deleted file mode 100644 index de627288958..00000000000 --- a/src/drives/item/items/item/workbook/functions/binom_Dist/binom_DistPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Binom_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The numberS property - */ - numberS?: Json; - /** - * The probabilityS property - */ - probabilityS?: Json; - /** - * The trials property - */ - trials?: Json; -} -export function createBinom_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBinom_DistPostRequestBody; -} -export function deserializeIntoBinom_DistPostRequestBody(binom_DistPostRequestBody: Binom_DistPostRequestBody | undefined = {} as Binom_DistPostRequestBody) : Record void> { - return { - "cumulative": n => { binom_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberS": n => { binom_DistPostRequestBody.numberS = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probabilityS": n => { binom_DistPostRequestBody.probabilityS = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "trials": n => { binom_DistPostRequestBody.trials = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBinom_DistPostRequestBody(writer: SerializationWriter, binom_DistPostRequestBody: Binom_DistPostRequestBody | undefined = {} as Binom_DistPostRequestBody) : void { - writer.writeObjectValue("cumulative", binom_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("numberS", binom_DistPostRequestBody.numberS, serializeJson); - writer.writeObjectValue("probabilityS", binom_DistPostRequestBody.probabilityS, serializeJson); - writer.writeObjectValue("trials", binom_DistPostRequestBody.trials, serializeJson); - writer.writeAdditionalData(binom_DistPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/binom_Dist/index.ts b/src/drives/item/items/item/workbook/functions/binom_Dist/index.ts index 4a255535c41..6ecca187e66 100644 --- a/src/drives/item/items/item/workbook/functions/binom_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/binom_Dist/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBinom_DistPostRequestBody, serializeBinom_DistPostRequestBody, type Binom_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Binom_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The numberS property + */ + numberS?: Json; + /** + * The probabilityS property + */ + probabilityS?: Json; + /** + * The trials property + */ + trials?: Json; +} +export function createBinom_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBinom_DistPostRequestBody; +} +export function deserializeIntoBinom_DistPostRequestBody(binom_DistPostRequestBody: Binom_DistPostRequestBody | undefined = {} as Binom_DistPostRequestBody) : Record void> { + return { + "cumulative": n => { binom_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numberS": n => { binom_DistPostRequestBody.numberS = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probabilityS": n => { binom_DistPostRequestBody.probabilityS = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "trials": n => { binom_DistPostRequestBody.trials = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBinom_DistPostRequestBody(writer: SerializationWriter, binom_DistPostRequestBody: Binom_DistPostRequestBody | undefined = {} as Binom_DistPostRequestBody) : void { + writer.writeObjectValue("cumulative", binom_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("numberS", binom_DistPostRequestBody.numberS, serializeJson); + writer.writeObjectValue("probabilityS", binom_DistPostRequestBody.probabilityS, serializeJson); + writer.writeObjectValue("trials", binom_DistPostRequestBody.trials, serializeJson); + writer.writeAdditionalData(binom_DistPostRequestBody.additionalData); +} /** * Provides operations to call the binom_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/binom_Dist_Range/binom_Dist_RangePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/binom_Dist_Range/binom_Dist_RangePostRequestBody.ts deleted file mode 100644 index d277689baba..00000000000 --- a/src/drives/item/items/item/workbook/functions/binom_Dist_Range/binom_Dist_RangePostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Binom_Dist_RangePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The numberS property - */ - numberS?: Json; - /** - * The numberS2 property - */ - numberS2?: Json; - /** - * The probabilityS property - */ - probabilityS?: Json; - /** - * The trials property - */ - trials?: Json; -} -export function createBinom_Dist_RangePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBinom_Dist_RangePostRequestBody; -} -export function deserializeIntoBinom_Dist_RangePostRequestBody(binom_Dist_RangePostRequestBody: Binom_Dist_RangePostRequestBody | undefined = {} as Binom_Dist_RangePostRequestBody) : Record void> { - return { - "numberS": n => { binom_Dist_RangePostRequestBody.numberS = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberS2": n => { binom_Dist_RangePostRequestBody.numberS2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probabilityS": n => { binom_Dist_RangePostRequestBody.probabilityS = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "trials": n => { binom_Dist_RangePostRequestBody.trials = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBinom_Dist_RangePostRequestBody(writer: SerializationWriter, binom_Dist_RangePostRequestBody: Binom_Dist_RangePostRequestBody | undefined = {} as Binom_Dist_RangePostRequestBody) : void { - writer.writeObjectValue("numberS", binom_Dist_RangePostRequestBody.numberS, serializeJson); - writer.writeObjectValue("numberS2", binom_Dist_RangePostRequestBody.numberS2, serializeJson); - writer.writeObjectValue("probabilityS", binom_Dist_RangePostRequestBody.probabilityS, serializeJson); - writer.writeObjectValue("trials", binom_Dist_RangePostRequestBody.trials, serializeJson); - writer.writeAdditionalData(binom_Dist_RangePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/binom_Dist_Range/index.ts b/src/drives/item/items/item/workbook/functions/binom_Dist_Range/index.ts index 8986133e8ff..4c4633a709c 100644 --- a/src/drives/item/items/item/workbook/functions/binom_Dist_Range/index.ts +++ b/src/drives/item/items/item/workbook/functions/binom_Dist_Range/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBinom_Dist_RangePostRequestBody, serializeBinom_Dist_RangePostRequestBody, type Binom_Dist_RangePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Binom_Dist_RangePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The numberS property + */ + numberS?: Json; + /** + * The numberS2 property + */ + numberS2?: Json; + /** + * The probabilityS property + */ + probabilityS?: Json; + /** + * The trials property + */ + trials?: Json; +} +export function createBinom_Dist_RangePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBinom_Dist_RangePostRequestBody; +} +export function deserializeIntoBinom_Dist_RangePostRequestBody(binom_Dist_RangePostRequestBody: Binom_Dist_RangePostRequestBody | undefined = {} as Binom_Dist_RangePostRequestBody) : Record void> { + return { + "numberS": n => { binom_Dist_RangePostRequestBody.numberS = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numberS2": n => { binom_Dist_RangePostRequestBody.numberS2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probabilityS": n => { binom_Dist_RangePostRequestBody.probabilityS = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "trials": n => { binom_Dist_RangePostRequestBody.trials = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBinom_Dist_RangePostRequestBody(writer: SerializationWriter, binom_Dist_RangePostRequestBody: Binom_Dist_RangePostRequestBody | undefined = {} as Binom_Dist_RangePostRequestBody) : void { + writer.writeObjectValue("numberS", binom_Dist_RangePostRequestBody.numberS, serializeJson); + writer.writeObjectValue("numberS2", binom_Dist_RangePostRequestBody.numberS2, serializeJson); + writer.writeObjectValue("probabilityS", binom_Dist_RangePostRequestBody.probabilityS, serializeJson); + writer.writeObjectValue("trials", binom_Dist_RangePostRequestBody.trials, serializeJson); + writer.writeAdditionalData(binom_Dist_RangePostRequestBody.additionalData); +} /** * Provides operations to call the binom_Dist_Range method. */ diff --git a/src/drives/item/items/item/workbook/functions/binom_Inv/index.ts b/src/drives/item/items/item/workbook/functions/binom_Inv/index.ts index af2878f6094..67eac1db70a 100644 --- a/src/drives/item/items/item/workbook/functions/binom_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/binom_Inv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface Binom_InvPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,57 +39,5 @@ export function serializeBinom_InvPostRequestBody(writer: SerializationWriter, b writer.writeObjectValue("trials", binom_InvPostRequestBody.trials, serializeJson); writer.writeAdditionalData(binom_InvPostRequestBody.additionalData); } -/** - * Provides operations to call the binom_Inv method. - */ -export class Binom_InvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Binom_InvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/binom_Inv"); - }; - /** - * Invoke action binom_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Binom_InvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action binom_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Binom_InvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBinom_InvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a binom_InvRequestBuilder - */ - public withUrl(rawUrl: string) : Binom_InvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Binom_InvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/bitand/bitandPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/bitand/bitandPostRequestBody.ts deleted file mode 100644 index f3d6aba82c5..00000000000 --- a/src/drives/item/items/item/workbook/functions/bitand/bitandPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface BitandPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number1 property - */ - number1?: Json; - /** - * The number2 property - */ - number2?: Json; -} -export function createBitandPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBitandPostRequestBody; -} -export function deserializeIntoBitandPostRequestBody(bitandPostRequestBody: BitandPostRequestBody | undefined = {} as BitandPostRequestBody) : Record void> { - return { - "number1": n => { bitandPostRequestBody.number1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "number2": n => { bitandPostRequestBody.number2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBitandPostRequestBody(writer: SerializationWriter, bitandPostRequestBody: BitandPostRequestBody | undefined = {} as BitandPostRequestBody) : void { - writer.writeObjectValue("number1", bitandPostRequestBody.number1, serializeJson); - writer.writeObjectValue("number2", bitandPostRequestBody.number2, serializeJson); - writer.writeAdditionalData(bitandPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/bitand/index.ts b/src/drives/item/items/item/workbook/functions/bitand/index.ts index 38fa16e398c..1705927c0a9 100644 --- a/src/drives/item/items/item/workbook/functions/bitand/index.ts +++ b/src/drives/item/items/item/workbook/functions/bitand/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBitandPostRequestBody, serializeBitandPostRequestBody, type BitandPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface BitandPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number1 property + */ + number1?: Json; + /** + * The number2 property + */ + number2?: Json; +} +export function createBitandPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBitandPostRequestBody; +} +export function deserializeIntoBitandPostRequestBody(bitandPostRequestBody: BitandPostRequestBody | undefined = {} as BitandPostRequestBody) : Record void> { + return { + "number1": n => { bitandPostRequestBody.number1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "number2": n => { bitandPostRequestBody.number2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBitandPostRequestBody(writer: SerializationWriter, bitandPostRequestBody: BitandPostRequestBody | undefined = {} as BitandPostRequestBody) : void { + writer.writeObjectValue("number1", bitandPostRequestBody.number1, serializeJson); + writer.writeObjectValue("number2", bitandPostRequestBody.number2, serializeJson); + writer.writeAdditionalData(bitandPostRequestBody.additionalData); +} /** * Provides operations to call the bitand method. */ diff --git a/src/drives/item/items/item/workbook/functions/bitlshift/index.ts b/src/drives/item/items/item/workbook/functions/bitlshift/index.ts index bcba8d9c737..6c638ee9f15 100644 --- a/src/drives/item/items/item/workbook/functions/bitlshift/index.ts +++ b/src/drives/item/items/item/workbook/functions/bitlshift/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface BitlshiftPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeBitlshiftPostRequestBody(writer: SerializationWriter, b writer.writeObjectValue("shiftAmount", bitlshiftPostRequestBody.shiftAmount, serializeJson); writer.writeAdditionalData(bitlshiftPostRequestBody.additionalData); } -/** - * Provides operations to call the bitlshift method. - */ -export class BitlshiftRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new BitlshiftRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitlshift"); - }; - /** - * Invoke action bitlshift - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: BitlshiftPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action bitlshift - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: BitlshiftPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBitlshiftPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a bitlshiftRequestBuilder - */ - public withUrl(rawUrl: string) : BitlshiftRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new BitlshiftRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/bitor/bitorPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/bitor/bitorPostRequestBody.ts deleted file mode 100644 index d392429e4a8..00000000000 --- a/src/drives/item/items/item/workbook/functions/bitor/bitorPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface BitorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number1 property - */ - number1?: Json; - /** - * The number2 property - */ - number2?: Json; -} -export function createBitorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoBitorPostRequestBody; -} -export function deserializeIntoBitorPostRequestBody(bitorPostRequestBody: BitorPostRequestBody | undefined = {} as BitorPostRequestBody) : Record void> { - return { - "number1": n => { bitorPostRequestBody.number1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "number2": n => { bitorPostRequestBody.number2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeBitorPostRequestBody(writer: SerializationWriter, bitorPostRequestBody: BitorPostRequestBody | undefined = {} as BitorPostRequestBody) : void { - writer.writeObjectValue("number1", bitorPostRequestBody.number1, serializeJson); - writer.writeObjectValue("number2", bitorPostRequestBody.number2, serializeJson); - writer.writeAdditionalData(bitorPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/bitor/index.ts b/src/drives/item/items/item/workbook/functions/bitor/index.ts index 95cb811192d..ab502c532ac 100644 --- a/src/drives/item/items/item/workbook/functions/bitor/index.ts +++ b/src/drives/item/items/item/workbook/functions/bitor/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoBitorPostRequestBody, serializeBitorPostRequestBody, type BitorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface BitorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number1 property + */ + number1?: Json; + /** + * The number2 property + */ + number2?: Json; +} +export function createBitorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoBitorPostRequestBody; +} +export function deserializeIntoBitorPostRequestBody(bitorPostRequestBody: BitorPostRequestBody | undefined = {} as BitorPostRequestBody) : Record void> { + return { + "number1": n => { bitorPostRequestBody.number1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "number2": n => { bitorPostRequestBody.number2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeBitorPostRequestBody(writer: SerializationWriter, bitorPostRequestBody: BitorPostRequestBody | undefined = {} as BitorPostRequestBody) : void { + writer.writeObjectValue("number1", bitorPostRequestBody.number1, serializeJson); + writer.writeObjectValue("number2", bitorPostRequestBody.number2, serializeJson); + writer.writeAdditionalData(bitorPostRequestBody.additionalData); +} /** * Provides operations to call the bitor method. */ diff --git a/src/drives/item/items/item/workbook/functions/bitrshift/index.ts b/src/drives/item/items/item/workbook/functions/bitrshift/index.ts index 4309379f7f4..d966362d9bd 100644 --- a/src/drives/item/items/item/workbook/functions/bitrshift/index.ts +++ b/src/drives/item/items/item/workbook/functions/bitrshift/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface BitrshiftPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeBitrshiftPostRequestBody(writer: SerializationWriter, b writer.writeObjectValue("shiftAmount", bitrshiftPostRequestBody.shiftAmount, serializeJson); writer.writeAdditionalData(bitrshiftPostRequestBody.additionalData); } -/** - * Provides operations to call the bitrshift method. - */ -export class BitrshiftRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new BitrshiftRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitrshift"); - }; - /** - * Invoke action bitrshift - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: BitrshiftPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action bitrshift - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: BitrshiftPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBitrshiftPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a bitrshiftRequestBuilder - */ - public withUrl(rawUrl: string) : BitrshiftRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new BitrshiftRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/bitxor/index.ts b/src/drives/item/items/item/workbook/functions/bitxor/index.ts index b002063f83f..1bdc7a65f8d 100644 --- a/src/drives/item/items/item/workbook/functions/bitxor/index.ts +++ b/src/drives/item/items/item/workbook/functions/bitxor/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface BitxorPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeBitxorPostRequestBody(writer: SerializationWriter, bitx writer.writeObjectValue("number2", bitxorPostRequestBody.number2, serializeJson); writer.writeAdditionalData(bitxorPostRequestBody.additionalData); } -/** - * Provides operations to call the bitxor method. - */ -export class BitxorRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new BitxorRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitxor"); - }; - /** - * Invoke action bitxor - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: BitxorPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action bitxor - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: BitxorPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBitxorPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a bitxorRequestBuilder - */ - public withUrl(rawUrl: string) : BitxorRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new BitxorRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ceiling_Math/ceiling_MathPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/ceiling_Math/ceiling_MathPostRequestBody.ts deleted file mode 100644 index 4b25a5a3756..00000000000 --- a/src/drives/item/items/item/workbook/functions/ceiling_Math/ceiling_MathPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Ceiling_MathPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The mode property - */ - mode?: Json; - /** - * The number property - */ - number?: Json; - /** - * The significance property - */ - significance?: Json; -} -export function createCeiling_MathPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCeiling_MathPostRequestBody; -} -export function deserializeIntoCeiling_MathPostRequestBody(ceiling_MathPostRequestBody: Ceiling_MathPostRequestBody | undefined = {} as Ceiling_MathPostRequestBody) : Record void> { - return { - "mode": n => { ceiling_MathPostRequestBody.mode = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "number": n => { ceiling_MathPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "significance": n => { ceiling_MathPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCeiling_MathPostRequestBody(writer: SerializationWriter, ceiling_MathPostRequestBody: Ceiling_MathPostRequestBody | undefined = {} as Ceiling_MathPostRequestBody) : void { - writer.writeObjectValue("mode", ceiling_MathPostRequestBody.mode, serializeJson); - writer.writeObjectValue("number", ceiling_MathPostRequestBody.number, serializeJson); - writer.writeObjectValue("significance", ceiling_MathPostRequestBody.significance, serializeJson); - writer.writeAdditionalData(ceiling_MathPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ceiling_Math/index.ts b/src/drives/item/items/item/workbook/functions/ceiling_Math/index.ts index 3c8ca553d6d..3c3022795c2 100644 --- a/src/drives/item/items/item/workbook/functions/ceiling_Math/index.ts +++ b/src/drives/item/items/item/workbook/functions/ceiling_Math/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCeiling_MathPostRequestBody, serializeCeiling_MathPostRequestBody, type Ceiling_MathPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Ceiling_MathPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The mode property + */ + mode?: Json; + /** + * The number property + */ + number?: Json; + /** + * The significance property + */ + significance?: Json; +} +export function createCeiling_MathPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCeiling_MathPostRequestBody; +} +export function deserializeIntoCeiling_MathPostRequestBody(ceiling_MathPostRequestBody: Ceiling_MathPostRequestBody | undefined = {} as Ceiling_MathPostRequestBody) : Record void> { + return { + "mode": n => { ceiling_MathPostRequestBody.mode = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "number": n => { ceiling_MathPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "significance": n => { ceiling_MathPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCeiling_MathPostRequestBody(writer: SerializationWriter, ceiling_MathPostRequestBody: Ceiling_MathPostRequestBody | undefined = {} as Ceiling_MathPostRequestBody) : void { + writer.writeObjectValue("mode", ceiling_MathPostRequestBody.mode, serializeJson); + writer.writeObjectValue("number", ceiling_MathPostRequestBody.number, serializeJson); + writer.writeObjectValue("significance", ceiling_MathPostRequestBody.significance, serializeJson); + writer.writeAdditionalData(ceiling_MathPostRequestBody.additionalData); +} /** * Provides operations to call the ceiling_Math method. */ diff --git a/src/drives/item/items/item/workbook/functions/ceiling_Precise/ceiling_PrecisePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/ceiling_Precise/ceiling_PrecisePostRequestBody.ts deleted file mode 100644 index de5af47b482..00000000000 --- a/src/drives/item/items/item/workbook/functions/ceiling_Precise/ceiling_PrecisePostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Ceiling_PrecisePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The significance property - */ - significance?: Json; -} -export function createCeiling_PrecisePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCeiling_PrecisePostRequestBody; -} -export function deserializeIntoCeiling_PrecisePostRequestBody(ceiling_PrecisePostRequestBody: Ceiling_PrecisePostRequestBody | undefined = {} as Ceiling_PrecisePostRequestBody) : Record void> { - return { - "number": n => { ceiling_PrecisePostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "significance": n => { ceiling_PrecisePostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCeiling_PrecisePostRequestBody(writer: SerializationWriter, ceiling_PrecisePostRequestBody: Ceiling_PrecisePostRequestBody | undefined = {} as Ceiling_PrecisePostRequestBody) : void { - writer.writeObjectValue("number", ceiling_PrecisePostRequestBody.number, serializeJson); - writer.writeObjectValue("significance", ceiling_PrecisePostRequestBody.significance, serializeJson); - writer.writeAdditionalData(ceiling_PrecisePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ceiling_Precise/index.ts b/src/drives/item/items/item/workbook/functions/ceiling_Precise/index.ts index d97a28ff8c9..60481e162fd 100644 --- a/src/drives/item/items/item/workbook/functions/ceiling_Precise/index.ts +++ b/src/drives/item/items/item/workbook/functions/ceiling_Precise/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCeiling_PrecisePostRequestBody, serializeCeiling_PrecisePostRequestBody, type Ceiling_PrecisePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Ceiling_PrecisePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The significance property + */ + significance?: Json; +} +export function createCeiling_PrecisePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCeiling_PrecisePostRequestBody; +} +export function deserializeIntoCeiling_PrecisePostRequestBody(ceiling_PrecisePostRequestBody: Ceiling_PrecisePostRequestBody | undefined = {} as Ceiling_PrecisePostRequestBody) : Record void> { + return { + "number": n => { ceiling_PrecisePostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "significance": n => { ceiling_PrecisePostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCeiling_PrecisePostRequestBody(writer: SerializationWriter, ceiling_PrecisePostRequestBody: Ceiling_PrecisePostRequestBody | undefined = {} as Ceiling_PrecisePostRequestBody) : void { + writer.writeObjectValue("number", ceiling_PrecisePostRequestBody.number, serializeJson); + writer.writeObjectValue("significance", ceiling_PrecisePostRequestBody.significance, serializeJson); + writer.writeAdditionalData(ceiling_PrecisePostRequestBody.additionalData); +} /** * Provides operations to call the ceiling_Precise method. */ diff --git a/src/drives/item/items/item/workbook/functions/char/index.ts b/src/drives/item/items/item/workbook/functions/char/index.ts index ce9380c195f..6386267bd51 100644 --- a/src/drives/item/items/item/workbook/functions/char/index.ts +++ b/src/drives/item/items/item/workbook/functions/char/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CharPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCharPostRequestBody(writer: SerializationWriter, charPo writer.writeObjectValue("number", charPostRequestBody.number, serializeJson); writer.writeAdditionalData(charPostRequestBody.additionalData); } -/** - * Provides operations to call the char method. - */ -export class CharRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CharRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/char"); - }; - /** - * Invoke action char - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CharPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action char - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CharPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCharPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a charRequestBuilder - */ - public withUrl(rawUrl: string) : CharRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CharRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/chiSq_Dist/index.ts b/src/drives/item/items/item/workbook/functions/chiSq_Dist/index.ts index f95a273fb64..b5941225d9f 100644 --- a/src/drives/item/items/item/workbook/functions/chiSq_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/chiSq_Dist/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ChiSq_DistPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,57 +39,5 @@ export function serializeChiSq_DistPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("x", chiSq_DistPostRequestBody.x, serializeJson); writer.writeAdditionalData(chiSq_DistPostRequestBody.additionalData); } -/** - * Provides operations to call the chiSq_Dist method. - */ -export class ChiSq_DistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ChiSq_DistRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Dist"); - }; - /** - * Invoke action chiSq_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ChiSq_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action chiSq_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ChiSq_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeChiSq_DistPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a chiSq_DistRequestBuilder - */ - public withUrl(rawUrl: string) : ChiSq_DistRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ChiSq_DistRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/chiSq_Dist_RT/index.ts b/src/drives/item/items/item/workbook/functions/chiSq_Dist_RT/index.ts index f0b7b3683d9..a38acecbd58 100644 --- a/src/drives/item/items/item/workbook/functions/chiSq_Dist_RT/index.ts +++ b/src/drives/item/items/item/workbook/functions/chiSq_Dist_RT/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ChiSq_Dist_RTPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeChiSq_Dist_RTPostRequestBody(writer: SerializationWrite writer.writeObjectValue("x", chiSq_Dist_RTPostRequestBody.x, serializeJson); writer.writeAdditionalData(chiSq_Dist_RTPostRequestBody.additionalData); } -/** - * Provides operations to call the chiSq_Dist_RT method. - */ -export class ChiSq_Dist_RTRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ChiSq_Dist_RTRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Dist_RT"); - }; - /** - * Invoke action chiSq_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ChiSq_Dist_RTPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action chiSq_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ChiSq_Dist_RTPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeChiSq_Dist_RTPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a chiSq_Dist_RTRequestBuilder - */ - public withUrl(rawUrl: string) : ChiSq_Dist_RTRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ChiSq_Dist_RTRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/chiSq_Inv/index.ts b/src/drives/item/items/item/workbook/functions/chiSq_Inv/index.ts index 0e82b812ed0..4f8449eac5a 100644 --- a/src/drives/item/items/item/workbook/functions/chiSq_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/chiSq_Inv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ChiSq_InvPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeChiSq_InvPostRequestBody(writer: SerializationWriter, c writer.writeObjectValue("probability", chiSq_InvPostRequestBody.probability, serializeJson); writer.writeAdditionalData(chiSq_InvPostRequestBody.additionalData); } -/** - * Provides operations to call the chiSq_Inv method. - */ -export class ChiSq_InvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ChiSq_InvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Inv"); - }; - /** - * Invoke action chiSq_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ChiSq_InvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action chiSq_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ChiSq_InvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeChiSq_InvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a chiSq_InvRequestBuilder - */ - public withUrl(rawUrl: string) : ChiSq_InvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ChiSq_InvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/chiSq_Inv_RT/chiSq_Inv_RTPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/chiSq_Inv_RT/chiSq_Inv_RTPostRequestBody.ts deleted file mode 100644 index 2244d5c9910..00000000000 --- a/src/drives/item/items/item/workbook/functions/chiSq_Inv_RT/chiSq_Inv_RTPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ChiSq_Inv_RTPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The degFreedom property - */ - degFreedom?: Json; - /** - * The probability property - */ - probability?: Json; -} -export function createChiSq_Inv_RTPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoChiSq_Inv_RTPostRequestBody; -} -export function deserializeIntoChiSq_Inv_RTPostRequestBody(chiSq_Inv_RTPostRequestBody: ChiSq_Inv_RTPostRequestBody | undefined = {} as ChiSq_Inv_RTPostRequestBody) : Record void> { - return { - "degFreedom": n => { chiSq_Inv_RTPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probability": n => { chiSq_Inv_RTPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeChiSq_Inv_RTPostRequestBody(writer: SerializationWriter, chiSq_Inv_RTPostRequestBody: ChiSq_Inv_RTPostRequestBody | undefined = {} as ChiSq_Inv_RTPostRequestBody) : void { - writer.writeObjectValue("degFreedom", chiSq_Inv_RTPostRequestBody.degFreedom, serializeJson); - writer.writeObjectValue("probability", chiSq_Inv_RTPostRequestBody.probability, serializeJson); - writer.writeAdditionalData(chiSq_Inv_RTPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/chiSq_Inv_RT/index.ts b/src/drives/item/items/item/workbook/functions/chiSq_Inv_RT/index.ts index d2efe8aafb9..703da20d6b6 100644 --- a/src/drives/item/items/item/workbook/functions/chiSq_Inv_RT/index.ts +++ b/src/drives/item/items/item/workbook/functions/chiSq_Inv_RT/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoChiSq_Inv_RTPostRequestBody, serializeChiSq_Inv_RTPostRequestBody, type ChiSq_Inv_RTPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ChiSq_Inv_RTPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The degFreedom property + */ + degFreedom?: Json; + /** + * The probability property + */ + probability?: Json; +} +export function createChiSq_Inv_RTPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoChiSq_Inv_RTPostRequestBody; +} +export function deserializeIntoChiSq_Inv_RTPostRequestBody(chiSq_Inv_RTPostRequestBody: ChiSq_Inv_RTPostRequestBody | undefined = {} as ChiSq_Inv_RTPostRequestBody) : Record void> { + return { + "degFreedom": n => { chiSq_Inv_RTPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probability": n => { chiSq_Inv_RTPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeChiSq_Inv_RTPostRequestBody(writer: SerializationWriter, chiSq_Inv_RTPostRequestBody: ChiSq_Inv_RTPostRequestBody | undefined = {} as ChiSq_Inv_RTPostRequestBody) : void { + writer.writeObjectValue("degFreedom", chiSq_Inv_RTPostRequestBody.degFreedom, serializeJson); + writer.writeObjectValue("probability", chiSq_Inv_RTPostRequestBody.probability, serializeJson); + writer.writeAdditionalData(chiSq_Inv_RTPostRequestBody.additionalData); +} /** * Provides operations to call the chiSq_Inv_RT method. */ diff --git a/src/drives/item/items/item/workbook/functions/choose/index.ts b/src/drives/item/items/item/workbook/functions/choose/index.ts index 1125c3b2745..1237a516209 100644 --- a/src/drives/item/items/item/workbook/functions/choose/index.ts +++ b/src/drives/item/items/item/workbook/functions/choose/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ChoosePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeChoosePostRequestBody(writer: SerializationWriter, choo writer.writeObjectValue("values", choosePostRequestBody.values, serializeJson); writer.writeAdditionalData(choosePostRequestBody.additionalData); } -/** - * Provides operations to call the choose method. - */ -export class ChooseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ChooseRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/choose"); - }; - /** - * Invoke action choose - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ChoosePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action choose - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ChoosePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeChoosePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a chooseRequestBuilder - */ - public withUrl(rawUrl: string) : ChooseRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ChooseRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/clean/index.ts b/src/drives/item/items/item/workbook/functions/clean/index.ts index 53300cd0637..d167f296a7a 100644 --- a/src/drives/item/items/item/workbook/functions/clean/index.ts +++ b/src/drives/item/items/item/workbook/functions/clean/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CleanPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCleanPostRequestBody(writer: SerializationWriter, clean writer.writeObjectValue("text", cleanPostRequestBody.text, serializeJson); writer.writeAdditionalData(cleanPostRequestBody.additionalData); } -/** - * Provides operations to call the clean method. - */ -export class CleanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CleanRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/clean"); - }; - /** - * Invoke action clean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CleanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action clean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CleanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCleanPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a cleanRequestBuilder - */ - public withUrl(rawUrl: string) : CleanRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CleanRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/code/index.ts b/src/drives/item/items/item/workbook/functions/code/index.ts index ac4fb052199..37028c9228b 100644 --- a/src/drives/item/items/item/workbook/functions/code/index.ts +++ b/src/drives/item/items/item/workbook/functions/code/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CodePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCodePostRequestBody(writer: SerializationWriter, codePo writer.writeObjectValue("text", codePostRequestBody.text, serializeJson); writer.writeAdditionalData(codePostRequestBody.additionalData); } -/** - * Provides operations to call the code method. - */ -export class CodeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CodeRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/code"); - }; - /** - * Invoke action code - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CodePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action code - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CodePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCodePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a codeRequestBuilder - */ - public withUrl(rawUrl: string) : CodeRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CodeRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/columns/index.ts b/src/drives/item/items/item/workbook/functions/columns/index.ts index e6e191fcbdb..4e7ecef30b6 100644 --- a/src/drives/item/items/item/workbook/functions/columns/index.ts +++ b/src/drives/item/items/item/workbook/functions/columns/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ColumnsPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeColumnsPostRequestBody(writer: SerializationWriter, col writer.writeObjectValue("array", columnsPostRequestBody.array, serializeJson); writer.writeAdditionalData(columnsPostRequestBody.additionalData); } -/** - * Provides operations to call the columns method. - */ -export class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ColumnsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/columns"); - }; - /** - * Invoke action columns - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ColumnsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action columns - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ColumnsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeColumnsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a columnsRequestBuilder - */ - public withUrl(rawUrl: string) : ColumnsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ColumnsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/combin/combinPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/combin/combinPostRequestBody.ts deleted file mode 100644 index baa87ab471d..00000000000 --- a/src/drives/item/items/item/workbook/functions/combin/combinPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CombinPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The numberChosen property - */ - numberChosen?: Json; -} -export function createCombinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCombinPostRequestBody; -} -export function deserializeIntoCombinPostRequestBody(combinPostRequestBody: CombinPostRequestBody | undefined = {} as CombinPostRequestBody) : Record void> { - return { - "number": n => { combinPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberChosen": n => { combinPostRequestBody.numberChosen = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCombinPostRequestBody(writer: SerializationWriter, combinPostRequestBody: CombinPostRequestBody | undefined = {} as CombinPostRequestBody) : void { - writer.writeObjectValue("number", combinPostRequestBody.number, serializeJson); - writer.writeObjectValue("numberChosen", combinPostRequestBody.numberChosen, serializeJson); - writer.writeAdditionalData(combinPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/combin/index.ts b/src/drives/item/items/item/workbook/functions/combin/index.ts index 45d491c5b49..e94c3cd55fe 100644 --- a/src/drives/item/items/item/workbook/functions/combin/index.ts +++ b/src/drives/item/items/item/workbook/functions/combin/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCombinPostRequestBody, serializeCombinPostRequestBody, type CombinPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CombinPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The numberChosen property + */ + numberChosen?: Json; +} +export function createCombinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCombinPostRequestBody; +} +export function deserializeIntoCombinPostRequestBody(combinPostRequestBody: CombinPostRequestBody | undefined = {} as CombinPostRequestBody) : Record void> { + return { + "number": n => { combinPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numberChosen": n => { combinPostRequestBody.numberChosen = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCombinPostRequestBody(writer: SerializationWriter, combinPostRequestBody: CombinPostRequestBody | undefined = {} as CombinPostRequestBody) : void { + writer.writeObjectValue("number", combinPostRequestBody.number, serializeJson); + writer.writeObjectValue("numberChosen", combinPostRequestBody.numberChosen, serializeJson); + writer.writeAdditionalData(combinPostRequestBody.additionalData); +} /** * Provides operations to call the combin method. */ diff --git a/src/drives/item/items/item/workbook/functions/combina/combinaPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/combina/combinaPostRequestBody.ts deleted file mode 100644 index f70e2312f43..00000000000 --- a/src/drives/item/items/item/workbook/functions/combina/combinaPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CombinaPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The numberChosen property - */ - numberChosen?: Json; -} -export function createCombinaPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCombinaPostRequestBody; -} -export function deserializeIntoCombinaPostRequestBody(combinaPostRequestBody: CombinaPostRequestBody | undefined = {} as CombinaPostRequestBody) : Record void> { - return { - "number": n => { combinaPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberChosen": n => { combinaPostRequestBody.numberChosen = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCombinaPostRequestBody(writer: SerializationWriter, combinaPostRequestBody: CombinaPostRequestBody | undefined = {} as CombinaPostRequestBody) : void { - writer.writeObjectValue("number", combinaPostRequestBody.number, serializeJson); - writer.writeObjectValue("numberChosen", combinaPostRequestBody.numberChosen, serializeJson); - writer.writeAdditionalData(combinaPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/combina/index.ts b/src/drives/item/items/item/workbook/functions/combina/index.ts index 2fb9351efed..9eee9b6c5bc 100644 --- a/src/drives/item/items/item/workbook/functions/combina/index.ts +++ b/src/drives/item/items/item/workbook/functions/combina/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CombinaPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -33,5 +36,57 @@ export function serializeCombinaPostRequestBody(writer: SerializationWriter, com writer.writeObjectValue("numberChosen", combinaPostRequestBody.numberChosen, serializeJson); writer.writeAdditionalData(combinaPostRequestBody.additionalData); } +/** + * Provides operations to call the combina method. + */ +export class CombinaRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CombinaRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/combina"); + }; + /** + * Invoke action combina + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: CombinaPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action combina + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: CombinaPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCombinaPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a combinaRequestBuilder + */ + public withUrl(rawUrl: string) : CombinaRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new CombinaRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/complex/index.ts b/src/drives/item/items/item/workbook/functions/complex/index.ts index 667bbe45bd7..b956c60c2e5 100644 --- a/src/drives/item/items/item/workbook/functions/complex/index.ts +++ b/src/drives/item/items/item/workbook/functions/complex/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ComplexPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,57 +39,5 @@ export function serializeComplexPostRequestBody(writer: SerializationWriter, com writer.writeObjectValue("suffix", complexPostRequestBody.suffix, serializeJson); writer.writeAdditionalData(complexPostRequestBody.additionalData); } -/** - * Provides operations to call the complex method. - */ -export class ComplexRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ComplexRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/complex"); - }; - /** - * Invoke action complex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ComplexPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action complex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ComplexPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeComplexPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a complexRequestBuilder - */ - public withUrl(rawUrl: string) : ComplexRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ComplexRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/concatenate/index.ts b/src/drives/item/items/item/workbook/functions/concatenate/index.ts index 6c27f3b3308..e3b2c98d8a7 100644 --- a/src/drives/item/items/item/workbook/functions/concatenate/index.ts +++ b/src/drives/item/items/item/workbook/functions/concatenate/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ConcatenatePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeConcatenatePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("values", concatenatePostRequestBody.values, serializeJson); writer.writeAdditionalData(concatenatePostRequestBody.additionalData); } -/** - * Provides operations to call the concatenate method. - */ -export class ConcatenateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ConcatenateRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/concatenate"); - }; - /** - * Invoke action concatenate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ConcatenatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action concatenate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ConcatenatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeConcatenatePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a concatenateRequestBuilder - */ - public withUrl(rawUrl: string) : ConcatenateRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ConcatenateRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/confidence_Norm/confidence_NormPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/confidence_Norm/confidence_NormPostRequestBody.ts deleted file mode 100644 index 61237ce0361..00000000000 --- a/src/drives/item/items/item/workbook/functions/confidence_Norm/confidence_NormPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Confidence_NormPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The alpha property - */ - alpha?: Json; - /** - * The size property - */ - size?: Json; - /** - * The standardDev property - */ - standardDev?: Json; -} -export function createConfidence_NormPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoConfidence_NormPostRequestBody; -} -export function deserializeIntoConfidence_NormPostRequestBody(confidence_NormPostRequestBody: Confidence_NormPostRequestBody | undefined = {} as Confidence_NormPostRequestBody) : Record void> { - return { - "alpha": n => { confidence_NormPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "size": n => { confidence_NormPostRequestBody.size = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "standardDev": n => { confidence_NormPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeConfidence_NormPostRequestBody(writer: SerializationWriter, confidence_NormPostRequestBody: Confidence_NormPostRequestBody | undefined = {} as Confidence_NormPostRequestBody) : void { - writer.writeObjectValue("alpha", confidence_NormPostRequestBody.alpha, serializeJson); - writer.writeObjectValue("size", confidence_NormPostRequestBody.size, serializeJson); - writer.writeObjectValue("standardDev", confidence_NormPostRequestBody.standardDev, serializeJson); - writer.writeAdditionalData(confidence_NormPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/confidence_Norm/index.ts b/src/drives/item/items/item/workbook/functions/confidence_Norm/index.ts index d75799aae7c..3a0b1644653 100644 --- a/src/drives/item/items/item/workbook/functions/confidence_Norm/index.ts +++ b/src/drives/item/items/item/workbook/functions/confidence_Norm/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoConfidence_NormPostRequestBody, serializeConfidence_NormPostRequestBody, type Confidence_NormPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Confidence_NormPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The alpha property + */ + alpha?: Json; + /** + * The size property + */ + size?: Json; + /** + * The standardDev property + */ + standardDev?: Json; +} +export function createConfidence_NormPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoConfidence_NormPostRequestBody; +} +export function deserializeIntoConfidence_NormPostRequestBody(confidence_NormPostRequestBody: Confidence_NormPostRequestBody | undefined = {} as Confidence_NormPostRequestBody) : Record void> { + return { + "alpha": n => { confidence_NormPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "size": n => { confidence_NormPostRequestBody.size = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "standardDev": n => { confidence_NormPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeConfidence_NormPostRequestBody(writer: SerializationWriter, confidence_NormPostRequestBody: Confidence_NormPostRequestBody | undefined = {} as Confidence_NormPostRequestBody) : void { + writer.writeObjectValue("alpha", confidence_NormPostRequestBody.alpha, serializeJson); + writer.writeObjectValue("size", confidence_NormPostRequestBody.size, serializeJson); + writer.writeObjectValue("standardDev", confidence_NormPostRequestBody.standardDev, serializeJson); + writer.writeAdditionalData(confidence_NormPostRequestBody.additionalData); +} /** * Provides operations to call the confidence_Norm method. */ diff --git a/src/drives/item/items/item/workbook/functions/confidence_T/confidence_TPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/confidence_T/confidence_TPostRequestBody.ts deleted file mode 100644 index 824cd76e63b..00000000000 --- a/src/drives/item/items/item/workbook/functions/confidence_T/confidence_TPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface Confidence_TPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The alpha property - */ - alpha?: Json; - /** - * The size property - */ - size?: Json; - /** - * The standardDev property - */ - standardDev?: Json; -} -export function createConfidence_TPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoConfidence_TPostRequestBody; -} -export function deserializeIntoConfidence_TPostRequestBody(confidence_TPostRequestBody: Confidence_TPostRequestBody | undefined = {} as Confidence_TPostRequestBody) : Record void> { - return { - "alpha": n => { confidence_TPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "size": n => { confidence_TPostRequestBody.size = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "standardDev": n => { confidence_TPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeConfidence_TPostRequestBody(writer: SerializationWriter, confidence_TPostRequestBody: Confidence_TPostRequestBody | undefined = {} as Confidence_TPostRequestBody) : void { - writer.writeObjectValue("alpha", confidence_TPostRequestBody.alpha, serializeJson); - writer.writeObjectValue("size", confidence_TPostRequestBody.size, serializeJson); - writer.writeObjectValue("standardDev", confidence_TPostRequestBody.standardDev, serializeJson); - writer.writeAdditionalData(confidence_TPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/confidence_T/index.ts b/src/drives/item/items/item/workbook/functions/confidence_T/index.ts index 1450ff5b42c..b09051c1863 100644 --- a/src/drives/item/items/item/workbook/functions/confidence_T/index.ts +++ b/src/drives/item/items/item/workbook/functions/confidence_T/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoConfidence_TPostRequestBody, serializeConfidence_TPostRequestBody, type Confidence_TPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface Confidence_TPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The alpha property + */ + alpha?: Json; + /** + * The size property + */ + size?: Json; + /** + * The standardDev property + */ + standardDev?: Json; +} +export function createConfidence_TPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoConfidence_TPostRequestBody; +} +export function deserializeIntoConfidence_TPostRequestBody(confidence_TPostRequestBody: Confidence_TPostRequestBody | undefined = {} as Confidence_TPostRequestBody) : Record void> { + return { + "alpha": n => { confidence_TPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "size": n => { confidence_TPostRequestBody.size = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "standardDev": n => { confidence_TPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeConfidence_TPostRequestBody(writer: SerializationWriter, confidence_TPostRequestBody: Confidence_TPostRequestBody | undefined = {} as Confidence_TPostRequestBody) : void { + writer.writeObjectValue("alpha", confidence_TPostRequestBody.alpha, serializeJson); + writer.writeObjectValue("size", confidence_TPostRequestBody.size, serializeJson); + writer.writeObjectValue("standardDev", confidence_TPostRequestBody.standardDev, serializeJson); + writer.writeAdditionalData(confidence_TPostRequestBody.additionalData); +} /** * Provides operations to call the confidence_T method. */ diff --git a/src/drives/item/items/item/workbook/functions/convert/index.ts b/src/drives/item/items/item/workbook/functions/convert/index.ts index 5c4bb452f8f..8af73e9eb69 100644 --- a/src/drives/item/items/item/workbook/functions/convert/index.ts +++ b/src/drives/item/items/item/workbook/functions/convert/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ConvertPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,57 +39,5 @@ export function serializeConvertPostRequestBody(writer: SerializationWriter, con writer.writeObjectValue("toUnit", convertPostRequestBody.toUnit, serializeJson); writer.writeAdditionalData(convertPostRequestBody.additionalData); } -/** - * Provides operations to call the convert method. - */ -export class ConvertRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ConvertRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/convert"); - }; - /** - * Invoke action convert - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ConvertPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action convert - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ConvertPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeConvertPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a convertRequestBuilder - */ - public withUrl(rawUrl: string) : ConvertRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ConvertRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/cos/index.ts b/src/drives/item/items/item/workbook/functions/cos/index.ts index 99cec2620f4..ed03dee0462 100644 --- a/src/drives/item/items/item/workbook/functions/cos/index.ts +++ b/src/drives/item/items/item/workbook/functions/cos/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CosPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCosPostRequestBody(writer: SerializationWriter, cosPost writer.writeObjectValue("number", cosPostRequestBody.number, serializeJson); writer.writeAdditionalData(cosPostRequestBody.additionalData); } -/** - * Provides operations to call the cos method. - */ -export class CosRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CosRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cos"); - }; - /** - * Invoke action cos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CosPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action cos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CosPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCosPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a cosRequestBuilder - */ - public withUrl(rawUrl: string) : CosRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CosRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/cosh/index.ts b/src/drives/item/items/item/workbook/functions/cosh/index.ts index f5ff9c3ac38..3939551fc6b 100644 --- a/src/drives/item/items/item/workbook/functions/cosh/index.ts +++ b/src/drives/item/items/item/workbook/functions/cosh/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CoshPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCoshPostRequestBody(writer: SerializationWriter, coshPo writer.writeObjectValue("number", coshPostRequestBody.number, serializeJson); writer.writeAdditionalData(coshPostRequestBody.additionalData); } -/** - * Provides operations to call the cosh method. - */ -export class CoshRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CoshRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cosh"); - }; - /** - * Invoke action cosh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CoshPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action cosh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CoshPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCoshPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a coshRequestBuilder - */ - public withUrl(rawUrl: string) : CoshRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CoshRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/cot/index.ts b/src/drives/item/items/item/workbook/functions/cot/index.ts index c0e7ca3633c..5f04a34a787 100644 --- a/src/drives/item/items/item/workbook/functions/cot/index.ts +++ b/src/drives/item/items/item/workbook/functions/cot/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CotPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCotPostRequestBody(writer: SerializationWriter, cotPost writer.writeObjectValue("number", cotPostRequestBody.number, serializeJson); writer.writeAdditionalData(cotPostRequestBody.additionalData); } -/** - * Provides operations to call the cot method. - */ -export class CotRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CotRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cot"); - }; - /** - * Invoke action cot - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CotPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action cot - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CotPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCotPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a cotRequestBuilder - */ - public withUrl(rawUrl: string) : CotRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CotRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/coth/index.ts b/src/drives/item/items/item/workbook/functions/coth/index.ts index 5cce742f9f2..930fd27bfe9 100644 --- a/src/drives/item/items/item/workbook/functions/coth/index.ts +++ b/src/drives/item/items/item/workbook/functions/coth/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CothPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCothPostRequestBody(writer: SerializationWriter, cothPo writer.writeObjectValue("number", cothPostRequestBody.number, serializeJson); writer.writeAdditionalData(cothPostRequestBody.additionalData); } -/** - * Provides operations to call the coth method. - */ -export class CothRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CothRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coth"); - }; - /** - * Invoke action coth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CothPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action coth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CothPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCothPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a cothRequestBuilder - */ - public withUrl(rawUrl: string) : CothRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CothRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/count/index.ts b/src/drives/item/items/item/workbook/functions/count/index.ts index 562f28ad53c..bcb3f27667c 100644 --- a/src/drives/item/items/item/workbook/functions/count/index.ts +++ b/src/drives/item/items/item/workbook/functions/count/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCountPostRequestBody(writer: SerializationWriter, count writer.writeObjectValue("values", countPostRequestBody.values, serializeJson); writer.writeAdditionalData(countPostRequestBody.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/count"); - }; - /** - * Invoke action count - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CountPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action count - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CountPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCountPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/countA/countAPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/countA/countAPostRequestBody.ts deleted file mode 100644 index 108c37eb626..00000000000 --- a/src/drives/item/items/item/workbook/functions/countA/countAPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CountAPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function createCountAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCountAPostRequestBody; -} -export function deserializeIntoCountAPostRequestBody(countAPostRequestBody: CountAPostRequestBody | undefined = {} as CountAPostRequestBody) : Record void> { - return { - "values": n => { countAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCountAPostRequestBody(writer: SerializationWriter, countAPostRequestBody: CountAPostRequestBody | undefined = {} as CountAPostRequestBody) : void { - writer.writeObjectValue("values", countAPostRequestBody.values, serializeJson); - writer.writeAdditionalData(countAPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/countA/index.ts b/src/drives/item/items/item/workbook/functions/countA/index.ts index 5cb46f201ad..cbcc380488b 100644 --- a/src/drives/item/items/item/workbook/functions/countA/index.ts +++ b/src/drives/item/items/item/workbook/functions/countA/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCountAPostRequestBody, serializeCountAPostRequestBody, type CountAPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CountAPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function createCountAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCountAPostRequestBody; +} +export function deserializeIntoCountAPostRequestBody(countAPostRequestBody: CountAPostRequestBody | undefined = {} as CountAPostRequestBody) : Record void> { + return { + "values": n => { countAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCountAPostRequestBody(writer: SerializationWriter, countAPostRequestBody: CountAPostRequestBody | undefined = {} as CountAPostRequestBody) : void { + writer.writeObjectValue("values", countAPostRequestBody.values, serializeJson); + writer.writeAdditionalData(countAPostRequestBody.additionalData); +} /** * Provides operations to call the countA method. */ diff --git a/src/drives/item/items/item/workbook/functions/countBlank/index.ts b/src/drives/item/items/item/workbook/functions/countBlank/index.ts index be98f62c628..691503023a5 100644 --- a/src/drives/item/items/item/workbook/functions/countBlank/index.ts +++ b/src/drives/item/items/item/workbook/functions/countBlank/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountBlankPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -30,57 +27,5 @@ export function serializeCountBlankPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("range", countBlankPostRequestBody.range, serializeJson); writer.writeAdditionalData(countBlankPostRequestBody.additionalData); } -/** - * Provides operations to call the countBlank method. - */ -export class CountBlankRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountBlankRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countBlank"); - }; - /** - * Invoke action countBlank - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CountBlankPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action countBlank - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CountBlankPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCountBlankPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countBlankRequestBuilder - */ - public withUrl(rawUrl: string) : CountBlankRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountBlankRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/countIf/index.ts b/src/drives/item/items/item/workbook/functions/countIf/index.ts index 52d95bd5f49..223cd13578d 100644 --- a/src/drives/item/items/item/workbook/functions/countIf/index.ts +++ b/src/drives/item/items/item/workbook/functions/countIf/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountIfPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,57 +33,5 @@ export function serializeCountIfPostRequestBody(writer: SerializationWriter, cou writer.writeObjectValue("range", countIfPostRequestBody.range, serializeJson); writer.writeAdditionalData(countIfPostRequestBody.additionalData); } -/** - * Provides operations to call the countIf method. - */ -export class CountIfRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountIfRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countIf"); - }; - /** - * Invoke action countIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CountIfPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action countIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CountIfPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCountIfPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countIfRequestBuilder - */ - public withUrl(rawUrl: string) : CountIfRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountIfRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/countIfs/countIfsPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/countIfs/countIfsPostRequestBody.ts deleted file mode 100644 index 09b7ce74b46..00000000000 --- a/src/drives/item/items/item/workbook/functions/countIfs/countIfsPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CountIfsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function createCountIfsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCountIfsPostRequestBody; -} -export function deserializeIntoCountIfsPostRequestBody(countIfsPostRequestBody: CountIfsPostRequestBody | undefined = {} as CountIfsPostRequestBody) : Record void> { - return { - "values": n => { countIfsPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCountIfsPostRequestBody(writer: SerializationWriter, countIfsPostRequestBody: CountIfsPostRequestBody | undefined = {} as CountIfsPostRequestBody) : void { - writer.writeObjectValue("values", countIfsPostRequestBody.values, serializeJson); - writer.writeAdditionalData(countIfsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/countIfs/index.ts b/src/drives/item/items/item/workbook/functions/countIfs/index.ts index b2195bd511d..d7aff020120 100644 --- a/src/drives/item/items/item/workbook/functions/countIfs/index.ts +++ b/src/drives/item/items/item/workbook/functions/countIfs/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCountIfsPostRequestBody, serializeCountIfsPostRequestBody, type CountIfsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CountIfsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function createCountIfsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCountIfsPostRequestBody; +} +export function deserializeIntoCountIfsPostRequestBody(countIfsPostRequestBody: CountIfsPostRequestBody | undefined = {} as CountIfsPostRequestBody) : Record void> { + return { + "values": n => { countIfsPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCountIfsPostRequestBody(writer: SerializationWriter, countIfsPostRequestBody: CountIfsPostRequestBody | undefined = {} as CountIfsPostRequestBody) : void { + writer.writeObjectValue("values", countIfsPostRequestBody.values, serializeJson); + writer.writeAdditionalData(countIfsPostRequestBody.additionalData); +} /** * Provides operations to call the countIfs method. */ diff --git a/src/drives/item/items/item/workbook/functions/coupDayBs/index.ts b/src/drives/item/items/item/workbook/functions/coupDayBs/index.ts index a57353ebb78..6d48c43bf48 100644 --- a/src/drives/item/items/item/workbook/functions/coupDayBs/index.ts +++ b/src/drives/item/items/item/workbook/functions/coupDayBs/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CoupDayBsPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -48,57 +45,5 @@ export function serializeCoupDayBsPostRequestBody(writer: SerializationWriter, c writer.writeObjectValue("settlement", coupDayBsPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(coupDayBsPostRequestBody.additionalData); } -/** - * Provides operations to call the coupDayBs method. - */ -export class CoupDayBsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CoupDayBsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupDayBs"); - }; - /** - * Invoke action coupDayBs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CoupDayBsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action coupDayBs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CoupDayBsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCoupDayBsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a coupDayBsRequestBuilder - */ - public withUrl(rawUrl: string) : CoupDayBsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CoupDayBsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/coupDays/coupDaysPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/coupDays/coupDaysPostRequestBody.ts deleted file mode 100644 index f0ec467bedd..00000000000 --- a/src/drives/item/items/item/workbook/functions/coupDays/coupDaysPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CoupDaysPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The frequency property - */ - frequency?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -export function createCoupDaysPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCoupDaysPostRequestBody; -} -export function deserializeIntoCoupDaysPostRequestBody(coupDaysPostRequestBody: CoupDaysPostRequestBody | undefined = {} as CoupDaysPostRequestBody) : Record void> { - return { - "basis": n => { coupDaysPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "frequency": n => { coupDaysPostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { coupDaysPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { coupDaysPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCoupDaysPostRequestBody(writer: SerializationWriter, coupDaysPostRequestBody: CoupDaysPostRequestBody | undefined = {} as CoupDaysPostRequestBody) : void { - writer.writeObjectValue("basis", coupDaysPostRequestBody.basis, serializeJson); - writer.writeObjectValue("frequency", coupDaysPostRequestBody.frequency, serializeJson); - writer.writeObjectValue("maturity", coupDaysPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("settlement", coupDaysPostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(coupDaysPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/coupDays/index.ts b/src/drives/item/items/item/workbook/functions/coupDays/index.ts index 06349609883..50c7534c222 100644 --- a/src/drives/item/items/item/workbook/functions/coupDays/index.ts +++ b/src/drives/item/items/item/workbook/functions/coupDays/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCoupDaysPostRequestBody, serializeCoupDaysPostRequestBody, type CoupDaysPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CoupDaysPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The frequency property + */ + frequency?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The settlement property + */ + settlement?: Json; +} +export function createCoupDaysPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCoupDaysPostRequestBody; +} +export function deserializeIntoCoupDaysPostRequestBody(coupDaysPostRequestBody: CoupDaysPostRequestBody | undefined = {} as CoupDaysPostRequestBody) : Record void> { + return { + "basis": n => { coupDaysPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "frequency": n => { coupDaysPostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { coupDaysPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { coupDaysPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCoupDaysPostRequestBody(writer: SerializationWriter, coupDaysPostRequestBody: CoupDaysPostRequestBody | undefined = {} as CoupDaysPostRequestBody) : void { + writer.writeObjectValue("basis", coupDaysPostRequestBody.basis, serializeJson); + writer.writeObjectValue("frequency", coupDaysPostRequestBody.frequency, serializeJson); + writer.writeObjectValue("maturity", coupDaysPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("settlement", coupDaysPostRequestBody.settlement, serializeJson); + writer.writeAdditionalData(coupDaysPostRequestBody.additionalData); +} /** * Provides operations to call the coupDays method. */ diff --git a/src/drives/item/items/item/workbook/functions/coupDaysNc/coupDaysNcPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/coupDaysNc/coupDaysNcPostRequestBody.ts deleted file mode 100644 index 1e69e39e28d..00000000000 --- a/src/drives/item/items/item/workbook/functions/coupDaysNc/coupDaysNcPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CoupDaysNcPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The frequency property - */ - frequency?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -export function createCoupDaysNcPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCoupDaysNcPostRequestBody; -} -export function deserializeIntoCoupDaysNcPostRequestBody(coupDaysNcPostRequestBody: CoupDaysNcPostRequestBody | undefined = {} as CoupDaysNcPostRequestBody) : Record void> { - return { - "basis": n => { coupDaysNcPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "frequency": n => { coupDaysNcPostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { coupDaysNcPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { coupDaysNcPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCoupDaysNcPostRequestBody(writer: SerializationWriter, coupDaysNcPostRequestBody: CoupDaysNcPostRequestBody | undefined = {} as CoupDaysNcPostRequestBody) : void { - writer.writeObjectValue("basis", coupDaysNcPostRequestBody.basis, serializeJson); - writer.writeObjectValue("frequency", coupDaysNcPostRequestBody.frequency, serializeJson); - writer.writeObjectValue("maturity", coupDaysNcPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("settlement", coupDaysNcPostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(coupDaysNcPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/coupDaysNc/index.ts b/src/drives/item/items/item/workbook/functions/coupDaysNc/index.ts index 2dc35e3f75c..7008413c10c 100644 --- a/src/drives/item/items/item/workbook/functions/coupDaysNc/index.ts +++ b/src/drives/item/items/item/workbook/functions/coupDaysNc/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCoupDaysNcPostRequestBody, serializeCoupDaysNcPostRequestBody, type CoupDaysNcPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CoupDaysNcPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The frequency property + */ + frequency?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The settlement property + */ + settlement?: Json; +} +export function createCoupDaysNcPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCoupDaysNcPostRequestBody; +} +export function deserializeIntoCoupDaysNcPostRequestBody(coupDaysNcPostRequestBody: CoupDaysNcPostRequestBody | undefined = {} as CoupDaysNcPostRequestBody) : Record void> { + return { + "basis": n => { coupDaysNcPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "frequency": n => { coupDaysNcPostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { coupDaysNcPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { coupDaysNcPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCoupDaysNcPostRequestBody(writer: SerializationWriter, coupDaysNcPostRequestBody: CoupDaysNcPostRequestBody | undefined = {} as CoupDaysNcPostRequestBody) : void { + writer.writeObjectValue("basis", coupDaysNcPostRequestBody.basis, serializeJson); + writer.writeObjectValue("frequency", coupDaysNcPostRequestBody.frequency, serializeJson); + writer.writeObjectValue("maturity", coupDaysNcPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("settlement", coupDaysNcPostRequestBody.settlement, serializeJson); + writer.writeAdditionalData(coupDaysNcPostRequestBody.additionalData); +} /** * Provides operations to call the coupDaysNc method. */ diff --git a/src/drives/item/items/item/workbook/functions/coupNcd/index.ts b/src/drives/item/items/item/workbook/functions/coupNcd/index.ts index 807510e4d72..0bf99e42458 100644 --- a/src/drives/item/items/item/workbook/functions/coupNcd/index.ts +++ b/src/drives/item/items/item/workbook/functions/coupNcd/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CoupNcdPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -48,57 +45,5 @@ export function serializeCoupNcdPostRequestBody(writer: SerializationWriter, cou writer.writeObjectValue("settlement", coupNcdPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(coupNcdPostRequestBody.additionalData); } -/** - * Provides operations to call the coupNcd method. - */ -export class CoupNcdRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CoupNcdRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupNcd"); - }; - /** - * Invoke action coupNcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CoupNcdPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action coupNcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CoupNcdPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCoupNcdPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a coupNcdRequestBuilder - */ - public withUrl(rawUrl: string) : CoupNcdRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CoupNcdRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/coupNum/index.ts b/src/drives/item/items/item/workbook/functions/coupNum/index.ts index 51ff38dfcb2..1a2a135fcb5 100644 --- a/src/drives/item/items/item/workbook/functions/coupNum/index.ts +++ b/src/drives/item/items/item/workbook/functions/coupNum/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CoupNumPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -48,57 +45,5 @@ export function serializeCoupNumPostRequestBody(writer: SerializationWriter, cou writer.writeObjectValue("settlement", coupNumPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(coupNumPostRequestBody.additionalData); } -/** - * Provides operations to call the coupNum method. - */ -export class CoupNumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CoupNumRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupNum"); - }; - /** - * Invoke action coupNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CoupNumPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action coupNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CoupNumPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCoupNumPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a coupNumRequestBuilder - */ - public withUrl(rawUrl: string) : CoupNumRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CoupNumRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/coupPcd/index.ts b/src/drives/item/items/item/workbook/functions/coupPcd/index.ts index 369ecb88b60..8bd80b6c00a 100644 --- a/src/drives/item/items/item/workbook/functions/coupPcd/index.ts +++ b/src/drives/item/items/item/workbook/functions/coupPcd/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CoupPcdPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -48,57 +45,5 @@ export function serializeCoupPcdPostRequestBody(writer: SerializationWriter, cou writer.writeObjectValue("settlement", coupPcdPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(coupPcdPostRequestBody.additionalData); } -/** - * Provides operations to call the coupPcd method. - */ -export class CoupPcdRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CoupPcdRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupPcd"); - }; - /** - * Invoke action coupPcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CoupPcdPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action coupPcd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CoupPcdPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCoupPcdPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a coupPcdRequestBuilder - */ - public withUrl(rawUrl: string) : CoupPcdRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CoupPcdRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/csc/cscPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/csc/cscPostRequestBody.ts deleted file mode 100644 index a52ecf0717f..00000000000 --- a/src/drives/item/items/item/workbook/functions/csc/cscPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCscPostRequestBody; -} -export interface CscPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function deserializeIntoCscPostRequestBody(cscPostRequestBody: CscPostRequestBody | undefined = {} as CscPostRequestBody) : Record void> { - return { - "number": n => { cscPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCscPostRequestBody(writer: SerializationWriter, cscPostRequestBody: CscPostRequestBody | undefined = {} as CscPostRequestBody) : void { - writer.writeObjectValue("number", cscPostRequestBody.number, serializeJson); - writer.writeAdditionalData(cscPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/csc/index.ts b/src/drives/item/items/item/workbook/functions/csc/index.ts index e0b51e4c5bb..79158507805 100644 --- a/src/drives/item/items/item/workbook/functions/csc/index.ts +++ b/src/drives/item/items/item/workbook/functions/csc/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCscPostRequestBody, serializeCscPostRequestBody, type CscPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createCscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCscPostRequestBody; +} +export interface CscPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function deserializeIntoCscPostRequestBody(cscPostRequestBody: CscPostRequestBody | undefined = {} as CscPostRequestBody) : Record void> { + return { + "number": n => { cscPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCscPostRequestBody(writer: SerializationWriter, cscPostRequestBody: CscPostRequestBody | undefined = {} as CscPostRequestBody) : void { + writer.writeObjectValue("number", cscPostRequestBody.number, serializeJson); + writer.writeAdditionalData(cscPostRequestBody.additionalData); +} /** * Provides operations to call the csc method. */ diff --git a/src/drives/item/items/item/workbook/functions/csch/index.ts b/src/drives/item/items/item/workbook/functions/csch/index.ts index 4fe903b906e..657397762dc 100644 --- a/src/drives/item/items/item/workbook/functions/csch/index.ts +++ b/src/drives/item/items/item/workbook/functions/csch/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCschPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeCschPostRequestBody(writer: SerializationWriter, cschPo writer.writeObjectValue("number", cschPostRequestBody.number, serializeJson); writer.writeAdditionalData(cschPostRequestBody.additionalData); } -/** - * Provides operations to call the csch method. - */ -export class CschRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CschRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/csch"); - }; - /** - * Invoke action csch - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CschPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action csch - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CschPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCschPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a cschRequestBuilder - */ - public withUrl(rawUrl: string) : CschRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CschRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/cumIPmt/cumIPmtPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/cumIPmt/cumIPmtPostRequestBody.ts deleted file mode 100644 index dee418ef668..00000000000 --- a/src/drives/item/items/item/workbook/functions/cumIPmt/cumIPmtPostRequestBody.ts +++ /dev/null @@ -1,61 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCumIPmtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCumIPmtPostRequestBody; -} -export interface CumIPmtPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The endPeriod property - */ - endPeriod?: Json; - /** - * The nper property - */ - nper?: Json; - /** - * The pv property - */ - pv?: Json; - /** - * The rate property - */ - rate?: Json; - /** - * The startPeriod property - */ - startPeriod?: Json; - /** - * The type property - */ - type?: Json; -} -export function deserializeIntoCumIPmtPostRequestBody(cumIPmtPostRequestBody: CumIPmtPostRequestBody | undefined = {} as CumIPmtPostRequestBody) : Record void> { - return { - "endPeriod": n => { cumIPmtPostRequestBody.endPeriod = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "nper": n => { cumIPmtPostRequestBody.nper = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pv": n => { cumIPmtPostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "rate": n => { cumIPmtPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startPeriod": n => { cumIPmtPostRequestBody.startPeriod = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "type": n => { cumIPmtPostRequestBody.type = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeCumIPmtPostRequestBody(writer: SerializationWriter, cumIPmtPostRequestBody: CumIPmtPostRequestBody | undefined = {} as CumIPmtPostRequestBody) : void { - writer.writeObjectValue("endPeriod", cumIPmtPostRequestBody.endPeriod, serializeJson); - writer.writeObjectValue("nper", cumIPmtPostRequestBody.nper, serializeJson); - writer.writeObjectValue("pv", cumIPmtPostRequestBody.pv, serializeJson); - writer.writeObjectValue("rate", cumIPmtPostRequestBody.rate, serializeJson); - writer.writeObjectValue("startPeriod", cumIPmtPostRequestBody.startPeriod, serializeJson); - writer.writeObjectValue("type", cumIPmtPostRequestBody.type, serializeJson); - writer.writeAdditionalData(cumIPmtPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/cumIPmt/index.ts b/src/drives/item/items/item/workbook/functions/cumIPmt/index.ts index 9828a78819c..2dd0eb7e44f 100644 --- a/src/drives/item/items/item/workbook/functions/cumIPmt/index.ts +++ b/src/drives/item/items/item/workbook/functions/cumIPmt/index.ts @@ -1,12 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoCumIPmtPostRequestBody, serializeCumIPmtPostRequestBody, type CumIPmtPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createCumIPmtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCumIPmtPostRequestBody; +} +export interface CumIPmtPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The endPeriod property + */ + endPeriod?: Json; + /** + * The nper property + */ + nper?: Json; + /** + * The pv property + */ + pv?: Json; + /** + * The rate property + */ + rate?: Json; + /** + * The startPeriod property + */ + startPeriod?: Json; + /** + * The type property + */ + type?: Json; +} +export function deserializeIntoCumIPmtPostRequestBody(cumIPmtPostRequestBody: CumIPmtPostRequestBody | undefined = {} as CumIPmtPostRequestBody) : Record void> { + return { + "endPeriod": n => { cumIPmtPostRequestBody.endPeriod = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "nper": n => { cumIPmtPostRequestBody.nper = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pv": n => { cumIPmtPostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "rate": n => { cumIPmtPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startPeriod": n => { cumIPmtPostRequestBody.startPeriod = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "type": n => { cumIPmtPostRequestBody.type = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeCumIPmtPostRequestBody(writer: SerializationWriter, cumIPmtPostRequestBody: CumIPmtPostRequestBody | undefined = {} as CumIPmtPostRequestBody) : void { + writer.writeObjectValue("endPeriod", cumIPmtPostRequestBody.endPeriod, serializeJson); + writer.writeObjectValue("nper", cumIPmtPostRequestBody.nper, serializeJson); + writer.writeObjectValue("pv", cumIPmtPostRequestBody.pv, serializeJson); + writer.writeObjectValue("rate", cumIPmtPostRequestBody.rate, serializeJson); + writer.writeObjectValue("startPeriod", cumIPmtPostRequestBody.startPeriod, serializeJson); + writer.writeObjectValue("type", cumIPmtPostRequestBody.type, serializeJson); + writer.writeAdditionalData(cumIPmtPostRequestBody.additionalData); +} /** * Provides operations to call the cumIPmt method. */ diff --git a/src/drives/item/items/item/workbook/functions/cumPrinc/index.ts b/src/drives/item/items/item/workbook/functions/cumPrinc/index.ts index f86744918ac..56d4d383a37 100644 --- a/src/drives/item/items/item/workbook/functions/cumPrinc/index.ts +++ b/src/drives/item/items/item/workbook/functions/cumPrinc/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCumPrincPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -60,57 +57,5 @@ export function serializeCumPrincPostRequestBody(writer: SerializationWriter, cu writer.writeObjectValue("type", cumPrincPostRequestBody.type, serializeJson); writer.writeAdditionalData(cumPrincPostRequestBody.additionalData); } -/** - * Provides operations to call the cumPrinc method. - */ -export class CumPrincRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CumPrincRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cumPrinc"); - }; - /** - * Invoke action cumPrinc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: CumPrincPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action cumPrinc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CumPrincPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCumPrincPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a cumPrincRequestBuilder - */ - public withUrl(rawUrl: string) : CumPrincRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CumPrincRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/date/index.ts b/src/drives/item/items/item/workbook/functions/date/index.ts index 7ec25efba1b..bb8ea8339dd 100644 --- a/src/drives/item/items/item/workbook/functions/date/index.ts +++ b/src/drives/item/items/item/workbook/functions/date/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDatePostRequestBody(writer: SerializationWriter, datePo writer.writeObjectValue("year", datePostRequestBody.year, serializeJson); writer.writeAdditionalData(datePostRequestBody.additionalData); } -/** - * Provides operations to call the date method. - */ -export class DateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DateRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/date"); - }; - /** - * Invoke action date - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action date - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDatePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dateRequestBuilder - */ - public withUrl(rawUrl: string) : DateRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DateRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/datevalue/index.ts b/src/drives/item/items/item/workbook/functions/datevalue/index.ts index 648666ec49d..f52e0e50a9b 100644 --- a/src/drives/item/items/item/workbook/functions/datevalue/index.ts +++ b/src/drives/item/items/item/workbook/functions/datevalue/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDatevaluePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeDatevaluePostRequestBody(writer: SerializationWriter, d writer.writeObjectValue("dateText", datevaluePostRequestBody.dateText, serializeJson); writer.writeAdditionalData(datevaluePostRequestBody.additionalData); } -/** - * Provides operations to call the datevalue method. - */ -export class DatevalueRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DatevalueRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/datevalue"); - }; - /** - * Invoke action datevalue - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DatevaluePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action datevalue - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DatevaluePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDatevaluePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a datevalueRequestBuilder - */ - public withUrl(rawUrl: string) : DatevalueRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DatevalueRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/daverage/daveragePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/daverage/daveragePostRequestBody.ts deleted file mode 100644 index 1fc42d27cbf..00000000000 --- a/src/drives/item/items/item/workbook/functions/daverage/daveragePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDaveragePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDaveragePostRequestBody; -} -export interface DaveragePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: Json; - /** - * The database property - */ - database?: Json; - /** - * The field property - */ - field?: Json; -} -export function deserializeIntoDaveragePostRequestBody(daveragePostRequestBody: DaveragePostRequestBody | undefined = {} as DaveragePostRequestBody) : Record void> { - return { - "criteria": n => { daveragePostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "database": n => { daveragePostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "field": n => { daveragePostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDaveragePostRequestBody(writer: SerializationWriter, daveragePostRequestBody: DaveragePostRequestBody | undefined = {} as DaveragePostRequestBody) : void { - writer.writeObjectValue("criteria", daveragePostRequestBody.criteria, serializeJson); - writer.writeObjectValue("database", daveragePostRequestBody.database, serializeJson); - writer.writeObjectValue("field", daveragePostRequestBody.field, serializeJson); - writer.writeAdditionalData(daveragePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/daverage/index.ts b/src/drives/item/items/item/workbook/functions/daverage/index.ts index 1bad1d6d93a..26b9a52c8df 100644 --- a/src/drives/item/items/item/workbook/functions/daverage/index.ts +++ b/src/drives/item/items/item/workbook/functions/daverage/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDaveragePostRequestBody, serializeDaveragePostRequestBody, type DaveragePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDaveragePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDaveragePostRequestBody; +} +export interface DaveragePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: Json; + /** + * The database property + */ + database?: Json; + /** + * The field property + */ + field?: Json; +} +export function deserializeIntoDaveragePostRequestBody(daveragePostRequestBody: DaveragePostRequestBody | undefined = {} as DaveragePostRequestBody) : Record void> { + return { + "criteria": n => { daveragePostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "database": n => { daveragePostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "field": n => { daveragePostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeDaveragePostRequestBody(writer: SerializationWriter, daveragePostRequestBody: DaveragePostRequestBody | undefined = {} as DaveragePostRequestBody) : void { + writer.writeObjectValue("criteria", daveragePostRequestBody.criteria, serializeJson); + writer.writeObjectValue("database", daveragePostRequestBody.database, serializeJson); + writer.writeObjectValue("field", daveragePostRequestBody.field, serializeJson); + writer.writeAdditionalData(daveragePostRequestBody.additionalData); +} /** * Provides operations to call the daverage method. */ diff --git a/src/drives/item/items/item/workbook/functions/day/index.ts b/src/drives/item/items/item/workbook/functions/day/index.ts index 28a617c741c..aa45fa3f52a 100644 --- a/src/drives/item/items/item/workbook/functions/day/index.ts +++ b/src/drives/item/items/item/workbook/functions/day/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDayPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeDayPostRequestBody(writer: SerializationWriter, dayPost writer.writeObjectValue("serialNumber", dayPostRequestBody.serialNumber, serializeJson); writer.writeAdditionalData(dayPostRequestBody.additionalData); } -/** - * Provides operations to call the day method. - */ -export class DayRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DayRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/day"); - }; - /** - * Invoke action day - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DayPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action day - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DayPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDayPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dayRequestBuilder - */ - public withUrl(rawUrl: string) : DayRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DayRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/days/daysPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/days/daysPostRequestBody.ts deleted file mode 100644 index 736035123b8..00000000000 --- a/src/drives/item/items/item/workbook/functions/days/daysPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDaysPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDaysPostRequestBody; -} -export interface DaysPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The endDate property - */ - endDate?: Json; - /** - * The startDate property - */ - startDate?: Json; -} -export function deserializeIntoDaysPostRequestBody(daysPostRequestBody: DaysPostRequestBody | undefined = {} as DaysPostRequestBody) : Record void> { - return { - "endDate": n => { daysPostRequestBody.endDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startDate": n => { daysPostRequestBody.startDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDaysPostRequestBody(writer: SerializationWriter, daysPostRequestBody: DaysPostRequestBody | undefined = {} as DaysPostRequestBody) : void { - writer.writeObjectValue("endDate", daysPostRequestBody.endDate, serializeJson); - writer.writeObjectValue("startDate", daysPostRequestBody.startDate, serializeJson); - writer.writeAdditionalData(daysPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/days/index.ts b/src/drives/item/items/item/workbook/functions/days/index.ts index 4dfe4e44266..c947ec4f9e3 100644 --- a/src/drives/item/items/item/workbook/functions/days/index.ts +++ b/src/drives/item/items/item/workbook/functions/days/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDaysPostRequestBody, serializeDaysPostRequestBody, type DaysPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDaysPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDaysPostRequestBody; +} +export interface DaysPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The endDate property + */ + endDate?: Json; + /** + * The startDate property + */ + startDate?: Json; +} +export function deserializeIntoDaysPostRequestBody(daysPostRequestBody: DaysPostRequestBody | undefined = {} as DaysPostRequestBody) : Record void> { + return { + "endDate": n => { daysPostRequestBody.endDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startDate": n => { daysPostRequestBody.startDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeDaysPostRequestBody(writer: SerializationWriter, daysPostRequestBody: DaysPostRequestBody | undefined = {} as DaysPostRequestBody) : void { + writer.writeObjectValue("endDate", daysPostRequestBody.endDate, serializeJson); + writer.writeObjectValue("startDate", daysPostRequestBody.startDate, serializeJson); + writer.writeAdditionalData(daysPostRequestBody.additionalData); +} /** * Provides operations to call the days method. */ diff --git a/src/drives/item/items/item/workbook/functions/days360/index.ts b/src/drives/item/items/item/workbook/functions/days360/index.ts index 58999525891..5afc6ade4e5 100644 --- a/src/drives/item/items/item/workbook/functions/days360/index.ts +++ b/src/drives/item/items/item/workbook/functions/days360/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDays360PostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDays360PostRequestBody(writer: SerializationWriter, day writer.writeObjectValue("startDate", days360PostRequestBody.startDate, serializeJson); writer.writeAdditionalData(days360PostRequestBody.additionalData); } -/** - * Provides operations to call the days360 method. - */ -export class Days360RequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Days360RequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/days360"); - }; - /** - * Invoke action days360 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Days360PostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action days360 - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Days360PostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDays360PostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a days360RequestBuilder - */ - public withUrl(rawUrl: string) : Days360RequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Days360RequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/db/index.ts b/src/drives/item/items/item/workbook/functions/db/index.ts index 7cb56a4c243..7f5a4d36614 100644 --- a/src/drives/item/items/item/workbook/functions/db/index.ts +++ b/src/drives/item/items/item/workbook/functions/db/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -54,57 +51,5 @@ export function serializeDbPostRequestBody(writer: SerializationWriter, dbPostRe writer.writeObjectValue("salvage", dbPostRequestBody.salvage, serializeJson); writer.writeAdditionalData(dbPostRequestBody.additionalData); } -/** - * Provides operations to call the db method. - */ -export class DbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DbRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/db"); - }; - /** - * Invoke action db - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DbPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action db - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DbPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDbPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dbRequestBuilder - */ - public withUrl(rawUrl: string) : DbRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DbRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dbcs/dbcsPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/dbcs/dbcsPostRequestBody.ts deleted file mode 100644 index 94501d3674e..00000000000 --- a/src/drives/item/items/item/workbook/functions/dbcs/dbcsPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDbcsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDbcsPostRequestBody; -} -export interface DbcsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The text property - */ - text?: Json; -} -export function deserializeIntoDbcsPostRequestBody(dbcsPostRequestBody: DbcsPostRequestBody | undefined = {} as DbcsPostRequestBody) : Record void> { - return { - "text": n => { dbcsPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDbcsPostRequestBody(writer: SerializationWriter, dbcsPostRequestBody: DbcsPostRequestBody | undefined = {} as DbcsPostRequestBody) : void { - writer.writeObjectValue("text", dbcsPostRequestBody.text, serializeJson); - writer.writeAdditionalData(dbcsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dbcs/index.ts b/src/drives/item/items/item/workbook/functions/dbcs/index.ts index 916da7e0b66..90b583681f2 100644 --- a/src/drives/item/items/item/workbook/functions/dbcs/index.ts +++ b/src/drives/item/items/item/workbook/functions/dbcs/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDbcsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -27,5 +30,57 @@ export function serializeDbcsPostRequestBody(writer: SerializationWriter, dbcsPo writer.writeObjectValue("text", dbcsPostRequestBody.text, serializeJson); writer.writeAdditionalData(dbcsPostRequestBody.additionalData); } +/** + * Provides operations to call the dbcs method. + */ +export class DbcsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DbcsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dbcs"); + }; + /** + * Invoke action dbcs + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: DbcsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action dbcs + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: DbcsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDbcsPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a dbcsRequestBuilder + */ + public withUrl(rawUrl: string) : DbcsRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new DbcsRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dcount/dcountPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/dcount/dcountPostRequestBody.ts deleted file mode 100644 index 032a339c5a5..00000000000 --- a/src/drives/item/items/item/workbook/functions/dcount/dcountPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDcountPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDcountPostRequestBody; -} -export interface DcountPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: Json; - /** - * The database property - */ - database?: Json; - /** - * The field property - */ - field?: Json; -} -export function deserializeIntoDcountPostRequestBody(dcountPostRequestBody: DcountPostRequestBody | undefined = {} as DcountPostRequestBody) : Record void> { - return { - "criteria": n => { dcountPostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "database": n => { dcountPostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "field": n => { dcountPostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDcountPostRequestBody(writer: SerializationWriter, dcountPostRequestBody: DcountPostRequestBody | undefined = {} as DcountPostRequestBody) : void { - writer.writeObjectValue("criteria", dcountPostRequestBody.criteria, serializeJson); - writer.writeObjectValue("database", dcountPostRequestBody.database, serializeJson); - writer.writeObjectValue("field", dcountPostRequestBody.field, serializeJson); - writer.writeAdditionalData(dcountPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dcount/index.ts b/src/drives/item/items/item/workbook/functions/dcount/index.ts index 3f44686d201..4f5607304b1 100644 --- a/src/drives/item/items/item/workbook/functions/dcount/index.ts +++ b/src/drives/item/items/item/workbook/functions/dcount/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDcountPostRequestBody, serializeDcountPostRequestBody, type DcountPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDcountPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDcountPostRequestBody; +} +export interface DcountPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: Json; + /** + * The database property + */ + database?: Json; + /** + * The field property + */ + field?: Json; +} +export function deserializeIntoDcountPostRequestBody(dcountPostRequestBody: DcountPostRequestBody | undefined = {} as DcountPostRequestBody) : Record void> { + return { + "criteria": n => { dcountPostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "database": n => { dcountPostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "field": n => { dcountPostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeDcountPostRequestBody(writer: SerializationWriter, dcountPostRequestBody: DcountPostRequestBody | undefined = {} as DcountPostRequestBody) : void { + writer.writeObjectValue("criteria", dcountPostRequestBody.criteria, serializeJson); + writer.writeObjectValue("database", dcountPostRequestBody.database, serializeJson); + writer.writeObjectValue("field", dcountPostRequestBody.field, serializeJson); + writer.writeAdditionalData(dcountPostRequestBody.additionalData); +} /** * Provides operations to call the dcount method. */ diff --git a/src/drives/item/items/item/workbook/functions/dcountA/index.ts b/src/drives/item/items/item/workbook/functions/dcountA/index.ts index 7296460c9e5..499bea2e2c6 100644 --- a/src/drives/item/items/item/workbook/functions/dcountA/index.ts +++ b/src/drives/item/items/item/workbook/functions/dcountA/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDcountAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDcountAPostRequestBody(writer: SerializationWriter, dco writer.writeObjectValue("field", dcountAPostRequestBody.field, serializeJson); writer.writeAdditionalData(dcountAPostRequestBody.additionalData); } -/** - * Provides operations to call the dcountA method. - */ -export class DcountARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DcountARequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dcountA"); - }; - /** - * Invoke action dcountA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DcountAPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dcountA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DcountAPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDcountAPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dcountARequestBuilder - */ - public withUrl(rawUrl: string) : DcountARequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DcountARequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ddb/ddbPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/ddb/ddbPostRequestBody.ts deleted file mode 100644 index 4e4b8a16b23..00000000000 --- a/src/drives/item/items/item/workbook/functions/ddb/ddbPostRequestBody.ts +++ /dev/null @@ -1,55 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDdbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDdbPostRequestBody; -} -export interface DdbPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cost property - */ - cost?: Json; - /** - * The factor property - */ - factor?: Json; - /** - * The life property - */ - life?: Json; - /** - * The period property - */ - period?: Json; - /** - * The salvage property - */ - salvage?: Json; -} -export function deserializeIntoDdbPostRequestBody(ddbPostRequestBody: DdbPostRequestBody | undefined = {} as DdbPostRequestBody) : Record void> { - return { - "cost": n => { ddbPostRequestBody.cost = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "factor": n => { ddbPostRequestBody.factor = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "life": n => { ddbPostRequestBody.life = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "period": n => { ddbPostRequestBody.period = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "salvage": n => { ddbPostRequestBody.salvage = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDdbPostRequestBody(writer: SerializationWriter, ddbPostRequestBody: DdbPostRequestBody | undefined = {} as DdbPostRequestBody) : void { - writer.writeObjectValue("cost", ddbPostRequestBody.cost, serializeJson); - writer.writeObjectValue("factor", ddbPostRequestBody.factor, serializeJson); - writer.writeObjectValue("life", ddbPostRequestBody.life, serializeJson); - writer.writeObjectValue("period", ddbPostRequestBody.period, serializeJson); - writer.writeObjectValue("salvage", ddbPostRequestBody.salvage, serializeJson); - writer.writeAdditionalData(ddbPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ddb/index.ts b/src/drives/item/items/item/workbook/functions/ddb/index.ts index c2bae906937..0d772a4ce42 100644 --- a/src/drives/item/items/item/workbook/functions/ddb/index.ts +++ b/src/drives/item/items/item/workbook/functions/ddb/index.ts @@ -1,12 +1,59 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDdbPostRequestBody, serializeDdbPostRequestBody, type DdbPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDdbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDdbPostRequestBody; +} +export interface DdbPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cost property + */ + cost?: Json; + /** + * The factor property + */ + factor?: Json; + /** + * The life property + */ + life?: Json; + /** + * The period property + */ + period?: Json; + /** + * The salvage property + */ + salvage?: Json; +} +export function deserializeIntoDdbPostRequestBody(ddbPostRequestBody: DdbPostRequestBody | undefined = {} as DdbPostRequestBody) : Record void> { + return { + "cost": n => { ddbPostRequestBody.cost = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "factor": n => { ddbPostRequestBody.factor = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "life": n => { ddbPostRequestBody.life = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "period": n => { ddbPostRequestBody.period = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "salvage": n => { ddbPostRequestBody.salvage = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeDdbPostRequestBody(writer: SerializationWriter, ddbPostRequestBody: DdbPostRequestBody | undefined = {} as DdbPostRequestBody) : void { + writer.writeObjectValue("cost", ddbPostRequestBody.cost, serializeJson); + writer.writeObjectValue("factor", ddbPostRequestBody.factor, serializeJson); + writer.writeObjectValue("life", ddbPostRequestBody.life, serializeJson); + writer.writeObjectValue("period", ddbPostRequestBody.period, serializeJson); + writer.writeObjectValue("salvage", ddbPostRequestBody.salvage, serializeJson); + writer.writeAdditionalData(ddbPostRequestBody.additionalData); +} /** * Provides operations to call the ddb method. */ diff --git a/src/drives/item/items/item/workbook/functions/dec2Bin/dec2BinPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/dec2Bin/dec2BinPostRequestBody.ts deleted file mode 100644 index 3391fb39d95..00000000000 --- a/src/drives/item/items/item/workbook/functions/dec2Bin/dec2BinPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDec2BinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDec2BinPostRequestBody; -} -export interface Dec2BinPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The places property - */ - places?: Json; -} -export function deserializeIntoDec2BinPostRequestBody(dec2BinPostRequestBody: Dec2BinPostRequestBody | undefined = {} as Dec2BinPostRequestBody) : Record void> { - return { - "number": n => { dec2BinPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "places": n => { dec2BinPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDec2BinPostRequestBody(writer: SerializationWriter, dec2BinPostRequestBody: Dec2BinPostRequestBody | undefined = {} as Dec2BinPostRequestBody) : void { - writer.writeObjectValue("number", dec2BinPostRequestBody.number, serializeJson); - writer.writeObjectValue("places", dec2BinPostRequestBody.places, serializeJson); - writer.writeAdditionalData(dec2BinPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dec2Bin/index.ts b/src/drives/item/items/item/workbook/functions/dec2Bin/index.ts index 064a4e89b0f..138be82a0f2 100644 --- a/src/drives/item/items/item/workbook/functions/dec2Bin/index.ts +++ b/src/drives/item/items/item/workbook/functions/dec2Bin/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDec2BinPostRequestBody, serializeDec2BinPostRequestBody, type Dec2BinPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDec2BinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDec2BinPostRequestBody; +} +export interface Dec2BinPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The places property + */ + places?: Json; +} +export function deserializeIntoDec2BinPostRequestBody(dec2BinPostRequestBody: Dec2BinPostRequestBody | undefined = {} as Dec2BinPostRequestBody) : Record void> { + return { + "number": n => { dec2BinPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "places": n => { dec2BinPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeDec2BinPostRequestBody(writer: SerializationWriter, dec2BinPostRequestBody: Dec2BinPostRequestBody | undefined = {} as Dec2BinPostRequestBody) : void { + writer.writeObjectValue("number", dec2BinPostRequestBody.number, serializeJson); + writer.writeObjectValue("places", dec2BinPostRequestBody.places, serializeJson); + writer.writeAdditionalData(dec2BinPostRequestBody.additionalData); +} /** * Provides operations to call the dec2Bin method. */ diff --git a/src/drives/item/items/item/workbook/functions/dec2Hex/index.ts b/src/drives/item/items/item/workbook/functions/dec2Hex/index.ts index ff2ec0d001e..08e5264dce2 100644 --- a/src/drives/item/items/item/workbook/functions/dec2Hex/index.ts +++ b/src/drives/item/items/item/workbook/functions/dec2Hex/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDec2HexPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeDec2HexPostRequestBody(writer: SerializationWriter, dec writer.writeObjectValue("places", dec2HexPostRequestBody.places, serializeJson); writer.writeAdditionalData(dec2HexPostRequestBody.additionalData); } -/** - * Provides operations to call the dec2Hex method. - */ -export class Dec2HexRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Dec2HexRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dec2Hex"); - }; - /** - * Invoke action dec2Hex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Dec2HexPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dec2Hex - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Dec2HexPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDec2HexPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dec2HexRequestBuilder - */ - public withUrl(rawUrl: string) : Dec2HexRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Dec2HexRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dec2Oct/dec2OctPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/dec2Oct/dec2OctPostRequestBody.ts deleted file mode 100644 index 3b0c0cbed97..00000000000 --- a/src/drives/item/items/item/workbook/functions/dec2Oct/dec2OctPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDec2OctPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDec2OctPostRequestBody; -} -export interface Dec2OctPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The places property - */ - places?: Json; -} -export function deserializeIntoDec2OctPostRequestBody(dec2OctPostRequestBody: Dec2OctPostRequestBody | undefined = {} as Dec2OctPostRequestBody) : Record void> { - return { - "number": n => { dec2OctPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "places": n => { dec2OctPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDec2OctPostRequestBody(writer: SerializationWriter, dec2OctPostRequestBody: Dec2OctPostRequestBody | undefined = {} as Dec2OctPostRequestBody) : void { - writer.writeObjectValue("number", dec2OctPostRequestBody.number, serializeJson); - writer.writeObjectValue("places", dec2OctPostRequestBody.places, serializeJson); - writer.writeAdditionalData(dec2OctPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dec2Oct/index.ts b/src/drives/item/items/item/workbook/functions/dec2Oct/index.ts index d71e849a25e..39cc7855bbe 100644 --- a/src/drives/item/items/item/workbook/functions/dec2Oct/index.ts +++ b/src/drives/item/items/item/workbook/functions/dec2Oct/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDec2OctPostRequestBody, serializeDec2OctPostRequestBody, type Dec2OctPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDec2OctPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDec2OctPostRequestBody; +} +export interface Dec2OctPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The places property + */ + places?: Json; +} +export function deserializeIntoDec2OctPostRequestBody(dec2OctPostRequestBody: Dec2OctPostRequestBody | undefined = {} as Dec2OctPostRequestBody) : Record void> { + return { + "number": n => { dec2OctPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "places": n => { dec2OctPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeDec2OctPostRequestBody(writer: SerializationWriter, dec2OctPostRequestBody: Dec2OctPostRequestBody | undefined = {} as Dec2OctPostRequestBody) : void { + writer.writeObjectValue("number", dec2OctPostRequestBody.number, serializeJson); + writer.writeObjectValue("places", dec2OctPostRequestBody.places, serializeJson); + writer.writeAdditionalData(dec2OctPostRequestBody.additionalData); +} /** * Provides operations to call the dec2Oct method. */ diff --git a/src/drives/item/items/item/workbook/functions/decimal/index.ts b/src/drives/item/items/item/workbook/functions/decimal/index.ts index ce18526a52a..aaac1fc6db2 100644 --- a/src/drives/item/items/item/workbook/functions/decimal/index.ts +++ b/src/drives/item/items/item/workbook/functions/decimal/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDecimalPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeDecimalPostRequestBody(writer: SerializationWriter, dec writer.writeObjectValue("radix", decimalPostRequestBody.radix, serializeJson); writer.writeAdditionalData(decimalPostRequestBody.additionalData); } -/** - * Provides operations to call the decimal method. - */ -export class DecimalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DecimalRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/decimal"); - }; - /** - * Invoke action decimal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DecimalPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action decimal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DecimalPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDecimalPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a decimalRequestBuilder - */ - public withUrl(rawUrl: string) : DecimalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DecimalRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/degrees/degreesPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/degrees/degreesPostRequestBody.ts deleted file mode 100644 index 04889e1064c..00000000000 --- a/src/drives/item/items/item/workbook/functions/degrees/degreesPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDegreesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDegreesPostRequestBody; -} -export interface DegreesPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The angle property - */ - angle?: Json; -} -export function deserializeIntoDegreesPostRequestBody(degreesPostRequestBody: DegreesPostRequestBody | undefined = {} as DegreesPostRequestBody) : Record void> { - return { - "angle": n => { degreesPostRequestBody.angle = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDegreesPostRequestBody(writer: SerializationWriter, degreesPostRequestBody: DegreesPostRequestBody | undefined = {} as DegreesPostRequestBody) : void { - writer.writeObjectValue("angle", degreesPostRequestBody.angle, serializeJson); - writer.writeAdditionalData(degreesPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/degrees/index.ts b/src/drives/item/items/item/workbook/functions/degrees/index.ts index ec9d5122ac5..8c0b1829136 100644 --- a/src/drives/item/items/item/workbook/functions/degrees/index.ts +++ b/src/drives/item/items/item/workbook/functions/degrees/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDegreesPostRequestBody, serializeDegreesPostRequestBody, type DegreesPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDegreesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDegreesPostRequestBody; +} +export interface DegreesPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The angle property + */ + angle?: Json; +} +export function deserializeIntoDegreesPostRequestBody(degreesPostRequestBody: DegreesPostRequestBody | undefined = {} as DegreesPostRequestBody) : Record void> { + return { + "angle": n => { degreesPostRequestBody.angle = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeDegreesPostRequestBody(writer: SerializationWriter, degreesPostRequestBody: DegreesPostRequestBody | undefined = {} as DegreesPostRequestBody) : void { + writer.writeObjectValue("angle", degreesPostRequestBody.angle, serializeJson); + writer.writeAdditionalData(degreesPostRequestBody.additionalData); +} /** * Provides operations to call the degrees method. */ diff --git a/src/drives/item/items/item/workbook/functions/delta/deltaPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/delta/deltaPostRequestBody.ts deleted file mode 100644 index cad4ef0b8a9..00000000000 --- a/src/drives/item/items/item/workbook/functions/delta/deltaPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDeltaPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDeltaPostRequestBody; -} -export interface DeltaPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number1 property - */ - number1?: Json; - /** - * The number2 property - */ - number2?: Json; -} -export function deserializeIntoDeltaPostRequestBody(deltaPostRequestBody: DeltaPostRequestBody | undefined = {} as DeltaPostRequestBody) : Record void> { - return { - "number1": n => { deltaPostRequestBody.number1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "number2": n => { deltaPostRequestBody.number2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeDeltaPostRequestBody(writer: SerializationWriter, deltaPostRequestBody: DeltaPostRequestBody | undefined = {} as DeltaPostRequestBody) : void { - writer.writeObjectValue("number1", deltaPostRequestBody.number1, serializeJson); - writer.writeObjectValue("number2", deltaPostRequestBody.number2, serializeJson); - writer.writeAdditionalData(deltaPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/delta/index.ts b/src/drives/item/items/item/workbook/functions/delta/index.ts index 4af2c013ca9..b347b9a6452 100644 --- a/src/drives/item/items/item/workbook/functions/delta/index.ts +++ b/src/drives/item/items/item/workbook/functions/delta/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDeltaPostRequestBody, serializeDeltaPostRequestBody, type DeltaPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDeltaPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDeltaPostRequestBody; +} +export interface DeltaPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number1 property + */ + number1?: Json; + /** + * The number2 property + */ + number2?: Json; +} +export function deserializeIntoDeltaPostRequestBody(deltaPostRequestBody: DeltaPostRequestBody | undefined = {} as DeltaPostRequestBody) : Record void> { + return { + "number1": n => { deltaPostRequestBody.number1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "number2": n => { deltaPostRequestBody.number2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeDeltaPostRequestBody(writer: SerializationWriter, deltaPostRequestBody: DeltaPostRequestBody | undefined = {} as DeltaPostRequestBody) : void { + writer.writeObjectValue("number1", deltaPostRequestBody.number1, serializeJson); + writer.writeObjectValue("number2", deltaPostRequestBody.number2, serializeJson); + writer.writeAdditionalData(deltaPostRequestBody.additionalData); +} /** * Provides operations to call the delta method. */ diff --git a/src/drives/item/items/item/workbook/functions/devSq/index.ts b/src/drives/item/items/item/workbook/functions/devSq/index.ts index f140876a4b2..6ceadb9785c 100644 --- a/src/drives/item/items/item/workbook/functions/devSq/index.ts +++ b/src/drives/item/items/item/workbook/functions/devSq/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDevSqPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeDevSqPostRequestBody(writer: SerializationWriter, devSq writer.writeObjectValue("values", devSqPostRequestBody.values, serializeJson); writer.writeAdditionalData(devSqPostRequestBody.additionalData); } -/** - * Provides operations to call the devSq method. - */ -export class DevSqRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DevSqRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/devSq"); - }; - /** - * Invoke action devSq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DevSqPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action devSq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DevSqPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDevSqPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a devSqRequestBuilder - */ - public withUrl(rawUrl: string) : DevSqRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DevSqRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dget/dgetPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/dget/dgetPostRequestBody.ts deleted file mode 100644 index 7888ae168c7..00000000000 --- a/src/drives/item/items/item/workbook/functions/dget/dgetPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDgetPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDgetPostRequestBody; -} -export function deserializeIntoDgetPostRequestBody(dgetPostRequestBody: DgetPostRequestBody | undefined = {} as DgetPostRequestBody) : Record void> { - return { - "criteria": n => { dgetPostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "database": n => { dgetPostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "field": n => { dgetPostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface DgetPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: Json; - /** - * The database property - */ - database?: Json; - /** - * The field property - */ - field?: Json; -} -export function serializeDgetPostRequestBody(writer: SerializationWriter, dgetPostRequestBody: DgetPostRequestBody | undefined = {} as DgetPostRequestBody) : void { - writer.writeObjectValue("criteria", dgetPostRequestBody.criteria, serializeJson); - writer.writeObjectValue("database", dgetPostRequestBody.database, serializeJson); - writer.writeObjectValue("field", dgetPostRequestBody.field, serializeJson); - writer.writeAdditionalData(dgetPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dget/index.ts b/src/drives/item/items/item/workbook/functions/dget/index.ts index dd40fe715df..3b3c3cd2509 100644 --- a/src/drives/item/items/item/workbook/functions/dget/index.ts +++ b/src/drives/item/items/item/workbook/functions/dget/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDgetPostRequestBody, serializeDgetPostRequestBody, type DgetPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDgetPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDgetPostRequestBody; +} +export function deserializeIntoDgetPostRequestBody(dgetPostRequestBody: DgetPostRequestBody | undefined = {} as DgetPostRequestBody) : Record void> { + return { + "criteria": n => { dgetPostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "database": n => { dgetPostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "field": n => { dgetPostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface DgetPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: Json; + /** + * The database property + */ + database?: Json; + /** + * The field property + */ + field?: Json; +} +export function serializeDgetPostRequestBody(writer: SerializationWriter, dgetPostRequestBody: DgetPostRequestBody | undefined = {} as DgetPostRequestBody) : void { + writer.writeObjectValue("criteria", dgetPostRequestBody.criteria, serializeJson); + writer.writeObjectValue("database", dgetPostRequestBody.database, serializeJson); + writer.writeObjectValue("field", dgetPostRequestBody.field, serializeJson); + writer.writeAdditionalData(dgetPostRequestBody.additionalData); +} /** * Provides operations to call the dget method. */ diff --git a/src/drives/item/items/item/workbook/functions/disc/index.ts b/src/drives/item/items/item/workbook/functions/disc/index.ts index 81883b1c0d1..537f5ccf55a 100644 --- a/src/drives/item/items/item/workbook/functions/disc/index.ts +++ b/src/drives/item/items/item/workbook/functions/disc/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDiscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -54,57 +51,5 @@ export function serializeDiscPostRequestBody(writer: SerializationWriter, discPo writer.writeObjectValue("settlement", discPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(discPostRequestBody.additionalData); } -/** - * Provides operations to call the disc method. - */ -export class DiscRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DiscRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/disc"); - }; - /** - * Invoke action disc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DiscPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action disc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DiscPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDiscPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a discRequestBuilder - */ - public withUrl(rawUrl: string) : DiscRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DiscRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dmax/index.ts b/src/drives/item/items/item/workbook/functions/dmax/index.ts index 89e12ae0cd4..590e06ab904 100644 --- a/src/drives/item/items/item/workbook/functions/dmax/index.ts +++ b/src/drives/item/items/item/workbook/functions/dmax/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDmaxPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDmaxPostRequestBody(writer: SerializationWriter, dmaxPo writer.writeObjectValue("field", dmaxPostRequestBody.field, serializeJson); writer.writeAdditionalData(dmaxPostRequestBody.additionalData); } -/** - * Provides operations to call the dmax method. - */ -export class DmaxRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DmaxRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dmax"); - }; - /** - * Invoke action dmax - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DmaxPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dmax - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DmaxPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDmaxPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dmaxRequestBuilder - */ - public withUrl(rawUrl: string) : DmaxRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DmaxRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dmin/index.ts b/src/drives/item/items/item/workbook/functions/dmin/index.ts index 6fdfd17fc94..e1051fe50be 100644 --- a/src/drives/item/items/item/workbook/functions/dmin/index.ts +++ b/src/drives/item/items/item/workbook/functions/dmin/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDminPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDminPostRequestBody(writer: SerializationWriter, dminPo writer.writeObjectValue("field", dminPostRequestBody.field, serializeJson); writer.writeAdditionalData(dminPostRequestBody.additionalData); } -/** - * Provides operations to call the dmin method. - */ -export class DminRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DminRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dmin"); - }; - /** - * Invoke action dmin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DminPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dmin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DminPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDminPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dminRequestBuilder - */ - public withUrl(rawUrl: string) : DminRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DminRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dollar/index.ts b/src/drives/item/items/item/workbook/functions/dollar/index.ts index 93eeadc16c3..3c5a9c98376 100644 --- a/src/drives/item/items/item/workbook/functions/dollar/index.ts +++ b/src/drives/item/items/item/workbook/functions/dollar/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDollarPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeDollarPostRequestBody(writer: SerializationWriter, doll writer.writeObjectValue("number", dollarPostRequestBody.number, serializeJson); writer.writeAdditionalData(dollarPostRequestBody.additionalData); } -/** - * Provides operations to call the dollar method. - */ -export class DollarRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DollarRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollar"); - }; - /** - * Invoke action dollar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DollarPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dollar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DollarPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDollarPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dollarRequestBuilder - */ - public withUrl(rawUrl: string) : DollarRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DollarRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dollarDe/index.ts b/src/drives/item/items/item/workbook/functions/dollarDe/index.ts index 4a1291510d2..6f86e8a7b61 100644 --- a/src/drives/item/items/item/workbook/functions/dollarDe/index.ts +++ b/src/drives/item/items/item/workbook/functions/dollarDe/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDollarDePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeDollarDePostRequestBody(writer: SerializationWriter, do writer.writeObjectValue("fractionalDollar", dollarDePostRequestBody.fractionalDollar, serializeJson); writer.writeAdditionalData(dollarDePostRequestBody.additionalData); } -/** - * Provides operations to call the dollarDe method. - */ -export class DollarDeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DollarDeRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollarDe"); - }; - /** - * Invoke action dollarDe - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DollarDePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dollarDe - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DollarDePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDollarDePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dollarDeRequestBuilder - */ - public withUrl(rawUrl: string) : DollarDeRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DollarDeRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dollarFr/index.ts b/src/drives/item/items/item/workbook/functions/dollarFr/index.ts index 0e096849e73..5e2adff648e 100644 --- a/src/drives/item/items/item/workbook/functions/dollarFr/index.ts +++ b/src/drives/item/items/item/workbook/functions/dollarFr/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDollarFrPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeDollarFrPostRequestBody(writer: SerializationWriter, do writer.writeObjectValue("fraction", dollarFrPostRequestBody.fraction, serializeJson); writer.writeAdditionalData(dollarFrPostRequestBody.additionalData); } -/** - * Provides operations to call the dollarFr method. - */ -export class DollarFrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DollarFrRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollarFr"); - }; - /** - * Invoke action dollarFr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DollarFrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dollarFr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DollarFrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDollarFrPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dollarFrRequestBuilder - */ - public withUrl(rawUrl: string) : DollarFrRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DollarFrRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dproduct/index.ts b/src/drives/item/items/item/workbook/functions/dproduct/index.ts index 85e2f70e3bc..37dab7448cb 100644 --- a/src/drives/item/items/item/workbook/functions/dproduct/index.ts +++ b/src/drives/item/items/item/workbook/functions/dproduct/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDproductPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDproductPostRequestBody(writer: SerializationWriter, dp writer.writeObjectValue("field", dproductPostRequestBody.field, serializeJson); writer.writeAdditionalData(dproductPostRequestBody.additionalData); } -/** - * Provides operations to call the dproduct method. - */ -export class DproductRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DproductRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dproduct"); - }; - /** - * Invoke action dproduct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DproductPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dproduct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DproductPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDproductPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dproductRequestBuilder - */ - public withUrl(rawUrl: string) : DproductRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DproductRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dstDev/dstDevPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/dstDev/dstDevPostRequestBody.ts deleted file mode 100644 index c3b5390efcd..00000000000 --- a/src/drives/item/items/item/workbook/functions/dstDev/dstDevPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDstDevPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDstDevPostRequestBody; -} -export function deserializeIntoDstDevPostRequestBody(dstDevPostRequestBody: DstDevPostRequestBody | undefined = {} as DstDevPostRequestBody) : Record void> { - return { - "criteria": n => { dstDevPostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "database": n => { dstDevPostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "field": n => { dstDevPostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface DstDevPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: Json; - /** - * The database property - */ - database?: Json; - /** - * The field property - */ - field?: Json; -} -export function serializeDstDevPostRequestBody(writer: SerializationWriter, dstDevPostRequestBody: DstDevPostRequestBody | undefined = {} as DstDevPostRequestBody) : void { - writer.writeObjectValue("criteria", dstDevPostRequestBody.criteria, serializeJson); - writer.writeObjectValue("database", dstDevPostRequestBody.database, serializeJson); - writer.writeObjectValue("field", dstDevPostRequestBody.field, serializeJson); - writer.writeAdditionalData(dstDevPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dstDev/index.ts b/src/drives/item/items/item/workbook/functions/dstDev/index.ts index 77b204619a0..1f8571acd1b 100644 --- a/src/drives/item/items/item/workbook/functions/dstDev/index.ts +++ b/src/drives/item/items/item/workbook/functions/dstDev/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDstDevPostRequestBody, serializeDstDevPostRequestBody, type DstDevPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDstDevPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDstDevPostRequestBody; +} +export function deserializeIntoDstDevPostRequestBody(dstDevPostRequestBody: DstDevPostRequestBody | undefined = {} as DstDevPostRequestBody) : Record void> { + return { + "criteria": n => { dstDevPostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "database": n => { dstDevPostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "field": n => { dstDevPostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface DstDevPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: Json; + /** + * The database property + */ + database?: Json; + /** + * The field property + */ + field?: Json; +} +export function serializeDstDevPostRequestBody(writer: SerializationWriter, dstDevPostRequestBody: DstDevPostRequestBody | undefined = {} as DstDevPostRequestBody) : void { + writer.writeObjectValue("criteria", dstDevPostRequestBody.criteria, serializeJson); + writer.writeObjectValue("database", dstDevPostRequestBody.database, serializeJson); + writer.writeObjectValue("field", dstDevPostRequestBody.field, serializeJson); + writer.writeAdditionalData(dstDevPostRequestBody.additionalData); +} /** * Provides operations to call the dstDev method. */ diff --git a/src/drives/item/items/item/workbook/functions/dstDevP/index.ts b/src/drives/item/items/item/workbook/functions/dstDevP/index.ts index 658f8115749..ca9d19f1080 100644 --- a/src/drives/item/items/item/workbook/functions/dstDevP/index.ts +++ b/src/drives/item/items/item/workbook/functions/dstDevP/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDstDevPPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDstDevPPostRequestBody(writer: SerializationWriter, dst writer.writeObjectValue("field", dstDevPPostRequestBody.field, serializeJson); writer.writeAdditionalData(dstDevPPostRequestBody.additionalData); } -/** - * Provides operations to call the dstDevP method. - */ -export class DstDevPRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DstDevPRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dstDevP"); - }; - /** - * Invoke action dstDevP - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DstDevPPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dstDevP - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DstDevPPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDstDevPPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dstDevPRequestBuilder - */ - public withUrl(rawUrl: string) : DstDevPRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DstDevPRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dsum/index.ts b/src/drives/item/items/item/workbook/functions/dsum/index.ts index df340197709..c663393e577 100644 --- a/src/drives/item/items/item/workbook/functions/dsum/index.ts +++ b/src/drives/item/items/item/workbook/functions/dsum/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDsumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDsumPostRequestBody(writer: SerializationWriter, dsumPo writer.writeObjectValue("field", dsumPostRequestBody.field, serializeJson); writer.writeAdditionalData(dsumPostRequestBody.additionalData); } -/** - * Provides operations to call the dsum method. - */ -export class DsumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DsumRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dsum"); - }; - /** - * Invoke action dsum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DsumPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dsum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DsumPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDsumPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dsumRequestBuilder - */ - public withUrl(rawUrl: string) : DsumRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DsumRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/duration/index.ts b/src/drives/item/items/item/workbook/functions/duration/index.ts index 00dcc07c487..cfdc450ea4c 100644 --- a/src/drives/item/items/item/workbook/functions/duration/index.ts +++ b/src/drives/item/items/item/workbook/functions/duration/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDurationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -60,57 +57,5 @@ export function serializeDurationPostRequestBody(writer: SerializationWriter, du writer.writeObjectValue("yld", durationPostRequestBody.yld, serializeJson); writer.writeAdditionalData(durationPostRequestBody.additionalData); } -/** - * Provides operations to call the duration method. - */ -export class DurationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DurationRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/duration"); - }; - /** - * Invoke action duration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DurationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action duration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DurationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDurationPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a durationRequestBuilder - */ - public withUrl(rawUrl: string) : DurationRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DurationRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dvar/dvarPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/dvar/dvarPostRequestBody.ts deleted file mode 100644 index b0631917929..00000000000 --- a/src/drives/item/items/item/workbook/functions/dvar/dvarPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDvarPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDvarPostRequestBody; -} -export function deserializeIntoDvarPostRequestBody(dvarPostRequestBody: DvarPostRequestBody | undefined = {} as DvarPostRequestBody) : Record void> { - return { - "criteria": n => { dvarPostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "database": n => { dvarPostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "field": n => { dvarPostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface DvarPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: Json; - /** - * The database property - */ - database?: Json; - /** - * The field property - */ - field?: Json; -} -export function serializeDvarPostRequestBody(writer: SerializationWriter, dvarPostRequestBody: DvarPostRequestBody | undefined = {} as DvarPostRequestBody) : void { - writer.writeObjectValue("criteria", dvarPostRequestBody.criteria, serializeJson); - writer.writeObjectValue("database", dvarPostRequestBody.database, serializeJson); - writer.writeObjectValue("field", dvarPostRequestBody.field, serializeJson); - writer.writeAdditionalData(dvarPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/dvar/index.ts b/src/drives/item/items/item/workbook/functions/dvar/index.ts index 77df60ded67..a2933c795bc 100644 --- a/src/drives/item/items/item/workbook/functions/dvar/index.ts +++ b/src/drives/item/items/item/workbook/functions/dvar/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoDvarPostRequestBody, serializeDvarPostRequestBody, type DvarPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDvarPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDvarPostRequestBody; +} +export function deserializeIntoDvarPostRequestBody(dvarPostRequestBody: DvarPostRequestBody | undefined = {} as DvarPostRequestBody) : Record void> { + return { + "criteria": n => { dvarPostRequestBody.criteria = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "database": n => { dvarPostRequestBody.database = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "field": n => { dvarPostRequestBody.field = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface DvarPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: Json; + /** + * The database property + */ + database?: Json; + /** + * The field property + */ + field?: Json; +} +export function serializeDvarPostRequestBody(writer: SerializationWriter, dvarPostRequestBody: DvarPostRequestBody | undefined = {} as DvarPostRequestBody) : void { + writer.writeObjectValue("criteria", dvarPostRequestBody.criteria, serializeJson); + writer.writeObjectValue("database", dvarPostRequestBody.database, serializeJson); + writer.writeObjectValue("field", dvarPostRequestBody.field, serializeJson); + writer.writeAdditionalData(dvarPostRequestBody.additionalData); +} /** * Provides operations to call the dvar method. */ diff --git a/src/drives/item/items/item/workbook/functions/dvarP/index.ts b/src/drives/item/items/item/workbook/functions/dvarP/index.ts index 587ad27f125..f1bf8b987a1 100644 --- a/src/drives/item/items/item/workbook/functions/dvarP/index.ts +++ b/src/drives/item/items/item/workbook/functions/dvarP/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDvarPPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeDvarPPostRequestBody(writer: SerializationWriter, dvarP writer.writeObjectValue("field", dvarPPostRequestBody.field, serializeJson); writer.writeAdditionalData(dvarPPostRequestBody.additionalData); } -/** - * Provides operations to call the dvarP method. - */ -export class DvarPRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DvarPRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dvarP"); - }; - /** - * Invoke action dvarP - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: DvarPPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action dvarP - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DvarPPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDvarPPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a dvarPRequestBuilder - */ - public withUrl(rawUrl: string) : DvarPRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DvarPRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ecma_Ceiling/ecma_CeilingPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/ecma_Ceiling/ecma_CeilingPostRequestBody.ts deleted file mode 100644 index 313f9eaf136..00000000000 --- a/src/drives/item/items/item/workbook/functions/ecma_Ceiling/ecma_CeilingPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createEcma_CeilingPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoEcma_CeilingPostRequestBody; -} -export function deserializeIntoEcma_CeilingPostRequestBody(ecma_CeilingPostRequestBody: Ecma_CeilingPostRequestBody | undefined = {} as Ecma_CeilingPostRequestBody) : Record void> { - return { - "number": n => { ecma_CeilingPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "significance": n => { ecma_CeilingPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Ecma_CeilingPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The significance property - */ - significance?: Json; -} -export function serializeEcma_CeilingPostRequestBody(writer: SerializationWriter, ecma_CeilingPostRequestBody: Ecma_CeilingPostRequestBody | undefined = {} as Ecma_CeilingPostRequestBody) : void { - writer.writeObjectValue("number", ecma_CeilingPostRequestBody.number, serializeJson); - writer.writeObjectValue("significance", ecma_CeilingPostRequestBody.significance, serializeJson); - writer.writeAdditionalData(ecma_CeilingPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ecma_Ceiling/index.ts b/src/drives/item/items/item/workbook/functions/ecma_Ceiling/index.ts index b7fe9c3a09f..c1cc22d529b 100644 --- a/src/drives/item/items/item/workbook/functions/ecma_Ceiling/index.ts +++ b/src/drives/item/items/item/workbook/functions/ecma_Ceiling/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoEcma_CeilingPostRequestBody, serializeEcma_CeilingPostRequestBody, type Ecma_CeilingPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createEcma_CeilingPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoEcma_CeilingPostRequestBody; +} +export function deserializeIntoEcma_CeilingPostRequestBody(ecma_CeilingPostRequestBody: Ecma_CeilingPostRequestBody | undefined = {} as Ecma_CeilingPostRequestBody) : Record void> { + return { + "number": n => { ecma_CeilingPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "significance": n => { ecma_CeilingPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Ecma_CeilingPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The significance property + */ + significance?: Json; +} +export function serializeEcma_CeilingPostRequestBody(writer: SerializationWriter, ecma_CeilingPostRequestBody: Ecma_CeilingPostRequestBody | undefined = {} as Ecma_CeilingPostRequestBody) : void { + writer.writeObjectValue("number", ecma_CeilingPostRequestBody.number, serializeJson); + writer.writeObjectValue("significance", ecma_CeilingPostRequestBody.significance, serializeJson); + writer.writeAdditionalData(ecma_CeilingPostRequestBody.additionalData); +} /** * Provides operations to call the ecma_Ceiling method. */ diff --git a/src/drives/item/items/item/workbook/functions/edate/index.ts b/src/drives/item/items/item/workbook/functions/edate/index.ts index 2ea222679d7..83d569f140e 100644 --- a/src/drives/item/items/item/workbook/functions/edate/index.ts +++ b/src/drives/item/items/item/workbook/functions/edate/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createEdatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeEdatePostRequestBody(writer: SerializationWriter, edate writer.writeObjectValue("startDate", edatePostRequestBody.startDate, serializeJson); writer.writeAdditionalData(edatePostRequestBody.additionalData); } -/** - * Provides operations to call the edate method. - */ -export class EdateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new EdateRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/edate"); - }; - /** - * Invoke action edate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: EdatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action edate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: EdatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeEdatePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a edateRequestBuilder - */ - public withUrl(rawUrl: string) : EdateRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new EdateRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/effect/effectPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/effect/effectPostRequestBody.ts deleted file mode 100644 index 015f448e85f..00000000000 --- a/src/drives/item/items/item/workbook/functions/effect/effectPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createEffectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoEffectPostRequestBody; -} -export function deserializeIntoEffectPostRequestBody(effectPostRequestBody: EffectPostRequestBody | undefined = {} as EffectPostRequestBody) : Record void> { - return { - "nominalRate": n => { effectPostRequestBody.nominalRate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "npery": n => { effectPostRequestBody.npery = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface EffectPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The nominalRate property - */ - nominalRate?: Json; - /** - * The npery property - */ - npery?: Json; -} -export function serializeEffectPostRequestBody(writer: SerializationWriter, effectPostRequestBody: EffectPostRequestBody | undefined = {} as EffectPostRequestBody) : void { - writer.writeObjectValue("nominalRate", effectPostRequestBody.nominalRate, serializeJson); - writer.writeObjectValue("npery", effectPostRequestBody.npery, serializeJson); - writer.writeAdditionalData(effectPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/effect/index.ts b/src/drives/item/items/item/workbook/functions/effect/index.ts index a4b36483df4..b9df4ee56fa 100644 --- a/src/drives/item/items/item/workbook/functions/effect/index.ts +++ b/src/drives/item/items/item/workbook/functions/effect/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoEffectPostRequestBody, serializeEffectPostRequestBody, type EffectPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createEffectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoEffectPostRequestBody; +} +export function deserializeIntoEffectPostRequestBody(effectPostRequestBody: EffectPostRequestBody | undefined = {} as EffectPostRequestBody) : Record void> { + return { + "nominalRate": n => { effectPostRequestBody.nominalRate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "npery": n => { effectPostRequestBody.npery = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface EffectPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The nominalRate property + */ + nominalRate?: Json; + /** + * The npery property + */ + npery?: Json; +} +export function serializeEffectPostRequestBody(writer: SerializationWriter, effectPostRequestBody: EffectPostRequestBody | undefined = {} as EffectPostRequestBody) : void { + writer.writeObjectValue("nominalRate", effectPostRequestBody.nominalRate, serializeJson); + writer.writeObjectValue("npery", effectPostRequestBody.npery, serializeJson); + writer.writeAdditionalData(effectPostRequestBody.additionalData); +} /** * Provides operations to call the effect method. */ diff --git a/src/drives/item/items/item/workbook/functions/eoMonth/index.ts b/src/drives/item/items/item/workbook/functions/eoMonth/index.ts index bf3182f9c40..adaf25369b3 100644 --- a/src/drives/item/items/item/workbook/functions/eoMonth/index.ts +++ b/src/drives/item/items/item/workbook/functions/eoMonth/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createEoMonthPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeEoMonthPostRequestBody(writer: SerializationWriter, eoM writer.writeObjectValue("startDate", eoMonthPostRequestBody.startDate, serializeJson); writer.writeAdditionalData(eoMonthPostRequestBody.additionalData); } -/** - * Provides operations to call the eoMonth method. - */ -export class EoMonthRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new EoMonthRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/eoMonth"); - }; - /** - * Invoke action eoMonth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: EoMonthPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action eoMonth - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: EoMonthPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeEoMonthPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a eoMonthRequestBuilder - */ - public withUrl(rawUrl: string) : EoMonthRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new EoMonthRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/erf/erfPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/erf/erfPostRequestBody.ts deleted file mode 100644 index 31250c40bcf..00000000000 --- a/src/drives/item/items/item/workbook/functions/erf/erfPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createErfPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoErfPostRequestBody; -} -export function deserializeIntoErfPostRequestBody(erfPostRequestBody: ErfPostRequestBody | undefined = {} as ErfPostRequestBody) : Record void> { - return { - "lowerLimit": n => { erfPostRequestBody.lowerLimit = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "upperLimit": n => { erfPostRequestBody.upperLimit = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ErfPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The lowerLimit property - */ - lowerLimit?: Json; - /** - * The upperLimit property - */ - upperLimit?: Json; -} -export function serializeErfPostRequestBody(writer: SerializationWriter, erfPostRequestBody: ErfPostRequestBody | undefined = {} as ErfPostRequestBody) : void { - writer.writeObjectValue("lowerLimit", erfPostRequestBody.lowerLimit, serializeJson); - writer.writeObjectValue("upperLimit", erfPostRequestBody.upperLimit, serializeJson); - writer.writeAdditionalData(erfPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/erf/index.ts b/src/drives/item/items/item/workbook/functions/erf/index.ts index a8809559eb6..1a16bd656ab 100644 --- a/src/drives/item/items/item/workbook/functions/erf/index.ts +++ b/src/drives/item/items/item/workbook/functions/erf/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoErfPostRequestBody, serializeErfPostRequestBody, type ErfPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createErfPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoErfPostRequestBody; +} +export function deserializeIntoErfPostRequestBody(erfPostRequestBody: ErfPostRequestBody | undefined = {} as ErfPostRequestBody) : Record void> { + return { + "lowerLimit": n => { erfPostRequestBody.lowerLimit = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "upperLimit": n => { erfPostRequestBody.upperLimit = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ErfPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The lowerLimit property + */ + lowerLimit?: Json; + /** + * The upperLimit property + */ + upperLimit?: Json; +} +export function serializeErfPostRequestBody(writer: SerializationWriter, erfPostRequestBody: ErfPostRequestBody | undefined = {} as ErfPostRequestBody) : void { + writer.writeObjectValue("lowerLimit", erfPostRequestBody.lowerLimit, serializeJson); + writer.writeObjectValue("upperLimit", erfPostRequestBody.upperLimit, serializeJson); + writer.writeAdditionalData(erfPostRequestBody.additionalData); +} /** * Provides operations to call the erf method. */ diff --git a/src/drives/item/items/item/workbook/functions/erfC/erfCPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/erfC/erfCPostRequestBody.ts deleted file mode 100644 index 3236f05b914..00000000000 --- a/src/drives/item/items/item/workbook/functions/erfC/erfCPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createErfCPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoErfCPostRequestBody; -} -export function deserializeIntoErfCPostRequestBody(erfCPostRequestBody: ErfCPostRequestBody | undefined = {} as ErfCPostRequestBody) : Record void> { - return { - "x": n => { erfCPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ErfCPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The x property - */ - x?: Json; -} -export function serializeErfCPostRequestBody(writer: SerializationWriter, erfCPostRequestBody: ErfCPostRequestBody | undefined = {} as ErfCPostRequestBody) : void { - writer.writeObjectValue("x", erfCPostRequestBody.x, serializeJson); - writer.writeAdditionalData(erfCPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/erfC/index.ts b/src/drives/item/items/item/workbook/functions/erfC/index.ts index 22bce2601c8..989afe91733 100644 --- a/src/drives/item/items/item/workbook/functions/erfC/index.ts +++ b/src/drives/item/items/item/workbook/functions/erfC/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoErfCPostRequestBody, serializeErfCPostRequestBody, type ErfCPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createErfCPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoErfCPostRequestBody; +} +export function deserializeIntoErfCPostRequestBody(erfCPostRequestBody: ErfCPostRequestBody | undefined = {} as ErfCPostRequestBody) : Record void> { + return { + "x": n => { erfCPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ErfCPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The x property + */ + x?: Json; +} +export function serializeErfCPostRequestBody(writer: SerializationWriter, erfCPostRequestBody: ErfCPostRequestBody | undefined = {} as ErfCPostRequestBody) : void { + writer.writeObjectValue("x", erfCPostRequestBody.x, serializeJson); + writer.writeAdditionalData(erfCPostRequestBody.additionalData); +} /** * Provides operations to call the erfC method. */ diff --git a/src/drives/item/items/item/workbook/functions/erfC_Precise/index.ts b/src/drives/item/items/item/workbook/functions/erfC_Precise/index.ts index 49ea36a9123..4257fabd88b 100644 --- a/src/drives/item/items/item/workbook/functions/erfC_Precise/index.ts +++ b/src/drives/item/items/item/workbook/functions/erfC_Precise/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createErfC_PrecisePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeErfC_PrecisePostRequestBody(writer: SerializationWriter writer.writeObjectValue("X", erfC_PrecisePostRequestBody.x, serializeJson); writer.writeAdditionalData(erfC_PrecisePostRequestBody.additionalData); } -/** - * Provides operations to call the erfC_Precise method. - */ -export class ErfC_PreciseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ErfC_PreciseRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erfC_Precise"); - }; - /** - * Invoke action erfC_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ErfC_PrecisePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action erfC_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ErfC_PrecisePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeErfC_PrecisePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a erfC_PreciseRequestBuilder - */ - public withUrl(rawUrl: string) : ErfC_PreciseRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ErfC_PreciseRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/erf_Precise/index.ts b/src/drives/item/items/item/workbook/functions/erf_Precise/index.ts index 578f110677a..ae2c4ab25b1 100644 --- a/src/drives/item/items/item/workbook/functions/erf_Precise/index.ts +++ b/src/drives/item/items/item/workbook/functions/erf_Precise/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createErf_PrecisePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeErf_PrecisePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("X", erf_PrecisePostRequestBody.x, serializeJson); writer.writeAdditionalData(erf_PrecisePostRequestBody.additionalData); } -/** - * Provides operations to call the erf_Precise method. - */ -export class Erf_PreciseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Erf_PreciseRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erf_Precise"); - }; - /** - * Invoke action erf_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Erf_PrecisePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action erf_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Erf_PrecisePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeErf_PrecisePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a erf_PreciseRequestBuilder - */ - public withUrl(rawUrl: string) : Erf_PreciseRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Erf_PreciseRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/error_Type/index.ts b/src/drives/item/items/item/workbook/functions/error_Type/index.ts index be25823361c..f41ce0573a7 100644 --- a/src/drives/item/items/item/workbook/functions/error_Type/index.ts +++ b/src/drives/item/items/item/workbook/functions/error_Type/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createError_TypePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeError_TypePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("errorVal", error_TypePostRequestBody.errorVal, serializeJson); writer.writeAdditionalData(error_TypePostRequestBody.additionalData); } -/** - * Provides operations to call the error_Type method. - */ -export class Error_TypeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Error_TypeRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/error_Type"); - }; - /** - * Invoke action error_Type - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Error_TypePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action error_Type - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Error_TypePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeError_TypePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a error_TypeRequestBuilder - */ - public withUrl(rawUrl: string) : Error_TypeRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Error_TypeRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/even/index.ts b/src/drives/item/items/item/workbook/functions/even/index.ts index d5f61943443..3aee88cbabf 100644 --- a/src/drives/item/items/item/workbook/functions/even/index.ts +++ b/src/drives/item/items/item/workbook/functions/even/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createEvenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeEvenPostRequestBody(writer: SerializationWriter, evenPo writer.writeObjectValue("number", evenPostRequestBody.number, serializeJson); writer.writeAdditionalData(evenPostRequestBody.additionalData); } -/** - * Provides operations to call the even method. - */ -export class EvenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new EvenRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/even"); - }; - /** - * Invoke action even - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: EvenPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action even - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: EvenPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeEvenPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a evenRequestBuilder - */ - public withUrl(rawUrl: string) : EvenRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new EvenRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/exact/exactPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/exact/exactPostRequestBody.ts deleted file mode 100644 index f6f9fbe656f..00000000000 --- a/src/drives/item/items/item/workbook/functions/exact/exactPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createExactPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoExactPostRequestBody; -} -export function deserializeIntoExactPostRequestBody(exactPostRequestBody: ExactPostRequestBody | undefined = {} as ExactPostRequestBody) : Record void> { - return { - "text1": n => { exactPostRequestBody.text1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "text2": n => { exactPostRequestBody.text2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ExactPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The text1 property - */ - text1?: Json; - /** - * The text2 property - */ - text2?: Json; -} -export function serializeExactPostRequestBody(writer: SerializationWriter, exactPostRequestBody: ExactPostRequestBody | undefined = {} as ExactPostRequestBody) : void { - writer.writeObjectValue("text1", exactPostRequestBody.text1, serializeJson); - writer.writeObjectValue("text2", exactPostRequestBody.text2, serializeJson); - writer.writeAdditionalData(exactPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/exact/index.ts b/src/drives/item/items/item/workbook/functions/exact/index.ts index e4791891bb6..5c4fefcb53b 100644 --- a/src/drives/item/items/item/workbook/functions/exact/index.ts +++ b/src/drives/item/items/item/workbook/functions/exact/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoExactPostRequestBody, serializeExactPostRequestBody, type ExactPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createExactPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoExactPostRequestBody; +} +export function deserializeIntoExactPostRequestBody(exactPostRequestBody: ExactPostRequestBody | undefined = {} as ExactPostRequestBody) : Record void> { + return { + "text1": n => { exactPostRequestBody.text1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "text2": n => { exactPostRequestBody.text2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ExactPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The text1 property + */ + text1?: Json; + /** + * The text2 property + */ + text2?: Json; +} +export function serializeExactPostRequestBody(writer: SerializationWriter, exactPostRequestBody: ExactPostRequestBody | undefined = {} as ExactPostRequestBody) : void { + writer.writeObjectValue("text1", exactPostRequestBody.text1, serializeJson); + writer.writeObjectValue("text2", exactPostRequestBody.text2, serializeJson); + writer.writeAdditionalData(exactPostRequestBody.additionalData); +} /** * Provides operations to call the exact method. */ diff --git a/src/drives/item/items/item/workbook/functions/exp/expPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/exp/expPostRequestBody.ts deleted file mode 100644 index 7ca01c4db5a..00000000000 --- a/src/drives/item/items/item/workbook/functions/exp/expPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createExpPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoExpPostRequestBody; -} -export function deserializeIntoExpPostRequestBody(expPostRequestBody: ExpPostRequestBody | undefined = {} as ExpPostRequestBody) : Record void> { - return { - "number": n => { expPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ExpPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeExpPostRequestBody(writer: SerializationWriter, expPostRequestBody: ExpPostRequestBody | undefined = {} as ExpPostRequestBody) : void { - writer.writeObjectValue("number", expPostRequestBody.number, serializeJson); - writer.writeAdditionalData(expPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/exp/index.ts b/src/drives/item/items/item/workbook/functions/exp/index.ts index 7726cd77b10..8ffc412af2b 100644 --- a/src/drives/item/items/item/workbook/functions/exp/index.ts +++ b/src/drives/item/items/item/workbook/functions/exp/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoExpPostRequestBody, serializeExpPostRequestBody, type ExpPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createExpPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoExpPostRequestBody; +} +export function deserializeIntoExpPostRequestBody(expPostRequestBody: ExpPostRequestBody | undefined = {} as ExpPostRequestBody) : Record void> { + return { + "number": n => { expPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ExpPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeExpPostRequestBody(writer: SerializationWriter, expPostRequestBody: ExpPostRequestBody | undefined = {} as ExpPostRequestBody) : void { + writer.writeObjectValue("number", expPostRequestBody.number, serializeJson); + writer.writeAdditionalData(expPostRequestBody.additionalData); +} /** * Provides operations to call the exp method. */ diff --git a/src/drives/item/items/item/workbook/functions/expon_Dist/expon_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/expon_Dist/expon_DistPostRequestBody.ts deleted file mode 100644 index 2fbdba9b9eb..00000000000 --- a/src/drives/item/items/item/workbook/functions/expon_Dist/expon_DistPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createExpon_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoExpon_DistPostRequestBody; -} -export function deserializeIntoExpon_DistPostRequestBody(expon_DistPostRequestBody: Expon_DistPostRequestBody | undefined = {} as Expon_DistPostRequestBody) : Record void> { - return { - "cumulative": n => { expon_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "lambda": n => { expon_DistPostRequestBody.lambda = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { expon_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Expon_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The lambda property - */ - lambda?: Json; - /** - * The x property - */ - x?: Json; -} -export function serializeExpon_DistPostRequestBody(writer: SerializationWriter, expon_DistPostRequestBody: Expon_DistPostRequestBody | undefined = {} as Expon_DistPostRequestBody) : void { - writer.writeObjectValue("cumulative", expon_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("lambda", expon_DistPostRequestBody.lambda, serializeJson); - writer.writeObjectValue("x", expon_DistPostRequestBody.x, serializeJson); - writer.writeAdditionalData(expon_DistPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/expon_Dist/index.ts b/src/drives/item/items/item/workbook/functions/expon_Dist/index.ts index 51887ab63b0..5e4c067ece5 100644 --- a/src/drives/item/items/item/workbook/functions/expon_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/expon_Dist/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoExpon_DistPostRequestBody, serializeExpon_DistPostRequestBody, type Expon_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createExpon_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoExpon_DistPostRequestBody; +} +export function deserializeIntoExpon_DistPostRequestBody(expon_DistPostRequestBody: Expon_DistPostRequestBody | undefined = {} as Expon_DistPostRequestBody) : Record void> { + return { + "cumulative": n => { expon_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "lambda": n => { expon_DistPostRequestBody.lambda = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { expon_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Expon_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The lambda property + */ + lambda?: Json; + /** + * The x property + */ + x?: Json; +} +export function serializeExpon_DistPostRequestBody(writer: SerializationWriter, expon_DistPostRequestBody: Expon_DistPostRequestBody | undefined = {} as Expon_DistPostRequestBody) : void { + writer.writeObjectValue("cumulative", expon_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("lambda", expon_DistPostRequestBody.lambda, serializeJson); + writer.writeObjectValue("x", expon_DistPostRequestBody.x, serializeJson); + writer.writeAdditionalData(expon_DistPostRequestBody.additionalData); +} /** * Provides operations to call the expon_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/f_Dist/f_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/f_Dist/f_DistPostRequestBody.ts deleted file mode 100644 index f0706f21220..00000000000 --- a/src/drives/item/items/item/workbook/functions/f_Dist/f_DistPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createF_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoF_DistPostRequestBody; -} -export function deserializeIntoF_DistPostRequestBody(f_DistPostRequestBody: F_DistPostRequestBody | undefined = {} as F_DistPostRequestBody) : Record void> { - return { - "cumulative": n => { f_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "degFreedom1": n => { f_DistPostRequestBody.degFreedom1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "degFreedom2": n => { f_DistPostRequestBody.degFreedom2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { f_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface F_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The degFreedom1 property - */ - degFreedom1?: Json; - /** - * The degFreedom2 property - */ - degFreedom2?: Json; - /** - * The x property - */ - x?: Json; -} -export function serializeF_DistPostRequestBody(writer: SerializationWriter, f_DistPostRequestBody: F_DistPostRequestBody | undefined = {} as F_DistPostRequestBody) : void { - writer.writeObjectValue("cumulative", f_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("degFreedom1", f_DistPostRequestBody.degFreedom1, serializeJson); - writer.writeObjectValue("degFreedom2", f_DistPostRequestBody.degFreedom2, serializeJson); - writer.writeObjectValue("x", f_DistPostRequestBody.x, serializeJson); - writer.writeAdditionalData(f_DistPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/f_Dist/index.ts b/src/drives/item/items/item/workbook/functions/f_Dist/index.ts index 838250c0cef..e5adff0f87d 100644 --- a/src/drives/item/items/item/workbook/functions/f_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/f_Dist/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoF_DistPostRequestBody, serializeF_DistPostRequestBody, type F_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createF_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoF_DistPostRequestBody; +} +export function deserializeIntoF_DistPostRequestBody(f_DistPostRequestBody: F_DistPostRequestBody | undefined = {} as F_DistPostRequestBody) : Record void> { + return { + "cumulative": n => { f_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "degFreedom1": n => { f_DistPostRequestBody.degFreedom1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "degFreedom2": n => { f_DistPostRequestBody.degFreedom2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { f_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface F_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The degFreedom1 property + */ + degFreedom1?: Json; + /** + * The degFreedom2 property + */ + degFreedom2?: Json; + /** + * The x property + */ + x?: Json; +} +export function serializeF_DistPostRequestBody(writer: SerializationWriter, f_DistPostRequestBody: F_DistPostRequestBody | undefined = {} as F_DistPostRequestBody) : void { + writer.writeObjectValue("cumulative", f_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("degFreedom1", f_DistPostRequestBody.degFreedom1, serializeJson); + writer.writeObjectValue("degFreedom2", f_DistPostRequestBody.degFreedom2, serializeJson); + writer.writeObjectValue("x", f_DistPostRequestBody.x, serializeJson); + writer.writeAdditionalData(f_DistPostRequestBody.additionalData); +} /** * Provides operations to call the f_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/f_Dist_RT/f_Dist_RTPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/f_Dist_RT/f_Dist_RTPostRequestBody.ts deleted file mode 100644 index 4018544ec3e..00000000000 --- a/src/drives/item/items/item/workbook/functions/f_Dist_RT/f_Dist_RTPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createF_Dist_RTPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoF_Dist_RTPostRequestBody; -} -export function deserializeIntoF_Dist_RTPostRequestBody(f_Dist_RTPostRequestBody: F_Dist_RTPostRequestBody | undefined = {} as F_Dist_RTPostRequestBody) : Record void> { - return { - "degFreedom1": n => { f_Dist_RTPostRequestBody.degFreedom1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "degFreedom2": n => { f_Dist_RTPostRequestBody.degFreedom2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { f_Dist_RTPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface F_Dist_RTPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The degFreedom1 property - */ - degFreedom1?: Json; - /** - * The degFreedom2 property - */ - degFreedom2?: Json; - /** - * The x property - */ - x?: Json; -} -export function serializeF_Dist_RTPostRequestBody(writer: SerializationWriter, f_Dist_RTPostRequestBody: F_Dist_RTPostRequestBody | undefined = {} as F_Dist_RTPostRequestBody) : void { - writer.writeObjectValue("degFreedom1", f_Dist_RTPostRequestBody.degFreedom1, serializeJson); - writer.writeObjectValue("degFreedom2", f_Dist_RTPostRequestBody.degFreedom2, serializeJson); - writer.writeObjectValue("x", f_Dist_RTPostRequestBody.x, serializeJson); - writer.writeAdditionalData(f_Dist_RTPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/f_Dist_RT/index.ts b/src/drives/item/items/item/workbook/functions/f_Dist_RT/index.ts index cd624a59566..763ca61faf9 100644 --- a/src/drives/item/items/item/workbook/functions/f_Dist_RT/index.ts +++ b/src/drives/item/items/item/workbook/functions/f_Dist_RT/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoF_Dist_RTPostRequestBody, serializeF_Dist_RTPostRequestBody, type F_Dist_RTPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createF_Dist_RTPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoF_Dist_RTPostRequestBody; +} +export function deserializeIntoF_Dist_RTPostRequestBody(f_Dist_RTPostRequestBody: F_Dist_RTPostRequestBody | undefined = {} as F_Dist_RTPostRequestBody) : Record void> { + return { + "degFreedom1": n => { f_Dist_RTPostRequestBody.degFreedom1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "degFreedom2": n => { f_Dist_RTPostRequestBody.degFreedom2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { f_Dist_RTPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface F_Dist_RTPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The degFreedom1 property + */ + degFreedom1?: Json; + /** + * The degFreedom2 property + */ + degFreedom2?: Json; + /** + * The x property + */ + x?: Json; +} +export function serializeF_Dist_RTPostRequestBody(writer: SerializationWriter, f_Dist_RTPostRequestBody: F_Dist_RTPostRequestBody | undefined = {} as F_Dist_RTPostRequestBody) : void { + writer.writeObjectValue("degFreedom1", f_Dist_RTPostRequestBody.degFreedom1, serializeJson); + writer.writeObjectValue("degFreedom2", f_Dist_RTPostRequestBody.degFreedom2, serializeJson); + writer.writeObjectValue("x", f_Dist_RTPostRequestBody.x, serializeJson); + writer.writeAdditionalData(f_Dist_RTPostRequestBody.additionalData); +} /** * Provides operations to call the f_Dist_RT method. */ diff --git a/src/drives/item/items/item/workbook/functions/f_Inv/f_InvPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/f_Inv/f_InvPostRequestBody.ts deleted file mode 100644 index 9b288f2f2e3..00000000000 --- a/src/drives/item/items/item/workbook/functions/f_Inv/f_InvPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createF_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoF_InvPostRequestBody; -} -export function deserializeIntoF_InvPostRequestBody(f_InvPostRequestBody: F_InvPostRequestBody | undefined = {} as F_InvPostRequestBody) : Record void> { - return { - "degFreedom1": n => { f_InvPostRequestBody.degFreedom1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "degFreedom2": n => { f_InvPostRequestBody.degFreedom2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probability": n => { f_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface F_InvPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The degFreedom1 property - */ - degFreedom1?: Json; - /** - * The degFreedom2 property - */ - degFreedom2?: Json; - /** - * The probability property - */ - probability?: Json; -} -export function serializeF_InvPostRequestBody(writer: SerializationWriter, f_InvPostRequestBody: F_InvPostRequestBody | undefined = {} as F_InvPostRequestBody) : void { - writer.writeObjectValue("degFreedom1", f_InvPostRequestBody.degFreedom1, serializeJson); - writer.writeObjectValue("degFreedom2", f_InvPostRequestBody.degFreedom2, serializeJson); - writer.writeObjectValue("probability", f_InvPostRequestBody.probability, serializeJson); - writer.writeAdditionalData(f_InvPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/f_Inv/index.ts b/src/drives/item/items/item/workbook/functions/f_Inv/index.ts index c59c0482ae3..e7b22a6751d 100644 --- a/src/drives/item/items/item/workbook/functions/f_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/f_Inv/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoF_InvPostRequestBody, serializeF_InvPostRequestBody, type F_InvPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createF_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoF_InvPostRequestBody; +} +export function deserializeIntoF_InvPostRequestBody(f_InvPostRequestBody: F_InvPostRequestBody | undefined = {} as F_InvPostRequestBody) : Record void> { + return { + "degFreedom1": n => { f_InvPostRequestBody.degFreedom1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "degFreedom2": n => { f_InvPostRequestBody.degFreedom2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probability": n => { f_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface F_InvPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The degFreedom1 property + */ + degFreedom1?: Json; + /** + * The degFreedom2 property + */ + degFreedom2?: Json; + /** + * The probability property + */ + probability?: Json; +} +export function serializeF_InvPostRequestBody(writer: SerializationWriter, f_InvPostRequestBody: F_InvPostRequestBody | undefined = {} as F_InvPostRequestBody) : void { + writer.writeObjectValue("degFreedom1", f_InvPostRequestBody.degFreedom1, serializeJson); + writer.writeObjectValue("degFreedom2", f_InvPostRequestBody.degFreedom2, serializeJson); + writer.writeObjectValue("probability", f_InvPostRequestBody.probability, serializeJson); + writer.writeAdditionalData(f_InvPostRequestBody.additionalData); +} /** * Provides operations to call the f_Inv method. */ diff --git a/src/drives/item/items/item/workbook/functions/f_Inv_RT/f_Inv_RTPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/f_Inv_RT/f_Inv_RTPostRequestBody.ts deleted file mode 100644 index 36af91412de..00000000000 --- a/src/drives/item/items/item/workbook/functions/f_Inv_RT/f_Inv_RTPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createF_Inv_RTPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoF_Inv_RTPostRequestBody; -} -export function deserializeIntoF_Inv_RTPostRequestBody(f_Inv_RTPostRequestBody: F_Inv_RTPostRequestBody | undefined = {} as F_Inv_RTPostRequestBody) : Record void> { - return { - "degFreedom1": n => { f_Inv_RTPostRequestBody.degFreedom1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "degFreedom2": n => { f_Inv_RTPostRequestBody.degFreedom2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probability": n => { f_Inv_RTPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface F_Inv_RTPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The degFreedom1 property - */ - degFreedom1?: Json; - /** - * The degFreedom2 property - */ - degFreedom2?: Json; - /** - * The probability property - */ - probability?: Json; -} -export function serializeF_Inv_RTPostRequestBody(writer: SerializationWriter, f_Inv_RTPostRequestBody: F_Inv_RTPostRequestBody | undefined = {} as F_Inv_RTPostRequestBody) : void { - writer.writeObjectValue("degFreedom1", f_Inv_RTPostRequestBody.degFreedom1, serializeJson); - writer.writeObjectValue("degFreedom2", f_Inv_RTPostRequestBody.degFreedom2, serializeJson); - writer.writeObjectValue("probability", f_Inv_RTPostRequestBody.probability, serializeJson); - writer.writeAdditionalData(f_Inv_RTPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/f_Inv_RT/index.ts b/src/drives/item/items/item/workbook/functions/f_Inv_RT/index.ts index 7e1406a27d4..e356fedd9da 100644 --- a/src/drives/item/items/item/workbook/functions/f_Inv_RT/index.ts +++ b/src/drives/item/items/item/workbook/functions/f_Inv_RT/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoF_Inv_RTPostRequestBody, serializeF_Inv_RTPostRequestBody, type F_Inv_RTPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createF_Inv_RTPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoF_Inv_RTPostRequestBody; +} +export function deserializeIntoF_Inv_RTPostRequestBody(f_Inv_RTPostRequestBody: F_Inv_RTPostRequestBody | undefined = {} as F_Inv_RTPostRequestBody) : Record void> { + return { + "degFreedom1": n => { f_Inv_RTPostRequestBody.degFreedom1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "degFreedom2": n => { f_Inv_RTPostRequestBody.degFreedom2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probability": n => { f_Inv_RTPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface F_Inv_RTPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The degFreedom1 property + */ + degFreedom1?: Json; + /** + * The degFreedom2 property + */ + degFreedom2?: Json; + /** + * The probability property + */ + probability?: Json; +} +export function serializeF_Inv_RTPostRequestBody(writer: SerializationWriter, f_Inv_RTPostRequestBody: F_Inv_RTPostRequestBody | undefined = {} as F_Inv_RTPostRequestBody) : void { + writer.writeObjectValue("degFreedom1", f_Inv_RTPostRequestBody.degFreedom1, serializeJson); + writer.writeObjectValue("degFreedom2", f_Inv_RTPostRequestBody.degFreedom2, serializeJson); + writer.writeObjectValue("probability", f_Inv_RTPostRequestBody.probability, serializeJson); + writer.writeAdditionalData(f_Inv_RTPostRequestBody.additionalData); +} /** * Provides operations to call the f_Inv_RT method. */ diff --git a/src/drives/item/items/item/workbook/functions/fact/factPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/fact/factPostRequestBody.ts deleted file mode 100644 index 85abda0d783..00000000000 --- a/src/drives/item/items/item/workbook/functions/fact/factPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFactPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFactPostRequestBody; -} -export function deserializeIntoFactPostRequestBody(factPostRequestBody: FactPostRequestBody | undefined = {} as FactPostRequestBody) : Record void> { - return { - "number": n => { factPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface FactPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeFactPostRequestBody(writer: SerializationWriter, factPostRequestBody: FactPostRequestBody | undefined = {} as FactPostRequestBody) : void { - writer.writeObjectValue("number", factPostRequestBody.number, serializeJson); - writer.writeAdditionalData(factPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/fact/index.ts b/src/drives/item/items/item/workbook/functions/fact/index.ts index b33fd0bf3ce..d1fbb03d6dc 100644 --- a/src/drives/item/items/item/workbook/functions/fact/index.ts +++ b/src/drives/item/items/item/workbook/functions/fact/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoFactPostRequestBody, serializeFactPostRequestBody, type FactPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFactPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFactPostRequestBody; +} +export function deserializeIntoFactPostRequestBody(factPostRequestBody: FactPostRequestBody | undefined = {} as FactPostRequestBody) : Record void> { + return { + "number": n => { factPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface FactPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeFactPostRequestBody(writer: SerializationWriter, factPostRequestBody: FactPostRequestBody | undefined = {} as FactPostRequestBody) : void { + writer.writeObjectValue("number", factPostRequestBody.number, serializeJson); + writer.writeAdditionalData(factPostRequestBody.additionalData); +} /** * Provides operations to call the fact method. */ diff --git a/src/drives/item/items/item/workbook/functions/factDouble/index.ts b/src/drives/item/items/item/workbook/functions/factDouble/index.ts index 82f1ed7e91e..4911358a32b 100644 --- a/src/drives/item/items/item/workbook/functions/factDouble/index.ts +++ b/src/drives/item/items/item/workbook/functions/factDouble/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFactDoublePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeFactDoublePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("number", factDoublePostRequestBody.number, serializeJson); writer.writeAdditionalData(factDoublePostRequestBody.additionalData); } -/** - * Provides operations to call the factDouble method. - */ -export class FactDoubleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FactDoubleRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/factDouble"); - }; - /** - * Invoke action factDouble - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: FactDoublePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action factDouble - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: FactDoublePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeFactDoublePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a factDoubleRequestBuilder - */ - public withUrl(rawUrl: string) : FactDoubleRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FactDoubleRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/falseEscaped/index.ts b/src/drives/item/items/item/workbook/functions/falseEscaped/index.ts index 6acaf244897..c438d7d73b3 100644 --- a/src/drives/item/items/item/workbook/functions/falseEscaped/index.ts +++ b/src/drives/item/items/item/workbook/functions/falseEscaped/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookFunctionResult } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type WorkbookFunctionResult } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue } from '../../../../../../../models/workbookFunctionResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/functions/find/index.ts b/src/drives/item/items/item/workbook/functions/find/index.ts index 3f6ad0407f1..e1b0b46648a 100644 --- a/src/drives/item/items/item/workbook/functions/find/index.ts +++ b/src/drives/item/items/item/workbook/functions/find/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFindPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeFindPostRequestBody(writer: SerializationWriter, findPo writer.writeObjectValue("withinText", findPostRequestBody.withinText, serializeJson); writer.writeAdditionalData(findPostRequestBody.additionalData); } -/** - * Provides operations to call the find method. - */ -export class FindRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FindRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/find"); - }; - /** - * Invoke action find - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: FindPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action find - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: FindPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeFindPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a findRequestBuilder - */ - public withUrl(rawUrl: string) : FindRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FindRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/findB/findBPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/findB/findBPostRequestBody.ts deleted file mode 100644 index 0cec70456cf..00000000000 --- a/src/drives/item/items/item/workbook/functions/findB/findBPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFindBPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFindBPostRequestBody; -} -export function deserializeIntoFindBPostRequestBody(findBPostRequestBody: FindBPostRequestBody | undefined = {} as FindBPostRequestBody) : Record void> { - return { - "findText": n => { findBPostRequestBody.findText = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startNum": n => { findBPostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "withinText": n => { findBPostRequestBody.withinText = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface FindBPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The findText property - */ - findText?: Json; - /** - * The startNum property - */ - startNum?: Json; - /** - * The withinText property - */ - withinText?: Json; -} -export function serializeFindBPostRequestBody(writer: SerializationWriter, findBPostRequestBody: FindBPostRequestBody | undefined = {} as FindBPostRequestBody) : void { - writer.writeObjectValue("findText", findBPostRequestBody.findText, serializeJson); - writer.writeObjectValue("startNum", findBPostRequestBody.startNum, serializeJson); - writer.writeObjectValue("withinText", findBPostRequestBody.withinText, serializeJson); - writer.writeAdditionalData(findBPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/findB/index.ts b/src/drives/item/items/item/workbook/functions/findB/index.ts index 37d97995b11..0b6e32db0ae 100644 --- a/src/drives/item/items/item/workbook/functions/findB/index.ts +++ b/src/drives/item/items/item/workbook/functions/findB/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoFindBPostRequestBody, serializeFindBPostRequestBody, type FindBPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFindBPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFindBPostRequestBody; +} +export function deserializeIntoFindBPostRequestBody(findBPostRequestBody: FindBPostRequestBody | undefined = {} as FindBPostRequestBody) : Record void> { + return { + "findText": n => { findBPostRequestBody.findText = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startNum": n => { findBPostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "withinText": n => { findBPostRequestBody.withinText = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface FindBPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The findText property + */ + findText?: Json; + /** + * The startNum property + */ + startNum?: Json; + /** + * The withinText property + */ + withinText?: Json; +} +export function serializeFindBPostRequestBody(writer: SerializationWriter, findBPostRequestBody: FindBPostRequestBody | undefined = {} as FindBPostRequestBody) : void { + writer.writeObjectValue("findText", findBPostRequestBody.findText, serializeJson); + writer.writeObjectValue("startNum", findBPostRequestBody.startNum, serializeJson); + writer.writeObjectValue("withinText", findBPostRequestBody.withinText, serializeJson); + writer.writeAdditionalData(findBPostRequestBody.additionalData); +} /** * Provides operations to call the findB method. */ diff --git a/src/drives/item/items/item/workbook/functions/fisher/index.ts b/src/drives/item/items/item/workbook/functions/fisher/index.ts index b761b550ae3..30d500c4cf2 100644 --- a/src/drives/item/items/item/workbook/functions/fisher/index.ts +++ b/src/drives/item/items/item/workbook/functions/fisher/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFisherPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeFisherPostRequestBody(writer: SerializationWriter, fish writer.writeObjectValue("x", fisherPostRequestBody.x, serializeJson); writer.writeAdditionalData(fisherPostRequestBody.additionalData); } -/** - * Provides operations to call the fisher method. - */ -export class FisherRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FisherRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fisher"); - }; - /** - * Invoke action fisher - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: FisherPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action fisher - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: FisherPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeFisherPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a fisherRequestBuilder - */ - public withUrl(rawUrl: string) : FisherRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FisherRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/fisherInv/index.ts b/src/drives/item/items/item/workbook/functions/fisherInv/index.ts index 6a85da00d90..cdc64786251 100644 --- a/src/drives/item/items/item/workbook/functions/fisherInv/index.ts +++ b/src/drives/item/items/item/workbook/functions/fisherInv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFisherInvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeFisherInvPostRequestBody(writer: SerializationWriter, f writer.writeObjectValue("y", fisherInvPostRequestBody.y, serializeJson); writer.writeAdditionalData(fisherInvPostRequestBody.additionalData); } -/** - * Provides operations to call the fisherInv method. - */ -export class FisherInvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FisherInvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fisherInv"); - }; - /** - * Invoke action fisherInv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: FisherInvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action fisherInv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: FisherInvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeFisherInvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a fisherInvRequestBuilder - */ - public withUrl(rawUrl: string) : FisherInvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FisherInvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/fixed/index.ts b/src/drives/item/items/item/workbook/functions/fixed/index.ts index 71082761cec..40821c0f831 100644 --- a/src/drives/item/items/item/workbook/functions/fixed/index.ts +++ b/src/drives/item/items/item/workbook/functions/fixed/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFixedPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeFixedPostRequestBody(writer: SerializationWriter, fixed writer.writeObjectValue("number", fixedPostRequestBody.number, serializeJson); writer.writeAdditionalData(fixedPostRequestBody.additionalData); } -/** - * Provides operations to call the fixed method. - */ -export class FixedRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FixedRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fixed"); - }; - /** - * Invoke action fixed - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: FixedPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action fixed - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: FixedPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeFixedPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a fixedRequestBuilder - */ - public withUrl(rawUrl: string) : FixedRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FixedRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/floor_Math/index.ts b/src/drives/item/items/item/workbook/functions/floor_Math/index.ts index 9cb2ba3e9c7..4f78e0ea461 100644 --- a/src/drives/item/items/item/workbook/functions/floor_Math/index.ts +++ b/src/drives/item/items/item/workbook/functions/floor_Math/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFloor_MathPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeFloor_MathPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("significance", floor_MathPostRequestBody.significance, serializeJson); writer.writeAdditionalData(floor_MathPostRequestBody.additionalData); } -/** - * Provides operations to call the floor_Math method. - */ -export class Floor_MathRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Floor_MathRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/floor_Math"); - }; - /** - * Invoke action floor_Math - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Floor_MathPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action floor_Math - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Floor_MathPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeFloor_MathPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a floor_MathRequestBuilder - */ - public withUrl(rawUrl: string) : Floor_MathRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Floor_MathRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/floor_Precise/floor_PrecisePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/floor_Precise/floor_PrecisePostRequestBody.ts deleted file mode 100644 index c819d3a42ed..00000000000 --- a/src/drives/item/items/item/workbook/functions/floor_Precise/floor_PrecisePostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFloor_PrecisePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFloor_PrecisePostRequestBody; -} -export function deserializeIntoFloor_PrecisePostRequestBody(floor_PrecisePostRequestBody: Floor_PrecisePostRequestBody | undefined = {} as Floor_PrecisePostRequestBody) : Record void> { - return { - "number": n => { floor_PrecisePostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "significance": n => { floor_PrecisePostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Floor_PrecisePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The significance property - */ - significance?: Json; -} -export function serializeFloor_PrecisePostRequestBody(writer: SerializationWriter, floor_PrecisePostRequestBody: Floor_PrecisePostRequestBody | undefined = {} as Floor_PrecisePostRequestBody) : void { - writer.writeObjectValue("number", floor_PrecisePostRequestBody.number, serializeJson); - writer.writeObjectValue("significance", floor_PrecisePostRequestBody.significance, serializeJson); - writer.writeAdditionalData(floor_PrecisePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/floor_Precise/index.ts b/src/drives/item/items/item/workbook/functions/floor_Precise/index.ts index da0df69cc2b..f9f549afe56 100644 --- a/src/drives/item/items/item/workbook/functions/floor_Precise/index.ts +++ b/src/drives/item/items/item/workbook/functions/floor_Precise/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoFloor_PrecisePostRequestBody, serializeFloor_PrecisePostRequestBody, type Floor_PrecisePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFloor_PrecisePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFloor_PrecisePostRequestBody; +} +export function deserializeIntoFloor_PrecisePostRequestBody(floor_PrecisePostRequestBody: Floor_PrecisePostRequestBody | undefined = {} as Floor_PrecisePostRequestBody) : Record void> { + return { + "number": n => { floor_PrecisePostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "significance": n => { floor_PrecisePostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Floor_PrecisePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The significance property + */ + significance?: Json; +} +export function serializeFloor_PrecisePostRequestBody(writer: SerializationWriter, floor_PrecisePostRequestBody: Floor_PrecisePostRequestBody | undefined = {} as Floor_PrecisePostRequestBody) : void { + writer.writeObjectValue("number", floor_PrecisePostRequestBody.number, serializeJson); + writer.writeObjectValue("significance", floor_PrecisePostRequestBody.significance, serializeJson); + writer.writeAdditionalData(floor_PrecisePostRequestBody.additionalData); +} /** * Provides operations to call the floor_Precise method. */ diff --git a/src/drives/item/items/item/workbook/functions/fv/index.ts b/src/drives/item/items/item/workbook/functions/fv/index.ts index 5b48fddf06d..59a76a0981d 100644 --- a/src/drives/item/items/item/workbook/functions/fv/index.ts +++ b/src/drives/item/items/item/workbook/functions/fv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -54,57 +51,5 @@ export function serializeFvPostRequestBody(writer: SerializationWriter, fvPostRe writer.writeObjectValue("type", fvPostRequestBody.type, serializeJson); writer.writeAdditionalData(fvPostRequestBody.additionalData); } -/** - * Provides operations to call the fv method. - */ -export class FvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fv"); - }; - /** - * Invoke action fv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: FvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action fv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: FvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeFvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a fvRequestBuilder - */ - public withUrl(rawUrl: string) : FvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/fvschedule/fvschedulePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/fvschedule/fvschedulePostRequestBody.ts deleted file mode 100644 index 04495e20c13..00000000000 --- a/src/drives/item/items/item/workbook/functions/fvschedule/fvschedulePostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFvschedulePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFvschedulePostRequestBody; -} -export function deserializeIntoFvschedulePostRequestBody(fvschedulePostRequestBody: FvschedulePostRequestBody | undefined = {} as FvschedulePostRequestBody) : Record void> { - return { - "principal": n => { fvschedulePostRequestBody.principal = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "schedule": n => { fvschedulePostRequestBody.schedule = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface FvschedulePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The principal property - */ - principal?: Json; - /** - * The schedule property - */ - schedule?: Json; -} -export function serializeFvschedulePostRequestBody(writer: SerializationWriter, fvschedulePostRequestBody: FvschedulePostRequestBody | undefined = {} as FvschedulePostRequestBody) : void { - writer.writeObjectValue("principal", fvschedulePostRequestBody.principal, serializeJson); - writer.writeObjectValue("schedule", fvschedulePostRequestBody.schedule, serializeJson); - writer.writeAdditionalData(fvschedulePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/fvschedule/index.ts b/src/drives/item/items/item/workbook/functions/fvschedule/index.ts index 67015a0e50d..1d7dcfe8e4d 100644 --- a/src/drives/item/items/item/workbook/functions/fvschedule/index.ts +++ b/src/drives/item/items/item/workbook/functions/fvschedule/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoFvschedulePostRequestBody, serializeFvschedulePostRequestBody, type FvschedulePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFvschedulePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFvschedulePostRequestBody; +} +export function deserializeIntoFvschedulePostRequestBody(fvschedulePostRequestBody: FvschedulePostRequestBody | undefined = {} as FvschedulePostRequestBody) : Record void> { + return { + "principal": n => { fvschedulePostRequestBody.principal = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "schedule": n => { fvschedulePostRequestBody.schedule = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface FvschedulePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The principal property + */ + principal?: Json; + /** + * The schedule property + */ + schedule?: Json; +} +export function serializeFvschedulePostRequestBody(writer: SerializationWriter, fvschedulePostRequestBody: FvschedulePostRequestBody | undefined = {} as FvschedulePostRequestBody) : void { + writer.writeObjectValue("principal", fvschedulePostRequestBody.principal, serializeJson); + writer.writeObjectValue("schedule", fvschedulePostRequestBody.schedule, serializeJson); + writer.writeAdditionalData(fvschedulePostRequestBody.additionalData); +} /** * Provides operations to call the fvschedule method. */ diff --git a/src/drives/item/items/item/workbook/functions/gamma/index.ts b/src/drives/item/items/item/workbook/functions/gamma/index.ts index da596afd31c..ed0307400dd 100644 --- a/src/drives/item/items/item/workbook/functions/gamma/index.ts +++ b/src/drives/item/items/item/workbook/functions/gamma/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGammaPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeGammaPostRequestBody(writer: SerializationWriter, gamma writer.writeObjectValue("x", gammaPostRequestBody.x, serializeJson); writer.writeAdditionalData(gammaPostRequestBody.additionalData); } -/** - * Provides operations to call the gamma method. - */ -export class GammaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GammaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gamma"); - }; - /** - * Invoke action gamma - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: GammaPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action gamma - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GammaPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGammaPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a gammaRequestBuilder - */ - public withUrl(rawUrl: string) : GammaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GammaRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/gammaLn/index.ts b/src/drives/item/items/item/workbook/functions/gammaLn/index.ts index d36a7d129ad..6eb4f0848d3 100644 --- a/src/drives/item/items/item/workbook/functions/gammaLn/index.ts +++ b/src/drives/item/items/item/workbook/functions/gammaLn/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGammaLnPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeGammaLnPostRequestBody(writer: SerializationWriter, gam writer.writeObjectValue("x", gammaLnPostRequestBody.x, serializeJson); writer.writeAdditionalData(gammaLnPostRequestBody.additionalData); } -/** - * Provides operations to call the gammaLn method. - */ -export class GammaLnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GammaLnRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gammaLn"); - }; - /** - * Invoke action gammaLn - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: GammaLnPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action gammaLn - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GammaLnPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGammaLnPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a gammaLnRequestBuilder - */ - public withUrl(rawUrl: string) : GammaLnRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GammaLnRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/gammaLn_Precise/index.ts b/src/drives/item/items/item/workbook/functions/gammaLn_Precise/index.ts index 7f628f57506..964eb78a16a 100644 --- a/src/drives/item/items/item/workbook/functions/gammaLn_Precise/index.ts +++ b/src/drives/item/items/item/workbook/functions/gammaLn_Precise/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGammaLn_PrecisePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeGammaLn_PrecisePostRequestBody(writer: SerializationWri writer.writeObjectValue("x", gammaLn_PrecisePostRequestBody.x, serializeJson); writer.writeAdditionalData(gammaLn_PrecisePostRequestBody.additionalData); } -/** - * Provides operations to call the gammaLn_Precise method. - */ -export class GammaLn_PreciseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GammaLn_PreciseRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gammaLn_Precise"); - }; - /** - * Invoke action gammaLn_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: GammaLn_PrecisePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action gammaLn_Precise - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GammaLn_PrecisePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGammaLn_PrecisePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a gammaLn_PreciseRequestBuilder - */ - public withUrl(rawUrl: string) : GammaLn_PreciseRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GammaLn_PreciseRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/gamma_Dist/gamma_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/gamma_Dist/gamma_DistPostRequestBody.ts deleted file mode 100644 index c171ebcb32a..00000000000 --- a/src/drives/item/items/item/workbook/functions/gamma_Dist/gamma_DistPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGamma_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGamma_DistPostRequestBody; -} -export function deserializeIntoGamma_DistPostRequestBody(gamma_DistPostRequestBody: Gamma_DistPostRequestBody | undefined = {} as Gamma_DistPostRequestBody) : Record void> { - return { - "alpha": n => { gamma_DistPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "beta": n => { gamma_DistPostRequestBody.beta = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "cumulative": n => { gamma_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { gamma_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Gamma_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The alpha property - */ - alpha?: Json; - /** - * The beta property - */ - beta?: Json; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The x property - */ - x?: Json; -} -export function serializeGamma_DistPostRequestBody(writer: SerializationWriter, gamma_DistPostRequestBody: Gamma_DistPostRequestBody | undefined = {} as Gamma_DistPostRequestBody) : void { - writer.writeObjectValue("alpha", gamma_DistPostRequestBody.alpha, serializeJson); - writer.writeObjectValue("beta", gamma_DistPostRequestBody.beta, serializeJson); - writer.writeObjectValue("cumulative", gamma_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("x", gamma_DistPostRequestBody.x, serializeJson); - writer.writeAdditionalData(gamma_DistPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/gamma_Dist/index.ts b/src/drives/item/items/item/workbook/functions/gamma_Dist/index.ts index f5821f4bbe2..2d7643863fd 100644 --- a/src/drives/item/items/item/workbook/functions/gamma_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/gamma_Dist/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoGamma_DistPostRequestBody, serializeGamma_DistPostRequestBody, type Gamma_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGamma_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGamma_DistPostRequestBody; +} +export function deserializeIntoGamma_DistPostRequestBody(gamma_DistPostRequestBody: Gamma_DistPostRequestBody | undefined = {} as Gamma_DistPostRequestBody) : Record void> { + return { + "alpha": n => { gamma_DistPostRequestBody.alpha = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "beta": n => { gamma_DistPostRequestBody.beta = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "cumulative": n => { gamma_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { gamma_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Gamma_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The alpha property + */ + alpha?: Json; + /** + * The beta property + */ + beta?: Json; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The x property + */ + x?: Json; +} +export function serializeGamma_DistPostRequestBody(writer: SerializationWriter, gamma_DistPostRequestBody: Gamma_DistPostRequestBody | undefined = {} as Gamma_DistPostRequestBody) : void { + writer.writeObjectValue("alpha", gamma_DistPostRequestBody.alpha, serializeJson); + writer.writeObjectValue("beta", gamma_DistPostRequestBody.beta, serializeJson); + writer.writeObjectValue("cumulative", gamma_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("x", gamma_DistPostRequestBody.x, serializeJson); + writer.writeAdditionalData(gamma_DistPostRequestBody.additionalData); +} /** * Provides operations to call the gamma_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/gamma_Inv/index.ts b/src/drives/item/items/item/workbook/functions/gamma_Inv/index.ts index 38787f69d35..a1de1d0c830 100644 --- a/src/drives/item/items/item/workbook/functions/gamma_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/gamma_Inv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGamma_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeGamma_InvPostRequestBody(writer: SerializationWriter, g writer.writeObjectValue("probability", gamma_InvPostRequestBody.probability, serializeJson); writer.writeAdditionalData(gamma_InvPostRequestBody.additionalData); } -/** - * Provides operations to call the gamma_Inv method. - */ -export class Gamma_InvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Gamma_InvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gamma_Inv"); - }; - /** - * Invoke action gamma_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Gamma_InvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action gamma_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Gamma_InvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGamma_InvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a gamma_InvRequestBuilder - */ - public withUrl(rawUrl: string) : Gamma_InvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Gamma_InvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/gauss/index.ts b/src/drives/item/items/item/workbook/functions/gauss/index.ts index 118d5026566..b3cb5be31d9 100644 --- a/src/drives/item/items/item/workbook/functions/gauss/index.ts +++ b/src/drives/item/items/item/workbook/functions/gauss/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGaussPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeGaussPostRequestBody(writer: SerializationWriter, gauss writer.writeObjectValue("x", gaussPostRequestBody.x, serializeJson); writer.writeAdditionalData(gaussPostRequestBody.additionalData); } -/** - * Provides operations to call the gauss method. - */ -export class GaussRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GaussRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gauss"); - }; - /** - * Invoke action gauss - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: GaussPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action gauss - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GaussPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGaussPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a gaussRequestBuilder - */ - public withUrl(rawUrl: string) : GaussRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GaussRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/gcd/gcdPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/gcd/gcdPostRequestBody.ts deleted file mode 100644 index 2c5a8dc1a2e..00000000000 --- a/src/drives/item/items/item/workbook/functions/gcd/gcdPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGcdPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGcdPostRequestBody; -} -export function deserializeIntoGcdPostRequestBody(gcdPostRequestBody: GcdPostRequestBody | undefined = {} as GcdPostRequestBody) : Record void> { - return { - "values": n => { gcdPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface GcdPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeGcdPostRequestBody(writer: SerializationWriter, gcdPostRequestBody: GcdPostRequestBody | undefined = {} as GcdPostRequestBody) : void { - writer.writeObjectValue("values", gcdPostRequestBody.values, serializeJson); - writer.writeAdditionalData(gcdPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/gcd/index.ts b/src/drives/item/items/item/workbook/functions/gcd/index.ts index dd3faf931e9..07c3d5e9bcb 100644 --- a/src/drives/item/items/item/workbook/functions/gcd/index.ts +++ b/src/drives/item/items/item/workbook/functions/gcd/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoGcdPostRequestBody, serializeGcdPostRequestBody, type GcdPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGcdPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGcdPostRequestBody; +} +export function deserializeIntoGcdPostRequestBody(gcdPostRequestBody: GcdPostRequestBody | undefined = {} as GcdPostRequestBody) : Record void> { + return { + "values": n => { gcdPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface GcdPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeGcdPostRequestBody(writer: SerializationWriter, gcdPostRequestBody: GcdPostRequestBody | undefined = {} as GcdPostRequestBody) : void { + writer.writeObjectValue("values", gcdPostRequestBody.values, serializeJson); + writer.writeAdditionalData(gcdPostRequestBody.additionalData); +} /** * Provides operations to call the gcd method. */ diff --git a/src/drives/item/items/item/workbook/functions/geStep/geStepPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/geStep/geStepPostRequestBody.ts deleted file mode 100644 index af18a429a00..00000000000 --- a/src/drives/item/items/item/workbook/functions/geStep/geStepPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGeStepPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGeStepPostRequestBody; -} -export function deserializeIntoGeStepPostRequestBody(geStepPostRequestBody: GeStepPostRequestBody | undefined = {} as GeStepPostRequestBody) : Record void> { - return { - "number": n => { geStepPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "step": n => { geStepPostRequestBody.step = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface GeStepPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The step property - */ - step?: Json; -} -export function serializeGeStepPostRequestBody(writer: SerializationWriter, geStepPostRequestBody: GeStepPostRequestBody | undefined = {} as GeStepPostRequestBody) : void { - writer.writeObjectValue("number", geStepPostRequestBody.number, serializeJson); - writer.writeObjectValue("step", geStepPostRequestBody.step, serializeJson); - writer.writeAdditionalData(geStepPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/geStep/index.ts b/src/drives/item/items/item/workbook/functions/geStep/index.ts index 9d366735e43..5973b8ad4f7 100644 --- a/src/drives/item/items/item/workbook/functions/geStep/index.ts +++ b/src/drives/item/items/item/workbook/functions/geStep/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoGeStepPostRequestBody, serializeGeStepPostRequestBody, type GeStepPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGeStepPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGeStepPostRequestBody; +} +export function deserializeIntoGeStepPostRequestBody(geStepPostRequestBody: GeStepPostRequestBody | undefined = {} as GeStepPostRequestBody) : Record void> { + return { + "number": n => { geStepPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "step": n => { geStepPostRequestBody.step = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface GeStepPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The step property + */ + step?: Json; +} +export function serializeGeStepPostRequestBody(writer: SerializationWriter, geStepPostRequestBody: GeStepPostRequestBody | undefined = {} as GeStepPostRequestBody) : void { + writer.writeObjectValue("number", geStepPostRequestBody.number, serializeJson); + writer.writeObjectValue("step", geStepPostRequestBody.step, serializeJson); + writer.writeAdditionalData(geStepPostRequestBody.additionalData); +} /** * Provides operations to call the geStep method. */ diff --git a/src/drives/item/items/item/workbook/functions/geoMean/geoMeanPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/geoMean/geoMeanPostRequestBody.ts deleted file mode 100644 index 7a15e75f33e..00000000000 --- a/src/drives/item/items/item/workbook/functions/geoMean/geoMeanPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGeoMeanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGeoMeanPostRequestBody; -} -export function deserializeIntoGeoMeanPostRequestBody(geoMeanPostRequestBody: GeoMeanPostRequestBody | undefined = {} as GeoMeanPostRequestBody) : Record void> { - return { - "values": n => { geoMeanPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface GeoMeanPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeGeoMeanPostRequestBody(writer: SerializationWriter, geoMeanPostRequestBody: GeoMeanPostRequestBody | undefined = {} as GeoMeanPostRequestBody) : void { - writer.writeObjectValue("values", geoMeanPostRequestBody.values, serializeJson); - writer.writeAdditionalData(geoMeanPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/geoMean/index.ts b/src/drives/item/items/item/workbook/functions/geoMean/index.ts index 5efaf89afea..6a8f37bc2d6 100644 --- a/src/drives/item/items/item/workbook/functions/geoMean/index.ts +++ b/src/drives/item/items/item/workbook/functions/geoMean/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGeoMeanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -27,5 +30,57 @@ export function serializeGeoMeanPostRequestBody(writer: SerializationWriter, geo writer.writeObjectValue("values", geoMeanPostRequestBody.values, serializeJson); writer.writeAdditionalData(geoMeanPostRequestBody.additionalData); } +/** + * Provides operations to call the geoMean method. + */ +export class GeoMeanRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new GeoMeanRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/geoMean"); + }; + /** + * Invoke action geoMean + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: GeoMeanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action geoMean + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: GeoMeanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGeoMeanPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a geoMeanRequestBuilder + */ + public withUrl(rawUrl: string) : GeoMeanRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new GeoMeanRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/harMean/harMeanPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/harMean/harMeanPostRequestBody.ts deleted file mode 100644 index 6a8a0e6d6b8..00000000000 --- a/src/drives/item/items/item/workbook/functions/harMean/harMeanPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createHarMeanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoHarMeanPostRequestBody; -} -export function deserializeIntoHarMeanPostRequestBody(harMeanPostRequestBody: HarMeanPostRequestBody | undefined = {} as HarMeanPostRequestBody) : Record void> { - return { - "values": n => { harMeanPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface HarMeanPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeHarMeanPostRequestBody(writer: SerializationWriter, harMeanPostRequestBody: HarMeanPostRequestBody | undefined = {} as HarMeanPostRequestBody) : void { - writer.writeObjectValue("values", harMeanPostRequestBody.values, serializeJson); - writer.writeAdditionalData(harMeanPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/harMean/index.ts b/src/drives/item/items/item/workbook/functions/harMean/index.ts index ea1c6a20112..17006d0df16 100644 --- a/src/drives/item/items/item/workbook/functions/harMean/index.ts +++ b/src/drives/item/items/item/workbook/functions/harMean/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoHarMeanPostRequestBody, serializeHarMeanPostRequestBody, type HarMeanPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createHarMeanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoHarMeanPostRequestBody; +} +export function deserializeIntoHarMeanPostRequestBody(harMeanPostRequestBody: HarMeanPostRequestBody | undefined = {} as HarMeanPostRequestBody) : Record void> { + return { + "values": n => { harMeanPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface HarMeanPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeHarMeanPostRequestBody(writer: SerializationWriter, harMeanPostRequestBody: HarMeanPostRequestBody | undefined = {} as HarMeanPostRequestBody) : void { + writer.writeObjectValue("values", harMeanPostRequestBody.values, serializeJson); + writer.writeAdditionalData(harMeanPostRequestBody.additionalData); +} /** * Provides operations to call the harMean method. */ diff --git a/src/drives/item/items/item/workbook/functions/hex2Bin/index.ts b/src/drives/item/items/item/workbook/functions/hex2Bin/index.ts index 828ba78a882..36bb152a540 100644 --- a/src/drives/item/items/item/workbook/functions/hex2Bin/index.ts +++ b/src/drives/item/items/item/workbook/functions/hex2Bin/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createHex2BinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeHex2BinPostRequestBody(writer: SerializationWriter, hex writer.writeObjectValue("places", hex2BinPostRequestBody.places, serializeJson); writer.writeAdditionalData(hex2BinPostRequestBody.additionalData); } -/** - * Provides operations to call the hex2Bin method. - */ -export class Hex2BinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Hex2BinRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Bin"); - }; - /** - * Invoke action hex2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Hex2BinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action hex2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Hex2BinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeHex2BinPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a hex2BinRequestBuilder - */ - public withUrl(rawUrl: string) : Hex2BinRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Hex2BinRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/hex2Dec/hex2DecPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/hex2Dec/hex2DecPostRequestBody.ts deleted file mode 100644 index 7fe3eb13a66..00000000000 --- a/src/drives/item/items/item/workbook/functions/hex2Dec/hex2DecPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createHex2DecPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoHex2DecPostRequestBody; -} -export function deserializeIntoHex2DecPostRequestBody(hex2DecPostRequestBody: Hex2DecPostRequestBody | undefined = {} as Hex2DecPostRequestBody) : Record void> { - return { - "number": n => { hex2DecPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Hex2DecPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeHex2DecPostRequestBody(writer: SerializationWriter, hex2DecPostRequestBody: Hex2DecPostRequestBody | undefined = {} as Hex2DecPostRequestBody) : void { - writer.writeObjectValue("number", hex2DecPostRequestBody.number, serializeJson); - writer.writeAdditionalData(hex2DecPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/hex2Dec/index.ts b/src/drives/item/items/item/workbook/functions/hex2Dec/index.ts index 492542f585b..72690f90e08 100644 --- a/src/drives/item/items/item/workbook/functions/hex2Dec/index.ts +++ b/src/drives/item/items/item/workbook/functions/hex2Dec/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createHex2DecPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -27,5 +30,57 @@ export function serializeHex2DecPostRequestBody(writer: SerializationWriter, hex writer.writeObjectValue("number", hex2DecPostRequestBody.number, serializeJson); writer.writeAdditionalData(hex2DecPostRequestBody.additionalData); } +/** + * Provides operations to call the hex2Dec method. + */ +export class Hex2DecRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new Hex2DecRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Dec"); + }; + /** + * Invoke action hex2Dec + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: Hex2DecPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action hex2Dec + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Hex2DecPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeHex2DecPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a hex2DecRequestBuilder + */ + public withUrl(rawUrl: string) : Hex2DecRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new Hex2DecRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/hex2Oct/index.ts b/src/drives/item/items/item/workbook/functions/hex2Oct/index.ts index 8273e66f5f2..b48907430e5 100644 --- a/src/drives/item/items/item/workbook/functions/hex2Oct/index.ts +++ b/src/drives/item/items/item/workbook/functions/hex2Oct/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createHex2OctPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeHex2OctPostRequestBody(writer: SerializationWriter, hex writer.writeObjectValue("places", hex2OctPostRequestBody.places, serializeJson); writer.writeAdditionalData(hex2OctPostRequestBody.additionalData); } -/** - * Provides operations to call the hex2Oct method. - */ -export class Hex2OctRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Hex2OctRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Oct"); - }; - /** - * Invoke action hex2Oct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Hex2OctPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action hex2Oct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Hex2OctPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeHex2OctPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a hex2OctRequestBuilder - */ - public withUrl(rawUrl: string) : Hex2OctRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Hex2OctRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/hlookup/index.ts b/src/drives/item/items/item/workbook/functions/hlookup/index.ts index 7ce10d42501..6a36c1f27fb 100644 --- a/src/drives/item/items/item/workbook/functions/hlookup/index.ts +++ b/src/drives/item/items/item/workbook/functions/hlookup/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createHlookupPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +45,5 @@ export function serializeHlookupPostRequestBody(writer: SerializationWriter, hlo writer.writeObjectValue("tableArray", hlookupPostRequestBody.tableArray, serializeJson); writer.writeAdditionalData(hlookupPostRequestBody.additionalData); } -/** - * Provides operations to call the hlookup method. - */ -export class HlookupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new HlookupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hlookup"); - }; - /** - * Invoke action hlookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: HlookupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action hlookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: HlookupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeHlookupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a hlookupRequestBuilder - */ - public withUrl(rawUrl: string) : HlookupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new HlookupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/hour/index.ts b/src/drives/item/items/item/workbook/functions/hour/index.ts index d048b3d2dee..b1dc14c2e9d 100644 --- a/src/drives/item/items/item/workbook/functions/hour/index.ts +++ b/src/drives/item/items/item/workbook/functions/hour/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createHourPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeHourPostRequestBody(writer: SerializationWriter, hourPo writer.writeObjectValue("serialNumber", hourPostRequestBody.serialNumber, serializeJson); writer.writeAdditionalData(hourPostRequestBody.additionalData); } -/** - * Provides operations to call the hour method. - */ -export class HourRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new HourRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hour"); - }; - /** - * Invoke action hour - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: HourPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action hour - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: HourPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeHourPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a hourRequestBuilder - */ - public withUrl(rawUrl: string) : HourRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new HourRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/hypGeom_Dist/hypGeom_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/hypGeom_Dist/hypGeom_DistPostRequestBody.ts deleted file mode 100644 index 2de7db174bb..00000000000 --- a/src/drives/item/items/item/workbook/functions/hypGeom_Dist/hypGeom_DistPostRequestBody.ts +++ /dev/null @@ -1,55 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createHypGeom_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoHypGeom_DistPostRequestBody; -} -export function deserializeIntoHypGeom_DistPostRequestBody(hypGeom_DistPostRequestBody: HypGeom_DistPostRequestBody | undefined = {} as HypGeom_DistPostRequestBody) : Record void> { - return { - "cumulative": n => { hypGeom_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberPop": n => { hypGeom_DistPostRequestBody.numberPop = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberSample": n => { hypGeom_DistPostRequestBody.numberSample = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "populationS": n => { hypGeom_DistPostRequestBody.populationS = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "sampleS": n => { hypGeom_DistPostRequestBody.sampleS = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface HypGeom_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The numberPop property - */ - numberPop?: Json; - /** - * The numberSample property - */ - numberSample?: Json; - /** - * The populationS property - */ - populationS?: Json; - /** - * The sampleS property - */ - sampleS?: Json; -} -export function serializeHypGeom_DistPostRequestBody(writer: SerializationWriter, hypGeom_DistPostRequestBody: HypGeom_DistPostRequestBody | undefined = {} as HypGeom_DistPostRequestBody) : void { - writer.writeObjectValue("cumulative", hypGeom_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("numberPop", hypGeom_DistPostRequestBody.numberPop, serializeJson); - writer.writeObjectValue("numberSample", hypGeom_DistPostRequestBody.numberSample, serializeJson); - writer.writeObjectValue("populationS", hypGeom_DistPostRequestBody.populationS, serializeJson); - writer.writeObjectValue("sampleS", hypGeom_DistPostRequestBody.sampleS, serializeJson); - writer.writeAdditionalData(hypGeom_DistPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/hypGeom_Dist/index.ts b/src/drives/item/items/item/workbook/functions/hypGeom_Dist/index.ts index 4b440689f26..594c17bbafc 100644 --- a/src/drives/item/items/item/workbook/functions/hypGeom_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/hypGeom_Dist/index.ts @@ -1,12 +1,59 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoHypGeom_DistPostRequestBody, serializeHypGeom_DistPostRequestBody, type HypGeom_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createHypGeom_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoHypGeom_DistPostRequestBody; +} +export function deserializeIntoHypGeom_DistPostRequestBody(hypGeom_DistPostRequestBody: HypGeom_DistPostRequestBody | undefined = {} as HypGeom_DistPostRequestBody) : Record void> { + return { + "cumulative": n => { hypGeom_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numberPop": n => { hypGeom_DistPostRequestBody.numberPop = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numberSample": n => { hypGeom_DistPostRequestBody.numberSample = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "populationS": n => { hypGeom_DistPostRequestBody.populationS = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "sampleS": n => { hypGeom_DistPostRequestBody.sampleS = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface HypGeom_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The numberPop property + */ + numberPop?: Json; + /** + * The numberSample property + */ + numberSample?: Json; + /** + * The populationS property + */ + populationS?: Json; + /** + * The sampleS property + */ + sampleS?: Json; +} +export function serializeHypGeom_DistPostRequestBody(writer: SerializationWriter, hypGeom_DistPostRequestBody: HypGeom_DistPostRequestBody | undefined = {} as HypGeom_DistPostRequestBody) : void { + writer.writeObjectValue("cumulative", hypGeom_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("numberPop", hypGeom_DistPostRequestBody.numberPop, serializeJson); + writer.writeObjectValue("numberSample", hypGeom_DistPostRequestBody.numberSample, serializeJson); + writer.writeObjectValue("populationS", hypGeom_DistPostRequestBody.populationS, serializeJson); + writer.writeObjectValue("sampleS", hypGeom_DistPostRequestBody.sampleS, serializeJson); + writer.writeAdditionalData(hypGeom_DistPostRequestBody.additionalData); +} /** * Provides operations to call the hypGeom_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/hyperlink/hyperlinkPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/hyperlink/hyperlinkPostRequestBody.ts deleted file mode 100644 index 4c979e1e2bc..00000000000 --- a/src/drives/item/items/item/workbook/functions/hyperlink/hyperlinkPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createHyperlinkPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoHyperlinkPostRequestBody; -} -export function deserializeIntoHyperlinkPostRequestBody(hyperlinkPostRequestBody: HyperlinkPostRequestBody | undefined = {} as HyperlinkPostRequestBody) : Record void> { - return { - "friendlyName": n => { hyperlinkPostRequestBody.friendlyName = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "linkLocation": n => { hyperlinkPostRequestBody.linkLocation = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface HyperlinkPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The friendlyName property - */ - friendlyName?: Json; - /** - * The linkLocation property - */ - linkLocation?: Json; -} -export function serializeHyperlinkPostRequestBody(writer: SerializationWriter, hyperlinkPostRequestBody: HyperlinkPostRequestBody | undefined = {} as HyperlinkPostRequestBody) : void { - writer.writeObjectValue("friendlyName", hyperlinkPostRequestBody.friendlyName, serializeJson); - writer.writeObjectValue("linkLocation", hyperlinkPostRequestBody.linkLocation, serializeJson); - writer.writeAdditionalData(hyperlinkPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/hyperlink/index.ts b/src/drives/item/items/item/workbook/functions/hyperlink/index.ts index 8b014d44b39..39349412a53 100644 --- a/src/drives/item/items/item/workbook/functions/hyperlink/index.ts +++ b/src/drives/item/items/item/workbook/functions/hyperlink/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoHyperlinkPostRequestBody, serializeHyperlinkPostRequestBody, type HyperlinkPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createHyperlinkPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoHyperlinkPostRequestBody; +} +export function deserializeIntoHyperlinkPostRequestBody(hyperlinkPostRequestBody: HyperlinkPostRequestBody | undefined = {} as HyperlinkPostRequestBody) : Record void> { + return { + "friendlyName": n => { hyperlinkPostRequestBody.friendlyName = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "linkLocation": n => { hyperlinkPostRequestBody.linkLocation = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface HyperlinkPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The friendlyName property + */ + friendlyName?: Json; + /** + * The linkLocation property + */ + linkLocation?: Json; +} +export function serializeHyperlinkPostRequestBody(writer: SerializationWriter, hyperlinkPostRequestBody: HyperlinkPostRequestBody | undefined = {} as HyperlinkPostRequestBody) : void { + writer.writeObjectValue("friendlyName", hyperlinkPostRequestBody.friendlyName, serializeJson); + writer.writeObjectValue("linkLocation", hyperlinkPostRequestBody.linkLocation, serializeJson); + writer.writeAdditionalData(hyperlinkPostRequestBody.additionalData); +} /** * Provides operations to call the hyperlink method. */ diff --git a/src/drives/item/items/item/workbook/functions/ifEscaped/ifPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/ifEscaped/ifPostRequestBody.ts deleted file mode 100644 index 3094347a066..00000000000 --- a/src/drives/item/items/item/workbook/functions/ifEscaped/ifPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIfPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIfPostRequestBody; -} -export function deserializeIntoIfPostRequestBody(ifPostRequestBody: IfPostRequestBody | undefined = {} as IfPostRequestBody) : Record void> { - return { - "logicalTest": n => { ifPostRequestBody.logicalTest = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "valueIfFalse": n => { ifPostRequestBody.valueIfFalse = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "valueIfTrue": n => { ifPostRequestBody.valueIfTrue = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IfPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The logicalTest property - */ - logicalTest?: Json; - /** - * The valueIfFalse property - */ - valueIfFalse?: Json; - /** - * The valueIfTrue property - */ - valueIfTrue?: Json; -} -export function serializeIfPostRequestBody(writer: SerializationWriter, ifPostRequestBody: IfPostRequestBody | undefined = {} as IfPostRequestBody) : void { - writer.writeObjectValue("logicalTest", ifPostRequestBody.logicalTest, serializeJson); - writer.writeObjectValue("valueIfFalse", ifPostRequestBody.valueIfFalse, serializeJson); - writer.writeObjectValue("valueIfTrue", ifPostRequestBody.valueIfTrue, serializeJson); - writer.writeAdditionalData(ifPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ifEscaped/index.ts b/src/drives/item/items/item/workbook/functions/ifEscaped/index.ts index 8da061ef055..721f0e06b33 100644 --- a/src/drives/item/items/item/workbook/functions/ifEscaped/index.ts +++ b/src/drives/item/items/item/workbook/functions/ifEscaped/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIfPostRequestBody, serializeIfPostRequestBody, type IfPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIfPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIfPostRequestBody; +} +export function deserializeIntoIfPostRequestBody(ifPostRequestBody: IfPostRequestBody | undefined = {} as IfPostRequestBody) : Record void> { + return { + "logicalTest": n => { ifPostRequestBody.logicalTest = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "valueIfFalse": n => { ifPostRequestBody.valueIfFalse = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "valueIfTrue": n => { ifPostRequestBody.valueIfTrue = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IfPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The logicalTest property + */ + logicalTest?: Json; + /** + * The valueIfFalse property + */ + valueIfFalse?: Json; + /** + * The valueIfTrue property + */ + valueIfTrue?: Json; +} +export function serializeIfPostRequestBody(writer: SerializationWriter, ifPostRequestBody: IfPostRequestBody | undefined = {} as IfPostRequestBody) : void { + writer.writeObjectValue("logicalTest", ifPostRequestBody.logicalTest, serializeJson); + writer.writeObjectValue("valueIfFalse", ifPostRequestBody.valueIfFalse, serializeJson); + writer.writeObjectValue("valueIfTrue", ifPostRequestBody.valueIfTrue, serializeJson); + writer.writeAdditionalData(ifPostRequestBody.additionalData); +} /** * Provides operations to call the if method. */ diff --git a/src/drives/item/items/item/workbook/functions/imAbs/imAbsPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imAbs/imAbsPostRequestBody.ts deleted file mode 100644 index 0b905e2fe1f..00000000000 --- a/src/drives/item/items/item/workbook/functions/imAbs/imAbsPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImAbsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImAbsPostRequestBody; -} -export function deserializeIntoImAbsPostRequestBody(imAbsPostRequestBody: ImAbsPostRequestBody | undefined = {} as ImAbsPostRequestBody) : Record void> { - return { - "inumber": n => { imAbsPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImAbsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImAbsPostRequestBody(writer: SerializationWriter, imAbsPostRequestBody: ImAbsPostRequestBody | undefined = {} as ImAbsPostRequestBody) : void { - writer.writeObjectValue("inumber", imAbsPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imAbsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imAbs/index.ts b/src/drives/item/items/item/workbook/functions/imAbs/index.ts index 6eab5c25ad3..ce2833b8f4b 100644 --- a/src/drives/item/items/item/workbook/functions/imAbs/index.ts +++ b/src/drives/item/items/item/workbook/functions/imAbs/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImAbsPostRequestBody, serializeImAbsPostRequestBody, type ImAbsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImAbsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImAbsPostRequestBody; +} +export function deserializeIntoImAbsPostRequestBody(imAbsPostRequestBody: ImAbsPostRequestBody | undefined = {} as ImAbsPostRequestBody) : Record void> { + return { + "inumber": n => { imAbsPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImAbsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImAbsPostRequestBody(writer: SerializationWriter, imAbsPostRequestBody: ImAbsPostRequestBody | undefined = {} as ImAbsPostRequestBody) : void { + writer.writeObjectValue("inumber", imAbsPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imAbsPostRequestBody.additionalData); +} /** * Provides operations to call the imAbs method. */ diff --git a/src/drives/item/items/item/workbook/functions/imArgument/index.ts b/src/drives/item/items/item/workbook/functions/imArgument/index.ts index bc69305f1f2..9ebc72cf47f 100644 --- a/src/drives/item/items/item/workbook/functions/imArgument/index.ts +++ b/src/drives/item/items/item/workbook/functions/imArgument/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImArgumentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImArgumentPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("inumber", imArgumentPostRequestBody.inumber, serializeJson); writer.writeAdditionalData(imArgumentPostRequestBody.additionalData); } -/** - * Provides operations to call the imArgument method. - */ -export class ImArgumentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImArgumentRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imArgument"); - }; - /** - * Invoke action imArgument - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImArgumentPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imArgument - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImArgumentPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImArgumentPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imArgumentRequestBuilder - */ - public withUrl(rawUrl: string) : ImArgumentRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImArgumentRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imConjugate/index.ts b/src/drives/item/items/item/workbook/functions/imConjugate/index.ts index 139b55037c7..d62bde625f1 100644 --- a/src/drives/item/items/item/workbook/functions/imConjugate/index.ts +++ b/src/drives/item/items/item/workbook/functions/imConjugate/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImConjugatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImConjugatePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("inumber", imConjugatePostRequestBody.inumber, serializeJson); writer.writeAdditionalData(imConjugatePostRequestBody.additionalData); } -/** - * Provides operations to call the imConjugate method. - */ -export class ImConjugateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImConjugateRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imConjugate"); - }; - /** - * Invoke action imConjugate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImConjugatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imConjugate - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImConjugatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImConjugatePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imConjugateRequestBuilder - */ - public withUrl(rawUrl: string) : ImConjugateRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImConjugateRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imCos/index.ts b/src/drives/item/items/item/workbook/functions/imCos/index.ts index 2fb43f65a36..833d20b3d5d 100644 --- a/src/drives/item/items/item/workbook/functions/imCos/index.ts +++ b/src/drives/item/items/item/workbook/functions/imCos/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImCosPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImCosPostRequestBody(writer: SerializationWriter, imCos writer.writeObjectValue("inumber", imCosPostRequestBody.inumber, serializeJson); writer.writeAdditionalData(imCosPostRequestBody.additionalData); } -/** - * Provides operations to call the imCos method. - */ -export class ImCosRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImCosRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCos"); - }; - /** - * Invoke action imCos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImCosPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imCos - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImCosPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImCosPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imCosRequestBuilder - */ - public withUrl(rawUrl: string) : ImCosRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImCosRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imCosh/imCoshPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imCosh/imCoshPostRequestBody.ts deleted file mode 100644 index 6aa752425b2..00000000000 --- a/src/drives/item/items/item/workbook/functions/imCosh/imCoshPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImCoshPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImCoshPostRequestBody; -} -export function deserializeIntoImCoshPostRequestBody(imCoshPostRequestBody: ImCoshPostRequestBody | undefined = {} as ImCoshPostRequestBody) : Record void> { - return { - "inumber": n => { imCoshPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImCoshPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImCoshPostRequestBody(writer: SerializationWriter, imCoshPostRequestBody: ImCoshPostRequestBody | undefined = {} as ImCoshPostRequestBody) : void { - writer.writeObjectValue("inumber", imCoshPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imCoshPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imCosh/index.ts b/src/drives/item/items/item/workbook/functions/imCosh/index.ts index bc8b6d193b7..95f3ad8b847 100644 --- a/src/drives/item/items/item/workbook/functions/imCosh/index.ts +++ b/src/drives/item/items/item/workbook/functions/imCosh/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImCoshPostRequestBody, serializeImCoshPostRequestBody, type ImCoshPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImCoshPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImCoshPostRequestBody; +} +export function deserializeIntoImCoshPostRequestBody(imCoshPostRequestBody: ImCoshPostRequestBody | undefined = {} as ImCoshPostRequestBody) : Record void> { + return { + "inumber": n => { imCoshPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImCoshPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImCoshPostRequestBody(writer: SerializationWriter, imCoshPostRequestBody: ImCoshPostRequestBody | undefined = {} as ImCoshPostRequestBody) : void { + writer.writeObjectValue("inumber", imCoshPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imCoshPostRequestBody.additionalData); +} /** * Provides operations to call the imCosh method. */ diff --git a/src/drives/item/items/item/workbook/functions/imCot/imCotPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imCot/imCotPostRequestBody.ts deleted file mode 100644 index 42aa36a4164..00000000000 --- a/src/drives/item/items/item/workbook/functions/imCot/imCotPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImCotPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImCotPostRequestBody; -} -export function deserializeIntoImCotPostRequestBody(imCotPostRequestBody: ImCotPostRequestBody | undefined = {} as ImCotPostRequestBody) : Record void> { - return { - "inumber": n => { imCotPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImCotPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImCotPostRequestBody(writer: SerializationWriter, imCotPostRequestBody: ImCotPostRequestBody | undefined = {} as ImCotPostRequestBody) : void { - writer.writeObjectValue("inumber", imCotPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imCotPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imCot/index.ts b/src/drives/item/items/item/workbook/functions/imCot/index.ts index a5036e83094..4518cb291f0 100644 --- a/src/drives/item/items/item/workbook/functions/imCot/index.ts +++ b/src/drives/item/items/item/workbook/functions/imCot/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImCotPostRequestBody, serializeImCotPostRequestBody, type ImCotPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImCotPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImCotPostRequestBody; +} +export function deserializeIntoImCotPostRequestBody(imCotPostRequestBody: ImCotPostRequestBody | undefined = {} as ImCotPostRequestBody) : Record void> { + return { + "inumber": n => { imCotPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImCotPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImCotPostRequestBody(writer: SerializationWriter, imCotPostRequestBody: ImCotPostRequestBody | undefined = {} as ImCotPostRequestBody) : void { + writer.writeObjectValue("inumber", imCotPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imCotPostRequestBody.additionalData); +} /** * Provides operations to call the imCot method. */ diff --git a/src/drives/item/items/item/workbook/functions/imCsc/imCscPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imCsc/imCscPostRequestBody.ts deleted file mode 100644 index 6b0df965e49..00000000000 --- a/src/drives/item/items/item/workbook/functions/imCsc/imCscPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImCscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImCscPostRequestBody; -} -export function deserializeIntoImCscPostRequestBody(imCscPostRequestBody: ImCscPostRequestBody | undefined = {} as ImCscPostRequestBody) : Record void> { - return { - "inumber": n => { imCscPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImCscPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImCscPostRequestBody(writer: SerializationWriter, imCscPostRequestBody: ImCscPostRequestBody | undefined = {} as ImCscPostRequestBody) : void { - writer.writeObjectValue("inumber", imCscPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imCscPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imCsc/index.ts b/src/drives/item/items/item/workbook/functions/imCsc/index.ts index 03e9a3db7e7..3e3764c0636 100644 --- a/src/drives/item/items/item/workbook/functions/imCsc/index.ts +++ b/src/drives/item/items/item/workbook/functions/imCsc/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImCscPostRequestBody, serializeImCscPostRequestBody, type ImCscPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImCscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImCscPostRequestBody; +} +export function deserializeIntoImCscPostRequestBody(imCscPostRequestBody: ImCscPostRequestBody | undefined = {} as ImCscPostRequestBody) : Record void> { + return { + "inumber": n => { imCscPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImCscPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImCscPostRequestBody(writer: SerializationWriter, imCscPostRequestBody: ImCscPostRequestBody | undefined = {} as ImCscPostRequestBody) : void { + writer.writeObjectValue("inumber", imCscPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imCscPostRequestBody.additionalData); +} /** * Provides operations to call the imCsc method. */ diff --git a/src/drives/item/items/item/workbook/functions/imCsch/imCschPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imCsch/imCschPostRequestBody.ts deleted file mode 100644 index e7d6a65206a..00000000000 --- a/src/drives/item/items/item/workbook/functions/imCsch/imCschPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImCschPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImCschPostRequestBody; -} -export function deserializeIntoImCschPostRequestBody(imCschPostRequestBody: ImCschPostRequestBody | undefined = {} as ImCschPostRequestBody) : Record void> { - return { - "inumber": n => { imCschPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImCschPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImCschPostRequestBody(writer: SerializationWriter, imCschPostRequestBody: ImCschPostRequestBody | undefined = {} as ImCschPostRequestBody) : void { - writer.writeObjectValue("inumber", imCschPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imCschPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imCsch/index.ts b/src/drives/item/items/item/workbook/functions/imCsch/index.ts index be8bfda9e01..1c35a056a91 100644 --- a/src/drives/item/items/item/workbook/functions/imCsch/index.ts +++ b/src/drives/item/items/item/workbook/functions/imCsch/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImCschPostRequestBody, serializeImCschPostRequestBody, type ImCschPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImCschPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImCschPostRequestBody; +} +export function deserializeIntoImCschPostRequestBody(imCschPostRequestBody: ImCschPostRequestBody | undefined = {} as ImCschPostRequestBody) : Record void> { + return { + "inumber": n => { imCschPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImCschPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImCschPostRequestBody(writer: SerializationWriter, imCschPostRequestBody: ImCschPostRequestBody | undefined = {} as ImCschPostRequestBody) : void { + writer.writeObjectValue("inumber", imCschPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imCschPostRequestBody.additionalData); +} /** * Provides operations to call the imCsch method. */ diff --git a/src/drives/item/items/item/workbook/functions/imDiv/imDivPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imDiv/imDivPostRequestBody.ts deleted file mode 100644 index a9436ba211a..00000000000 --- a/src/drives/item/items/item/workbook/functions/imDiv/imDivPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImDivPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImDivPostRequestBody; -} -export function deserializeIntoImDivPostRequestBody(imDivPostRequestBody: ImDivPostRequestBody | undefined = {} as ImDivPostRequestBody) : Record void> { - return { - "inumber1": n => { imDivPostRequestBody.inumber1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "inumber2": n => { imDivPostRequestBody.inumber2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImDivPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber1 property - */ - inumber1?: Json; - /** - * The inumber2 property - */ - inumber2?: Json; -} -export function serializeImDivPostRequestBody(writer: SerializationWriter, imDivPostRequestBody: ImDivPostRequestBody | undefined = {} as ImDivPostRequestBody) : void { - writer.writeObjectValue("inumber1", imDivPostRequestBody.inumber1, serializeJson); - writer.writeObjectValue("inumber2", imDivPostRequestBody.inumber2, serializeJson); - writer.writeAdditionalData(imDivPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imDiv/index.ts b/src/drives/item/items/item/workbook/functions/imDiv/index.ts index 03407b830f7..65f3aa94d6d 100644 --- a/src/drives/item/items/item/workbook/functions/imDiv/index.ts +++ b/src/drives/item/items/item/workbook/functions/imDiv/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImDivPostRequestBody, serializeImDivPostRequestBody, type ImDivPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImDivPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImDivPostRequestBody; +} +export function deserializeIntoImDivPostRequestBody(imDivPostRequestBody: ImDivPostRequestBody | undefined = {} as ImDivPostRequestBody) : Record void> { + return { + "inumber1": n => { imDivPostRequestBody.inumber1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "inumber2": n => { imDivPostRequestBody.inumber2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImDivPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber1 property + */ + inumber1?: Json; + /** + * The inumber2 property + */ + inumber2?: Json; +} +export function serializeImDivPostRequestBody(writer: SerializationWriter, imDivPostRequestBody: ImDivPostRequestBody | undefined = {} as ImDivPostRequestBody) : void { + writer.writeObjectValue("inumber1", imDivPostRequestBody.inumber1, serializeJson); + writer.writeObjectValue("inumber2", imDivPostRequestBody.inumber2, serializeJson); + writer.writeAdditionalData(imDivPostRequestBody.additionalData); +} /** * Provides operations to call the imDiv method. */ diff --git a/src/drives/item/items/item/workbook/functions/imExp/imExpPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imExp/imExpPostRequestBody.ts deleted file mode 100644 index ef2b54a915c..00000000000 --- a/src/drives/item/items/item/workbook/functions/imExp/imExpPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImExpPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImExpPostRequestBody; -} -export function deserializeIntoImExpPostRequestBody(imExpPostRequestBody: ImExpPostRequestBody | undefined = {} as ImExpPostRequestBody) : Record void> { - return { - "inumber": n => { imExpPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImExpPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImExpPostRequestBody(writer: SerializationWriter, imExpPostRequestBody: ImExpPostRequestBody | undefined = {} as ImExpPostRequestBody) : void { - writer.writeObjectValue("inumber", imExpPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imExpPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imExp/index.ts b/src/drives/item/items/item/workbook/functions/imExp/index.ts index 68eb0cf5978..3bd84e97d68 100644 --- a/src/drives/item/items/item/workbook/functions/imExp/index.ts +++ b/src/drives/item/items/item/workbook/functions/imExp/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImExpPostRequestBody, serializeImExpPostRequestBody, type ImExpPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImExpPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImExpPostRequestBody; +} +export function deserializeIntoImExpPostRequestBody(imExpPostRequestBody: ImExpPostRequestBody | undefined = {} as ImExpPostRequestBody) : Record void> { + return { + "inumber": n => { imExpPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImExpPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImExpPostRequestBody(writer: SerializationWriter, imExpPostRequestBody: ImExpPostRequestBody | undefined = {} as ImExpPostRequestBody) : void { + writer.writeObjectValue("inumber", imExpPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imExpPostRequestBody.additionalData); +} /** * Provides operations to call the imExp method. */ diff --git a/src/drives/item/items/item/workbook/functions/imLn/index.ts b/src/drives/item/items/item/workbook/functions/imLn/index.ts index 633103d8e02..8c8470d65c2 100644 --- a/src/drives/item/items/item/workbook/functions/imLn/index.ts +++ b/src/drives/item/items/item/workbook/functions/imLn/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImLnPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImLnPostRequestBody(writer: SerializationWriter, imLnPo writer.writeObjectValue("inumber", imLnPostRequestBody.inumber, serializeJson); writer.writeAdditionalData(imLnPostRequestBody.additionalData); } -/** - * Provides operations to call the imLn method. - */ -export class ImLnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImLnRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imLn"); - }; - /** - * Invoke action imLn - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImLnPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imLn - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImLnPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImLnPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imLnRequestBuilder - */ - public withUrl(rawUrl: string) : ImLnRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImLnRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imLog10/imLog10PostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imLog10/imLog10PostRequestBody.ts deleted file mode 100644 index fab349af10f..00000000000 --- a/src/drives/item/items/item/workbook/functions/imLog10/imLog10PostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImLog10PostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImLog10PostRequestBody; -} -export function deserializeIntoImLog10PostRequestBody(imLog10PostRequestBody: ImLog10PostRequestBody | undefined = {} as ImLog10PostRequestBody) : Record void> { - return { - "inumber": n => { imLog10PostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImLog10PostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImLog10PostRequestBody(writer: SerializationWriter, imLog10PostRequestBody: ImLog10PostRequestBody | undefined = {} as ImLog10PostRequestBody) : void { - writer.writeObjectValue("inumber", imLog10PostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imLog10PostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imLog10/index.ts b/src/drives/item/items/item/workbook/functions/imLog10/index.ts index f7fb28e33a4..12985e1173a 100644 --- a/src/drives/item/items/item/workbook/functions/imLog10/index.ts +++ b/src/drives/item/items/item/workbook/functions/imLog10/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImLog10PostRequestBody, serializeImLog10PostRequestBody, type ImLog10PostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImLog10PostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImLog10PostRequestBody; +} +export function deserializeIntoImLog10PostRequestBody(imLog10PostRequestBody: ImLog10PostRequestBody | undefined = {} as ImLog10PostRequestBody) : Record void> { + return { + "inumber": n => { imLog10PostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImLog10PostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImLog10PostRequestBody(writer: SerializationWriter, imLog10PostRequestBody: ImLog10PostRequestBody | undefined = {} as ImLog10PostRequestBody) : void { + writer.writeObjectValue("inumber", imLog10PostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imLog10PostRequestBody.additionalData); +} /** * Provides operations to call the imLog10 method. */ diff --git a/src/drives/item/items/item/workbook/functions/imLog2/imLog2PostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imLog2/imLog2PostRequestBody.ts deleted file mode 100644 index 0e4ef3bb0e9..00000000000 --- a/src/drives/item/items/item/workbook/functions/imLog2/imLog2PostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImLog2PostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImLog2PostRequestBody; -} -export function deserializeIntoImLog2PostRequestBody(imLog2PostRequestBody: ImLog2PostRequestBody | undefined = {} as ImLog2PostRequestBody) : Record void> { - return { - "inumber": n => { imLog2PostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImLog2PostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImLog2PostRequestBody(writer: SerializationWriter, imLog2PostRequestBody: ImLog2PostRequestBody | undefined = {} as ImLog2PostRequestBody) : void { - writer.writeObjectValue("inumber", imLog2PostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imLog2PostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imLog2/index.ts b/src/drives/item/items/item/workbook/functions/imLog2/index.ts index fdf0b75efbd..468494dc513 100644 --- a/src/drives/item/items/item/workbook/functions/imLog2/index.ts +++ b/src/drives/item/items/item/workbook/functions/imLog2/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImLog2PostRequestBody, serializeImLog2PostRequestBody, type ImLog2PostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImLog2PostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImLog2PostRequestBody; +} +export function deserializeIntoImLog2PostRequestBody(imLog2PostRequestBody: ImLog2PostRequestBody | undefined = {} as ImLog2PostRequestBody) : Record void> { + return { + "inumber": n => { imLog2PostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImLog2PostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImLog2PostRequestBody(writer: SerializationWriter, imLog2PostRequestBody: ImLog2PostRequestBody | undefined = {} as ImLog2PostRequestBody) : void { + writer.writeObjectValue("inumber", imLog2PostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imLog2PostRequestBody.additionalData); +} /** * Provides operations to call the imLog2 method. */ diff --git a/src/drives/item/items/item/workbook/functions/imPower/index.ts b/src/drives/item/items/item/workbook/functions/imPower/index.ts index c030ec447a6..7656c39c450 100644 --- a/src/drives/item/items/item/workbook/functions/imPower/index.ts +++ b/src/drives/item/items/item/workbook/functions/imPower/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImPowerPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeImPowerPostRequestBody(writer: SerializationWriter, imP writer.writeObjectValue("number", imPowerPostRequestBody.number, serializeJson); writer.writeAdditionalData(imPowerPostRequestBody.additionalData); } -/** - * Provides operations to call the imPower method. - */ -export class ImPowerRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImPowerRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imPower"); - }; - /** - * Invoke action imPower - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImPowerPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imPower - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImPowerPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImPowerPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imPowerRequestBuilder - */ - public withUrl(rawUrl: string) : ImPowerRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImPowerRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imProduct/index.ts b/src/drives/item/items/item/workbook/functions/imProduct/index.ts index 8afaedb0fb7..f7ac78e6a21 100644 --- a/src/drives/item/items/item/workbook/functions/imProduct/index.ts +++ b/src/drives/item/items/item/workbook/functions/imProduct/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImProductPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImProductPostRequestBody(writer: SerializationWriter, i writer.writeObjectValue("values", imProductPostRequestBody.values, serializeJson); writer.writeAdditionalData(imProductPostRequestBody.additionalData); } -/** - * Provides operations to call the imProduct method. - */ -export class ImProductRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImProductRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imProduct"); - }; - /** - * Invoke action imProduct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImProductPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imProduct - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImProductPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImProductPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imProductRequestBuilder - */ - public withUrl(rawUrl: string) : ImProductRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImProductRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imReal/index.ts b/src/drives/item/items/item/workbook/functions/imReal/index.ts index 62f4dff168c..e78cf4ff9f0 100644 --- a/src/drives/item/items/item/workbook/functions/imReal/index.ts +++ b/src/drives/item/items/item/workbook/functions/imReal/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImRealPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImRealPostRequestBody(writer: SerializationWriter, imRe writer.writeObjectValue("inumber", imRealPostRequestBody.inumber, serializeJson); writer.writeAdditionalData(imRealPostRequestBody.additionalData); } -/** - * Provides operations to call the imReal method. - */ -export class ImRealRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImRealRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imReal"); - }; - /** - * Invoke action imReal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImRealPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imReal - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImRealPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImRealPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imRealRequestBuilder - */ - public withUrl(rawUrl: string) : ImRealRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImRealRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imSec/index.ts b/src/drives/item/items/item/workbook/functions/imSec/index.ts index d96ff2c65ac..c79f4defa53 100644 --- a/src/drives/item/items/item/workbook/functions/imSec/index.ts +++ b/src/drives/item/items/item/workbook/functions/imSec/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImSecPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImSecPostRequestBody(writer: SerializationWriter, imSec writer.writeObjectValue("inumber", imSecPostRequestBody.inumber, serializeJson); writer.writeAdditionalData(imSecPostRequestBody.additionalData); } -/** - * Provides operations to call the imSec method. - */ -export class ImSecRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImSecRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSec"); - }; - /** - * Invoke action imSec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImSecPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imSec - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImSecPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImSecPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imSecRequestBuilder - */ - public withUrl(rawUrl: string) : ImSecRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImSecRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imSech/index.ts b/src/drives/item/items/item/workbook/functions/imSech/index.ts index 5a3f2f6f941..eec2d3890d0 100644 --- a/src/drives/item/items/item/workbook/functions/imSech/index.ts +++ b/src/drives/item/items/item/workbook/functions/imSech/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImSechPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImSechPostRequestBody(writer: SerializationWriter, imSe writer.writeObjectValue("inumber", imSechPostRequestBody.inumber, serializeJson); writer.writeAdditionalData(imSechPostRequestBody.additionalData); } -/** - * Provides operations to call the imSech method. - */ -export class ImSechRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImSechRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSech"); - }; - /** - * Invoke action imSech - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImSechPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imSech - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImSechPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImSechPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imSechRequestBuilder - */ - public withUrl(rawUrl: string) : ImSechRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImSechRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imSin/imSinPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imSin/imSinPostRequestBody.ts deleted file mode 100644 index 5a293ccc0ec..00000000000 --- a/src/drives/item/items/item/workbook/functions/imSin/imSinPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImSinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImSinPostRequestBody; -} -export function deserializeIntoImSinPostRequestBody(imSinPostRequestBody: ImSinPostRequestBody | undefined = {} as ImSinPostRequestBody) : Record void> { - return { - "inumber": n => { imSinPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImSinPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImSinPostRequestBody(writer: SerializationWriter, imSinPostRequestBody: ImSinPostRequestBody | undefined = {} as ImSinPostRequestBody) : void { - writer.writeObjectValue("inumber", imSinPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imSinPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imSin/index.ts b/src/drives/item/items/item/workbook/functions/imSin/index.ts index 0a58186bc5d..9c96a491d9b 100644 --- a/src/drives/item/items/item/workbook/functions/imSin/index.ts +++ b/src/drives/item/items/item/workbook/functions/imSin/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImSinPostRequestBody, serializeImSinPostRequestBody, type ImSinPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImSinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImSinPostRequestBody; +} +export function deserializeIntoImSinPostRequestBody(imSinPostRequestBody: ImSinPostRequestBody | undefined = {} as ImSinPostRequestBody) : Record void> { + return { + "inumber": n => { imSinPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImSinPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImSinPostRequestBody(writer: SerializationWriter, imSinPostRequestBody: ImSinPostRequestBody | undefined = {} as ImSinPostRequestBody) : void { + writer.writeObjectValue("inumber", imSinPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imSinPostRequestBody.additionalData); +} /** * Provides operations to call the imSin method. */ diff --git a/src/drives/item/items/item/workbook/functions/imSinh/imSinhPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imSinh/imSinhPostRequestBody.ts deleted file mode 100644 index f184a026c0b..00000000000 --- a/src/drives/item/items/item/workbook/functions/imSinh/imSinhPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImSinhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImSinhPostRequestBody; -} -export function deserializeIntoImSinhPostRequestBody(imSinhPostRequestBody: ImSinhPostRequestBody | undefined = {} as ImSinhPostRequestBody) : Record void> { - return { - "inumber": n => { imSinhPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImSinhPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImSinhPostRequestBody(writer: SerializationWriter, imSinhPostRequestBody: ImSinhPostRequestBody | undefined = {} as ImSinhPostRequestBody) : void { - writer.writeObjectValue("inumber", imSinhPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imSinhPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imSinh/index.ts b/src/drives/item/items/item/workbook/functions/imSinh/index.ts index bb1d6128d4b..f869c7e2abf 100644 --- a/src/drives/item/items/item/workbook/functions/imSinh/index.ts +++ b/src/drives/item/items/item/workbook/functions/imSinh/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImSinhPostRequestBody, serializeImSinhPostRequestBody, type ImSinhPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImSinhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImSinhPostRequestBody; +} +export function deserializeIntoImSinhPostRequestBody(imSinhPostRequestBody: ImSinhPostRequestBody | undefined = {} as ImSinhPostRequestBody) : Record void> { + return { + "inumber": n => { imSinhPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImSinhPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImSinhPostRequestBody(writer: SerializationWriter, imSinhPostRequestBody: ImSinhPostRequestBody | undefined = {} as ImSinhPostRequestBody) : void { + writer.writeObjectValue("inumber", imSinhPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imSinhPostRequestBody.additionalData); +} /** * Provides operations to call the imSinh method. */ diff --git a/src/drives/item/items/item/workbook/functions/imSqrt/index.ts b/src/drives/item/items/item/workbook/functions/imSqrt/index.ts index 83224294a93..e13c1c5b8f8 100644 --- a/src/drives/item/items/item/workbook/functions/imSqrt/index.ts +++ b/src/drives/item/items/item/workbook/functions/imSqrt/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createImSqrtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeImSqrtPostRequestBody(writer: SerializationWriter, imSq writer.writeObjectValue("inumber", imSqrtPostRequestBody.inumber, serializeJson); writer.writeAdditionalData(imSqrtPostRequestBody.additionalData); } -/** - * Provides operations to call the imSqrt method. - */ -export class ImSqrtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ImSqrtRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSqrt"); - }; - /** - * Invoke action imSqrt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ImSqrtPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action imSqrt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ImSqrtPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeImSqrtPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a imSqrtRequestBuilder - */ - public withUrl(rawUrl: string) : ImSqrtRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ImSqrtRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imSub/imSubPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imSub/imSubPostRequestBody.ts deleted file mode 100644 index 00cfa91a238..00000000000 --- a/src/drives/item/items/item/workbook/functions/imSub/imSubPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImSubPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImSubPostRequestBody; -} -export function deserializeIntoImSubPostRequestBody(imSubPostRequestBody: ImSubPostRequestBody | undefined = {} as ImSubPostRequestBody) : Record void> { - return { - "inumber1": n => { imSubPostRequestBody.inumber1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "inumber2": n => { imSubPostRequestBody.inumber2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImSubPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber1 property - */ - inumber1?: Json; - /** - * The inumber2 property - */ - inumber2?: Json; -} -export function serializeImSubPostRequestBody(writer: SerializationWriter, imSubPostRequestBody: ImSubPostRequestBody | undefined = {} as ImSubPostRequestBody) : void { - writer.writeObjectValue("inumber1", imSubPostRequestBody.inumber1, serializeJson); - writer.writeObjectValue("inumber2", imSubPostRequestBody.inumber2, serializeJson); - writer.writeAdditionalData(imSubPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imSub/index.ts b/src/drives/item/items/item/workbook/functions/imSub/index.ts index 763fb459f79..513123bbd19 100644 --- a/src/drives/item/items/item/workbook/functions/imSub/index.ts +++ b/src/drives/item/items/item/workbook/functions/imSub/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImSubPostRequestBody, serializeImSubPostRequestBody, type ImSubPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImSubPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImSubPostRequestBody; +} +export function deserializeIntoImSubPostRequestBody(imSubPostRequestBody: ImSubPostRequestBody | undefined = {} as ImSubPostRequestBody) : Record void> { + return { + "inumber1": n => { imSubPostRequestBody.inumber1 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "inumber2": n => { imSubPostRequestBody.inumber2 = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImSubPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber1 property + */ + inumber1?: Json; + /** + * The inumber2 property + */ + inumber2?: Json; +} +export function serializeImSubPostRequestBody(writer: SerializationWriter, imSubPostRequestBody: ImSubPostRequestBody | undefined = {} as ImSubPostRequestBody) : void { + writer.writeObjectValue("inumber1", imSubPostRequestBody.inumber1, serializeJson); + writer.writeObjectValue("inumber2", imSubPostRequestBody.inumber2, serializeJson); + writer.writeAdditionalData(imSubPostRequestBody.additionalData); +} /** * Provides operations to call the imSub method. */ diff --git a/src/drives/item/items/item/workbook/functions/imSum/imSumPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imSum/imSumPostRequestBody.ts deleted file mode 100644 index 5c9c0005701..00000000000 --- a/src/drives/item/items/item/workbook/functions/imSum/imSumPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImSumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImSumPostRequestBody; -} -export function deserializeIntoImSumPostRequestBody(imSumPostRequestBody: ImSumPostRequestBody | undefined = {} as ImSumPostRequestBody) : Record void> { - return { - "values": n => { imSumPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImSumPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeImSumPostRequestBody(writer: SerializationWriter, imSumPostRequestBody: ImSumPostRequestBody | undefined = {} as ImSumPostRequestBody) : void { - writer.writeObjectValue("values", imSumPostRequestBody.values, serializeJson); - writer.writeAdditionalData(imSumPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imSum/index.ts b/src/drives/item/items/item/workbook/functions/imSum/index.ts index ba72fc407ff..e7c0a0c5296 100644 --- a/src/drives/item/items/item/workbook/functions/imSum/index.ts +++ b/src/drives/item/items/item/workbook/functions/imSum/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImSumPostRequestBody, serializeImSumPostRequestBody, type ImSumPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImSumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImSumPostRequestBody; +} +export function deserializeIntoImSumPostRequestBody(imSumPostRequestBody: ImSumPostRequestBody | undefined = {} as ImSumPostRequestBody) : Record void> { + return { + "values": n => { imSumPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImSumPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeImSumPostRequestBody(writer: SerializationWriter, imSumPostRequestBody: ImSumPostRequestBody | undefined = {} as ImSumPostRequestBody) : void { + writer.writeObjectValue("values", imSumPostRequestBody.values, serializeJson); + writer.writeAdditionalData(imSumPostRequestBody.additionalData); +} /** * Provides operations to call the imSum method. */ diff --git a/src/drives/item/items/item/workbook/functions/imTan/imTanPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imTan/imTanPostRequestBody.ts deleted file mode 100644 index c60e595bdc7..00000000000 --- a/src/drives/item/items/item/workbook/functions/imTan/imTanPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImTanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImTanPostRequestBody; -} -export function deserializeIntoImTanPostRequestBody(imTanPostRequestBody: ImTanPostRequestBody | undefined = {} as ImTanPostRequestBody) : Record void> { - return { - "inumber": n => { imTanPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImTanPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImTanPostRequestBody(writer: SerializationWriter, imTanPostRequestBody: ImTanPostRequestBody | undefined = {} as ImTanPostRequestBody) : void { - writer.writeObjectValue("inumber", imTanPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imTanPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imTan/index.ts b/src/drives/item/items/item/workbook/functions/imTan/index.ts index 3763459060e..5e3956ea62d 100644 --- a/src/drives/item/items/item/workbook/functions/imTan/index.ts +++ b/src/drives/item/items/item/workbook/functions/imTan/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImTanPostRequestBody, serializeImTanPostRequestBody, type ImTanPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImTanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImTanPostRequestBody; +} +export function deserializeIntoImTanPostRequestBody(imTanPostRequestBody: ImTanPostRequestBody | undefined = {} as ImTanPostRequestBody) : Record void> { + return { + "inumber": n => { imTanPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImTanPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImTanPostRequestBody(writer: SerializationWriter, imTanPostRequestBody: ImTanPostRequestBody | undefined = {} as ImTanPostRequestBody) : void { + writer.writeObjectValue("inumber", imTanPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imTanPostRequestBody.additionalData); +} /** * Provides operations to call the imTan method. */ diff --git a/src/drives/item/items/item/workbook/functions/imaginary/imaginaryPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/imaginary/imaginaryPostRequestBody.ts deleted file mode 100644 index eaae7c2fa3f..00000000000 --- a/src/drives/item/items/item/workbook/functions/imaginary/imaginaryPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImaginaryPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImaginaryPostRequestBody; -} -export function deserializeIntoImaginaryPostRequestBody(imaginaryPostRequestBody: ImaginaryPostRequestBody | undefined = {} as ImaginaryPostRequestBody) : Record void> { - return { - "inumber": n => { imaginaryPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ImaginaryPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The inumber property - */ - inumber?: Json; -} -export function serializeImaginaryPostRequestBody(writer: SerializationWriter, imaginaryPostRequestBody: ImaginaryPostRequestBody | undefined = {} as ImaginaryPostRequestBody) : void { - writer.writeObjectValue("inumber", imaginaryPostRequestBody.inumber, serializeJson); - writer.writeAdditionalData(imaginaryPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/imaginary/index.ts b/src/drives/item/items/item/workbook/functions/imaginary/index.ts index 74fb89c9484..d6562d28cb4 100644 --- a/src/drives/item/items/item/workbook/functions/imaginary/index.ts +++ b/src/drives/item/items/item/workbook/functions/imaginary/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoImaginaryPostRequestBody, serializeImaginaryPostRequestBody, type ImaginaryPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImaginaryPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImaginaryPostRequestBody; +} +export function deserializeIntoImaginaryPostRequestBody(imaginaryPostRequestBody: ImaginaryPostRequestBody | undefined = {} as ImaginaryPostRequestBody) : Record void> { + return { + "inumber": n => { imaginaryPostRequestBody.inumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ImaginaryPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The inumber property + */ + inumber?: Json; +} +export function serializeImaginaryPostRequestBody(writer: SerializationWriter, imaginaryPostRequestBody: ImaginaryPostRequestBody | undefined = {} as ImaginaryPostRequestBody) : void { + writer.writeObjectValue("inumber", imaginaryPostRequestBody.inumber, serializeJson); + writer.writeAdditionalData(imaginaryPostRequestBody.additionalData); +} /** * Provides operations to call the imaginary method. */ diff --git a/src/drives/item/items/item/workbook/functions/index.ts b/src/drives/item/items/item/workbook/functions/index.ts index 70967227892..299ace1d3de 100644 --- a/src/drives/item/items/item/workbook/functions/index.ts +++ b/src/drives/item/items/item/workbook/functions/index.ts @@ -1,375 +1,375 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionsFromDiscriminatorValue, deserializeIntoWorkbookFunctions, serializeWorkbookFunctions, type WorkbookFunctions } from '../../../../../../models/workbookFunctions'; -import { AbsRequestBuilder } from './abs/'; -import { AccrIntRequestBuilder } from './accrInt/'; -import { AccrIntMRequestBuilder } from './accrIntM/'; -import { AcosRequestBuilder } from './acos/'; -import { AcoshRequestBuilder } from './acosh/'; -import { AcotRequestBuilder } from './acot/'; -import { AcothRequestBuilder } from './acoth/'; -import { AmorDegrcRequestBuilder } from './amorDegrc/'; -import { AmorLincRequestBuilder } from './amorLinc/'; -import { AndRequestBuilder } from './and/'; -import { ArabicRequestBuilder } from './arabic/'; -import { AreasRequestBuilder } from './areas/'; -import { AscRequestBuilder } from './asc/'; -import { AsinRequestBuilder } from './asin/'; -import { AsinhRequestBuilder } from './asinh/'; -import { AtanRequestBuilder } from './atan/'; -import { Atan2RequestBuilder } from './atan2/'; -import { AtanhRequestBuilder } from './atanh/'; -import { AveDevRequestBuilder } from './aveDev/'; -import { AverageRequestBuilder } from './average/'; -import { AverageARequestBuilder } from './averageA/'; -import { AverageIfRequestBuilder } from './averageIf/'; -import { AverageIfsRequestBuilder } from './averageIfs/'; -import { BahtTextRequestBuilder } from './bahtText/'; -import { BaseRequestBuilderEscaped } from './base/'; -import { BesselIRequestBuilder } from './besselI/'; -import { BesselJRequestBuilder } from './besselJ/'; -import { BesselKRequestBuilder } from './besselK/'; -import { BesselYRequestBuilder } from './besselY/'; -import { Beta_DistRequestBuilder } from './beta_Dist/'; -import { Beta_InvRequestBuilder } from './beta_Inv/'; -import { Bin2DecRequestBuilder } from './bin2Dec/'; -import { Bin2HexRequestBuilder } from './bin2Hex/'; -import { Bin2OctRequestBuilder } from './bin2Oct/'; -import { Binom_Dist_RangeRequestBuilder } from './binom_Dist_Range/'; -import { Binom_DistRequestBuilder } from './binom_Dist/'; -import { Binom_InvRequestBuilder } from './binom_Inv/'; -import { BitandRequestBuilder } from './bitand/'; -import { BitlshiftRequestBuilder } from './bitlshift/'; -import { BitorRequestBuilder } from './bitor/'; -import { BitrshiftRequestBuilder } from './bitrshift/'; -import { BitxorRequestBuilder } from './bitxor/'; -import { Ceiling_MathRequestBuilder } from './ceiling_Math/'; -import { Ceiling_PreciseRequestBuilder } from './ceiling_Precise/'; -import { CharRequestBuilder } from './char/'; -import { ChiSq_Dist_RTRequestBuilder } from './chiSq_Dist_RT/'; -import { ChiSq_DistRequestBuilder } from './chiSq_Dist/'; -import { ChiSq_Inv_RTRequestBuilder } from './chiSq_Inv_RT/'; -import { ChiSq_InvRequestBuilder } from './chiSq_Inv/'; -import { ChooseRequestBuilder } from './choose/'; -import { CleanRequestBuilder } from './clean/'; -import { CodeRequestBuilder } from './code/'; -import { ColumnsRequestBuilder } from './columns/'; -import { CombinRequestBuilder } from './combin/'; -import { CombinaRequestBuilder } from './combina/'; -import { ComplexRequestBuilder } from './complex/'; -import { ConcatenateRequestBuilder } from './concatenate/'; -import { Confidence_NormRequestBuilder } from './confidence_Norm/'; -import { Confidence_TRequestBuilder } from './confidence_T/'; -import { ConvertRequestBuilder } from './convert/'; -import { CosRequestBuilder } from './cos/'; -import { CoshRequestBuilder } from './cosh/'; -import { CotRequestBuilder } from './cot/'; -import { CothRequestBuilder } from './coth/'; -import { CountRequestBuilder } from './count/'; -import { CountARequestBuilder } from './countA/'; -import { CountBlankRequestBuilder } from './countBlank/'; -import { CountIfRequestBuilder } from './countIf/'; -import { CountIfsRequestBuilder } from './countIfs/'; -import { CoupDayBsRequestBuilder } from './coupDayBs/'; -import { CoupDaysRequestBuilder } from './coupDays/'; -import { CoupDaysNcRequestBuilder } from './coupDaysNc/'; -import { CoupNcdRequestBuilder } from './coupNcd/'; -import { CoupNumRequestBuilder } from './coupNum/'; -import { CoupPcdRequestBuilder } from './coupPcd/'; -import { CscRequestBuilder } from './csc/'; -import { CschRequestBuilder } from './csch/'; -import { CumIPmtRequestBuilder } from './cumIPmt/'; -import { CumPrincRequestBuilder } from './cumPrinc/'; -import { DateRequestBuilder } from './date/'; -import { DatevalueRequestBuilder } from './datevalue/'; -import { DaverageRequestBuilder } from './daverage/'; -import { DayRequestBuilder } from './day/'; -import { DaysRequestBuilder } from './days/'; -import { Days360RequestBuilder } from './days360/'; -import { DbRequestBuilder } from './db/'; -import { DbcsRequestBuilder } from './dbcs/'; -import { DcountRequestBuilder } from './dcount/'; -import { DcountARequestBuilder } from './dcountA/'; -import { DdbRequestBuilder } from './ddb/'; -import { Dec2BinRequestBuilder } from './dec2Bin/'; -import { Dec2HexRequestBuilder } from './dec2Hex/'; -import { Dec2OctRequestBuilder } from './dec2Oct/'; -import { DecimalRequestBuilder } from './decimal/'; -import { DegreesRequestBuilder } from './degrees/'; -import { DeltaRequestBuilder } from './delta/'; -import { DevSqRequestBuilder } from './devSq/'; -import { DgetRequestBuilder } from './dget/'; -import { DiscRequestBuilder } from './disc/'; -import { DmaxRequestBuilder } from './dmax/'; -import { DminRequestBuilder } from './dmin/'; -import { DollarRequestBuilder } from './dollar/'; -import { DollarDeRequestBuilder } from './dollarDe/'; -import { DollarFrRequestBuilder } from './dollarFr/'; -import { DproductRequestBuilder } from './dproduct/'; -import { DstDevRequestBuilder } from './dstDev/'; -import { DstDevPRequestBuilder } from './dstDevP/'; -import { DsumRequestBuilder } from './dsum/'; -import { DurationRequestBuilder } from './duration/'; -import { DvarRequestBuilder } from './dvar/'; -import { DvarPRequestBuilder } from './dvarP/'; -import { Ecma_CeilingRequestBuilder } from './ecma_Ceiling/'; -import { EdateRequestBuilder } from './edate/'; -import { EffectRequestBuilder } from './effect/'; -import { EoMonthRequestBuilder } from './eoMonth/'; -import { Erf_PreciseRequestBuilder } from './erf_Precise/'; -import { ErfRequestBuilder } from './erf/'; -import { ErfC_PreciseRequestBuilder } from './erfC_Precise/'; -import { ErfCRequestBuilder } from './erfC/'; -import { Error_TypeRequestBuilder } from './error_Type/'; -import { EvenRequestBuilder } from './even/'; -import { ExactRequestBuilder } from './exact/'; -import { ExpRequestBuilder } from './exp/'; -import { Expon_DistRequestBuilder } from './expon_Dist/'; -import { F_Dist_RTRequestBuilder } from './f_Dist_RT/'; -import { F_DistRequestBuilder } from './f_Dist/'; -import { F_Inv_RTRequestBuilder } from './f_Inv_RT/'; -import { F_InvRequestBuilder } from './f_Inv/'; -import { FactRequestBuilder } from './fact/'; -import { FactDoubleRequestBuilder } from './factDouble/'; -import { FalseRequestBuilder } from './falseEscaped/'; -import { FindRequestBuilder } from './find/'; -import { FindBRequestBuilder } from './findB/'; -import { FisherRequestBuilder } from './fisher/'; -import { FisherInvRequestBuilder } from './fisherInv/'; -import { FixedRequestBuilder } from './fixed/'; -import { Floor_MathRequestBuilder } from './floor_Math/'; -import { Floor_PreciseRequestBuilder } from './floor_Precise/'; -import { FvRequestBuilder } from './fv/'; -import { FvscheduleRequestBuilder } from './fvschedule/'; -import { Gamma_DistRequestBuilder } from './gamma_Dist/'; -import { Gamma_InvRequestBuilder } from './gamma_Inv/'; -import { GammaRequestBuilder } from './gamma/'; -import { GammaLn_PreciseRequestBuilder } from './gammaLn_Precise/'; -import { GammaLnRequestBuilder } from './gammaLn/'; -import { GaussRequestBuilder } from './gauss/'; -import { GcdRequestBuilder } from './gcd/'; -import { GeoMeanRequestBuilder } from './geoMean/'; -import { GeStepRequestBuilder } from './geStep/'; -import { HarMeanRequestBuilder } from './harMean/'; -import { Hex2BinRequestBuilder } from './hex2Bin/'; -import { Hex2DecRequestBuilder } from './hex2Dec/'; -import { Hex2OctRequestBuilder } from './hex2Oct/'; -import { HlookupRequestBuilder } from './hlookup/'; -import { HourRequestBuilder } from './hour/'; -import { HyperlinkRequestBuilder } from './hyperlink/'; -import { HypGeom_DistRequestBuilder } from './hypGeom_Dist/'; -import { IfRequestBuilder } from './ifEscaped/'; -import { ImAbsRequestBuilder } from './imAbs/'; -import { ImaginaryRequestBuilder } from './imaginary/'; -import { ImArgumentRequestBuilder } from './imArgument/'; -import { ImConjugateRequestBuilder } from './imConjugate/'; -import { ImCosRequestBuilder } from './imCos/'; -import { ImCoshRequestBuilder } from './imCosh/'; -import { ImCotRequestBuilder } from './imCot/'; -import { ImCscRequestBuilder } from './imCsc/'; -import { ImCschRequestBuilder } from './imCsch/'; -import { ImDivRequestBuilder } from './imDiv/'; -import { ImExpRequestBuilder } from './imExp/'; -import { ImLnRequestBuilder } from './imLn/'; -import { ImLog10RequestBuilder } from './imLog10/'; -import { ImLog2RequestBuilder } from './imLog2/'; -import { ImPowerRequestBuilder } from './imPower/'; -import { ImProductRequestBuilder } from './imProduct/'; -import { ImRealRequestBuilder } from './imReal/'; -import { ImSecRequestBuilder } from './imSec/'; -import { ImSechRequestBuilder } from './imSech/'; -import { ImSinRequestBuilder } from './imSin/'; -import { ImSinhRequestBuilder } from './imSinh/'; -import { ImSqrtRequestBuilder } from './imSqrt/'; -import { ImSubRequestBuilder } from './imSub/'; -import { ImSumRequestBuilder } from './imSum/'; -import { ImTanRequestBuilder } from './imTan/'; -import { IntRequestBuilder } from './int/'; -import { IntRateRequestBuilder } from './intRate/'; -import { IpmtRequestBuilder } from './ipmt/'; -import { IrrRequestBuilder } from './irr/'; -import { IsErrRequestBuilder } from './isErr/'; -import { IsErrorRequestBuilder } from './isError/'; -import { IsEvenRequestBuilder } from './isEven/'; -import { IsFormulaRequestBuilder } from './isFormula/'; -import { IsLogicalRequestBuilder } from './isLogical/'; -import { IsNARequestBuilder } from './isNA/'; -import { IsNonTextRequestBuilder } from './isNonText/'; -import { IsNumberRequestBuilder } from './isNumber/'; -import { Iso_CeilingRequestBuilder } from './iso_Ceiling/'; -import { IsOddRequestBuilder } from './isOdd/'; -import { IsoWeekNumRequestBuilder } from './isoWeekNum/'; -import { IspmtRequestBuilder } from './ispmt/'; -import { IsrefRequestBuilder } from './isref/'; -import { IsTextRequestBuilder } from './isText/'; -import { KurtRequestBuilder } from './kurt/'; -import { LargeRequestBuilder } from './large/'; -import { LcmRequestBuilder } from './lcm/'; -import { LeftRequestBuilder } from './left/'; -import { LeftbRequestBuilder } from './leftb/'; -import { LenRequestBuilder } from './len/'; -import { LenbRequestBuilder } from './lenb/'; -import { LnRequestBuilder } from './ln/'; -import { LogRequestBuilder } from './log/'; -import { Log10RequestBuilder } from './log10/'; -import { LogNorm_DistRequestBuilder } from './logNorm_Dist/'; -import { LogNorm_InvRequestBuilder } from './logNorm_Inv/'; -import { LookupRequestBuilder } from './lookup/'; -import { LowerRequestBuilder } from './lower/'; -import { MatchRequestBuilder } from './match/'; -import { MaxRequestBuilder } from './max/'; -import { MaxARequestBuilder } from './maxA/'; -import { MdurationRequestBuilder } from './mduration/'; -import { MedianRequestBuilder } from './median/'; -import { MidRequestBuilder } from './mid/'; -import { MidbRequestBuilder } from './midb/'; -import { MinRequestBuilder } from './min/'; -import { MinARequestBuilder } from './minA/'; -import { MinuteRequestBuilder } from './minute/'; -import { MirrRequestBuilder } from './mirr/'; -import { ModRequestBuilder } from './mod/'; -import { MonthRequestBuilder } from './month/'; -import { MroundRequestBuilder } from './mround/'; -import { MultiNomialRequestBuilder } from './multiNomial/'; -import { NRequestBuilder } from './n/'; -import { NaRequestBuilder } from './na/'; -import { NegBinom_DistRequestBuilder } from './negBinom_Dist/'; -import { NetworkDays_IntlRequestBuilder } from './networkDays_Intl/'; -import { NetworkDaysRequestBuilder } from './networkDays/'; -import { NominalRequestBuilder } from './nominal/'; -import { Norm_DistRequestBuilder } from './norm_Dist/'; -import { Norm_InvRequestBuilder } from './norm_Inv/'; -import { Norm_S_DistRequestBuilder } from './norm_S_Dist/'; -import { Norm_S_InvRequestBuilder } from './norm_S_Inv/'; -import { NotRequestBuilder } from './not/'; -import { NowRequestBuilder } from './now/'; -import { NperRequestBuilder } from './nper/'; -import { NpvRequestBuilder } from './npv/'; -import { NumberValueRequestBuilder } from './numberValue/'; -import { Oct2BinRequestBuilder } from './oct2Bin/'; -import { Oct2DecRequestBuilder } from './oct2Dec/'; -import { Oct2HexRequestBuilder } from './oct2Hex/'; -import { OddRequestBuilder } from './odd/'; -import { OddFPriceRequestBuilder } from './oddFPrice/'; -import { OddFYieldRequestBuilder } from './oddFYield/'; -import { OddLPriceRequestBuilder } from './oddLPrice/'; -import { OddLYieldRequestBuilder } from './oddLYield/'; -import { OrRequestBuilder } from './or/'; -import { PdurationRequestBuilder } from './pduration/'; -import { Percentile_ExcRequestBuilder } from './percentile_Exc/'; -import { Percentile_IncRequestBuilder } from './percentile_Inc/'; -import { PercentRank_ExcRequestBuilder } from './percentRank_Exc/'; -import { PercentRank_IncRequestBuilder } from './percentRank_Inc/'; -import { PermutRequestBuilder } from './permut/'; -import { PermutationaRequestBuilder } from './permutationa/'; -import { PhiRequestBuilder } from './phi/'; -import { PiRequestBuilder } from './pi/'; -import { PmtRequestBuilder } from './pmt/'; -import { Poisson_DistRequestBuilder } from './poisson_Dist/'; -import { PowerRequestBuilder } from './power/'; -import { PpmtRequestBuilder } from './ppmt/'; -import { PriceRequestBuilder } from './price/'; -import { PriceDiscRequestBuilder } from './priceDisc/'; -import { PriceMatRequestBuilder } from './priceMat/'; -import { ProductRequestBuilder } from './product/'; -import { ProperRequestBuilder } from './proper/'; -import { PvRequestBuilder } from './pv/'; -import { Quartile_ExcRequestBuilder } from './quartile_Exc/'; -import { Quartile_IncRequestBuilder } from './quartile_Inc/'; -import { QuotientRequestBuilder } from './quotient/'; -import { RadiansRequestBuilder } from './radians/'; -import { RandRequestBuilder } from './rand/'; -import { RandBetweenRequestBuilder } from './randBetween/'; -import { Rank_AvgRequestBuilder } from './rank_Avg/'; -import { Rank_EqRequestBuilder } from './rank_Eq/'; -import { RateRequestBuilder } from './rate/'; -import { ReceivedRequestBuilder } from './received/'; -import { ReplaceRequestBuilder } from './replace/'; -import { ReplaceBRequestBuilder } from './replaceB/'; -import { ReptRequestBuilder } from './rept/'; -import { RightRequestBuilder } from './right/'; -import { RightbRequestBuilder } from './rightb/'; -import { RomanRequestBuilder } from './roman/'; -import { RoundRequestBuilder } from './round/'; -import { RoundDownRequestBuilder } from './roundDown/'; -import { RoundUpRequestBuilder } from './roundUp/'; -import { RowsRequestBuilder } from './rows/'; -import { RriRequestBuilder } from './rri/'; -import { SecRequestBuilder } from './sec/'; -import { SechRequestBuilder } from './sech/'; -import { SecondRequestBuilder } from './second/'; -import { SeriesSumRequestBuilder } from './seriesSum/'; -import { SheetRequestBuilder } from './sheet/'; -import { SheetsRequestBuilder } from './sheets/'; -import { SignRequestBuilder } from './sign/'; -import { SinRequestBuilder } from './sin/'; -import { SinhRequestBuilder } from './sinh/'; -import { Skew_pRequestBuilder } from './skew_p/'; -import { SkewRequestBuilder } from './skew/'; -import { SlnRequestBuilder } from './sln/'; -import { SmallRequestBuilder } from './small/'; -import { SqrtRequestBuilder } from './sqrt/'; -import { SqrtPiRequestBuilder } from './sqrtPi/'; -import { StandardizeRequestBuilder } from './standardize/'; -import { StDev_PRequestBuilder } from './stDev_P/'; -import { StDev_SRequestBuilder } from './stDev_S/'; -import { StDevARequestBuilder } from './stDevA/'; -import { StDevPARequestBuilder } from './stDevPA/'; -import { SubstituteRequestBuilder } from './substitute/'; -import { SubtotalRequestBuilder } from './subtotal/'; -import { SumRequestBuilder } from './sum/'; -import { SumIfRequestBuilder } from './sumIf/'; -import { SumIfsRequestBuilder } from './sumIfs/'; -import { SumSqRequestBuilder } from './sumSq/'; -import { SydRequestBuilder } from './syd/'; -import { T_Dist_2TRequestBuilder } from './t_Dist_2T/'; -import { T_Dist_RTRequestBuilder } from './t_Dist_RT/'; -import { T_DistRequestBuilder } from './t_Dist/'; -import { T_Inv_2TRequestBuilder } from './t_Inv_2T/'; -import { T_InvRequestBuilder } from './t_Inv/'; -import { TRequestBuilder } from './t/'; -import { TanRequestBuilder } from './tan/'; -import { TanhRequestBuilder } from './tanh/'; -import { TbillEqRequestBuilder } from './tbillEq/'; -import { TbillPriceRequestBuilder } from './tbillPrice/'; -import { TbillYieldRequestBuilder } from './tbillYield/'; -import { TextRequestBuilder } from './text/'; -import { TimeRequestBuilder } from './time/'; -import { TimevalueRequestBuilder } from './timevalue/'; -import { TodayRequestBuilder } from './today/'; -import { TrimRequestBuilder } from './trim/'; -import { TrimMeanRequestBuilder } from './trimMean/'; -import { TrueRequestBuilder } from './trueEscaped/'; -import { TruncRequestBuilder } from './trunc/'; -import { TypeRequestBuilder } from './type/'; -import { UnicharRequestBuilder } from './unichar/'; -import { UnicodeRequestBuilder } from './unicode/'; -import { UpperRequestBuilder } from './upper/'; -import { UsdollarRequestBuilder } from './usdollar/'; -import { ValueRequestBuilder } from './value/'; -import { Var_PRequestBuilder } from './var_P/'; -import { Var_SRequestBuilder } from './var_S/'; -import { VarARequestBuilder } from './varA/'; -import { VarPARequestBuilder } from './varPA/'; -import { VdbRequestBuilder } from './vdb/'; -import { VlookupRequestBuilder } from './vlookup/'; -import { WeekdayRequestBuilder } from './weekday/'; -import { WeekNumRequestBuilder } from './weekNum/'; -import { Weibull_DistRequestBuilder } from './weibull_Dist/'; -import { WorkDay_IntlRequestBuilder } from './workDay_Intl/'; -import { WorkDayRequestBuilder } from './workDay/'; -import { XirrRequestBuilder } from './xirr/'; -import { XnpvRequestBuilder } from './xnpv/'; -import { XorRequestBuilder } from './xor/'; -import { YearRequestBuilder } from './year/'; -import { YearFracRequestBuilder } from './yearFrac/'; -import { YieldRequestBuilder } from './yield/'; -import { YieldDiscRequestBuilder } from './yieldDisc/'; -import { YieldMatRequestBuilder } from './yieldMat/'; -import { Z_TestRequestBuilder } from './z_Test/'; +import { AbsRequestBuilder } from './abs'; +import { AccrIntRequestBuilder } from './accrInt'; +import { AccrIntMRequestBuilder } from './accrIntM'; +import { AcosRequestBuilder } from './acos'; +import { AcoshRequestBuilder } from './acosh'; +import { AcotRequestBuilder } from './acot'; +import { AcothRequestBuilder } from './acoth'; +import { AmorDegrcRequestBuilder } from './amorDegrc'; +import { AmorLincRequestBuilder } from './amorLinc'; +import { AndRequestBuilder } from './and'; +import { ArabicRequestBuilder } from './arabic'; +import { AreasRequestBuilder } from './areas'; +import { AscRequestBuilder } from './asc'; +import { AsinRequestBuilder } from './asin'; +import { AsinhRequestBuilder } from './asinh'; +import { AtanRequestBuilder } from './atan'; +import { Atan2RequestBuilder } from './atan2'; +import { AtanhRequestBuilder } from './atanh'; +import { AveDevRequestBuilder } from './aveDev'; +import { AverageRequestBuilder } from './average'; +import { AverageARequestBuilder } from './averageA'; +import { AverageIfRequestBuilder } from './averageIf'; +import { AverageIfsRequestBuilder } from './averageIfs'; +import { BahtTextRequestBuilder } from './bahtText'; +import { BaseRequestBuilderEscaped } from './base'; +import { BesselIRequestBuilder } from './besselI'; +import { BesselJRequestBuilder } from './besselJ'; +import { BesselKRequestBuilder } from './besselK'; +import { BesselYRequestBuilder } from './besselY'; +import { Beta_DistRequestBuilder } from './beta_Dist'; +import { Beta_InvRequestBuilder } from './beta_Inv'; +import { Bin2DecRequestBuilder } from './bin2Dec'; +import { Bin2HexRequestBuilder } from './bin2Hex'; +import { Bin2OctRequestBuilder } from './bin2Oct'; +import { Binom_DistRequestBuilder } from './binom_Dist'; +import { Binom_Dist_RangeRequestBuilder } from './binom_Dist_Range'; +import { Binom_InvRequestBuilder } from './binom_Inv'; +import { BitandRequestBuilder } from './bitand'; +import { BitlshiftRequestBuilder } from './bitlshift'; +import { BitorRequestBuilder } from './bitor'; +import { BitrshiftRequestBuilder } from './bitrshift'; +import { BitxorRequestBuilder } from './bitxor'; +import { Ceiling_MathRequestBuilder } from './ceiling_Math'; +import { Ceiling_PreciseRequestBuilder } from './ceiling_Precise'; +import { CharRequestBuilder } from './char'; +import { ChiSq_DistRequestBuilder } from './chiSq_Dist'; +import { ChiSq_Dist_RTRequestBuilder } from './chiSq_Dist_RT'; +import { ChiSq_InvRequestBuilder } from './chiSq_Inv'; +import { ChiSq_Inv_RTRequestBuilder } from './chiSq_Inv_RT'; +import { ChooseRequestBuilder } from './choose'; +import { CleanRequestBuilder } from './clean'; +import { CodeRequestBuilder } from './code'; +import { ColumnsRequestBuilder } from './columns'; +import { CombinRequestBuilder } from './combin'; +import { CombinaRequestBuilder } from './combina'; +import { ComplexRequestBuilder } from './complex'; +import { ConcatenateRequestBuilder } from './concatenate'; +import { Confidence_NormRequestBuilder } from './confidence_Norm'; +import { Confidence_TRequestBuilder } from './confidence_T'; +import { ConvertRequestBuilder } from './convert'; +import { CosRequestBuilder } from './cos'; +import { CoshRequestBuilder } from './cosh'; +import { CotRequestBuilder } from './cot'; +import { CothRequestBuilder } from './coth'; +import { CountRequestBuilder } from './count'; +import { CountARequestBuilder } from './countA'; +import { CountBlankRequestBuilder } from './countBlank'; +import { CountIfRequestBuilder } from './countIf'; +import { CountIfsRequestBuilder } from './countIfs'; +import { CoupDayBsRequestBuilder } from './coupDayBs'; +import { CoupDaysRequestBuilder } from './coupDays'; +import { CoupDaysNcRequestBuilder } from './coupDaysNc'; +import { CoupNcdRequestBuilder } from './coupNcd'; +import { CoupNumRequestBuilder } from './coupNum'; +import { CoupPcdRequestBuilder } from './coupPcd'; +import { CscRequestBuilder } from './csc'; +import { CschRequestBuilder } from './csch'; +import { CumIPmtRequestBuilder } from './cumIPmt'; +import { CumPrincRequestBuilder } from './cumPrinc'; +import { DateRequestBuilder } from './date'; +import { DatevalueRequestBuilder } from './datevalue'; +import { DaverageRequestBuilder } from './daverage'; +import { DayRequestBuilder } from './day'; +import { DaysRequestBuilder } from './days'; +import { Days360RequestBuilder } from './days360'; +import { DbRequestBuilder } from './db'; +import { DbcsRequestBuilder } from './dbcs'; +import { DcountRequestBuilder } from './dcount'; +import { DcountARequestBuilder } from './dcountA'; +import { DdbRequestBuilder } from './ddb'; +import { Dec2BinRequestBuilder } from './dec2Bin'; +import { Dec2HexRequestBuilder } from './dec2Hex'; +import { Dec2OctRequestBuilder } from './dec2Oct'; +import { DecimalRequestBuilder } from './decimal'; +import { DegreesRequestBuilder } from './degrees'; +import { DeltaRequestBuilder } from './delta'; +import { DevSqRequestBuilder } from './devSq'; +import { DgetRequestBuilder } from './dget'; +import { DiscRequestBuilder } from './disc'; +import { DmaxRequestBuilder } from './dmax'; +import { DminRequestBuilder } from './dmin'; +import { DollarRequestBuilder } from './dollar'; +import { DollarDeRequestBuilder } from './dollarDe'; +import { DollarFrRequestBuilder } from './dollarFr'; +import { DproductRequestBuilder } from './dproduct'; +import { DstDevRequestBuilder } from './dstDev'; +import { DstDevPRequestBuilder } from './dstDevP'; +import { DsumRequestBuilder } from './dsum'; +import { DurationRequestBuilder } from './duration'; +import { DvarRequestBuilder } from './dvar'; +import { DvarPRequestBuilder } from './dvarP'; +import { Ecma_CeilingRequestBuilder } from './ecma_Ceiling'; +import { EdateRequestBuilder } from './edate'; +import { EffectRequestBuilder } from './effect'; +import { EoMonthRequestBuilder } from './eoMonth'; +import { ErfRequestBuilder } from './erf'; +import { Erf_PreciseRequestBuilder } from './erf_Precise'; +import { ErfCRequestBuilder } from './erfC'; +import { ErfC_PreciseRequestBuilder } from './erfC_Precise'; +import { Error_TypeRequestBuilder } from './error_Type'; +import { EvenRequestBuilder } from './even'; +import { ExactRequestBuilder } from './exact'; +import { ExpRequestBuilder } from './exp'; +import { Expon_DistRequestBuilder } from './expon_Dist'; +import { F_DistRequestBuilder } from './f_Dist'; +import { F_Dist_RTRequestBuilder } from './f_Dist_RT'; +import { F_InvRequestBuilder } from './f_Inv'; +import { F_Inv_RTRequestBuilder } from './f_Inv_RT'; +import { FactRequestBuilder } from './fact'; +import { FactDoubleRequestBuilder } from './factDouble'; +import { FalseRequestBuilder } from './falseEscaped'; +import { FindRequestBuilder } from './find'; +import { FindBRequestBuilder } from './findB'; +import { FisherRequestBuilder } from './fisher'; +import { FisherInvRequestBuilder } from './fisherInv'; +import { FixedRequestBuilder } from './fixed'; +import { Floor_MathRequestBuilder } from './floor_Math'; +import { Floor_PreciseRequestBuilder } from './floor_Precise'; +import { FvRequestBuilder } from './fv'; +import { FvscheduleRequestBuilder } from './fvschedule'; +import { GammaRequestBuilder } from './gamma'; +import { Gamma_DistRequestBuilder } from './gamma_Dist'; +import { Gamma_InvRequestBuilder } from './gamma_Inv'; +import { GammaLnRequestBuilder } from './gammaLn'; +import { GammaLn_PreciseRequestBuilder } from './gammaLn_Precise'; +import { GaussRequestBuilder } from './gauss'; +import { GcdRequestBuilder } from './gcd'; +import { GeoMeanRequestBuilder } from './geoMean'; +import { GeStepRequestBuilder } from './geStep'; +import { HarMeanRequestBuilder } from './harMean'; +import { Hex2BinRequestBuilder } from './hex2Bin'; +import { Hex2DecRequestBuilder } from './hex2Dec'; +import { Hex2OctRequestBuilder } from './hex2Oct'; +import { HlookupRequestBuilder } from './hlookup'; +import { HourRequestBuilder } from './hour'; +import { HyperlinkRequestBuilder } from './hyperlink'; +import { HypGeom_DistRequestBuilder } from './hypGeom_Dist'; +import { IfRequestBuilder } from './ifEscaped'; +import { ImAbsRequestBuilder } from './imAbs'; +import { ImaginaryRequestBuilder } from './imaginary'; +import { ImArgumentRequestBuilder } from './imArgument'; +import { ImConjugateRequestBuilder } from './imConjugate'; +import { ImCosRequestBuilder } from './imCos'; +import { ImCoshRequestBuilder } from './imCosh'; +import { ImCotRequestBuilder } from './imCot'; +import { ImCscRequestBuilder } from './imCsc'; +import { ImCschRequestBuilder } from './imCsch'; +import { ImDivRequestBuilder } from './imDiv'; +import { ImExpRequestBuilder } from './imExp'; +import { ImLnRequestBuilder } from './imLn'; +import { ImLog10RequestBuilder } from './imLog10'; +import { ImLog2RequestBuilder } from './imLog2'; +import { ImPowerRequestBuilder } from './imPower'; +import { ImProductRequestBuilder } from './imProduct'; +import { ImRealRequestBuilder } from './imReal'; +import { ImSecRequestBuilder } from './imSec'; +import { ImSechRequestBuilder } from './imSech'; +import { ImSinRequestBuilder } from './imSin'; +import { ImSinhRequestBuilder } from './imSinh'; +import { ImSqrtRequestBuilder } from './imSqrt'; +import { ImSubRequestBuilder } from './imSub'; +import { ImSumRequestBuilder } from './imSum'; +import { ImTanRequestBuilder } from './imTan'; +import { IntRequestBuilder } from './int'; +import { IntRateRequestBuilder } from './intRate'; +import { IpmtRequestBuilder } from './ipmt'; +import { IrrRequestBuilder } from './irr'; +import { IsErrRequestBuilder } from './isErr'; +import { IsErrorRequestBuilder } from './isError'; +import { IsEvenRequestBuilder } from './isEven'; +import { IsFormulaRequestBuilder } from './isFormula'; +import { IsLogicalRequestBuilder } from './isLogical'; +import { IsNARequestBuilder } from './isNA'; +import { IsNonTextRequestBuilder } from './isNonText'; +import { IsNumberRequestBuilder } from './isNumber'; +import { Iso_CeilingRequestBuilder } from './iso_Ceiling'; +import { IsOddRequestBuilder } from './isOdd'; +import { IsoWeekNumRequestBuilder } from './isoWeekNum'; +import { IspmtRequestBuilder } from './ispmt'; +import { IsrefRequestBuilder } from './isref'; +import { IsTextRequestBuilder } from './isText'; +import { KurtRequestBuilder } from './kurt'; +import { LargeRequestBuilder } from './large'; +import { LcmRequestBuilder } from './lcm'; +import { LeftRequestBuilder } from './left'; +import { LeftbRequestBuilder } from './leftb'; +import { LenRequestBuilder } from './len'; +import { LenbRequestBuilder } from './lenb'; +import { LnRequestBuilder } from './ln'; +import { LogRequestBuilder } from './log'; +import { Log10RequestBuilder } from './log10'; +import { LogNorm_DistRequestBuilder } from './logNorm_Dist'; +import { LogNorm_InvRequestBuilder } from './logNorm_Inv'; +import { LookupRequestBuilder } from './lookup'; +import { LowerRequestBuilder } from './lower'; +import { MatchRequestBuilder } from './match'; +import { MaxRequestBuilder } from './max'; +import { MaxARequestBuilder } from './maxA'; +import { MdurationRequestBuilder } from './mduration'; +import { MedianRequestBuilder } from './median'; +import { MidRequestBuilder } from './mid'; +import { MidbRequestBuilder } from './midb'; +import { MinRequestBuilder } from './min'; +import { MinARequestBuilder } from './minA'; +import { MinuteRequestBuilder } from './minute'; +import { MirrRequestBuilder } from './mirr'; +import { ModRequestBuilder } from './mod'; +import { MonthRequestBuilder } from './month'; +import { MroundRequestBuilder } from './mround'; +import { MultiNomialRequestBuilder } from './multiNomial'; +import { NRequestBuilder } from './n'; +import { NaRequestBuilder } from './na'; +import { NegBinom_DistRequestBuilder } from './negBinom_Dist'; +import { NetworkDaysRequestBuilder } from './networkDays'; +import { NetworkDays_IntlRequestBuilder } from './networkDays_Intl'; +import { NominalRequestBuilder } from './nominal'; +import { Norm_DistRequestBuilder } from './norm_Dist'; +import { Norm_InvRequestBuilder } from './norm_Inv'; +import { Norm_S_DistRequestBuilder } from './norm_S_Dist'; +import { Norm_S_InvRequestBuilder } from './norm_S_Inv'; +import { NotRequestBuilder } from './not'; +import { NowRequestBuilder } from './now'; +import { NperRequestBuilder } from './nper'; +import { NpvRequestBuilder } from './npv'; +import { NumberValueRequestBuilder } from './numberValue'; +import { Oct2BinRequestBuilder } from './oct2Bin'; +import { Oct2DecRequestBuilder } from './oct2Dec'; +import { Oct2HexRequestBuilder } from './oct2Hex'; +import { OddRequestBuilder } from './odd'; +import { OddFPriceRequestBuilder } from './oddFPrice'; +import { OddFYieldRequestBuilder } from './oddFYield'; +import { OddLPriceRequestBuilder } from './oddLPrice'; +import { OddLYieldRequestBuilder } from './oddLYield'; +import { OrRequestBuilder } from './or'; +import { PdurationRequestBuilder } from './pduration'; +import { Percentile_ExcRequestBuilder } from './percentile_Exc'; +import { Percentile_IncRequestBuilder } from './percentile_Inc'; +import { PercentRank_ExcRequestBuilder } from './percentRank_Exc'; +import { PercentRank_IncRequestBuilder } from './percentRank_Inc'; +import { PermutRequestBuilder } from './permut'; +import { PermutationaRequestBuilder } from './permutationa'; +import { PhiRequestBuilder } from './phi'; +import { PiRequestBuilder } from './pi'; +import { PmtRequestBuilder } from './pmt'; +import { Poisson_DistRequestBuilder } from './poisson_Dist'; +import { PowerRequestBuilder } from './power'; +import { PpmtRequestBuilder } from './ppmt'; +import { PriceRequestBuilder } from './price'; +import { PriceDiscRequestBuilder } from './priceDisc'; +import { PriceMatRequestBuilder } from './priceMat'; +import { ProductRequestBuilder } from './product'; +import { ProperRequestBuilder } from './proper'; +import { PvRequestBuilder } from './pv'; +import { Quartile_ExcRequestBuilder } from './quartile_Exc'; +import { Quartile_IncRequestBuilder } from './quartile_Inc'; +import { QuotientRequestBuilder } from './quotient'; +import { RadiansRequestBuilder } from './radians'; +import { RandRequestBuilder } from './rand'; +import { RandBetweenRequestBuilder } from './randBetween'; +import { Rank_AvgRequestBuilder } from './rank_Avg'; +import { Rank_EqRequestBuilder } from './rank_Eq'; +import { RateRequestBuilder } from './rate'; +import { ReceivedRequestBuilder } from './received'; +import { ReplaceRequestBuilder } from './replace'; +import { ReplaceBRequestBuilder } from './replaceB'; +import { ReptRequestBuilder } from './rept'; +import { RightRequestBuilder } from './right'; +import { RightbRequestBuilder } from './rightb'; +import { RomanRequestBuilder } from './roman'; +import { RoundRequestBuilder } from './round'; +import { RoundDownRequestBuilder } from './roundDown'; +import { RoundUpRequestBuilder } from './roundUp'; +import { RowsRequestBuilder } from './rows'; +import { RriRequestBuilder } from './rri'; +import { SecRequestBuilder } from './sec'; +import { SechRequestBuilder } from './sech'; +import { SecondRequestBuilder } from './second'; +import { SeriesSumRequestBuilder } from './seriesSum'; +import { SheetRequestBuilder } from './sheet'; +import { SheetsRequestBuilder } from './sheets'; +import { SignRequestBuilder } from './sign'; +import { SinRequestBuilder } from './sin'; +import { SinhRequestBuilder } from './sinh'; +import { SkewRequestBuilder } from './skew'; +import { Skew_pRequestBuilder } from './skew_p'; +import { SlnRequestBuilder } from './sln'; +import { SmallRequestBuilder } from './small'; +import { SqrtRequestBuilder } from './sqrt'; +import { SqrtPiRequestBuilder } from './sqrtPi'; +import { StandardizeRequestBuilder } from './standardize'; +import { StDev_PRequestBuilder } from './stDev_P'; +import { StDev_SRequestBuilder } from './stDev_S'; +import { StDevARequestBuilder } from './stDevA'; +import { StDevPARequestBuilder } from './stDevPA'; +import { SubstituteRequestBuilder } from './substitute'; +import { SubtotalRequestBuilder } from './subtotal'; +import { SumRequestBuilder } from './sum'; +import { SumIfRequestBuilder } from './sumIf'; +import { SumIfsRequestBuilder } from './sumIfs'; +import { SumSqRequestBuilder } from './sumSq'; +import { SydRequestBuilder } from './syd'; +import { TRequestBuilder } from './t'; +import { T_DistRequestBuilder } from './t_Dist'; +import { T_Dist_2TRequestBuilder } from './t_Dist_2T'; +import { T_Dist_RTRequestBuilder } from './t_Dist_RT'; +import { T_InvRequestBuilder } from './t_Inv'; +import { T_Inv_2TRequestBuilder } from './t_Inv_2T'; +import { TanRequestBuilder } from './tan'; +import { TanhRequestBuilder } from './tanh'; +import { TbillEqRequestBuilder } from './tbillEq'; +import { TbillPriceRequestBuilder } from './tbillPrice'; +import { TbillYieldRequestBuilder } from './tbillYield'; +import { TextRequestBuilder } from './text'; +import { TimeRequestBuilder } from './time'; +import { TimevalueRequestBuilder } from './timevalue'; +import { TodayRequestBuilder } from './today'; +import { TrimRequestBuilder } from './trim'; +import { TrimMeanRequestBuilder } from './trimMean'; +import { TrueRequestBuilder } from './trueEscaped'; +import { TruncRequestBuilder } from './trunc'; +import { TypeRequestBuilder } from './type'; +import { UnicharRequestBuilder } from './unichar'; +import { UnicodeRequestBuilder } from './unicode'; +import { UpperRequestBuilder } from './upper'; +import { UsdollarRequestBuilder } from './usdollar'; +import { ValueRequestBuilder } from './value'; +import { Var_PRequestBuilder } from './var_P'; +import { Var_SRequestBuilder } from './var_S'; +import { VarARequestBuilder } from './varA'; +import { VarPARequestBuilder } from './varPA'; +import { VdbRequestBuilder } from './vdb'; +import { VlookupRequestBuilder } from './vlookup'; +import { WeekdayRequestBuilder } from './weekday'; +import { WeekNumRequestBuilder } from './weekNum'; +import { Weibull_DistRequestBuilder } from './weibull_Dist'; +import { WorkDayRequestBuilder } from './workDay'; +import { WorkDay_IntlRequestBuilder } from './workDay_Intl'; +import { XirrRequestBuilder } from './xirr'; +import { XnpvRequestBuilder } from './xnpv'; +import { XorRequestBuilder } from './xor'; +import { YearRequestBuilder } from './year'; +import { YearFracRequestBuilder } from './yearFrac'; +import { YieldRequestBuilder } from './yield'; +import { YieldDiscRequestBuilder } from './yieldDisc'; +import { YieldMatRequestBuilder } from './yieldMat'; +import { Z_TestRequestBuilder } from './z_Test'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FunctionsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/functions/int/index.ts b/src/drives/item/items/item/workbook/functions/int/index.ts index b904c188d64..a781dc94530 100644 --- a/src/drives/item/items/item/workbook/functions/int/index.ts +++ b/src/drives/item/items/item/workbook/functions/int/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIntPostRequestBody, serializeIntPostRequestBody, type IntPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIntPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIntPostRequestBody; +} +export function deserializeIntoIntPostRequestBody(intPostRequestBody: IntPostRequestBody | undefined = {} as IntPostRequestBody) : Record void> { + return { + "number": n => { intPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IntPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeIntPostRequestBody(writer: SerializationWriter, intPostRequestBody: IntPostRequestBody | undefined = {} as IntPostRequestBody) : void { + writer.writeObjectValue("number", intPostRequestBody.number, serializeJson); + writer.writeAdditionalData(intPostRequestBody.additionalData); +} /** * Provides operations to call the int method. */ diff --git a/src/drives/item/items/item/workbook/functions/int/intPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/int/intPostRequestBody.ts deleted file mode 100644 index 6c27793d7e0..00000000000 --- a/src/drives/item/items/item/workbook/functions/int/intPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIntPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIntPostRequestBody; -} -export function deserializeIntoIntPostRequestBody(intPostRequestBody: IntPostRequestBody | undefined = {} as IntPostRequestBody) : Record void> { - return { - "number": n => { intPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IntPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeIntPostRequestBody(writer: SerializationWriter, intPostRequestBody: IntPostRequestBody | undefined = {} as IntPostRequestBody) : void { - writer.writeObjectValue("number", intPostRequestBody.number, serializeJson); - writer.writeAdditionalData(intPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/intRate/index.ts b/src/drives/item/items/item/workbook/functions/intRate/index.ts index a79c9a6175b..5edc5c8d80e 100644 --- a/src/drives/item/items/item/workbook/functions/intRate/index.ts +++ b/src/drives/item/items/item/workbook/functions/intRate/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIntRatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -51,5 +54,57 @@ export function serializeIntRatePostRequestBody(writer: SerializationWriter, int writer.writeObjectValue("settlement", intRatePostRequestBody.settlement, serializeJson); writer.writeAdditionalData(intRatePostRequestBody.additionalData); } +/** + * Provides operations to call the intRate method. + */ +export class IntRateRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new IntRateRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/intRate"); + }; + /** + * Invoke action intRate + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: IntRatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action intRate + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: IntRatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIntRatePostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a intRateRequestBuilder + */ + public withUrl(rawUrl: string) : IntRateRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new IntRateRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/intRate/intRatePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/intRate/intRatePostRequestBody.ts deleted file mode 100644 index 1dd2df3dbcc..00000000000 --- a/src/drives/item/items/item/workbook/functions/intRate/intRatePostRequestBody.ts +++ /dev/null @@ -1,55 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIntRatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIntRatePostRequestBody; -} -export function deserializeIntoIntRatePostRequestBody(intRatePostRequestBody: IntRatePostRequestBody | undefined = {} as IntRatePostRequestBody) : Record void> { - return { - "basis": n => { intRatePostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "investment": n => { intRatePostRequestBody.investment = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { intRatePostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "redemption": n => { intRatePostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { intRatePostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IntRatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The investment property - */ - investment?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The redemption property - */ - redemption?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -export function serializeIntRatePostRequestBody(writer: SerializationWriter, intRatePostRequestBody: IntRatePostRequestBody | undefined = {} as IntRatePostRequestBody) : void { - writer.writeObjectValue("basis", intRatePostRequestBody.basis, serializeJson); - writer.writeObjectValue("investment", intRatePostRequestBody.investment, serializeJson); - writer.writeObjectValue("maturity", intRatePostRequestBody.maturity, serializeJson); - writer.writeObjectValue("redemption", intRatePostRequestBody.redemption, serializeJson); - writer.writeObjectValue("settlement", intRatePostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(intRatePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ipmt/index.ts b/src/drives/item/items/item/workbook/functions/ipmt/index.ts index b0ee6931d77..c474f378bb9 100644 --- a/src/drives/item/items/item/workbook/functions/ipmt/index.ts +++ b/src/drives/item/items/item/workbook/functions/ipmt/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIpmtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -60,57 +57,5 @@ export function serializeIpmtPostRequestBody(writer: SerializationWriter, ipmtPo writer.writeObjectValue("type", ipmtPostRequestBody.type, serializeJson); writer.writeAdditionalData(ipmtPostRequestBody.additionalData); } -/** - * Provides operations to call the ipmt method. - */ -export class IpmtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new IpmtRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ipmt"); - }; - /** - * Invoke action ipmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: IpmtPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action ipmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: IpmtPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIpmtPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a ipmtRequestBuilder - */ - public withUrl(rawUrl: string) : IpmtRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new IpmtRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/irr/index.ts b/src/drives/item/items/item/workbook/functions/irr/index.ts index 66d65975c9b..65bdf1a0336 100644 --- a/src/drives/item/items/item/workbook/functions/irr/index.ts +++ b/src/drives/item/items/item/workbook/functions/irr/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIrrPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeIrrPostRequestBody(writer: SerializationWriter, irrPost writer.writeObjectValue("values", irrPostRequestBody.values, serializeJson); writer.writeAdditionalData(irrPostRequestBody.additionalData); } -/** - * Provides operations to call the irr method. - */ -export class IrrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new IrrRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/irr"); - }; - /** - * Invoke action irr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: IrrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action irr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: IrrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIrrPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a irrRequestBuilder - */ - public withUrl(rawUrl: string) : IrrRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new IrrRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isErr/index.ts b/src/drives/item/items/item/workbook/functions/isErr/index.ts index 708819b37a0..dfa9a997818 100644 --- a/src/drives/item/items/item/workbook/functions/isErr/index.ts +++ b/src/drives/item/items/item/workbook/functions/isErr/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIsErrPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeIsErrPostRequestBody(writer: SerializationWriter, isErr writer.writeObjectValue("value", isErrPostRequestBody.value, serializeJson); writer.writeAdditionalData(isErrPostRequestBody.additionalData); } -/** - * Provides operations to call the isErr method. - */ -export class IsErrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new IsErrRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isErr"); - }; - /** - * Invoke action isErr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: IsErrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action isErr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: IsErrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIsErrPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a isErrRequestBuilder - */ - public withUrl(rawUrl: string) : IsErrRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new IsErrRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isError/index.ts b/src/drives/item/items/item/workbook/functions/isError/index.ts index cdee33b21e1..7ce0a381fc8 100644 --- a/src/drives/item/items/item/workbook/functions/isError/index.ts +++ b/src/drives/item/items/item/workbook/functions/isError/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIsErrorPostRequestBody, serializeIsErrorPostRequestBody, type IsErrorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsErrorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsErrorPostRequestBody; +} +export function deserializeIntoIsErrorPostRequestBody(isErrorPostRequestBody: IsErrorPostRequestBody | undefined = {} as IsErrorPostRequestBody) : Record void> { + return { + "value": n => { isErrorPostRequestBody.value = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IsErrorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: Json; +} +export function serializeIsErrorPostRequestBody(writer: SerializationWriter, isErrorPostRequestBody: IsErrorPostRequestBody | undefined = {} as IsErrorPostRequestBody) : void { + writer.writeObjectValue("value", isErrorPostRequestBody.value, serializeJson); + writer.writeAdditionalData(isErrorPostRequestBody.additionalData); +} /** * Provides operations to call the isError method. */ diff --git a/src/drives/item/items/item/workbook/functions/isError/isErrorPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/isError/isErrorPostRequestBody.ts deleted file mode 100644 index 660e9fc44fe..00000000000 --- a/src/drives/item/items/item/workbook/functions/isError/isErrorPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsErrorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsErrorPostRequestBody; -} -export function deserializeIntoIsErrorPostRequestBody(isErrorPostRequestBody: IsErrorPostRequestBody | undefined = {} as IsErrorPostRequestBody) : Record void> { - return { - "value": n => { isErrorPostRequestBody.value = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IsErrorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: Json; -} -export function serializeIsErrorPostRequestBody(writer: SerializationWriter, isErrorPostRequestBody: IsErrorPostRequestBody | undefined = {} as IsErrorPostRequestBody) : void { - writer.writeObjectValue("value", isErrorPostRequestBody.value, serializeJson); - writer.writeAdditionalData(isErrorPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isEven/index.ts b/src/drives/item/items/item/workbook/functions/isEven/index.ts index 57d3a8b13ed..61f00684d72 100644 --- a/src/drives/item/items/item/workbook/functions/isEven/index.ts +++ b/src/drives/item/items/item/workbook/functions/isEven/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIsEvenPostRequestBody, serializeIsEvenPostRequestBody, type IsEvenPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsEvenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsEvenPostRequestBody; +} +export function deserializeIntoIsEvenPostRequestBody(isEvenPostRequestBody: IsEvenPostRequestBody | undefined = {} as IsEvenPostRequestBody) : Record void> { + return { + "number": n => { isEvenPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IsEvenPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeIsEvenPostRequestBody(writer: SerializationWriter, isEvenPostRequestBody: IsEvenPostRequestBody | undefined = {} as IsEvenPostRequestBody) : void { + writer.writeObjectValue("number", isEvenPostRequestBody.number, serializeJson); + writer.writeAdditionalData(isEvenPostRequestBody.additionalData); +} /** * Provides operations to call the isEven method. */ diff --git a/src/drives/item/items/item/workbook/functions/isEven/isEvenPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/isEven/isEvenPostRequestBody.ts deleted file mode 100644 index 3347848f112..00000000000 --- a/src/drives/item/items/item/workbook/functions/isEven/isEvenPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsEvenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsEvenPostRequestBody; -} -export function deserializeIntoIsEvenPostRequestBody(isEvenPostRequestBody: IsEvenPostRequestBody | undefined = {} as IsEvenPostRequestBody) : Record void> { - return { - "number": n => { isEvenPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IsEvenPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeIsEvenPostRequestBody(writer: SerializationWriter, isEvenPostRequestBody: IsEvenPostRequestBody | undefined = {} as IsEvenPostRequestBody) : void { - writer.writeObjectValue("number", isEvenPostRequestBody.number, serializeJson); - writer.writeAdditionalData(isEvenPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isFormula/index.ts b/src/drives/item/items/item/workbook/functions/isFormula/index.ts index c6754b78ba2..f7cd07b7204 100644 --- a/src/drives/item/items/item/workbook/functions/isFormula/index.ts +++ b/src/drives/item/items/item/workbook/functions/isFormula/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIsFormulaPostRequestBody, serializeIsFormulaPostRequestBody, type IsFormulaPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsFormulaPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsFormulaPostRequestBody; +} +export function deserializeIntoIsFormulaPostRequestBody(isFormulaPostRequestBody: IsFormulaPostRequestBody | undefined = {} as IsFormulaPostRequestBody) : Record void> { + return { + "reference": n => { isFormulaPostRequestBody.reference = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IsFormulaPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reference property + */ + reference?: Json; +} +export function serializeIsFormulaPostRequestBody(writer: SerializationWriter, isFormulaPostRequestBody: IsFormulaPostRequestBody | undefined = {} as IsFormulaPostRequestBody) : void { + writer.writeObjectValue("reference", isFormulaPostRequestBody.reference, serializeJson); + writer.writeAdditionalData(isFormulaPostRequestBody.additionalData); +} /** * Provides operations to call the isFormula method. */ diff --git a/src/drives/item/items/item/workbook/functions/isFormula/isFormulaPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/isFormula/isFormulaPostRequestBody.ts deleted file mode 100644 index fc32a0fc848..00000000000 --- a/src/drives/item/items/item/workbook/functions/isFormula/isFormulaPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsFormulaPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsFormulaPostRequestBody; -} -export function deserializeIntoIsFormulaPostRequestBody(isFormulaPostRequestBody: IsFormulaPostRequestBody | undefined = {} as IsFormulaPostRequestBody) : Record void> { - return { - "reference": n => { isFormulaPostRequestBody.reference = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IsFormulaPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reference property - */ - reference?: Json; -} -export function serializeIsFormulaPostRequestBody(writer: SerializationWriter, isFormulaPostRequestBody: IsFormulaPostRequestBody | undefined = {} as IsFormulaPostRequestBody) : void { - writer.writeObjectValue("reference", isFormulaPostRequestBody.reference, serializeJson); - writer.writeAdditionalData(isFormulaPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isLogical/index.ts b/src/drives/item/items/item/workbook/functions/isLogical/index.ts index 31d21ae972f..269e3348bfa 100644 --- a/src/drives/item/items/item/workbook/functions/isLogical/index.ts +++ b/src/drives/item/items/item/workbook/functions/isLogical/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIsLogicalPostRequestBody, serializeIsLogicalPostRequestBody, type IsLogicalPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsLogicalPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsLogicalPostRequestBody; +} +export function deserializeIntoIsLogicalPostRequestBody(isLogicalPostRequestBody: IsLogicalPostRequestBody | undefined = {} as IsLogicalPostRequestBody) : Record void> { + return { + "value": n => { isLogicalPostRequestBody.value = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IsLogicalPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: Json; +} +export function serializeIsLogicalPostRequestBody(writer: SerializationWriter, isLogicalPostRequestBody: IsLogicalPostRequestBody | undefined = {} as IsLogicalPostRequestBody) : void { + writer.writeObjectValue("value", isLogicalPostRequestBody.value, serializeJson); + writer.writeAdditionalData(isLogicalPostRequestBody.additionalData); +} /** * Provides operations to call the isLogical method. */ diff --git a/src/drives/item/items/item/workbook/functions/isLogical/isLogicalPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/isLogical/isLogicalPostRequestBody.ts deleted file mode 100644 index 524c32bc52d..00000000000 --- a/src/drives/item/items/item/workbook/functions/isLogical/isLogicalPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsLogicalPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsLogicalPostRequestBody; -} -export function deserializeIntoIsLogicalPostRequestBody(isLogicalPostRequestBody: IsLogicalPostRequestBody | undefined = {} as IsLogicalPostRequestBody) : Record void> { - return { - "value": n => { isLogicalPostRequestBody.value = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IsLogicalPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: Json; -} -export function serializeIsLogicalPostRequestBody(writer: SerializationWriter, isLogicalPostRequestBody: IsLogicalPostRequestBody | undefined = {} as IsLogicalPostRequestBody) : void { - writer.writeObjectValue("value", isLogicalPostRequestBody.value, serializeJson); - writer.writeAdditionalData(isLogicalPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isNA/index.ts b/src/drives/item/items/item/workbook/functions/isNA/index.ts index d7541f1b471..cbb177e27dc 100644 --- a/src/drives/item/items/item/workbook/functions/isNA/index.ts +++ b/src/drives/item/items/item/workbook/functions/isNA/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIsNAPostRequestBody, serializeIsNAPostRequestBody, type IsNAPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsNAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsNAPostRequestBody; +} +export function deserializeIntoIsNAPostRequestBody(isNAPostRequestBody: IsNAPostRequestBody | undefined = {} as IsNAPostRequestBody) : Record void> { + return { + "value": n => { isNAPostRequestBody.value = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IsNAPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: Json; +} +export function serializeIsNAPostRequestBody(writer: SerializationWriter, isNAPostRequestBody: IsNAPostRequestBody | undefined = {} as IsNAPostRequestBody) : void { + writer.writeObjectValue("value", isNAPostRequestBody.value, serializeJson); + writer.writeAdditionalData(isNAPostRequestBody.additionalData); +} /** * Provides operations to call the isNA method. */ diff --git a/src/drives/item/items/item/workbook/functions/isNA/isNAPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/isNA/isNAPostRequestBody.ts deleted file mode 100644 index 2f006995ae8..00000000000 --- a/src/drives/item/items/item/workbook/functions/isNA/isNAPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsNAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsNAPostRequestBody; -} -export function deserializeIntoIsNAPostRequestBody(isNAPostRequestBody: IsNAPostRequestBody | undefined = {} as IsNAPostRequestBody) : Record void> { - return { - "value": n => { isNAPostRequestBody.value = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IsNAPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: Json; -} -export function serializeIsNAPostRequestBody(writer: SerializationWriter, isNAPostRequestBody: IsNAPostRequestBody | undefined = {} as IsNAPostRequestBody) : void { - writer.writeObjectValue("value", isNAPostRequestBody.value, serializeJson); - writer.writeAdditionalData(isNAPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isNonText/index.ts b/src/drives/item/items/item/workbook/functions/isNonText/index.ts index 0426672b496..90aee39f923 100644 --- a/src/drives/item/items/item/workbook/functions/isNonText/index.ts +++ b/src/drives/item/items/item/workbook/functions/isNonText/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIsNonTextPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeIsNonTextPostRequestBody(writer: SerializationWriter, i writer.writeObjectValue("value", isNonTextPostRequestBody.value, serializeJson); writer.writeAdditionalData(isNonTextPostRequestBody.additionalData); } -/** - * Provides operations to call the isNonText method. - */ -export class IsNonTextRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new IsNonTextRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isNonText"); - }; - /** - * Invoke action isNonText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: IsNonTextPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action isNonText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: IsNonTextPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIsNonTextPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a isNonTextRequestBuilder - */ - public withUrl(rawUrl: string) : IsNonTextRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new IsNonTextRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isNumber/index.ts b/src/drives/item/items/item/workbook/functions/isNumber/index.ts index 69c9e37b56b..332fbb60dd4 100644 --- a/src/drives/item/items/item/workbook/functions/isNumber/index.ts +++ b/src/drives/item/items/item/workbook/functions/isNumber/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIsNumberPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeIsNumberPostRequestBody(writer: SerializationWriter, is writer.writeObjectValue("value", isNumberPostRequestBody.value, serializeJson); writer.writeAdditionalData(isNumberPostRequestBody.additionalData); } -/** - * Provides operations to call the isNumber method. - */ -export class IsNumberRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new IsNumberRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isNumber"); - }; - /** - * Invoke action isNumber - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: IsNumberPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action isNumber - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: IsNumberPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIsNumberPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a isNumberRequestBuilder - */ - public withUrl(rawUrl: string) : IsNumberRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new IsNumberRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isOdd/index.ts b/src/drives/item/items/item/workbook/functions/isOdd/index.ts index 06733629571..ab7e36cacfe 100644 --- a/src/drives/item/items/item/workbook/functions/isOdd/index.ts +++ b/src/drives/item/items/item/workbook/functions/isOdd/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIsOddPostRequestBody, serializeIsOddPostRequestBody, type IsOddPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsOddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsOddPostRequestBody; +} +export function deserializeIntoIsOddPostRequestBody(isOddPostRequestBody: IsOddPostRequestBody | undefined = {} as IsOddPostRequestBody) : Record void> { + return { + "number": n => { isOddPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IsOddPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeIsOddPostRequestBody(writer: SerializationWriter, isOddPostRequestBody: IsOddPostRequestBody | undefined = {} as IsOddPostRequestBody) : void { + writer.writeObjectValue("number", isOddPostRequestBody.number, serializeJson); + writer.writeAdditionalData(isOddPostRequestBody.additionalData); +} /** * Provides operations to call the isOdd method. */ diff --git a/src/drives/item/items/item/workbook/functions/isOdd/isOddPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/isOdd/isOddPostRequestBody.ts deleted file mode 100644 index 46429d87188..00000000000 --- a/src/drives/item/items/item/workbook/functions/isOdd/isOddPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsOddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsOddPostRequestBody; -} -export function deserializeIntoIsOddPostRequestBody(isOddPostRequestBody: IsOddPostRequestBody | undefined = {} as IsOddPostRequestBody) : Record void> { - return { - "number": n => { isOddPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IsOddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeIsOddPostRequestBody(writer: SerializationWriter, isOddPostRequestBody: IsOddPostRequestBody | undefined = {} as IsOddPostRequestBody) : void { - writer.writeObjectValue("number", isOddPostRequestBody.number, serializeJson); - writer.writeAdditionalData(isOddPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isText/index.ts b/src/drives/item/items/item/workbook/functions/isText/index.ts index 11e373ac600..262e8955c45 100644 --- a/src/drives/item/items/item/workbook/functions/isText/index.ts +++ b/src/drives/item/items/item/workbook/functions/isText/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIsTextPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeIsTextPostRequestBody(writer: SerializationWriter, isTe writer.writeObjectValue("value", isTextPostRequestBody.value, serializeJson); writer.writeAdditionalData(isTextPostRequestBody.additionalData); } -/** - * Provides operations to call the isText method. - */ -export class IsTextRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new IsTextRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isText"); - }; - /** - * Invoke action isText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: IsTextPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action isText - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: IsTextPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIsTextPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a isTextRequestBuilder - */ - public withUrl(rawUrl: string) : IsTextRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new IsTextRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isoWeekNum/index.ts b/src/drives/item/items/item/workbook/functions/isoWeekNum/index.ts index 12e508d93b9..66a8150c6b3 100644 --- a/src/drives/item/items/item/workbook/functions/isoWeekNum/index.ts +++ b/src/drives/item/items/item/workbook/functions/isoWeekNum/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIsoWeekNumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeIsoWeekNumPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("date", isoWeekNumPostRequestBody.date, serializeJson); writer.writeAdditionalData(isoWeekNumPostRequestBody.additionalData); } -/** - * Provides operations to call the isoWeekNum method. - */ -export class IsoWeekNumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new IsoWeekNumRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isoWeekNum"); - }; - /** - * Invoke action isoWeekNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: IsoWeekNumPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action isoWeekNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: IsoWeekNumPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIsoWeekNumPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a isoWeekNumRequestBuilder - */ - public withUrl(rawUrl: string) : IsoWeekNumRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new IsoWeekNumRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/iso_Ceiling/index.ts b/src/drives/item/items/item/workbook/functions/iso_Ceiling/index.ts index 3f827c98c86..6a9911d2d97 100644 --- a/src/drives/item/items/item/workbook/functions/iso_Ceiling/index.ts +++ b/src/drives/item/items/item/workbook/functions/iso_Ceiling/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIso_CeilingPostRequestBody, serializeIso_CeilingPostRequestBody, type Iso_CeilingPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIso_CeilingPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIso_CeilingPostRequestBody; +} +export function deserializeIntoIso_CeilingPostRequestBody(iso_CeilingPostRequestBody: Iso_CeilingPostRequestBody | undefined = {} as Iso_CeilingPostRequestBody) : Record void> { + return { + "number": n => { iso_CeilingPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "significance": n => { iso_CeilingPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Iso_CeilingPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The significance property + */ + significance?: Json; +} +export function serializeIso_CeilingPostRequestBody(writer: SerializationWriter, iso_CeilingPostRequestBody: Iso_CeilingPostRequestBody | undefined = {} as Iso_CeilingPostRequestBody) : void { + writer.writeObjectValue("number", iso_CeilingPostRequestBody.number, serializeJson); + writer.writeObjectValue("significance", iso_CeilingPostRequestBody.significance, serializeJson); + writer.writeAdditionalData(iso_CeilingPostRequestBody.additionalData); +} /** * Provides operations to call the iso_Ceiling method. */ diff --git a/src/drives/item/items/item/workbook/functions/iso_Ceiling/iso_CeilingPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/iso_Ceiling/iso_CeilingPostRequestBody.ts deleted file mode 100644 index 9f5e7c03e23..00000000000 --- a/src/drives/item/items/item/workbook/functions/iso_Ceiling/iso_CeilingPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIso_CeilingPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIso_CeilingPostRequestBody; -} -export function deserializeIntoIso_CeilingPostRequestBody(iso_CeilingPostRequestBody: Iso_CeilingPostRequestBody | undefined = {} as Iso_CeilingPostRequestBody) : Record void> { - return { - "number": n => { iso_CeilingPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "significance": n => { iso_CeilingPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Iso_CeilingPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The significance property - */ - significance?: Json; -} -export function serializeIso_CeilingPostRequestBody(writer: SerializationWriter, iso_CeilingPostRequestBody: Iso_CeilingPostRequestBody | undefined = {} as Iso_CeilingPostRequestBody) : void { - writer.writeObjectValue("number", iso_CeilingPostRequestBody.number, serializeJson); - writer.writeObjectValue("significance", iso_CeilingPostRequestBody.significance, serializeJson); - writer.writeAdditionalData(iso_CeilingPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ispmt/index.ts b/src/drives/item/items/item/workbook/functions/ispmt/index.ts index 2c80edab407..bae4c845cf8 100644 --- a/src/drives/item/items/item/workbook/functions/ispmt/index.ts +++ b/src/drives/item/items/item/workbook/functions/ispmt/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoIspmtPostRequestBody, serializeIspmtPostRequestBody, type IspmtPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIspmtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIspmtPostRequestBody; +} +export function deserializeIntoIspmtPostRequestBody(ispmtPostRequestBody: IspmtPostRequestBody | undefined = {} as IspmtPostRequestBody) : Record void> { + return { + "nper": n => { ispmtPostRequestBody.nper = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "per": n => { ispmtPostRequestBody.per = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pv": n => { ispmtPostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "rate": n => { ispmtPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface IspmtPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The nper property + */ + nper?: Json; + /** + * The per property + */ + per?: Json; + /** + * The pv property + */ + pv?: Json; + /** + * The rate property + */ + rate?: Json; +} +export function serializeIspmtPostRequestBody(writer: SerializationWriter, ispmtPostRequestBody: IspmtPostRequestBody | undefined = {} as IspmtPostRequestBody) : void { + writer.writeObjectValue("nper", ispmtPostRequestBody.nper, serializeJson); + writer.writeObjectValue("per", ispmtPostRequestBody.per, serializeJson); + writer.writeObjectValue("pv", ispmtPostRequestBody.pv, serializeJson); + writer.writeObjectValue("rate", ispmtPostRequestBody.rate, serializeJson); + writer.writeAdditionalData(ispmtPostRequestBody.additionalData); +} /** * Provides operations to call the ispmt method. */ diff --git a/src/drives/item/items/item/workbook/functions/ispmt/ispmtPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/ispmt/ispmtPostRequestBody.ts deleted file mode 100644 index a7bf24be287..00000000000 --- a/src/drives/item/items/item/workbook/functions/ispmt/ispmtPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIspmtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIspmtPostRequestBody; -} -export function deserializeIntoIspmtPostRequestBody(ispmtPostRequestBody: IspmtPostRequestBody | undefined = {} as IspmtPostRequestBody) : Record void> { - return { - "nper": n => { ispmtPostRequestBody.nper = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "per": n => { ispmtPostRequestBody.per = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pv": n => { ispmtPostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "rate": n => { ispmtPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface IspmtPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The nper property - */ - nper?: Json; - /** - * The per property - */ - per?: Json; - /** - * The pv property - */ - pv?: Json; - /** - * The rate property - */ - rate?: Json; -} -export function serializeIspmtPostRequestBody(writer: SerializationWriter, ispmtPostRequestBody: IspmtPostRequestBody | undefined = {} as IspmtPostRequestBody) : void { - writer.writeObjectValue("nper", ispmtPostRequestBody.nper, serializeJson); - writer.writeObjectValue("per", ispmtPostRequestBody.per, serializeJson); - writer.writeObjectValue("pv", ispmtPostRequestBody.pv, serializeJson); - writer.writeObjectValue("rate", ispmtPostRequestBody.rate, serializeJson); - writer.writeAdditionalData(ispmtPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/isref/index.ts b/src/drives/item/items/item/workbook/functions/isref/index.ts index 2e80d155442..db993e0e19e 100644 --- a/src/drives/item/items/item/workbook/functions/isref/index.ts +++ b/src/drives/item/items/item/workbook/functions/isref/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createIsrefPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeIsrefPostRequestBody(writer: SerializationWriter, isref writer.writeObjectValue("value", isrefPostRequestBody.value, serializeJson); writer.writeAdditionalData(isrefPostRequestBody.additionalData); } -/** - * Provides operations to call the isref method. - */ -export class IsrefRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new IsrefRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isref"); - }; - /** - * Invoke action isref - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: IsrefPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action isref - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: IsrefPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeIsrefPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a isrefRequestBuilder - */ - public withUrl(rawUrl: string) : IsrefRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new IsrefRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/kurt/index.ts b/src/drives/item/items/item/workbook/functions/kurt/index.ts index 3467d0d95eb..f44db877c09 100644 --- a/src/drives/item/items/item/workbook/functions/kurt/index.ts +++ b/src/drives/item/items/item/workbook/functions/kurt/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoKurtPostRequestBody, serializeKurtPostRequestBody, type KurtPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createKurtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoKurtPostRequestBody; +} +export function deserializeIntoKurtPostRequestBody(kurtPostRequestBody: KurtPostRequestBody | undefined = {} as KurtPostRequestBody) : Record void> { + return { + "values": n => { kurtPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface KurtPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeKurtPostRequestBody(writer: SerializationWriter, kurtPostRequestBody: KurtPostRequestBody | undefined = {} as KurtPostRequestBody) : void { + writer.writeObjectValue("values", kurtPostRequestBody.values, serializeJson); + writer.writeAdditionalData(kurtPostRequestBody.additionalData); +} /** * Provides operations to call the kurt method. */ diff --git a/src/drives/item/items/item/workbook/functions/kurt/kurtPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/kurt/kurtPostRequestBody.ts deleted file mode 100644 index 9d9ba0dc299..00000000000 --- a/src/drives/item/items/item/workbook/functions/kurt/kurtPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createKurtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoKurtPostRequestBody; -} -export function deserializeIntoKurtPostRequestBody(kurtPostRequestBody: KurtPostRequestBody | undefined = {} as KurtPostRequestBody) : Record void> { - return { - "values": n => { kurtPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface KurtPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeKurtPostRequestBody(writer: SerializationWriter, kurtPostRequestBody: KurtPostRequestBody | undefined = {} as KurtPostRequestBody) : void { - writer.writeObjectValue("values", kurtPostRequestBody.values, serializeJson); - writer.writeAdditionalData(kurtPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/large/index.ts b/src/drives/item/items/item/workbook/functions/large/index.ts index 606f51b724c..29eb07e8d50 100644 --- a/src/drives/item/items/item/workbook/functions/large/index.ts +++ b/src/drives/item/items/item/workbook/functions/large/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createLargePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeLargePostRequestBody(writer: SerializationWriter, large writer.writeObjectValue("k", largePostRequestBody.k, serializeJson); writer.writeAdditionalData(largePostRequestBody.additionalData); } -/** - * Provides operations to call the large method. - */ -export class LargeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new LargeRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/large"); - }; - /** - * Invoke action large - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: LargePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action large - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: LargePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLargePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a largeRequestBuilder - */ - public withUrl(rawUrl: string) : LargeRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new LargeRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/lcm/index.ts b/src/drives/item/items/item/workbook/functions/lcm/index.ts index b1c77cf7c28..6107abb180d 100644 --- a/src/drives/item/items/item/workbook/functions/lcm/index.ts +++ b/src/drives/item/items/item/workbook/functions/lcm/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoLcmPostRequestBody, serializeLcmPostRequestBody, type LcmPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createLcmPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoLcmPostRequestBody; +} +export function deserializeIntoLcmPostRequestBody(lcmPostRequestBody: LcmPostRequestBody | undefined = {} as LcmPostRequestBody) : Record void> { + return { + "values": n => { lcmPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface LcmPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeLcmPostRequestBody(writer: SerializationWriter, lcmPostRequestBody: LcmPostRequestBody | undefined = {} as LcmPostRequestBody) : void { + writer.writeObjectValue("values", lcmPostRequestBody.values, serializeJson); + writer.writeAdditionalData(lcmPostRequestBody.additionalData); +} /** * Provides operations to call the lcm method. */ diff --git a/src/drives/item/items/item/workbook/functions/lcm/lcmPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/lcm/lcmPostRequestBody.ts deleted file mode 100644 index 97536449651..00000000000 --- a/src/drives/item/items/item/workbook/functions/lcm/lcmPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createLcmPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoLcmPostRequestBody; -} -export function deserializeIntoLcmPostRequestBody(lcmPostRequestBody: LcmPostRequestBody | undefined = {} as LcmPostRequestBody) : Record void> { - return { - "values": n => { lcmPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface LcmPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeLcmPostRequestBody(writer: SerializationWriter, lcmPostRequestBody: LcmPostRequestBody | undefined = {} as LcmPostRequestBody) : void { - writer.writeObjectValue("values", lcmPostRequestBody.values, serializeJson); - writer.writeAdditionalData(lcmPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/left/index.ts b/src/drives/item/items/item/workbook/functions/left/index.ts index e5ce19ff37d..88caba07c4f 100644 --- a/src/drives/item/items/item/workbook/functions/left/index.ts +++ b/src/drives/item/items/item/workbook/functions/left/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createLeftPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeLeftPostRequestBody(writer: SerializationWriter, leftPo writer.writeObjectValue("text", leftPostRequestBody.text, serializeJson); writer.writeAdditionalData(leftPostRequestBody.additionalData); } -/** - * Provides operations to call the left method. - */ -export class LeftRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new LeftRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/left"); - }; - /** - * Invoke action left - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: LeftPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action left - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: LeftPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLeftPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a leftRequestBuilder - */ - public withUrl(rawUrl: string) : LeftRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new LeftRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/leftb/index.ts b/src/drives/item/items/item/workbook/functions/leftb/index.ts index 4d3db3d4978..6ee98753e2a 100644 --- a/src/drives/item/items/item/workbook/functions/leftb/index.ts +++ b/src/drives/item/items/item/workbook/functions/leftb/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoLeftbPostRequestBody, serializeLeftbPostRequestBody, type LeftbPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createLeftbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoLeftbPostRequestBody; +} +export function deserializeIntoLeftbPostRequestBody(leftbPostRequestBody: LeftbPostRequestBody | undefined = {} as LeftbPostRequestBody) : Record void> { + return { + "numBytes": n => { leftbPostRequestBody.numBytes = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "text": n => { leftbPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface LeftbPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The numBytes property + */ + numBytes?: Json; + /** + * The text property + */ + text?: Json; +} +export function serializeLeftbPostRequestBody(writer: SerializationWriter, leftbPostRequestBody: LeftbPostRequestBody | undefined = {} as LeftbPostRequestBody) : void { + writer.writeObjectValue("numBytes", leftbPostRequestBody.numBytes, serializeJson); + writer.writeObjectValue("text", leftbPostRequestBody.text, serializeJson); + writer.writeAdditionalData(leftbPostRequestBody.additionalData); +} /** * Provides operations to call the leftb method. */ diff --git a/src/drives/item/items/item/workbook/functions/leftb/leftbPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/leftb/leftbPostRequestBody.ts deleted file mode 100644 index 3e20f673455..00000000000 --- a/src/drives/item/items/item/workbook/functions/leftb/leftbPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createLeftbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoLeftbPostRequestBody; -} -export function deserializeIntoLeftbPostRequestBody(leftbPostRequestBody: LeftbPostRequestBody | undefined = {} as LeftbPostRequestBody) : Record void> { - return { - "numBytes": n => { leftbPostRequestBody.numBytes = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "text": n => { leftbPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface LeftbPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The numBytes property - */ - numBytes?: Json; - /** - * The text property - */ - text?: Json; -} -export function serializeLeftbPostRequestBody(writer: SerializationWriter, leftbPostRequestBody: LeftbPostRequestBody | undefined = {} as LeftbPostRequestBody) : void { - writer.writeObjectValue("numBytes", leftbPostRequestBody.numBytes, serializeJson); - writer.writeObjectValue("text", leftbPostRequestBody.text, serializeJson); - writer.writeAdditionalData(leftbPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/len/index.ts b/src/drives/item/items/item/workbook/functions/len/index.ts index 2e210f4c793..98488c96290 100644 --- a/src/drives/item/items/item/workbook/functions/len/index.ts +++ b/src/drives/item/items/item/workbook/functions/len/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createLenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeLenPostRequestBody(writer: SerializationWriter, lenPost writer.writeObjectValue("text", lenPostRequestBody.text, serializeJson); writer.writeAdditionalData(lenPostRequestBody.additionalData); } -/** - * Provides operations to call the len method. - */ -export class LenRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new LenRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/len"); - }; - /** - * Invoke action len - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: LenPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action len - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: LenPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLenPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a lenRequestBuilder - */ - public withUrl(rawUrl: string) : LenRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new LenRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/lenb/index.ts b/src/drives/item/items/item/workbook/functions/lenb/index.ts index d227c96a799..1548ec3b53a 100644 --- a/src/drives/item/items/item/workbook/functions/lenb/index.ts +++ b/src/drives/item/items/item/workbook/functions/lenb/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createLenbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeLenbPostRequestBody(writer: SerializationWriter, lenbPo writer.writeObjectValue("text", lenbPostRequestBody.text, serializeJson); writer.writeAdditionalData(lenbPostRequestBody.additionalData); } -/** - * Provides operations to call the lenb method. - */ -export class LenbRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new LenbRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lenb"); - }; - /** - * Invoke action lenb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: LenbPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action lenb - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: LenbPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLenbPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a lenbRequestBuilder - */ - public withUrl(rawUrl: string) : LenbRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new LenbRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ln/index.ts b/src/drives/item/items/item/workbook/functions/ln/index.ts index a754bfb7f00..0f02b9ddd7a 100644 --- a/src/drives/item/items/item/workbook/functions/ln/index.ts +++ b/src/drives/item/items/item/workbook/functions/ln/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createLnPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeLnPostRequestBody(writer: SerializationWriter, lnPostRe writer.writeObjectValue("number", lnPostRequestBody.number, serializeJson); writer.writeAdditionalData(lnPostRequestBody.additionalData); } -/** - * Provides operations to call the ln method. - */ -export class LnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new LnRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ln"); - }; - /** - * Invoke action ln - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: LnPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action ln - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: LnPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLnPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a lnRequestBuilder - */ - public withUrl(rawUrl: string) : LnRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new LnRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/log/index.ts b/src/drives/item/items/item/workbook/functions/log/index.ts index b4606e23a58..01ac2102fca 100644 --- a/src/drives/item/items/item/workbook/functions/log/index.ts +++ b/src/drives/item/items/item/workbook/functions/log/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoLogPostRequestBody, serializeLogPostRequestBody, type LogPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createLogPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoLogPostRequestBody; +} +export function deserializeIntoLogPostRequestBody(logPostRequestBody: LogPostRequestBody | undefined = {} as LogPostRequestBody) : Record void> { + return { + "base": n => { logPostRequestBody.base = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "number": n => { logPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface LogPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The base property + */ + base?: Json; + /** + * The number property + */ + number?: Json; +} +export function serializeLogPostRequestBody(writer: SerializationWriter, logPostRequestBody: LogPostRequestBody | undefined = {} as LogPostRequestBody) : void { + writer.writeObjectValue("base", logPostRequestBody.base, serializeJson); + writer.writeObjectValue("number", logPostRequestBody.number, serializeJson); + writer.writeAdditionalData(logPostRequestBody.additionalData); +} /** * Provides operations to call the log method. */ diff --git a/src/drives/item/items/item/workbook/functions/log/logPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/log/logPostRequestBody.ts deleted file mode 100644 index 140bd1e6de2..00000000000 --- a/src/drives/item/items/item/workbook/functions/log/logPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createLogPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoLogPostRequestBody; -} -export function deserializeIntoLogPostRequestBody(logPostRequestBody: LogPostRequestBody | undefined = {} as LogPostRequestBody) : Record void> { - return { - "base": n => { logPostRequestBody.base = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "number": n => { logPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface LogPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The base property - */ - base?: Json; - /** - * The number property - */ - number?: Json; -} -export function serializeLogPostRequestBody(writer: SerializationWriter, logPostRequestBody: LogPostRequestBody | undefined = {} as LogPostRequestBody) : void { - writer.writeObjectValue("base", logPostRequestBody.base, serializeJson); - writer.writeObjectValue("number", logPostRequestBody.number, serializeJson); - writer.writeAdditionalData(logPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/log10/index.ts b/src/drives/item/items/item/workbook/functions/log10/index.ts index f1b80d19a97..fdf9e692c42 100644 --- a/src/drives/item/items/item/workbook/functions/log10/index.ts +++ b/src/drives/item/items/item/workbook/functions/log10/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoLog10PostRequestBody, serializeLog10PostRequestBody, type Log10PostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createLog10PostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoLog10PostRequestBody; +} +export function deserializeIntoLog10PostRequestBody(log10PostRequestBody: Log10PostRequestBody | undefined = {} as Log10PostRequestBody) : Record void> { + return { + "number": n => { log10PostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Log10PostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeLog10PostRequestBody(writer: SerializationWriter, log10PostRequestBody: Log10PostRequestBody | undefined = {} as Log10PostRequestBody) : void { + writer.writeObjectValue("number", log10PostRequestBody.number, serializeJson); + writer.writeAdditionalData(log10PostRequestBody.additionalData); +} /** * Provides operations to call the log10 method. */ diff --git a/src/drives/item/items/item/workbook/functions/log10/log10PostRequestBody.ts b/src/drives/item/items/item/workbook/functions/log10/log10PostRequestBody.ts deleted file mode 100644 index 044ffd911b4..00000000000 --- a/src/drives/item/items/item/workbook/functions/log10/log10PostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createLog10PostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoLog10PostRequestBody; -} -export function deserializeIntoLog10PostRequestBody(log10PostRequestBody: Log10PostRequestBody | undefined = {} as Log10PostRequestBody) : Record void> { - return { - "number": n => { log10PostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Log10PostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeLog10PostRequestBody(writer: SerializationWriter, log10PostRequestBody: Log10PostRequestBody | undefined = {} as Log10PostRequestBody) : void { - writer.writeObjectValue("number", log10PostRequestBody.number, serializeJson); - writer.writeAdditionalData(log10PostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/logNorm_Dist/index.ts b/src/drives/item/items/item/workbook/functions/logNorm_Dist/index.ts index 64ebcb8b21e..f9af6470fb2 100644 --- a/src/drives/item/items/item/workbook/functions/logNorm_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/logNorm_Dist/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createLogNorm_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +45,5 @@ export function serializeLogNorm_DistPostRequestBody(writer: SerializationWriter writer.writeObjectValue("x", logNorm_DistPostRequestBody.x, serializeJson); writer.writeAdditionalData(logNorm_DistPostRequestBody.additionalData); } -/** - * Provides operations to call the logNorm_Dist method. - */ -export class LogNorm_DistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new LogNorm_DistRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/logNorm_Dist"); - }; - /** - * Invoke action logNorm_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: LogNorm_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action logNorm_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: LogNorm_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLogNorm_DistPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a logNorm_DistRequestBuilder - */ - public withUrl(rawUrl: string) : LogNorm_DistRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new LogNorm_DistRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/logNorm_Inv/index.ts b/src/drives/item/items/item/workbook/functions/logNorm_Inv/index.ts index 7d135bcd388..01db96e9f2b 100644 --- a/src/drives/item/items/item/workbook/functions/logNorm_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/logNorm_Inv/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoLogNorm_InvPostRequestBody, serializeLogNorm_InvPostRequestBody, type LogNorm_InvPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createLogNorm_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoLogNorm_InvPostRequestBody; +} +export function deserializeIntoLogNorm_InvPostRequestBody(logNorm_InvPostRequestBody: LogNorm_InvPostRequestBody | undefined = {} as LogNorm_InvPostRequestBody) : Record void> { + return { + "mean": n => { logNorm_InvPostRequestBody.mean = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probability": n => { logNorm_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "standardDev": n => { logNorm_InvPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface LogNorm_InvPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The mean property + */ + mean?: Json; + /** + * The probability property + */ + probability?: Json; + /** + * The standardDev property + */ + standardDev?: Json; +} +export function serializeLogNorm_InvPostRequestBody(writer: SerializationWriter, logNorm_InvPostRequestBody: LogNorm_InvPostRequestBody | undefined = {} as LogNorm_InvPostRequestBody) : void { + writer.writeObjectValue("mean", logNorm_InvPostRequestBody.mean, serializeJson); + writer.writeObjectValue("probability", logNorm_InvPostRequestBody.probability, serializeJson); + writer.writeObjectValue("standardDev", logNorm_InvPostRequestBody.standardDev, serializeJson); + writer.writeAdditionalData(logNorm_InvPostRequestBody.additionalData); +} /** * Provides operations to call the logNorm_Inv method. */ diff --git a/src/drives/item/items/item/workbook/functions/logNorm_Inv/logNorm_InvPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/logNorm_Inv/logNorm_InvPostRequestBody.ts deleted file mode 100644 index 7254bdc971c..00000000000 --- a/src/drives/item/items/item/workbook/functions/logNorm_Inv/logNorm_InvPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createLogNorm_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoLogNorm_InvPostRequestBody; -} -export function deserializeIntoLogNorm_InvPostRequestBody(logNorm_InvPostRequestBody: LogNorm_InvPostRequestBody | undefined = {} as LogNorm_InvPostRequestBody) : Record void> { - return { - "mean": n => { logNorm_InvPostRequestBody.mean = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probability": n => { logNorm_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "standardDev": n => { logNorm_InvPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface LogNorm_InvPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The mean property - */ - mean?: Json; - /** - * The probability property - */ - probability?: Json; - /** - * The standardDev property - */ - standardDev?: Json; -} -export function serializeLogNorm_InvPostRequestBody(writer: SerializationWriter, logNorm_InvPostRequestBody: LogNorm_InvPostRequestBody | undefined = {} as LogNorm_InvPostRequestBody) : void { - writer.writeObjectValue("mean", logNorm_InvPostRequestBody.mean, serializeJson); - writer.writeObjectValue("probability", logNorm_InvPostRequestBody.probability, serializeJson); - writer.writeObjectValue("standardDev", logNorm_InvPostRequestBody.standardDev, serializeJson); - writer.writeAdditionalData(logNorm_InvPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/lookup/index.ts b/src/drives/item/items/item/workbook/functions/lookup/index.ts index 7e09cc60e0d..790000c80a9 100644 --- a/src/drives/item/items/item/workbook/functions/lookup/index.ts +++ b/src/drives/item/items/item/workbook/functions/lookup/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoLookupPostRequestBody, serializeLookupPostRequestBody, type LookupPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createLookupPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoLookupPostRequestBody; +} +export function deserializeIntoLookupPostRequestBody(lookupPostRequestBody: LookupPostRequestBody | undefined = {} as LookupPostRequestBody) : Record void> { + return { + "lookupValue": n => { lookupPostRequestBody.lookupValue = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "lookupVector": n => { lookupPostRequestBody.lookupVector = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "resultVector": n => { lookupPostRequestBody.resultVector = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface LookupPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The lookupValue property + */ + lookupValue?: Json; + /** + * The lookupVector property + */ + lookupVector?: Json; + /** + * The resultVector property + */ + resultVector?: Json; +} +export function serializeLookupPostRequestBody(writer: SerializationWriter, lookupPostRequestBody: LookupPostRequestBody | undefined = {} as LookupPostRequestBody) : void { + writer.writeObjectValue("lookupValue", lookupPostRequestBody.lookupValue, serializeJson); + writer.writeObjectValue("lookupVector", lookupPostRequestBody.lookupVector, serializeJson); + writer.writeObjectValue("resultVector", lookupPostRequestBody.resultVector, serializeJson); + writer.writeAdditionalData(lookupPostRequestBody.additionalData); +} /** * Provides operations to call the lookup method. */ diff --git a/src/drives/item/items/item/workbook/functions/lookup/lookupPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/lookup/lookupPostRequestBody.ts deleted file mode 100644 index 83c7cd307fa..00000000000 --- a/src/drives/item/items/item/workbook/functions/lookup/lookupPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createLookupPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoLookupPostRequestBody; -} -export function deserializeIntoLookupPostRequestBody(lookupPostRequestBody: LookupPostRequestBody | undefined = {} as LookupPostRequestBody) : Record void> { - return { - "lookupValue": n => { lookupPostRequestBody.lookupValue = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "lookupVector": n => { lookupPostRequestBody.lookupVector = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "resultVector": n => { lookupPostRequestBody.resultVector = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface LookupPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The lookupValue property - */ - lookupValue?: Json; - /** - * The lookupVector property - */ - lookupVector?: Json; - /** - * The resultVector property - */ - resultVector?: Json; -} -export function serializeLookupPostRequestBody(writer: SerializationWriter, lookupPostRequestBody: LookupPostRequestBody | undefined = {} as LookupPostRequestBody) : void { - writer.writeObjectValue("lookupValue", lookupPostRequestBody.lookupValue, serializeJson); - writer.writeObjectValue("lookupVector", lookupPostRequestBody.lookupVector, serializeJson); - writer.writeObjectValue("resultVector", lookupPostRequestBody.resultVector, serializeJson); - writer.writeAdditionalData(lookupPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/lower/index.ts b/src/drives/item/items/item/workbook/functions/lower/index.ts index 5980b79112a..198aaabedf6 100644 --- a/src/drives/item/items/item/workbook/functions/lower/index.ts +++ b/src/drives/item/items/item/workbook/functions/lower/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoLowerPostRequestBody, serializeLowerPostRequestBody, type LowerPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createLowerPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoLowerPostRequestBody; +} +export function deserializeIntoLowerPostRequestBody(lowerPostRequestBody: LowerPostRequestBody | undefined = {} as LowerPostRequestBody) : Record void> { + return { + "text": n => { lowerPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface LowerPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The text property + */ + text?: Json; +} +export function serializeLowerPostRequestBody(writer: SerializationWriter, lowerPostRequestBody: LowerPostRequestBody | undefined = {} as LowerPostRequestBody) : void { + writer.writeObjectValue("text", lowerPostRequestBody.text, serializeJson); + writer.writeAdditionalData(lowerPostRequestBody.additionalData); +} /** * Provides operations to call the lower method. */ diff --git a/src/drives/item/items/item/workbook/functions/lower/lowerPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/lower/lowerPostRequestBody.ts deleted file mode 100644 index 6f355618552..00000000000 --- a/src/drives/item/items/item/workbook/functions/lower/lowerPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createLowerPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoLowerPostRequestBody; -} -export function deserializeIntoLowerPostRequestBody(lowerPostRequestBody: LowerPostRequestBody | undefined = {} as LowerPostRequestBody) : Record void> { - return { - "text": n => { lowerPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface LowerPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The text property - */ - text?: Json; -} -export function serializeLowerPostRequestBody(writer: SerializationWriter, lowerPostRequestBody: LowerPostRequestBody | undefined = {} as LowerPostRequestBody) : void { - writer.writeObjectValue("text", lowerPostRequestBody.text, serializeJson); - writer.writeAdditionalData(lowerPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/match/index.ts b/src/drives/item/items/item/workbook/functions/match/index.ts index 90b1804f7ec..4644996e322 100644 --- a/src/drives/item/items/item/workbook/functions/match/index.ts +++ b/src/drives/item/items/item/workbook/functions/match/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMatchPostRequestBody, serializeMatchPostRequestBody, type MatchPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMatchPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMatchPostRequestBody; +} +export function deserializeIntoMatchPostRequestBody(matchPostRequestBody: MatchPostRequestBody | undefined = {} as MatchPostRequestBody) : Record void> { + return { + "lookupArray": n => { matchPostRequestBody.lookupArray = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "lookupValue": n => { matchPostRequestBody.lookupValue = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "matchType": n => { matchPostRequestBody.matchType = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MatchPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The lookupArray property + */ + lookupArray?: Json; + /** + * The lookupValue property + */ + lookupValue?: Json; + /** + * The matchType property + */ + matchType?: Json; +} +export function serializeMatchPostRequestBody(writer: SerializationWriter, matchPostRequestBody: MatchPostRequestBody | undefined = {} as MatchPostRequestBody) : void { + writer.writeObjectValue("lookupArray", matchPostRequestBody.lookupArray, serializeJson); + writer.writeObjectValue("lookupValue", matchPostRequestBody.lookupValue, serializeJson); + writer.writeObjectValue("matchType", matchPostRequestBody.matchType, serializeJson); + writer.writeAdditionalData(matchPostRequestBody.additionalData); +} /** * Provides operations to call the match method. */ diff --git a/src/drives/item/items/item/workbook/functions/match/matchPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/match/matchPostRequestBody.ts deleted file mode 100644 index 23cf96b7120..00000000000 --- a/src/drives/item/items/item/workbook/functions/match/matchPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMatchPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMatchPostRequestBody; -} -export function deserializeIntoMatchPostRequestBody(matchPostRequestBody: MatchPostRequestBody | undefined = {} as MatchPostRequestBody) : Record void> { - return { - "lookupArray": n => { matchPostRequestBody.lookupArray = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "lookupValue": n => { matchPostRequestBody.lookupValue = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "matchType": n => { matchPostRequestBody.matchType = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MatchPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The lookupArray property - */ - lookupArray?: Json; - /** - * The lookupValue property - */ - lookupValue?: Json; - /** - * The matchType property - */ - matchType?: Json; -} -export function serializeMatchPostRequestBody(writer: SerializationWriter, matchPostRequestBody: MatchPostRequestBody | undefined = {} as MatchPostRequestBody) : void { - writer.writeObjectValue("lookupArray", matchPostRequestBody.lookupArray, serializeJson); - writer.writeObjectValue("lookupValue", matchPostRequestBody.lookupValue, serializeJson); - writer.writeObjectValue("matchType", matchPostRequestBody.matchType, serializeJson); - writer.writeAdditionalData(matchPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/max/index.ts b/src/drives/item/items/item/workbook/functions/max/index.ts index b8d873b919e..f4a8aa2462e 100644 --- a/src/drives/item/items/item/workbook/functions/max/index.ts +++ b/src/drives/item/items/item/workbook/functions/max/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMaxPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeMaxPostRequestBody(writer: SerializationWriter, maxPost writer.writeObjectValue("values", maxPostRequestBody.values, serializeJson); writer.writeAdditionalData(maxPostRequestBody.additionalData); } -/** - * Provides operations to call the max method. - */ -export class MaxRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MaxRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/max"); - }; - /** - * Invoke action max - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: MaxPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action max - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MaxPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMaxPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a maxRequestBuilder - */ - public withUrl(rawUrl: string) : MaxRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MaxRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/maxA/index.ts b/src/drives/item/items/item/workbook/functions/maxA/index.ts index 4a5fd1f9571..3307668711b 100644 --- a/src/drives/item/items/item/workbook/functions/maxA/index.ts +++ b/src/drives/item/items/item/workbook/functions/maxA/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMaxAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeMaxAPostRequestBody(writer: SerializationWriter, maxAPo writer.writeObjectValue("values", maxAPostRequestBody.values, serializeJson); writer.writeAdditionalData(maxAPostRequestBody.additionalData); } -/** - * Provides operations to call the maxA method. - */ -export class MaxARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MaxARequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/maxA"); - }; - /** - * Invoke action maxA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: MaxAPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action maxA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MaxAPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMaxAPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a maxARequestBuilder - */ - public withUrl(rawUrl: string) : MaxARequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MaxARequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/mduration/index.ts b/src/drives/item/items/item/workbook/functions/mduration/index.ts index 85ace9510d2..0b86942df60 100644 --- a/src/drives/item/items/item/workbook/functions/mduration/index.ts +++ b/src/drives/item/items/item/workbook/functions/mduration/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMdurationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -57,5 +60,57 @@ export function serializeMdurationPostRequestBody(writer: SerializationWriter, m writer.writeObjectValue("yld", mdurationPostRequestBody.yld, serializeJson); writer.writeAdditionalData(mdurationPostRequestBody.additionalData); } +/** + * Provides operations to call the mduration method. + */ +export class MdurationRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new MdurationRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mduration"); + }; + /** + * Invoke action mduration + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: MdurationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action mduration + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: MdurationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMdurationPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a mdurationRequestBuilder + */ + public withUrl(rawUrl: string) : MdurationRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new MdurationRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/mduration/mdurationPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/mduration/mdurationPostRequestBody.ts deleted file mode 100644 index 71cf90878a1..00000000000 --- a/src/drives/item/items/item/workbook/functions/mduration/mdurationPostRequestBody.ts +++ /dev/null @@ -1,61 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMdurationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMdurationPostRequestBody; -} -export function deserializeIntoMdurationPostRequestBody(mdurationPostRequestBody: MdurationPostRequestBody | undefined = {} as MdurationPostRequestBody) : Record void> { - return { - "basis": n => { mdurationPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "coupon": n => { mdurationPostRequestBody.coupon = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "frequency": n => { mdurationPostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { mdurationPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { mdurationPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "yld": n => { mdurationPostRequestBody.yld = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MdurationPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The coupon property - */ - coupon?: Json; - /** - * The frequency property - */ - frequency?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The settlement property - */ - settlement?: Json; - /** - * The yld property - */ - yld?: Json; -} -export function serializeMdurationPostRequestBody(writer: SerializationWriter, mdurationPostRequestBody: MdurationPostRequestBody | undefined = {} as MdurationPostRequestBody) : void { - writer.writeObjectValue("basis", mdurationPostRequestBody.basis, serializeJson); - writer.writeObjectValue("coupon", mdurationPostRequestBody.coupon, serializeJson); - writer.writeObjectValue("frequency", mdurationPostRequestBody.frequency, serializeJson); - writer.writeObjectValue("maturity", mdurationPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("settlement", mdurationPostRequestBody.settlement, serializeJson); - writer.writeObjectValue("yld", mdurationPostRequestBody.yld, serializeJson); - writer.writeAdditionalData(mdurationPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/median/index.ts b/src/drives/item/items/item/workbook/functions/median/index.ts index 29c51db112e..b8270250c5f 100644 --- a/src/drives/item/items/item/workbook/functions/median/index.ts +++ b/src/drives/item/items/item/workbook/functions/median/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMedianPostRequestBody, serializeMedianPostRequestBody, type MedianPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMedianPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMedianPostRequestBody; +} +export function deserializeIntoMedianPostRequestBody(medianPostRequestBody: MedianPostRequestBody | undefined = {} as MedianPostRequestBody) : Record void> { + return { + "values": n => { medianPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MedianPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeMedianPostRequestBody(writer: SerializationWriter, medianPostRequestBody: MedianPostRequestBody | undefined = {} as MedianPostRequestBody) : void { + writer.writeObjectValue("values", medianPostRequestBody.values, serializeJson); + writer.writeAdditionalData(medianPostRequestBody.additionalData); +} /** * Provides operations to call the median method. */ diff --git a/src/drives/item/items/item/workbook/functions/median/medianPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/median/medianPostRequestBody.ts deleted file mode 100644 index 5dcb9ea93b8..00000000000 --- a/src/drives/item/items/item/workbook/functions/median/medianPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMedianPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMedianPostRequestBody; -} -export function deserializeIntoMedianPostRequestBody(medianPostRequestBody: MedianPostRequestBody | undefined = {} as MedianPostRequestBody) : Record void> { - return { - "values": n => { medianPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MedianPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeMedianPostRequestBody(writer: SerializationWriter, medianPostRequestBody: MedianPostRequestBody | undefined = {} as MedianPostRequestBody) : void { - writer.writeObjectValue("values", medianPostRequestBody.values, serializeJson); - writer.writeAdditionalData(medianPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/mid/index.ts b/src/drives/item/items/item/workbook/functions/mid/index.ts index 3f8bb09c2e5..7b516b676ae 100644 --- a/src/drives/item/items/item/workbook/functions/mid/index.ts +++ b/src/drives/item/items/item/workbook/functions/mid/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMidPostRequestBody, serializeMidPostRequestBody, type MidPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMidPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMidPostRequestBody; +} +export function deserializeIntoMidPostRequestBody(midPostRequestBody: MidPostRequestBody | undefined = {} as MidPostRequestBody) : Record void> { + return { + "numChars": n => { midPostRequestBody.numChars = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startNum": n => { midPostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "text": n => { midPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MidPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The numChars property + */ + numChars?: Json; + /** + * The startNum property + */ + startNum?: Json; + /** + * The text property + */ + text?: Json; +} +export function serializeMidPostRequestBody(writer: SerializationWriter, midPostRequestBody: MidPostRequestBody | undefined = {} as MidPostRequestBody) : void { + writer.writeObjectValue("numChars", midPostRequestBody.numChars, serializeJson); + writer.writeObjectValue("startNum", midPostRequestBody.startNum, serializeJson); + writer.writeObjectValue("text", midPostRequestBody.text, serializeJson); + writer.writeAdditionalData(midPostRequestBody.additionalData); +} /** * Provides operations to call the mid method. */ diff --git a/src/drives/item/items/item/workbook/functions/mid/midPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/mid/midPostRequestBody.ts deleted file mode 100644 index 7a14d27c114..00000000000 --- a/src/drives/item/items/item/workbook/functions/mid/midPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMidPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMidPostRequestBody; -} -export function deserializeIntoMidPostRequestBody(midPostRequestBody: MidPostRequestBody | undefined = {} as MidPostRequestBody) : Record void> { - return { - "numChars": n => { midPostRequestBody.numChars = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startNum": n => { midPostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "text": n => { midPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MidPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The numChars property - */ - numChars?: Json; - /** - * The startNum property - */ - startNum?: Json; - /** - * The text property - */ - text?: Json; -} -export function serializeMidPostRequestBody(writer: SerializationWriter, midPostRequestBody: MidPostRequestBody | undefined = {} as MidPostRequestBody) : void { - writer.writeObjectValue("numChars", midPostRequestBody.numChars, serializeJson); - writer.writeObjectValue("startNum", midPostRequestBody.startNum, serializeJson); - writer.writeObjectValue("text", midPostRequestBody.text, serializeJson); - writer.writeAdditionalData(midPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/midb/index.ts b/src/drives/item/items/item/workbook/functions/midb/index.ts index cdd33435d7e..a5161e52d79 100644 --- a/src/drives/item/items/item/workbook/functions/midb/index.ts +++ b/src/drives/item/items/item/workbook/functions/midb/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMidbPostRequestBody, serializeMidbPostRequestBody, type MidbPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMidbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMidbPostRequestBody; +} +export function deserializeIntoMidbPostRequestBody(midbPostRequestBody: MidbPostRequestBody | undefined = {} as MidbPostRequestBody) : Record void> { + return { + "numBytes": n => { midbPostRequestBody.numBytes = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startNum": n => { midbPostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "text": n => { midbPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MidbPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The numBytes property + */ + numBytes?: Json; + /** + * The startNum property + */ + startNum?: Json; + /** + * The text property + */ + text?: Json; +} +export function serializeMidbPostRequestBody(writer: SerializationWriter, midbPostRequestBody: MidbPostRequestBody | undefined = {} as MidbPostRequestBody) : void { + writer.writeObjectValue("numBytes", midbPostRequestBody.numBytes, serializeJson); + writer.writeObjectValue("startNum", midbPostRequestBody.startNum, serializeJson); + writer.writeObjectValue("text", midbPostRequestBody.text, serializeJson); + writer.writeAdditionalData(midbPostRequestBody.additionalData); +} /** * Provides operations to call the midb method. */ diff --git a/src/drives/item/items/item/workbook/functions/midb/midbPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/midb/midbPostRequestBody.ts deleted file mode 100644 index bc18fb5873f..00000000000 --- a/src/drives/item/items/item/workbook/functions/midb/midbPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMidbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMidbPostRequestBody; -} -export function deserializeIntoMidbPostRequestBody(midbPostRequestBody: MidbPostRequestBody | undefined = {} as MidbPostRequestBody) : Record void> { - return { - "numBytes": n => { midbPostRequestBody.numBytes = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startNum": n => { midbPostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "text": n => { midbPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MidbPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The numBytes property - */ - numBytes?: Json; - /** - * The startNum property - */ - startNum?: Json; - /** - * The text property - */ - text?: Json; -} -export function serializeMidbPostRequestBody(writer: SerializationWriter, midbPostRequestBody: MidbPostRequestBody | undefined = {} as MidbPostRequestBody) : void { - writer.writeObjectValue("numBytes", midbPostRequestBody.numBytes, serializeJson); - writer.writeObjectValue("startNum", midbPostRequestBody.startNum, serializeJson); - writer.writeObjectValue("text", midbPostRequestBody.text, serializeJson); - writer.writeAdditionalData(midbPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/min/index.ts b/src/drives/item/items/item/workbook/functions/min/index.ts index 87ffa2a3c8c..02bba7507ec 100644 --- a/src/drives/item/items/item/workbook/functions/min/index.ts +++ b/src/drives/item/items/item/workbook/functions/min/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeMinPostRequestBody(writer: SerializationWriter, minPost writer.writeObjectValue("values", minPostRequestBody.values, serializeJson); writer.writeAdditionalData(minPostRequestBody.additionalData); } -/** - * Provides operations to call the min method. - */ -export class MinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MinRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/min"); - }; - /** - * Invoke action min - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: MinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action min - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMinPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a minRequestBuilder - */ - public withUrl(rawUrl: string) : MinRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MinRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/minA/index.ts b/src/drives/item/items/item/workbook/functions/minA/index.ts index 424fcb7614b..58ba409c3e3 100644 --- a/src/drives/item/items/item/workbook/functions/minA/index.ts +++ b/src/drives/item/items/item/workbook/functions/minA/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMinAPostRequestBody, serializeMinAPostRequestBody, type MinAPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMinAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMinAPostRequestBody; +} +export function deserializeIntoMinAPostRequestBody(minAPostRequestBody: MinAPostRequestBody | undefined = {} as MinAPostRequestBody) : Record void> { + return { + "values": n => { minAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MinAPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeMinAPostRequestBody(writer: SerializationWriter, minAPostRequestBody: MinAPostRequestBody | undefined = {} as MinAPostRequestBody) : void { + writer.writeObjectValue("values", minAPostRequestBody.values, serializeJson); + writer.writeAdditionalData(minAPostRequestBody.additionalData); +} /** * Provides operations to call the minA method. */ diff --git a/src/drives/item/items/item/workbook/functions/minA/minAPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/minA/minAPostRequestBody.ts deleted file mode 100644 index 20e2d5bb83d..00000000000 --- a/src/drives/item/items/item/workbook/functions/minA/minAPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMinAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMinAPostRequestBody; -} -export function deserializeIntoMinAPostRequestBody(minAPostRequestBody: MinAPostRequestBody | undefined = {} as MinAPostRequestBody) : Record void> { - return { - "values": n => { minAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MinAPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeMinAPostRequestBody(writer: SerializationWriter, minAPostRequestBody: MinAPostRequestBody | undefined = {} as MinAPostRequestBody) : void { - writer.writeObjectValue("values", minAPostRequestBody.values, serializeJson); - writer.writeAdditionalData(minAPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/minute/index.ts b/src/drives/item/items/item/workbook/functions/minute/index.ts index 07f602e6597..27eb17622b6 100644 --- a/src/drives/item/items/item/workbook/functions/minute/index.ts +++ b/src/drives/item/items/item/workbook/functions/minute/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMinutePostRequestBody, serializeMinutePostRequestBody, type MinutePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMinutePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMinutePostRequestBody; +} +export function deserializeIntoMinutePostRequestBody(minutePostRequestBody: MinutePostRequestBody | undefined = {} as MinutePostRequestBody) : Record void> { + return { + "serialNumber": n => { minutePostRequestBody.serialNumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MinutePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The serialNumber property + */ + serialNumber?: Json; +} +export function serializeMinutePostRequestBody(writer: SerializationWriter, minutePostRequestBody: MinutePostRequestBody | undefined = {} as MinutePostRequestBody) : void { + writer.writeObjectValue("serialNumber", minutePostRequestBody.serialNumber, serializeJson); + writer.writeAdditionalData(minutePostRequestBody.additionalData); +} /** * Provides operations to call the minute method. */ diff --git a/src/drives/item/items/item/workbook/functions/minute/minutePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/minute/minutePostRequestBody.ts deleted file mode 100644 index fd9e97beee7..00000000000 --- a/src/drives/item/items/item/workbook/functions/minute/minutePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMinutePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMinutePostRequestBody; -} -export function deserializeIntoMinutePostRequestBody(minutePostRequestBody: MinutePostRequestBody | undefined = {} as MinutePostRequestBody) : Record void> { - return { - "serialNumber": n => { minutePostRequestBody.serialNumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MinutePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The serialNumber property - */ - serialNumber?: Json; -} -export function serializeMinutePostRequestBody(writer: SerializationWriter, minutePostRequestBody: MinutePostRequestBody | undefined = {} as MinutePostRequestBody) : void { - writer.writeObjectValue("serialNumber", minutePostRequestBody.serialNumber, serializeJson); - writer.writeAdditionalData(minutePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/mirr/index.ts b/src/drives/item/items/item/workbook/functions/mirr/index.ts index 2e208e9a524..d013ccdd193 100644 --- a/src/drives/item/items/item/workbook/functions/mirr/index.ts +++ b/src/drives/item/items/item/workbook/functions/mirr/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMirrPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -39,5 +42,57 @@ export function serializeMirrPostRequestBody(writer: SerializationWriter, mirrPo writer.writeObjectValue("values", mirrPostRequestBody.values, serializeJson); writer.writeAdditionalData(mirrPostRequestBody.additionalData); } +/** + * Provides operations to call the mirr method. + */ +export class MirrRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new MirrRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mirr"); + }; + /** + * Invoke action mirr + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: MirrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action mirr + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: MirrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMirrPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a mirrRequestBuilder + */ + public withUrl(rawUrl: string) : MirrRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new MirrRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/mirr/mirrPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/mirr/mirrPostRequestBody.ts deleted file mode 100644 index 002e4b6ea75..00000000000 --- a/src/drives/item/items/item/workbook/functions/mirr/mirrPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMirrPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMirrPostRequestBody; -} -export function deserializeIntoMirrPostRequestBody(mirrPostRequestBody: MirrPostRequestBody | undefined = {} as MirrPostRequestBody) : Record void> { - return { - "financeRate": n => { mirrPostRequestBody.financeRate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "reinvestRate": n => { mirrPostRequestBody.reinvestRate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "values": n => { mirrPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MirrPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The financeRate property - */ - financeRate?: Json; - /** - * The reinvestRate property - */ - reinvestRate?: Json; - /** - * The values property - */ - values?: Json; -} -export function serializeMirrPostRequestBody(writer: SerializationWriter, mirrPostRequestBody: MirrPostRequestBody | undefined = {} as MirrPostRequestBody) : void { - writer.writeObjectValue("financeRate", mirrPostRequestBody.financeRate, serializeJson); - writer.writeObjectValue("reinvestRate", mirrPostRequestBody.reinvestRate, serializeJson); - writer.writeObjectValue("values", mirrPostRequestBody.values, serializeJson); - writer.writeAdditionalData(mirrPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/mod/index.ts b/src/drives/item/items/item/workbook/functions/mod/index.ts index f1d1bf4569e..39a58427f70 100644 --- a/src/drives/item/items/item/workbook/functions/mod/index.ts +++ b/src/drives/item/items/item/workbook/functions/mod/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoModPostRequestBody, serializeModPostRequestBody, type ModPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createModPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoModPostRequestBody; +} +export function deserializeIntoModPostRequestBody(modPostRequestBody: ModPostRequestBody | undefined = {} as ModPostRequestBody) : Record void> { + return { + "divisor": n => { modPostRequestBody.divisor = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "number": n => { modPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ModPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The divisor property + */ + divisor?: Json; + /** + * The number property + */ + number?: Json; +} +export function serializeModPostRequestBody(writer: SerializationWriter, modPostRequestBody: ModPostRequestBody | undefined = {} as ModPostRequestBody) : void { + writer.writeObjectValue("divisor", modPostRequestBody.divisor, serializeJson); + writer.writeObjectValue("number", modPostRequestBody.number, serializeJson); + writer.writeAdditionalData(modPostRequestBody.additionalData); +} /** * Provides operations to call the mod method. */ diff --git a/src/drives/item/items/item/workbook/functions/mod/modPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/mod/modPostRequestBody.ts deleted file mode 100644 index e54ccdb3cef..00000000000 --- a/src/drives/item/items/item/workbook/functions/mod/modPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createModPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoModPostRequestBody; -} -export function deserializeIntoModPostRequestBody(modPostRequestBody: ModPostRequestBody | undefined = {} as ModPostRequestBody) : Record void> { - return { - "divisor": n => { modPostRequestBody.divisor = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "number": n => { modPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ModPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The divisor property - */ - divisor?: Json; - /** - * The number property - */ - number?: Json; -} -export function serializeModPostRequestBody(writer: SerializationWriter, modPostRequestBody: ModPostRequestBody | undefined = {} as ModPostRequestBody) : void { - writer.writeObjectValue("divisor", modPostRequestBody.divisor, serializeJson); - writer.writeObjectValue("number", modPostRequestBody.number, serializeJson); - writer.writeAdditionalData(modPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/month/index.ts b/src/drives/item/items/item/workbook/functions/month/index.ts index 4a92058d8a7..0aa2e2cdce0 100644 --- a/src/drives/item/items/item/workbook/functions/month/index.ts +++ b/src/drives/item/items/item/workbook/functions/month/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMonthPostRequestBody, serializeMonthPostRequestBody, type MonthPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMonthPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMonthPostRequestBody; +} +export function deserializeIntoMonthPostRequestBody(monthPostRequestBody: MonthPostRequestBody | undefined = {} as MonthPostRequestBody) : Record void> { + return { + "serialNumber": n => { monthPostRequestBody.serialNumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MonthPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The serialNumber property + */ + serialNumber?: Json; +} +export function serializeMonthPostRequestBody(writer: SerializationWriter, monthPostRequestBody: MonthPostRequestBody | undefined = {} as MonthPostRequestBody) : void { + writer.writeObjectValue("serialNumber", monthPostRequestBody.serialNumber, serializeJson); + writer.writeAdditionalData(monthPostRequestBody.additionalData); +} /** * Provides operations to call the month method. */ diff --git a/src/drives/item/items/item/workbook/functions/month/monthPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/month/monthPostRequestBody.ts deleted file mode 100644 index cfdf4a3edb4..00000000000 --- a/src/drives/item/items/item/workbook/functions/month/monthPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMonthPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMonthPostRequestBody; -} -export function deserializeIntoMonthPostRequestBody(monthPostRequestBody: MonthPostRequestBody | undefined = {} as MonthPostRequestBody) : Record void> { - return { - "serialNumber": n => { monthPostRequestBody.serialNumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MonthPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The serialNumber property - */ - serialNumber?: Json; -} -export function serializeMonthPostRequestBody(writer: SerializationWriter, monthPostRequestBody: MonthPostRequestBody | undefined = {} as MonthPostRequestBody) : void { - writer.writeObjectValue("serialNumber", monthPostRequestBody.serialNumber, serializeJson); - writer.writeAdditionalData(monthPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/mround/index.ts b/src/drives/item/items/item/workbook/functions/mround/index.ts index 8e197e6c27b..56e72945033 100644 --- a/src/drives/item/items/item/workbook/functions/mround/index.ts +++ b/src/drives/item/items/item/workbook/functions/mround/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMroundPostRequestBody, serializeMroundPostRequestBody, type MroundPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMroundPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMroundPostRequestBody; +} +export function deserializeIntoMroundPostRequestBody(mroundPostRequestBody: MroundPostRequestBody | undefined = {} as MroundPostRequestBody) : Record void> { + return { + "multiple": n => { mroundPostRequestBody.multiple = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "number": n => { mroundPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MroundPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The multiple property + */ + multiple?: Json; + /** + * The number property + */ + number?: Json; +} +export function serializeMroundPostRequestBody(writer: SerializationWriter, mroundPostRequestBody: MroundPostRequestBody | undefined = {} as MroundPostRequestBody) : void { + writer.writeObjectValue("multiple", mroundPostRequestBody.multiple, serializeJson); + writer.writeObjectValue("number", mroundPostRequestBody.number, serializeJson); + writer.writeAdditionalData(mroundPostRequestBody.additionalData); +} /** * Provides operations to call the mround method. */ diff --git a/src/drives/item/items/item/workbook/functions/mround/mroundPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/mround/mroundPostRequestBody.ts deleted file mode 100644 index fa50644cb65..00000000000 --- a/src/drives/item/items/item/workbook/functions/mround/mroundPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMroundPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMroundPostRequestBody; -} -export function deserializeIntoMroundPostRequestBody(mroundPostRequestBody: MroundPostRequestBody | undefined = {} as MroundPostRequestBody) : Record void> { - return { - "multiple": n => { mroundPostRequestBody.multiple = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "number": n => { mroundPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MroundPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The multiple property - */ - multiple?: Json; - /** - * The number property - */ - number?: Json; -} -export function serializeMroundPostRequestBody(writer: SerializationWriter, mroundPostRequestBody: MroundPostRequestBody | undefined = {} as MroundPostRequestBody) : void { - writer.writeObjectValue("multiple", mroundPostRequestBody.multiple, serializeJson); - writer.writeObjectValue("number", mroundPostRequestBody.number, serializeJson); - writer.writeAdditionalData(mroundPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/multiNomial/index.ts b/src/drives/item/items/item/workbook/functions/multiNomial/index.ts index b1855ec3489..6c47007d06d 100644 --- a/src/drives/item/items/item/workbook/functions/multiNomial/index.ts +++ b/src/drives/item/items/item/workbook/functions/multiNomial/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoMultiNomialPostRequestBody, serializeMultiNomialPostRequestBody, type MultiNomialPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMultiNomialPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMultiNomialPostRequestBody; +} +export function deserializeIntoMultiNomialPostRequestBody(multiNomialPostRequestBody: MultiNomialPostRequestBody | undefined = {} as MultiNomialPostRequestBody) : Record void> { + return { + "values": n => { multiNomialPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface MultiNomialPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeMultiNomialPostRequestBody(writer: SerializationWriter, multiNomialPostRequestBody: MultiNomialPostRequestBody | undefined = {} as MultiNomialPostRequestBody) : void { + writer.writeObjectValue("values", multiNomialPostRequestBody.values, serializeJson); + writer.writeAdditionalData(multiNomialPostRequestBody.additionalData); +} /** * Provides operations to call the multiNomial method. */ diff --git a/src/drives/item/items/item/workbook/functions/multiNomial/multiNomialPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/multiNomial/multiNomialPostRequestBody.ts deleted file mode 100644 index 256ffdcf27a..00000000000 --- a/src/drives/item/items/item/workbook/functions/multiNomial/multiNomialPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMultiNomialPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMultiNomialPostRequestBody; -} -export function deserializeIntoMultiNomialPostRequestBody(multiNomialPostRequestBody: MultiNomialPostRequestBody | undefined = {} as MultiNomialPostRequestBody) : Record void> { - return { - "values": n => { multiNomialPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface MultiNomialPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeMultiNomialPostRequestBody(writer: SerializationWriter, multiNomialPostRequestBody: MultiNomialPostRequestBody | undefined = {} as MultiNomialPostRequestBody) : void { - writer.writeObjectValue("values", multiNomialPostRequestBody.values, serializeJson); - writer.writeAdditionalData(multiNomialPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/n/index.ts b/src/drives/item/items/item/workbook/functions/n/index.ts index 5f24e428922..2b051497cda 100644 --- a/src/drives/item/items/item/workbook/functions/n/index.ts +++ b/src/drives/item/items/item/workbook/functions/n/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoNPostRequestBody, serializeNPostRequestBody, type NPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createNPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoNPostRequestBody; +} +export function deserializeIntoNPostRequestBody(nPostRequestBody: NPostRequestBody | undefined = {} as NPostRequestBody) : Record void> { + return { + "value": n => { nPostRequestBody.value = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface NPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: Json; +} +export function serializeNPostRequestBody(writer: SerializationWriter, nPostRequestBody: NPostRequestBody | undefined = {} as NPostRequestBody) : void { + writer.writeObjectValue("value", nPostRequestBody.value, serializeJson); + writer.writeAdditionalData(nPostRequestBody.additionalData); +} /** * Provides operations to call the n method. */ diff --git a/src/drives/item/items/item/workbook/functions/n/nPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/n/nPostRequestBody.ts deleted file mode 100644 index e219bd8b9e8..00000000000 --- a/src/drives/item/items/item/workbook/functions/n/nPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createNPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoNPostRequestBody; -} -export function deserializeIntoNPostRequestBody(nPostRequestBody: NPostRequestBody | undefined = {} as NPostRequestBody) : Record void> { - return { - "value": n => { nPostRequestBody.value = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface NPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: Json; -} -export function serializeNPostRequestBody(writer: SerializationWriter, nPostRequestBody: NPostRequestBody | undefined = {} as NPostRequestBody) : void { - writer.writeObjectValue("value", nPostRequestBody.value, serializeJson); - writer.writeAdditionalData(nPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/na/index.ts b/src/drives/item/items/item/workbook/functions/na/index.ts index 33185410019..91855a760ad 100644 --- a/src/drives/item/items/item/workbook/functions/na/index.ts +++ b/src/drives/item/items/item/workbook/functions/na/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookFunctionResult } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type WorkbookFunctionResult } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue } from '../../../../../../../models/workbookFunctionResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/functions/negBinom_Dist/index.ts b/src/drives/item/items/item/workbook/functions/negBinom_Dist/index.ts index b9de40ce5a5..bc1754c6e2e 100644 --- a/src/drives/item/items/item/workbook/functions/negBinom_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/negBinom_Dist/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoNegBinom_DistPostRequestBody, serializeNegBinom_DistPostRequestBody, type NegBinom_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createNegBinom_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoNegBinom_DistPostRequestBody; +} +export function deserializeIntoNegBinom_DistPostRequestBody(negBinom_DistPostRequestBody: NegBinom_DistPostRequestBody | undefined = {} as NegBinom_DistPostRequestBody) : Record void> { + return { + "cumulative": n => { negBinom_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numberF": n => { negBinom_DistPostRequestBody.numberF = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numberS": n => { negBinom_DistPostRequestBody.numberS = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probabilityS": n => { negBinom_DistPostRequestBody.probabilityS = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface NegBinom_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The numberF property + */ + numberF?: Json; + /** + * The numberS property + */ + numberS?: Json; + /** + * The probabilityS property + */ + probabilityS?: Json; +} +export function serializeNegBinom_DistPostRequestBody(writer: SerializationWriter, negBinom_DistPostRequestBody: NegBinom_DistPostRequestBody | undefined = {} as NegBinom_DistPostRequestBody) : void { + writer.writeObjectValue("cumulative", negBinom_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("numberF", negBinom_DistPostRequestBody.numberF, serializeJson); + writer.writeObjectValue("numberS", negBinom_DistPostRequestBody.numberS, serializeJson); + writer.writeObjectValue("probabilityS", negBinom_DistPostRequestBody.probabilityS, serializeJson); + writer.writeAdditionalData(negBinom_DistPostRequestBody.additionalData); +} /** * Provides operations to call the negBinom_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/negBinom_Dist/negBinom_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/negBinom_Dist/negBinom_DistPostRequestBody.ts deleted file mode 100644 index eac9b62664a..00000000000 --- a/src/drives/item/items/item/workbook/functions/negBinom_Dist/negBinom_DistPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createNegBinom_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoNegBinom_DistPostRequestBody; -} -export function deserializeIntoNegBinom_DistPostRequestBody(negBinom_DistPostRequestBody: NegBinom_DistPostRequestBody | undefined = {} as NegBinom_DistPostRequestBody) : Record void> { - return { - "cumulative": n => { negBinom_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberF": n => { negBinom_DistPostRequestBody.numberF = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberS": n => { negBinom_DistPostRequestBody.numberS = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probabilityS": n => { negBinom_DistPostRequestBody.probabilityS = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface NegBinom_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The numberF property - */ - numberF?: Json; - /** - * The numberS property - */ - numberS?: Json; - /** - * The probabilityS property - */ - probabilityS?: Json; -} -export function serializeNegBinom_DistPostRequestBody(writer: SerializationWriter, negBinom_DistPostRequestBody: NegBinom_DistPostRequestBody | undefined = {} as NegBinom_DistPostRequestBody) : void { - writer.writeObjectValue("cumulative", negBinom_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("numberF", negBinom_DistPostRequestBody.numberF, serializeJson); - writer.writeObjectValue("numberS", negBinom_DistPostRequestBody.numberS, serializeJson); - writer.writeObjectValue("probabilityS", negBinom_DistPostRequestBody.probabilityS, serializeJson); - writer.writeAdditionalData(negBinom_DistPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/networkDays/index.ts b/src/drives/item/items/item/workbook/functions/networkDays/index.ts index 6b6261059d9..cc49da44388 100644 --- a/src/drives/item/items/item/workbook/functions/networkDays/index.ts +++ b/src/drives/item/items/item/workbook/functions/networkDays/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createNetworkDaysPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeNetworkDaysPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("startDate", networkDaysPostRequestBody.startDate, serializeJson); writer.writeAdditionalData(networkDaysPostRequestBody.additionalData); } -/** - * Provides operations to call the networkDays method. - */ -export class NetworkDaysRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new NetworkDaysRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/networkDays"); - }; - /** - * Invoke action networkDays - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: NetworkDaysPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action networkDays - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: NetworkDaysPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeNetworkDaysPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a networkDaysRequestBuilder - */ - public withUrl(rawUrl: string) : NetworkDaysRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new NetworkDaysRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/networkDays_Intl/index.ts b/src/drives/item/items/item/workbook/functions/networkDays_Intl/index.ts index cbc2d5a50ab..08c3e9059cb 100644 --- a/src/drives/item/items/item/workbook/functions/networkDays_Intl/index.ts +++ b/src/drives/item/items/item/workbook/functions/networkDays_Intl/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createNetworkDays_IntlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +45,5 @@ export function serializeNetworkDays_IntlPostRequestBody(writer: SerializationWr writer.writeObjectValue("weekend", networkDays_IntlPostRequestBody.weekend, serializeJson); writer.writeAdditionalData(networkDays_IntlPostRequestBody.additionalData); } -/** - * Provides operations to call the networkDays_Intl method. - */ -export class NetworkDays_IntlRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new NetworkDays_IntlRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/networkDays_Intl"); - }; - /** - * Invoke action networkDays_Intl - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: NetworkDays_IntlPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action networkDays_Intl - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: NetworkDays_IntlPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeNetworkDays_IntlPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a networkDays_IntlRequestBuilder - */ - public withUrl(rawUrl: string) : NetworkDays_IntlRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new NetworkDays_IntlRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/nominal/index.ts b/src/drives/item/items/item/workbook/functions/nominal/index.ts index 1c22ffaf6dc..2357de969a9 100644 --- a/src/drives/item/items/item/workbook/functions/nominal/index.ts +++ b/src/drives/item/items/item/workbook/functions/nominal/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoNominalPostRequestBody, serializeNominalPostRequestBody, type NominalPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createNominalPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoNominalPostRequestBody; +} +export function deserializeIntoNominalPostRequestBody(nominalPostRequestBody: NominalPostRequestBody | undefined = {} as NominalPostRequestBody) : Record void> { + return { + "effectRate": n => { nominalPostRequestBody.effectRate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "npery": n => { nominalPostRequestBody.npery = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface NominalPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The effectRate property + */ + effectRate?: Json; + /** + * The npery property + */ + npery?: Json; +} +export function serializeNominalPostRequestBody(writer: SerializationWriter, nominalPostRequestBody: NominalPostRequestBody | undefined = {} as NominalPostRequestBody) : void { + writer.writeObjectValue("effectRate", nominalPostRequestBody.effectRate, serializeJson); + writer.writeObjectValue("npery", nominalPostRequestBody.npery, serializeJson); + writer.writeAdditionalData(nominalPostRequestBody.additionalData); +} /** * Provides operations to call the nominal method. */ diff --git a/src/drives/item/items/item/workbook/functions/nominal/nominalPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/nominal/nominalPostRequestBody.ts deleted file mode 100644 index 4dea049c8dd..00000000000 --- a/src/drives/item/items/item/workbook/functions/nominal/nominalPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createNominalPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoNominalPostRequestBody; -} -export function deserializeIntoNominalPostRequestBody(nominalPostRequestBody: NominalPostRequestBody | undefined = {} as NominalPostRequestBody) : Record void> { - return { - "effectRate": n => { nominalPostRequestBody.effectRate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "npery": n => { nominalPostRequestBody.npery = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface NominalPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The effectRate property - */ - effectRate?: Json; - /** - * The npery property - */ - npery?: Json; -} -export function serializeNominalPostRequestBody(writer: SerializationWriter, nominalPostRequestBody: NominalPostRequestBody | undefined = {} as NominalPostRequestBody) : void { - writer.writeObjectValue("effectRate", nominalPostRequestBody.effectRate, serializeJson); - writer.writeObjectValue("npery", nominalPostRequestBody.npery, serializeJson); - writer.writeAdditionalData(nominalPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/norm_Dist/index.ts b/src/drives/item/items/item/workbook/functions/norm_Dist/index.ts index 10aeeba58a3..8d3ceb710d8 100644 --- a/src/drives/item/items/item/workbook/functions/norm_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/norm_Dist/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoNorm_DistPostRequestBody, serializeNorm_DistPostRequestBody, type Norm_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createNorm_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoNorm_DistPostRequestBody; +} +export function deserializeIntoNorm_DistPostRequestBody(norm_DistPostRequestBody: Norm_DistPostRequestBody | undefined = {} as Norm_DistPostRequestBody) : Record void> { + return { + "cumulative": n => { norm_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "mean": n => { norm_DistPostRequestBody.mean = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "standardDev": n => { norm_DistPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { norm_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Norm_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The mean property + */ + mean?: Json; + /** + * The standardDev property + */ + standardDev?: Json; + /** + * The x property + */ + x?: Json; +} +export function serializeNorm_DistPostRequestBody(writer: SerializationWriter, norm_DistPostRequestBody: Norm_DistPostRequestBody | undefined = {} as Norm_DistPostRequestBody) : void { + writer.writeObjectValue("cumulative", norm_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("mean", norm_DistPostRequestBody.mean, serializeJson); + writer.writeObjectValue("standardDev", norm_DistPostRequestBody.standardDev, serializeJson); + writer.writeObjectValue("x", norm_DistPostRequestBody.x, serializeJson); + writer.writeAdditionalData(norm_DistPostRequestBody.additionalData); +} /** * Provides operations to call the norm_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/norm_Dist/norm_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/norm_Dist/norm_DistPostRequestBody.ts deleted file mode 100644 index 335fd6a1750..00000000000 --- a/src/drives/item/items/item/workbook/functions/norm_Dist/norm_DistPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createNorm_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoNorm_DistPostRequestBody; -} -export function deserializeIntoNorm_DistPostRequestBody(norm_DistPostRequestBody: Norm_DistPostRequestBody | undefined = {} as Norm_DistPostRequestBody) : Record void> { - return { - "cumulative": n => { norm_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "mean": n => { norm_DistPostRequestBody.mean = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "standardDev": n => { norm_DistPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { norm_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Norm_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The mean property - */ - mean?: Json; - /** - * The standardDev property - */ - standardDev?: Json; - /** - * The x property - */ - x?: Json; -} -export function serializeNorm_DistPostRequestBody(writer: SerializationWriter, norm_DistPostRequestBody: Norm_DistPostRequestBody | undefined = {} as Norm_DistPostRequestBody) : void { - writer.writeObjectValue("cumulative", norm_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("mean", norm_DistPostRequestBody.mean, serializeJson); - writer.writeObjectValue("standardDev", norm_DistPostRequestBody.standardDev, serializeJson); - writer.writeObjectValue("x", norm_DistPostRequestBody.x, serializeJson); - writer.writeAdditionalData(norm_DistPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/norm_Inv/index.ts b/src/drives/item/items/item/workbook/functions/norm_Inv/index.ts index 92ff0209c1d..cda0b6422f9 100644 --- a/src/drives/item/items/item/workbook/functions/norm_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/norm_Inv/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoNorm_InvPostRequestBody, serializeNorm_InvPostRequestBody, type Norm_InvPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createNorm_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoNorm_InvPostRequestBody; +} +export function deserializeIntoNorm_InvPostRequestBody(norm_InvPostRequestBody: Norm_InvPostRequestBody | undefined = {} as Norm_InvPostRequestBody) : Record void> { + return { + "mean": n => { norm_InvPostRequestBody.mean = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probability": n => { norm_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "standardDev": n => { norm_InvPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Norm_InvPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The mean property + */ + mean?: Json; + /** + * The probability property + */ + probability?: Json; + /** + * The standardDev property + */ + standardDev?: Json; +} +export function serializeNorm_InvPostRequestBody(writer: SerializationWriter, norm_InvPostRequestBody: Norm_InvPostRequestBody | undefined = {} as Norm_InvPostRequestBody) : void { + writer.writeObjectValue("mean", norm_InvPostRequestBody.mean, serializeJson); + writer.writeObjectValue("probability", norm_InvPostRequestBody.probability, serializeJson); + writer.writeObjectValue("standardDev", norm_InvPostRequestBody.standardDev, serializeJson); + writer.writeAdditionalData(norm_InvPostRequestBody.additionalData); +} /** * Provides operations to call the norm_Inv method. */ diff --git a/src/drives/item/items/item/workbook/functions/norm_Inv/norm_InvPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/norm_Inv/norm_InvPostRequestBody.ts deleted file mode 100644 index 185790647f6..00000000000 --- a/src/drives/item/items/item/workbook/functions/norm_Inv/norm_InvPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createNorm_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoNorm_InvPostRequestBody; -} -export function deserializeIntoNorm_InvPostRequestBody(norm_InvPostRequestBody: Norm_InvPostRequestBody | undefined = {} as Norm_InvPostRequestBody) : Record void> { - return { - "mean": n => { norm_InvPostRequestBody.mean = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probability": n => { norm_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "standardDev": n => { norm_InvPostRequestBody.standardDev = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Norm_InvPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The mean property - */ - mean?: Json; - /** - * The probability property - */ - probability?: Json; - /** - * The standardDev property - */ - standardDev?: Json; -} -export function serializeNorm_InvPostRequestBody(writer: SerializationWriter, norm_InvPostRequestBody: Norm_InvPostRequestBody | undefined = {} as Norm_InvPostRequestBody) : void { - writer.writeObjectValue("mean", norm_InvPostRequestBody.mean, serializeJson); - writer.writeObjectValue("probability", norm_InvPostRequestBody.probability, serializeJson); - writer.writeObjectValue("standardDev", norm_InvPostRequestBody.standardDev, serializeJson); - writer.writeAdditionalData(norm_InvPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/norm_S_Dist/index.ts b/src/drives/item/items/item/workbook/functions/norm_S_Dist/index.ts index c7ad824abb6..6409b35b3bd 100644 --- a/src/drives/item/items/item/workbook/functions/norm_S_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/norm_S_Dist/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createNorm_S_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeNorm_S_DistPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("z", norm_S_DistPostRequestBody.z, serializeJson); writer.writeAdditionalData(norm_S_DistPostRequestBody.additionalData); } -/** - * Provides operations to call the norm_S_Dist method. - */ -export class Norm_S_DistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Norm_S_DistRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_S_Dist"); - }; - /** - * Invoke action norm_S_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Norm_S_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action norm_S_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Norm_S_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeNorm_S_DistPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a norm_S_DistRequestBuilder - */ - public withUrl(rawUrl: string) : Norm_S_DistRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Norm_S_DistRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/norm_S_Inv/index.ts b/src/drives/item/items/item/workbook/functions/norm_S_Inv/index.ts index 2414f397094..99efe0d041f 100644 --- a/src/drives/item/items/item/workbook/functions/norm_S_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/norm_S_Inv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createNorm_S_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeNorm_S_InvPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("probability", norm_S_InvPostRequestBody.probability, serializeJson); writer.writeAdditionalData(norm_S_InvPostRequestBody.additionalData); } -/** - * Provides operations to call the norm_S_Inv method. - */ -export class Norm_S_InvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Norm_S_InvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_S_Inv"); - }; - /** - * Invoke action norm_S_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Norm_S_InvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action norm_S_Inv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Norm_S_InvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeNorm_S_InvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a norm_S_InvRequestBuilder - */ - public withUrl(rawUrl: string) : Norm_S_InvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Norm_S_InvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/not/index.ts b/src/drives/item/items/item/workbook/functions/not/index.ts index 0a2c531be54..aefb6c4c323 100644 --- a/src/drives/item/items/item/workbook/functions/not/index.ts +++ b/src/drives/item/items/item/workbook/functions/not/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoNotPostRequestBody, serializeNotPostRequestBody, type NotPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createNotPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoNotPostRequestBody; +} +export function deserializeIntoNotPostRequestBody(notPostRequestBody: NotPostRequestBody | undefined = {} as NotPostRequestBody) : Record void> { + return { + "logical": n => { notPostRequestBody.logical = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface NotPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The logical property + */ + logical?: Json; +} +export function serializeNotPostRequestBody(writer: SerializationWriter, notPostRequestBody: NotPostRequestBody | undefined = {} as NotPostRequestBody) : void { + writer.writeObjectValue("logical", notPostRequestBody.logical, serializeJson); + writer.writeAdditionalData(notPostRequestBody.additionalData); +} /** * Provides operations to call the not method. */ diff --git a/src/drives/item/items/item/workbook/functions/not/notPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/not/notPostRequestBody.ts deleted file mode 100644 index 2f7910d68f6..00000000000 --- a/src/drives/item/items/item/workbook/functions/not/notPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createNotPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoNotPostRequestBody; -} -export function deserializeIntoNotPostRequestBody(notPostRequestBody: NotPostRequestBody | undefined = {} as NotPostRequestBody) : Record void> { - return { - "logical": n => { notPostRequestBody.logical = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface NotPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The logical property - */ - logical?: Json; -} -export function serializeNotPostRequestBody(writer: SerializationWriter, notPostRequestBody: NotPostRequestBody | undefined = {} as NotPostRequestBody) : void { - writer.writeObjectValue("logical", notPostRequestBody.logical, serializeJson); - writer.writeAdditionalData(notPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/now/index.ts b/src/drives/item/items/item/workbook/functions/now/index.ts index 0aa229ad5b1..2250c13d664 100644 --- a/src/drives/item/items/item/workbook/functions/now/index.ts +++ b/src/drives/item/items/item/workbook/functions/now/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookFunctionResult } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type WorkbookFunctionResult } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue } from '../../../../../../../models/workbookFunctionResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/functions/nper/index.ts b/src/drives/item/items/item/workbook/functions/nper/index.ts index 41ce1d51a54..477f1ce6f7b 100644 --- a/src/drives/item/items/item/workbook/functions/nper/index.ts +++ b/src/drives/item/items/item/workbook/functions/nper/index.ts @@ -1,12 +1,59 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoNperPostRequestBody, serializeNperPostRequestBody, type NperPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createNperPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoNperPostRequestBody; +} +export function deserializeIntoNperPostRequestBody(nperPostRequestBody: NperPostRequestBody | undefined = {} as NperPostRequestBody) : Record void> { + return { + "fv": n => { nperPostRequestBody.fv = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pmt": n => { nperPostRequestBody.pmt = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pv": n => { nperPostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "rate": n => { nperPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "type": n => { nperPostRequestBody.type = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface NperPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fv property + */ + fv?: Json; + /** + * The pmt property + */ + pmt?: Json; + /** + * The pv property + */ + pv?: Json; + /** + * The rate property + */ + rate?: Json; + /** + * The type property + */ + type?: Json; +} +export function serializeNperPostRequestBody(writer: SerializationWriter, nperPostRequestBody: NperPostRequestBody | undefined = {} as NperPostRequestBody) : void { + writer.writeObjectValue("fv", nperPostRequestBody.fv, serializeJson); + writer.writeObjectValue("pmt", nperPostRequestBody.pmt, serializeJson); + writer.writeObjectValue("pv", nperPostRequestBody.pv, serializeJson); + writer.writeObjectValue("rate", nperPostRequestBody.rate, serializeJson); + writer.writeObjectValue("type", nperPostRequestBody.type, serializeJson); + writer.writeAdditionalData(nperPostRequestBody.additionalData); +} /** * Provides operations to call the nper method. */ diff --git a/src/drives/item/items/item/workbook/functions/nper/nperPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/nper/nperPostRequestBody.ts deleted file mode 100644 index 09686727751..00000000000 --- a/src/drives/item/items/item/workbook/functions/nper/nperPostRequestBody.ts +++ /dev/null @@ -1,55 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createNperPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoNperPostRequestBody; -} -export function deserializeIntoNperPostRequestBody(nperPostRequestBody: NperPostRequestBody | undefined = {} as NperPostRequestBody) : Record void> { - return { - "fv": n => { nperPostRequestBody.fv = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pmt": n => { nperPostRequestBody.pmt = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pv": n => { nperPostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "rate": n => { nperPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "type": n => { nperPostRequestBody.type = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface NperPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fv property - */ - fv?: Json; - /** - * The pmt property - */ - pmt?: Json; - /** - * The pv property - */ - pv?: Json; - /** - * The rate property - */ - rate?: Json; - /** - * The type property - */ - type?: Json; -} -export function serializeNperPostRequestBody(writer: SerializationWriter, nperPostRequestBody: NperPostRequestBody | undefined = {} as NperPostRequestBody) : void { - writer.writeObjectValue("fv", nperPostRequestBody.fv, serializeJson); - writer.writeObjectValue("pmt", nperPostRequestBody.pmt, serializeJson); - writer.writeObjectValue("pv", nperPostRequestBody.pv, serializeJson); - writer.writeObjectValue("rate", nperPostRequestBody.rate, serializeJson); - writer.writeObjectValue("type", nperPostRequestBody.type, serializeJson); - writer.writeAdditionalData(nperPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/npv/index.ts b/src/drives/item/items/item/workbook/functions/npv/index.ts index defa90203b0..93f37d475be 100644 --- a/src/drives/item/items/item/workbook/functions/npv/index.ts +++ b/src/drives/item/items/item/workbook/functions/npv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createNpvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeNpvPostRequestBody(writer: SerializationWriter, npvPost writer.writeObjectValue("values", npvPostRequestBody.values, serializeJson); writer.writeAdditionalData(npvPostRequestBody.additionalData); } -/** - * Provides operations to call the npv method. - */ -export class NpvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new NpvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/npv"); - }; - /** - * Invoke action npv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: NpvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action npv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: NpvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeNpvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a npvRequestBuilder - */ - public withUrl(rawUrl: string) : NpvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new NpvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/numberValue/index.ts b/src/drives/item/items/item/workbook/functions/numberValue/index.ts index f5324021a2a..f4bec41266d 100644 --- a/src/drives/item/items/item/workbook/functions/numberValue/index.ts +++ b/src/drives/item/items/item/workbook/functions/numberValue/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoNumberValuePostRequestBody, serializeNumberValuePostRequestBody, type NumberValuePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createNumberValuePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoNumberValuePostRequestBody; +} +export function deserializeIntoNumberValuePostRequestBody(numberValuePostRequestBody: NumberValuePostRequestBody | undefined = {} as NumberValuePostRequestBody) : Record void> { + return { + "decimalSeparator": n => { numberValuePostRequestBody.decimalSeparator = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "groupSeparator": n => { numberValuePostRequestBody.groupSeparator = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "text": n => { numberValuePostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface NumberValuePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The decimalSeparator property + */ + decimalSeparator?: Json; + /** + * The groupSeparator property + */ + groupSeparator?: Json; + /** + * The text property + */ + text?: Json; +} +export function serializeNumberValuePostRequestBody(writer: SerializationWriter, numberValuePostRequestBody: NumberValuePostRequestBody | undefined = {} as NumberValuePostRequestBody) : void { + writer.writeObjectValue("decimalSeparator", numberValuePostRequestBody.decimalSeparator, serializeJson); + writer.writeObjectValue("groupSeparator", numberValuePostRequestBody.groupSeparator, serializeJson); + writer.writeObjectValue("text", numberValuePostRequestBody.text, serializeJson); + writer.writeAdditionalData(numberValuePostRequestBody.additionalData); +} /** * Provides operations to call the numberValue method. */ diff --git a/src/drives/item/items/item/workbook/functions/numberValue/numberValuePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/numberValue/numberValuePostRequestBody.ts deleted file mode 100644 index 18ac2bc8896..00000000000 --- a/src/drives/item/items/item/workbook/functions/numberValue/numberValuePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createNumberValuePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoNumberValuePostRequestBody; -} -export function deserializeIntoNumberValuePostRequestBody(numberValuePostRequestBody: NumberValuePostRequestBody | undefined = {} as NumberValuePostRequestBody) : Record void> { - return { - "decimalSeparator": n => { numberValuePostRequestBody.decimalSeparator = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "groupSeparator": n => { numberValuePostRequestBody.groupSeparator = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "text": n => { numberValuePostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface NumberValuePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The decimalSeparator property - */ - decimalSeparator?: Json; - /** - * The groupSeparator property - */ - groupSeparator?: Json; - /** - * The text property - */ - text?: Json; -} -export function serializeNumberValuePostRequestBody(writer: SerializationWriter, numberValuePostRequestBody: NumberValuePostRequestBody | undefined = {} as NumberValuePostRequestBody) : void { - writer.writeObjectValue("decimalSeparator", numberValuePostRequestBody.decimalSeparator, serializeJson); - writer.writeObjectValue("groupSeparator", numberValuePostRequestBody.groupSeparator, serializeJson); - writer.writeObjectValue("text", numberValuePostRequestBody.text, serializeJson); - writer.writeAdditionalData(numberValuePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/oct2Bin/index.ts b/src/drives/item/items/item/workbook/functions/oct2Bin/index.ts index 5b9fc86377e..028a9b88e2c 100644 --- a/src/drives/item/items/item/workbook/functions/oct2Bin/index.ts +++ b/src/drives/item/items/item/workbook/functions/oct2Bin/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createOct2BinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeOct2BinPostRequestBody(writer: SerializationWriter, oct writer.writeObjectValue("places", oct2BinPostRequestBody.places, serializeJson); writer.writeAdditionalData(oct2BinPostRequestBody.additionalData); } -/** - * Provides operations to call the oct2Bin method. - */ -export class Oct2BinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Oct2BinRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oct2Bin"); - }; - /** - * Invoke action oct2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Oct2BinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action oct2Bin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Oct2BinPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOct2BinPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a oct2BinRequestBuilder - */ - public withUrl(rawUrl: string) : Oct2BinRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Oct2BinRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/oct2Dec/index.ts b/src/drives/item/items/item/workbook/functions/oct2Dec/index.ts index 10c300ca03c..73c12c2e564 100644 --- a/src/drives/item/items/item/workbook/functions/oct2Dec/index.ts +++ b/src/drives/item/items/item/workbook/functions/oct2Dec/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoOct2DecPostRequestBody, serializeOct2DecPostRequestBody, type Oct2DecPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOct2DecPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOct2DecPostRequestBody; +} +export function deserializeIntoOct2DecPostRequestBody(oct2DecPostRequestBody: Oct2DecPostRequestBody | undefined = {} as Oct2DecPostRequestBody) : Record void> { + return { + "number": n => { oct2DecPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Oct2DecPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeOct2DecPostRequestBody(writer: SerializationWriter, oct2DecPostRequestBody: Oct2DecPostRequestBody | undefined = {} as Oct2DecPostRequestBody) : void { + writer.writeObjectValue("number", oct2DecPostRequestBody.number, serializeJson); + writer.writeAdditionalData(oct2DecPostRequestBody.additionalData); +} /** * Provides operations to call the oct2Dec method. */ diff --git a/src/drives/item/items/item/workbook/functions/oct2Dec/oct2DecPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/oct2Dec/oct2DecPostRequestBody.ts deleted file mode 100644 index 954d7c2a513..00000000000 --- a/src/drives/item/items/item/workbook/functions/oct2Dec/oct2DecPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOct2DecPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOct2DecPostRequestBody; -} -export function deserializeIntoOct2DecPostRequestBody(oct2DecPostRequestBody: Oct2DecPostRequestBody | undefined = {} as Oct2DecPostRequestBody) : Record void> { - return { - "number": n => { oct2DecPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Oct2DecPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeOct2DecPostRequestBody(writer: SerializationWriter, oct2DecPostRequestBody: Oct2DecPostRequestBody | undefined = {} as Oct2DecPostRequestBody) : void { - writer.writeObjectValue("number", oct2DecPostRequestBody.number, serializeJson); - writer.writeAdditionalData(oct2DecPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/oct2Hex/index.ts b/src/drives/item/items/item/workbook/functions/oct2Hex/index.ts index 9379cc83520..ea534bfbb9b 100644 --- a/src/drives/item/items/item/workbook/functions/oct2Hex/index.ts +++ b/src/drives/item/items/item/workbook/functions/oct2Hex/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoOct2HexPostRequestBody, serializeOct2HexPostRequestBody, type Oct2HexPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOct2HexPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOct2HexPostRequestBody; +} +export function deserializeIntoOct2HexPostRequestBody(oct2HexPostRequestBody: Oct2HexPostRequestBody | undefined = {} as Oct2HexPostRequestBody) : Record void> { + return { + "number": n => { oct2HexPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "places": n => { oct2HexPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Oct2HexPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The places property + */ + places?: Json; +} +export function serializeOct2HexPostRequestBody(writer: SerializationWriter, oct2HexPostRequestBody: Oct2HexPostRequestBody | undefined = {} as Oct2HexPostRequestBody) : void { + writer.writeObjectValue("number", oct2HexPostRequestBody.number, serializeJson); + writer.writeObjectValue("places", oct2HexPostRequestBody.places, serializeJson); + writer.writeAdditionalData(oct2HexPostRequestBody.additionalData); +} /** * Provides operations to call the oct2Hex method. */ diff --git a/src/drives/item/items/item/workbook/functions/oct2Hex/oct2HexPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/oct2Hex/oct2HexPostRequestBody.ts deleted file mode 100644 index 0b3b7ddb472..00000000000 --- a/src/drives/item/items/item/workbook/functions/oct2Hex/oct2HexPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOct2HexPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOct2HexPostRequestBody; -} -export function deserializeIntoOct2HexPostRequestBody(oct2HexPostRequestBody: Oct2HexPostRequestBody | undefined = {} as Oct2HexPostRequestBody) : Record void> { - return { - "number": n => { oct2HexPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "places": n => { oct2HexPostRequestBody.places = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Oct2HexPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The places property - */ - places?: Json; -} -export function serializeOct2HexPostRequestBody(writer: SerializationWriter, oct2HexPostRequestBody: Oct2HexPostRequestBody | undefined = {} as Oct2HexPostRequestBody) : void { - writer.writeObjectValue("number", oct2HexPostRequestBody.number, serializeJson); - writer.writeObjectValue("places", oct2HexPostRequestBody.places, serializeJson); - writer.writeAdditionalData(oct2HexPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/odd/index.ts b/src/drives/item/items/item/workbook/functions/odd/index.ts index f11d30af98f..b93532b883a 100644 --- a/src/drives/item/items/item/workbook/functions/odd/index.ts +++ b/src/drives/item/items/item/workbook/functions/odd/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createOddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeOddPostRequestBody(writer: SerializationWriter, oddPost writer.writeObjectValue("number", oddPostRequestBody.number, serializeJson); writer.writeAdditionalData(oddPostRequestBody.additionalData); } -/** - * Provides operations to call the odd method. - */ -export class OddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new OddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/odd"); - }; - /** - * Invoke action odd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: OddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action odd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: OddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a oddRequestBuilder - */ - public withUrl(rawUrl: string) : OddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new OddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/oddFPrice/index.ts b/src/drives/item/items/item/workbook/functions/oddFPrice/index.ts index 013d69f256b..4c230d4d49a 100644 --- a/src/drives/item/items/item/workbook/functions/oddFPrice/index.ts +++ b/src/drives/item/items/item/workbook/functions/oddFPrice/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createOddFPricePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -78,57 +75,5 @@ export function serializeOddFPricePostRequestBody(writer: SerializationWriter, o writer.writeObjectValue("yld", oddFPricePostRequestBody.yld, serializeJson); writer.writeAdditionalData(oddFPricePostRequestBody.additionalData); } -/** - * Provides operations to call the oddFPrice method. - */ -export class OddFPriceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new OddFPriceRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddFPrice"); - }; - /** - * Invoke action oddFPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: OddFPricePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action oddFPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: OddFPricePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOddFPricePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a oddFPriceRequestBuilder - */ - public withUrl(rawUrl: string) : OddFPriceRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new OddFPriceRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/oddFYield/index.ts b/src/drives/item/items/item/workbook/functions/oddFYield/index.ts index 4dce9ea2f70..3a56bf00796 100644 --- a/src/drives/item/items/item/workbook/functions/oddFYield/index.ts +++ b/src/drives/item/items/item/workbook/functions/oddFYield/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createOddFYieldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -78,57 +75,5 @@ export function serializeOddFYieldPostRequestBody(writer: SerializationWriter, o writer.writeObjectValue("settlement", oddFYieldPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(oddFYieldPostRequestBody.additionalData); } -/** - * Provides operations to call the oddFYield method. - */ -export class OddFYieldRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new OddFYieldRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddFYield"); - }; - /** - * Invoke action oddFYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: OddFYieldPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action oddFYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: OddFYieldPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOddFYieldPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a oddFYieldRequestBuilder - */ - public withUrl(rawUrl: string) : OddFYieldRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new OddFYieldRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/oddLPrice/index.ts b/src/drives/item/items/item/workbook/functions/oddLPrice/index.ts index 943e4fe5da7..85c9aab8f10 100644 --- a/src/drives/item/items/item/workbook/functions/oddLPrice/index.ts +++ b/src/drives/item/items/item/workbook/functions/oddLPrice/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createOddLPricePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -72,57 +69,5 @@ export function serializeOddLPricePostRequestBody(writer: SerializationWriter, o writer.writeObjectValue("yld", oddLPricePostRequestBody.yld, serializeJson); writer.writeAdditionalData(oddLPricePostRequestBody.additionalData); } -/** - * Provides operations to call the oddLPrice method. - */ -export class OddLPriceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new OddLPriceRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddLPrice"); - }; - /** - * Invoke action oddLPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: OddLPricePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action oddLPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: OddLPricePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOddLPricePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a oddLPriceRequestBuilder - */ - public withUrl(rawUrl: string) : OddLPriceRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new OddLPriceRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/oddLYield/index.ts b/src/drives/item/items/item/workbook/functions/oddLYield/index.ts index 0045a2a66a5..687c380997d 100644 --- a/src/drives/item/items/item/workbook/functions/oddLYield/index.ts +++ b/src/drives/item/items/item/workbook/functions/oddLYield/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createOddLYieldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -72,57 +69,5 @@ export function serializeOddLYieldPostRequestBody(writer: SerializationWriter, o writer.writeObjectValue("settlement", oddLYieldPostRequestBody.settlement, serializeJson); writer.writeAdditionalData(oddLYieldPostRequestBody.additionalData); } -/** - * Provides operations to call the oddLYield method. - */ -export class OddLYieldRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new OddLYieldRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddLYield"); - }; - /** - * Invoke action oddLYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: OddLYieldPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action oddLYield - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: OddLYieldPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOddLYieldPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a oddLYieldRequestBuilder - */ - public withUrl(rawUrl: string) : OddLYieldRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new OddLYieldRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/or/index.ts b/src/drives/item/items/item/workbook/functions/or/index.ts index b192e0680ca..520dd43f684 100644 --- a/src/drives/item/items/item/workbook/functions/or/index.ts +++ b/src/drives/item/items/item/workbook/functions/or/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createOrPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeOrPostRequestBody(writer: SerializationWriter, orPostRe writer.writeObjectValue("values", orPostRequestBody.values, serializeJson); writer.writeAdditionalData(orPostRequestBody.additionalData); } -/** - * Provides operations to call the or method. - */ -export class OrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new OrRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/or"); - }; - /** - * Invoke action or - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: OrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action or - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: OrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOrPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a orRequestBuilder - */ - public withUrl(rawUrl: string) : OrRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new OrRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/pduration/index.ts b/src/drives/item/items/item/workbook/functions/pduration/index.ts index c58d52a7681..627b7718c50 100644 --- a/src/drives/item/items/item/workbook/functions/pduration/index.ts +++ b/src/drives/item/items/item/workbook/functions/pduration/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPdurationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializePdurationPostRequestBody(writer: SerializationWriter, p writer.writeObjectValue("rate", pdurationPostRequestBody.rate, serializeJson); writer.writeAdditionalData(pdurationPostRequestBody.additionalData); } -/** - * Provides operations to call the pduration method. - */ -export class PdurationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new PdurationRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pduration"); - }; - /** - * Invoke action pduration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: PdurationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action pduration - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: PdurationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePdurationPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a pdurationRequestBuilder - */ - public withUrl(rawUrl: string) : PdurationRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new PdurationRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/percentRank_Exc/index.ts b/src/drives/item/items/item/workbook/functions/percentRank_Exc/index.ts index 611bf15f24e..4e4c2a4c957 100644 --- a/src/drives/item/items/item/workbook/functions/percentRank_Exc/index.ts +++ b/src/drives/item/items/item/workbook/functions/percentRank_Exc/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoPercentRank_ExcPostRequestBody, serializePercentRank_ExcPostRequestBody, type PercentRank_ExcPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPercentRank_ExcPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPercentRank_ExcPostRequestBody; +} +export function deserializeIntoPercentRank_ExcPostRequestBody(percentRank_ExcPostRequestBody: PercentRank_ExcPostRequestBody | undefined = {} as PercentRank_ExcPostRequestBody) : Record void> { + return { + "array": n => { percentRank_ExcPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "significance": n => { percentRank_ExcPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { percentRank_ExcPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface PercentRank_ExcPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The array property + */ + array?: Json; + /** + * The significance property + */ + significance?: Json; + /** + * The x property + */ + x?: Json; +} +export function serializePercentRank_ExcPostRequestBody(writer: SerializationWriter, percentRank_ExcPostRequestBody: PercentRank_ExcPostRequestBody | undefined = {} as PercentRank_ExcPostRequestBody) : void { + writer.writeObjectValue("array", percentRank_ExcPostRequestBody.array, serializeJson); + writer.writeObjectValue("significance", percentRank_ExcPostRequestBody.significance, serializeJson); + writer.writeObjectValue("x", percentRank_ExcPostRequestBody.x, serializeJson); + writer.writeAdditionalData(percentRank_ExcPostRequestBody.additionalData); +} /** * Provides operations to call the percentRank_Exc method. */ diff --git a/src/drives/item/items/item/workbook/functions/percentRank_Exc/percentRank_ExcPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/percentRank_Exc/percentRank_ExcPostRequestBody.ts deleted file mode 100644 index 4d62a1b4257..00000000000 --- a/src/drives/item/items/item/workbook/functions/percentRank_Exc/percentRank_ExcPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPercentRank_ExcPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPercentRank_ExcPostRequestBody; -} -export function deserializeIntoPercentRank_ExcPostRequestBody(percentRank_ExcPostRequestBody: PercentRank_ExcPostRequestBody | undefined = {} as PercentRank_ExcPostRequestBody) : Record void> { - return { - "array": n => { percentRank_ExcPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "significance": n => { percentRank_ExcPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { percentRank_ExcPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface PercentRank_ExcPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The array property - */ - array?: Json; - /** - * The significance property - */ - significance?: Json; - /** - * The x property - */ - x?: Json; -} -export function serializePercentRank_ExcPostRequestBody(writer: SerializationWriter, percentRank_ExcPostRequestBody: PercentRank_ExcPostRequestBody | undefined = {} as PercentRank_ExcPostRequestBody) : void { - writer.writeObjectValue("array", percentRank_ExcPostRequestBody.array, serializeJson); - writer.writeObjectValue("significance", percentRank_ExcPostRequestBody.significance, serializeJson); - writer.writeObjectValue("x", percentRank_ExcPostRequestBody.x, serializeJson); - writer.writeAdditionalData(percentRank_ExcPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/percentRank_Inc/index.ts b/src/drives/item/items/item/workbook/functions/percentRank_Inc/index.ts index 181179caeac..7f528f78683 100644 --- a/src/drives/item/items/item/workbook/functions/percentRank_Inc/index.ts +++ b/src/drives/item/items/item/workbook/functions/percentRank_Inc/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoPercentRank_IncPostRequestBody, serializePercentRank_IncPostRequestBody, type PercentRank_IncPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPercentRank_IncPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPercentRank_IncPostRequestBody; +} +export function deserializeIntoPercentRank_IncPostRequestBody(percentRank_IncPostRequestBody: PercentRank_IncPostRequestBody | undefined = {} as PercentRank_IncPostRequestBody) : Record void> { + return { + "array": n => { percentRank_IncPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "significance": n => { percentRank_IncPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { percentRank_IncPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface PercentRank_IncPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The array property + */ + array?: Json; + /** + * The significance property + */ + significance?: Json; + /** + * The x property + */ + x?: Json; +} +export function serializePercentRank_IncPostRequestBody(writer: SerializationWriter, percentRank_IncPostRequestBody: PercentRank_IncPostRequestBody | undefined = {} as PercentRank_IncPostRequestBody) : void { + writer.writeObjectValue("array", percentRank_IncPostRequestBody.array, serializeJson); + writer.writeObjectValue("significance", percentRank_IncPostRequestBody.significance, serializeJson); + writer.writeObjectValue("x", percentRank_IncPostRequestBody.x, serializeJson); + writer.writeAdditionalData(percentRank_IncPostRequestBody.additionalData); +} /** * Provides operations to call the percentRank_Inc method. */ diff --git a/src/drives/item/items/item/workbook/functions/percentRank_Inc/percentRank_IncPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/percentRank_Inc/percentRank_IncPostRequestBody.ts deleted file mode 100644 index 49daf22e631..00000000000 --- a/src/drives/item/items/item/workbook/functions/percentRank_Inc/percentRank_IncPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPercentRank_IncPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPercentRank_IncPostRequestBody; -} -export function deserializeIntoPercentRank_IncPostRequestBody(percentRank_IncPostRequestBody: PercentRank_IncPostRequestBody | undefined = {} as PercentRank_IncPostRequestBody) : Record void> { - return { - "array": n => { percentRank_IncPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "significance": n => { percentRank_IncPostRequestBody.significance = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { percentRank_IncPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface PercentRank_IncPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The array property - */ - array?: Json; - /** - * The significance property - */ - significance?: Json; - /** - * The x property - */ - x?: Json; -} -export function serializePercentRank_IncPostRequestBody(writer: SerializationWriter, percentRank_IncPostRequestBody: PercentRank_IncPostRequestBody | undefined = {} as PercentRank_IncPostRequestBody) : void { - writer.writeObjectValue("array", percentRank_IncPostRequestBody.array, serializeJson); - writer.writeObjectValue("significance", percentRank_IncPostRequestBody.significance, serializeJson); - writer.writeObjectValue("x", percentRank_IncPostRequestBody.x, serializeJson); - writer.writeAdditionalData(percentRank_IncPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/percentile_Exc/index.ts b/src/drives/item/items/item/workbook/functions/percentile_Exc/index.ts index f8a64c66921..ab922b1c592 100644 --- a/src/drives/item/items/item/workbook/functions/percentile_Exc/index.ts +++ b/src/drives/item/items/item/workbook/functions/percentile_Exc/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPercentile_ExcPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializePercentile_ExcPostRequestBody(writer: SerializationWrit writer.writeObjectValue("k", percentile_ExcPostRequestBody.k, serializeJson); writer.writeAdditionalData(percentile_ExcPostRequestBody.additionalData); } -/** - * Provides operations to call the percentile_Exc method. - */ -export class Percentile_ExcRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Percentile_ExcRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentile_Exc"); - }; - /** - * Invoke action percentile_Exc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Percentile_ExcPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action percentile_Exc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Percentile_ExcPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePercentile_ExcPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a percentile_ExcRequestBuilder - */ - public withUrl(rawUrl: string) : Percentile_ExcRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Percentile_ExcRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/percentile_Inc/index.ts b/src/drives/item/items/item/workbook/functions/percentile_Inc/index.ts index e32b35a332d..1da729856b7 100644 --- a/src/drives/item/items/item/workbook/functions/percentile_Inc/index.ts +++ b/src/drives/item/items/item/workbook/functions/percentile_Inc/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPercentile_IncPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializePercentile_IncPostRequestBody(writer: SerializationWrit writer.writeObjectValue("k", percentile_IncPostRequestBody.k, serializeJson); writer.writeAdditionalData(percentile_IncPostRequestBody.additionalData); } -/** - * Provides operations to call the percentile_Inc method. - */ -export class Percentile_IncRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Percentile_IncRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentile_Inc"); - }; - /** - * Invoke action percentile_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Percentile_IncPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action percentile_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Percentile_IncPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePercentile_IncPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a percentile_IncRequestBuilder - */ - public withUrl(rawUrl: string) : Percentile_IncRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Percentile_IncRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/permut/index.ts b/src/drives/item/items/item/workbook/functions/permut/index.ts index dfb8189cc27..e1d58ed6513 100644 --- a/src/drives/item/items/item/workbook/functions/permut/index.ts +++ b/src/drives/item/items/item/workbook/functions/permut/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoPermutPostRequestBody, serializePermutPostRequestBody, type PermutPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPermutPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPermutPostRequestBody; +} +export function deserializeIntoPermutPostRequestBody(permutPostRequestBody: PermutPostRequestBody | undefined = {} as PermutPostRequestBody) : Record void> { + return { + "number": n => { permutPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numberChosen": n => { permutPostRequestBody.numberChosen = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface PermutPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The numberChosen property + */ + numberChosen?: Json; +} +export function serializePermutPostRequestBody(writer: SerializationWriter, permutPostRequestBody: PermutPostRequestBody | undefined = {} as PermutPostRequestBody) : void { + writer.writeObjectValue("number", permutPostRequestBody.number, serializeJson); + writer.writeObjectValue("numberChosen", permutPostRequestBody.numberChosen, serializeJson); + writer.writeAdditionalData(permutPostRequestBody.additionalData); +} /** * Provides operations to call the permut method. */ diff --git a/src/drives/item/items/item/workbook/functions/permut/permutPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/permut/permutPostRequestBody.ts deleted file mode 100644 index d65482491f1..00000000000 --- a/src/drives/item/items/item/workbook/functions/permut/permutPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPermutPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPermutPostRequestBody; -} -export function deserializeIntoPermutPostRequestBody(permutPostRequestBody: PermutPostRequestBody | undefined = {} as PermutPostRequestBody) : Record void> { - return { - "number": n => { permutPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numberChosen": n => { permutPostRequestBody.numberChosen = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface PermutPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The numberChosen property - */ - numberChosen?: Json; -} -export function serializePermutPostRequestBody(writer: SerializationWriter, permutPostRequestBody: PermutPostRequestBody | undefined = {} as PermutPostRequestBody) : void { - writer.writeObjectValue("number", permutPostRequestBody.number, serializeJson); - writer.writeObjectValue("numberChosen", permutPostRequestBody.numberChosen, serializeJson); - writer.writeAdditionalData(permutPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/permutationa/index.ts b/src/drives/item/items/item/workbook/functions/permutationa/index.ts index 5c650a8d29b..48abecf8fe5 100644 --- a/src/drives/item/items/item/workbook/functions/permutationa/index.ts +++ b/src/drives/item/items/item/workbook/functions/permutationa/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPermutationaPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializePermutationaPostRequestBody(writer: SerializationWriter writer.writeObjectValue("numberChosen", permutationaPostRequestBody.numberChosen, serializeJson); writer.writeAdditionalData(permutationaPostRequestBody.additionalData); } -/** - * Provides operations to call the permutationa method. - */ -export class PermutationaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new PermutationaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/permutationa"); - }; - /** - * Invoke action permutationa - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: PermutationaPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action permutationa - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: PermutationaPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePermutationaPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a permutationaRequestBuilder - */ - public withUrl(rawUrl: string) : PermutationaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new PermutationaRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/phi/index.ts b/src/drives/item/items/item/workbook/functions/phi/index.ts index a3b196a92eb..52bdc249184 100644 --- a/src/drives/item/items/item/workbook/functions/phi/index.ts +++ b/src/drives/item/items/item/workbook/functions/phi/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPhiPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializePhiPostRequestBody(writer: SerializationWriter, phiPost writer.writeObjectValue("x", phiPostRequestBody.x, serializeJson); writer.writeAdditionalData(phiPostRequestBody.additionalData); } -/** - * Provides operations to call the phi method. - */ -export class PhiRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new PhiRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/phi"); - }; - /** - * Invoke action phi - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: PhiPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action phi - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: PhiPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePhiPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a phiRequestBuilder - */ - public withUrl(rawUrl: string) : PhiRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new PhiRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/pi/index.ts b/src/drives/item/items/item/workbook/functions/pi/index.ts index 7323cb65358..6984b24bb03 100644 --- a/src/drives/item/items/item/workbook/functions/pi/index.ts +++ b/src/drives/item/items/item/workbook/functions/pi/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookFunctionResult } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type WorkbookFunctionResult } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue } from '../../../../../../../models/workbookFunctionResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/functions/pmt/index.ts b/src/drives/item/items/item/workbook/functions/pmt/index.ts index 2759166c017..990cb5cec13 100644 --- a/src/drives/item/items/item/workbook/functions/pmt/index.ts +++ b/src/drives/item/items/item/workbook/functions/pmt/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPmtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -54,57 +51,5 @@ export function serializePmtPostRequestBody(writer: SerializationWriter, pmtPost writer.writeObjectValue("type", pmtPostRequestBody.type, serializeJson); writer.writeAdditionalData(pmtPostRequestBody.additionalData); } -/** - * Provides operations to call the pmt method. - */ -export class PmtRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new PmtRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pmt"); - }; - /** - * Invoke action pmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: PmtPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action pmt - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: PmtPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePmtPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a pmtRequestBuilder - */ - public withUrl(rawUrl: string) : PmtRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new PmtRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/poisson_Dist/index.ts b/src/drives/item/items/item/workbook/functions/poisson_Dist/index.ts index f2588a3366f..c11d2a35b5b 100644 --- a/src/drives/item/items/item/workbook/functions/poisson_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/poisson_Dist/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPoisson_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializePoisson_DistPostRequestBody(writer: SerializationWriter writer.writeObjectValue("x", poisson_DistPostRequestBody.x, serializeJson); writer.writeAdditionalData(poisson_DistPostRequestBody.additionalData); } -/** - * Provides operations to call the poisson_Dist method. - */ -export class Poisson_DistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Poisson_DistRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/poisson_Dist"); - }; - /** - * Invoke action poisson_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Poisson_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action poisson_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Poisson_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePoisson_DistPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a poisson_DistRequestBuilder - */ - public withUrl(rawUrl: string) : Poisson_DistRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Poisson_DistRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/power/index.ts b/src/drives/item/items/item/workbook/functions/power/index.ts index 7312773d064..e4f758bddf9 100644 --- a/src/drives/item/items/item/workbook/functions/power/index.ts +++ b/src/drives/item/items/item/workbook/functions/power/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoPowerPostRequestBody, serializePowerPostRequestBody, type PowerPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPowerPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPowerPostRequestBody; +} +export function deserializeIntoPowerPostRequestBody(powerPostRequestBody: PowerPostRequestBody | undefined = {} as PowerPostRequestBody) : Record void> { + return { + "number": n => { powerPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "power": n => { powerPostRequestBody.power = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface PowerPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The power property + */ + power?: Json; +} +export function serializePowerPostRequestBody(writer: SerializationWriter, powerPostRequestBody: PowerPostRequestBody | undefined = {} as PowerPostRequestBody) : void { + writer.writeObjectValue("number", powerPostRequestBody.number, serializeJson); + writer.writeObjectValue("power", powerPostRequestBody.power, serializeJson); + writer.writeAdditionalData(powerPostRequestBody.additionalData); +} /** * Provides operations to call the power method. */ diff --git a/src/drives/item/items/item/workbook/functions/power/powerPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/power/powerPostRequestBody.ts deleted file mode 100644 index 6cce877f273..00000000000 --- a/src/drives/item/items/item/workbook/functions/power/powerPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPowerPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPowerPostRequestBody; -} -export function deserializeIntoPowerPostRequestBody(powerPostRequestBody: PowerPostRequestBody | undefined = {} as PowerPostRequestBody) : Record void> { - return { - "number": n => { powerPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "power": n => { powerPostRequestBody.power = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface PowerPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The power property - */ - power?: Json; -} -export function serializePowerPostRequestBody(writer: SerializationWriter, powerPostRequestBody: PowerPostRequestBody | undefined = {} as PowerPostRequestBody) : void { - writer.writeObjectValue("number", powerPostRequestBody.number, serializeJson); - writer.writeObjectValue("power", powerPostRequestBody.power, serializeJson); - writer.writeAdditionalData(powerPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/ppmt/index.ts b/src/drives/item/items/item/workbook/functions/ppmt/index.ts index 1bf6768d1cf..0ab19806d7e 100644 --- a/src/drives/item/items/item/workbook/functions/ppmt/index.ts +++ b/src/drives/item/items/item/workbook/functions/ppmt/index.ts @@ -1,12 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoPpmtPostRequestBody, serializePpmtPostRequestBody, type PpmtPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPpmtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPpmtPostRequestBody; +} +export function deserializeIntoPpmtPostRequestBody(ppmtPostRequestBody: PpmtPostRequestBody | undefined = {} as PpmtPostRequestBody) : Record void> { + return { + "fv": n => { ppmtPostRequestBody.fv = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "nper": n => { ppmtPostRequestBody.nper = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "per": n => { ppmtPostRequestBody.per = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pv": n => { ppmtPostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "rate": n => { ppmtPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "type": n => { ppmtPostRequestBody.type = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface PpmtPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fv property + */ + fv?: Json; + /** + * The nper property + */ + nper?: Json; + /** + * The per property + */ + per?: Json; + /** + * The pv property + */ + pv?: Json; + /** + * The rate property + */ + rate?: Json; + /** + * The type property + */ + type?: Json; +} +export function serializePpmtPostRequestBody(writer: SerializationWriter, ppmtPostRequestBody: PpmtPostRequestBody | undefined = {} as PpmtPostRequestBody) : void { + writer.writeObjectValue("fv", ppmtPostRequestBody.fv, serializeJson); + writer.writeObjectValue("nper", ppmtPostRequestBody.nper, serializeJson); + writer.writeObjectValue("per", ppmtPostRequestBody.per, serializeJson); + writer.writeObjectValue("pv", ppmtPostRequestBody.pv, serializeJson); + writer.writeObjectValue("rate", ppmtPostRequestBody.rate, serializeJson); + writer.writeObjectValue("type", ppmtPostRequestBody.type, serializeJson); + writer.writeAdditionalData(ppmtPostRequestBody.additionalData); +} /** * Provides operations to call the ppmt method. */ diff --git a/src/drives/item/items/item/workbook/functions/ppmt/ppmtPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/ppmt/ppmtPostRequestBody.ts deleted file mode 100644 index 71ea2ff34e3..00000000000 --- a/src/drives/item/items/item/workbook/functions/ppmt/ppmtPostRequestBody.ts +++ /dev/null @@ -1,61 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPpmtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPpmtPostRequestBody; -} -export function deserializeIntoPpmtPostRequestBody(ppmtPostRequestBody: PpmtPostRequestBody | undefined = {} as PpmtPostRequestBody) : Record void> { - return { - "fv": n => { ppmtPostRequestBody.fv = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "nper": n => { ppmtPostRequestBody.nper = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "per": n => { ppmtPostRequestBody.per = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pv": n => { ppmtPostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "rate": n => { ppmtPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "type": n => { ppmtPostRequestBody.type = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface PpmtPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fv property - */ - fv?: Json; - /** - * The nper property - */ - nper?: Json; - /** - * The per property - */ - per?: Json; - /** - * The pv property - */ - pv?: Json; - /** - * The rate property - */ - rate?: Json; - /** - * The type property - */ - type?: Json; -} -export function serializePpmtPostRequestBody(writer: SerializationWriter, ppmtPostRequestBody: PpmtPostRequestBody | undefined = {} as PpmtPostRequestBody) : void { - writer.writeObjectValue("fv", ppmtPostRequestBody.fv, serializeJson); - writer.writeObjectValue("nper", ppmtPostRequestBody.nper, serializeJson); - writer.writeObjectValue("per", ppmtPostRequestBody.per, serializeJson); - writer.writeObjectValue("pv", ppmtPostRequestBody.pv, serializeJson); - writer.writeObjectValue("rate", ppmtPostRequestBody.rate, serializeJson); - writer.writeObjectValue("type", ppmtPostRequestBody.type, serializeJson); - writer.writeAdditionalData(ppmtPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/price/index.ts b/src/drives/item/items/item/workbook/functions/price/index.ts index feef9c6e26c..27b9b728752 100644 --- a/src/drives/item/items/item/workbook/functions/price/index.ts +++ b/src/drives/item/items/item/workbook/functions/price/index.ts @@ -1,12 +1,71 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoPricePostRequestBody, serializePricePostRequestBody, type PricePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPricePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPricePostRequestBody; +} +export function deserializeIntoPricePostRequestBody(pricePostRequestBody: PricePostRequestBody | undefined = {} as PricePostRequestBody) : Record void> { + return { + "basis": n => { pricePostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "frequency": n => { pricePostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { pricePostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "rate": n => { pricePostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "redemption": n => { pricePostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { pricePostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "yld": n => { pricePostRequestBody.yld = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface PricePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The frequency property + */ + frequency?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The rate property + */ + rate?: Json; + /** + * The redemption property + */ + redemption?: Json; + /** + * The settlement property + */ + settlement?: Json; + /** + * The yld property + */ + yld?: Json; +} +export function serializePricePostRequestBody(writer: SerializationWriter, pricePostRequestBody: PricePostRequestBody | undefined = {} as PricePostRequestBody) : void { + writer.writeObjectValue("basis", pricePostRequestBody.basis, serializeJson); + writer.writeObjectValue("frequency", pricePostRequestBody.frequency, serializeJson); + writer.writeObjectValue("maturity", pricePostRequestBody.maturity, serializeJson); + writer.writeObjectValue("rate", pricePostRequestBody.rate, serializeJson); + writer.writeObjectValue("redemption", pricePostRequestBody.redemption, serializeJson); + writer.writeObjectValue("settlement", pricePostRequestBody.settlement, serializeJson); + writer.writeObjectValue("yld", pricePostRequestBody.yld, serializeJson); + writer.writeAdditionalData(pricePostRequestBody.additionalData); +} /** * Provides operations to call the price method. */ diff --git a/src/drives/item/items/item/workbook/functions/price/pricePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/price/pricePostRequestBody.ts deleted file mode 100644 index 5c32c0e5a4d..00000000000 --- a/src/drives/item/items/item/workbook/functions/price/pricePostRequestBody.ts +++ /dev/null @@ -1,67 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPricePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPricePostRequestBody; -} -export function deserializeIntoPricePostRequestBody(pricePostRequestBody: PricePostRequestBody | undefined = {} as PricePostRequestBody) : Record void> { - return { - "basis": n => { pricePostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "frequency": n => { pricePostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { pricePostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "rate": n => { pricePostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "redemption": n => { pricePostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { pricePostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "yld": n => { pricePostRequestBody.yld = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface PricePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The frequency property - */ - frequency?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The rate property - */ - rate?: Json; - /** - * The redemption property - */ - redemption?: Json; - /** - * The settlement property - */ - settlement?: Json; - /** - * The yld property - */ - yld?: Json; -} -export function serializePricePostRequestBody(writer: SerializationWriter, pricePostRequestBody: PricePostRequestBody | undefined = {} as PricePostRequestBody) : void { - writer.writeObjectValue("basis", pricePostRequestBody.basis, serializeJson); - writer.writeObjectValue("frequency", pricePostRequestBody.frequency, serializeJson); - writer.writeObjectValue("maturity", pricePostRequestBody.maturity, serializeJson); - writer.writeObjectValue("rate", pricePostRequestBody.rate, serializeJson); - writer.writeObjectValue("redemption", pricePostRequestBody.redemption, serializeJson); - writer.writeObjectValue("settlement", pricePostRequestBody.settlement, serializeJson); - writer.writeObjectValue("yld", pricePostRequestBody.yld, serializeJson); - writer.writeAdditionalData(pricePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/priceDisc/index.ts b/src/drives/item/items/item/workbook/functions/priceDisc/index.ts index c007686af81..40b7cf4717b 100644 --- a/src/drives/item/items/item/workbook/functions/priceDisc/index.ts +++ b/src/drives/item/items/item/workbook/functions/priceDisc/index.ts @@ -1,12 +1,59 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoPriceDiscPostRequestBody, serializePriceDiscPostRequestBody, type PriceDiscPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPriceDiscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPriceDiscPostRequestBody; +} +export function deserializeIntoPriceDiscPostRequestBody(priceDiscPostRequestBody: PriceDiscPostRequestBody | undefined = {} as PriceDiscPostRequestBody) : Record void> { + return { + "basis": n => { priceDiscPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "discount": n => { priceDiscPostRequestBody.discount = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { priceDiscPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "redemption": n => { priceDiscPostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { priceDiscPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface PriceDiscPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The discount property + */ + discount?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The redemption property + */ + redemption?: Json; + /** + * The settlement property + */ + settlement?: Json; +} +export function serializePriceDiscPostRequestBody(writer: SerializationWriter, priceDiscPostRequestBody: PriceDiscPostRequestBody | undefined = {} as PriceDiscPostRequestBody) : void { + writer.writeObjectValue("basis", priceDiscPostRequestBody.basis, serializeJson); + writer.writeObjectValue("discount", priceDiscPostRequestBody.discount, serializeJson); + writer.writeObjectValue("maturity", priceDiscPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("redemption", priceDiscPostRequestBody.redemption, serializeJson); + writer.writeObjectValue("settlement", priceDiscPostRequestBody.settlement, serializeJson); + writer.writeAdditionalData(priceDiscPostRequestBody.additionalData); +} /** * Provides operations to call the priceDisc method. */ diff --git a/src/drives/item/items/item/workbook/functions/priceDisc/priceDiscPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/priceDisc/priceDiscPostRequestBody.ts deleted file mode 100644 index 26dea56c9ee..00000000000 --- a/src/drives/item/items/item/workbook/functions/priceDisc/priceDiscPostRequestBody.ts +++ /dev/null @@ -1,55 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPriceDiscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPriceDiscPostRequestBody; -} -export function deserializeIntoPriceDiscPostRequestBody(priceDiscPostRequestBody: PriceDiscPostRequestBody | undefined = {} as PriceDiscPostRequestBody) : Record void> { - return { - "basis": n => { priceDiscPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "discount": n => { priceDiscPostRequestBody.discount = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { priceDiscPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "redemption": n => { priceDiscPostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { priceDiscPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface PriceDiscPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The discount property - */ - discount?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The redemption property - */ - redemption?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -export function serializePriceDiscPostRequestBody(writer: SerializationWriter, priceDiscPostRequestBody: PriceDiscPostRequestBody | undefined = {} as PriceDiscPostRequestBody) : void { - writer.writeObjectValue("basis", priceDiscPostRequestBody.basis, serializeJson); - writer.writeObjectValue("discount", priceDiscPostRequestBody.discount, serializeJson); - writer.writeObjectValue("maturity", priceDiscPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("redemption", priceDiscPostRequestBody.redemption, serializeJson); - writer.writeObjectValue("settlement", priceDiscPostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(priceDiscPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/priceMat/index.ts b/src/drives/item/items/item/workbook/functions/priceMat/index.ts index d13d9635b76..33af35e4ad2 100644 --- a/src/drives/item/items/item/workbook/functions/priceMat/index.ts +++ b/src/drives/item/items/item/workbook/functions/priceMat/index.ts @@ -1,12 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoPriceMatPostRequestBody, serializePriceMatPostRequestBody, type PriceMatPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPriceMatPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPriceMatPostRequestBody; +} +export function deserializeIntoPriceMatPostRequestBody(priceMatPostRequestBody: PriceMatPostRequestBody | undefined = {} as PriceMatPostRequestBody) : Record void> { + return { + "basis": n => { priceMatPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "issue": n => { priceMatPostRequestBody.issue = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { priceMatPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "rate": n => { priceMatPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { priceMatPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "yld": n => { priceMatPostRequestBody.yld = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface PriceMatPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The issue property + */ + issue?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The rate property + */ + rate?: Json; + /** + * The settlement property + */ + settlement?: Json; + /** + * The yld property + */ + yld?: Json; +} +export function serializePriceMatPostRequestBody(writer: SerializationWriter, priceMatPostRequestBody: PriceMatPostRequestBody | undefined = {} as PriceMatPostRequestBody) : void { + writer.writeObjectValue("basis", priceMatPostRequestBody.basis, serializeJson); + writer.writeObjectValue("issue", priceMatPostRequestBody.issue, serializeJson); + writer.writeObjectValue("maturity", priceMatPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("rate", priceMatPostRequestBody.rate, serializeJson); + writer.writeObjectValue("settlement", priceMatPostRequestBody.settlement, serializeJson); + writer.writeObjectValue("yld", priceMatPostRequestBody.yld, serializeJson); + writer.writeAdditionalData(priceMatPostRequestBody.additionalData); +} /** * Provides operations to call the priceMat method. */ diff --git a/src/drives/item/items/item/workbook/functions/priceMat/priceMatPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/priceMat/priceMatPostRequestBody.ts deleted file mode 100644 index e99e5f837ee..00000000000 --- a/src/drives/item/items/item/workbook/functions/priceMat/priceMatPostRequestBody.ts +++ /dev/null @@ -1,61 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPriceMatPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPriceMatPostRequestBody; -} -export function deserializeIntoPriceMatPostRequestBody(priceMatPostRequestBody: PriceMatPostRequestBody | undefined = {} as PriceMatPostRequestBody) : Record void> { - return { - "basis": n => { priceMatPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "issue": n => { priceMatPostRequestBody.issue = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { priceMatPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "rate": n => { priceMatPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { priceMatPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "yld": n => { priceMatPostRequestBody.yld = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface PriceMatPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The issue property - */ - issue?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The rate property - */ - rate?: Json; - /** - * The settlement property - */ - settlement?: Json; - /** - * The yld property - */ - yld?: Json; -} -export function serializePriceMatPostRequestBody(writer: SerializationWriter, priceMatPostRequestBody: PriceMatPostRequestBody | undefined = {} as PriceMatPostRequestBody) : void { - writer.writeObjectValue("basis", priceMatPostRequestBody.basis, serializeJson); - writer.writeObjectValue("issue", priceMatPostRequestBody.issue, serializeJson); - writer.writeObjectValue("maturity", priceMatPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("rate", priceMatPostRequestBody.rate, serializeJson); - writer.writeObjectValue("settlement", priceMatPostRequestBody.settlement, serializeJson); - writer.writeObjectValue("yld", priceMatPostRequestBody.yld, serializeJson); - writer.writeAdditionalData(priceMatPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/product/index.ts b/src/drives/item/items/item/workbook/functions/product/index.ts index b3e3e5d27b1..6f0642659e8 100644 --- a/src/drives/item/items/item/workbook/functions/product/index.ts +++ b/src/drives/item/items/item/workbook/functions/product/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoProductPostRequestBody, serializeProductPostRequestBody, type ProductPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createProductPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoProductPostRequestBody; +} +export function deserializeIntoProductPostRequestBody(productPostRequestBody: ProductPostRequestBody | undefined = {} as ProductPostRequestBody) : Record void> { + return { + "values": n => { productPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ProductPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function serializeProductPostRequestBody(writer: SerializationWriter, productPostRequestBody: ProductPostRequestBody | undefined = {} as ProductPostRequestBody) : void { + writer.writeObjectValue("values", productPostRequestBody.values, serializeJson); + writer.writeAdditionalData(productPostRequestBody.additionalData); +} /** * Provides operations to call the product method. */ diff --git a/src/drives/item/items/item/workbook/functions/product/productPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/product/productPostRequestBody.ts deleted file mode 100644 index 3ce3ff69699..00000000000 --- a/src/drives/item/items/item/workbook/functions/product/productPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createProductPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoProductPostRequestBody; -} -export function deserializeIntoProductPostRequestBody(productPostRequestBody: ProductPostRequestBody | undefined = {} as ProductPostRequestBody) : Record void> { - return { - "values": n => { productPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ProductPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function serializeProductPostRequestBody(writer: SerializationWriter, productPostRequestBody: ProductPostRequestBody | undefined = {} as ProductPostRequestBody) : void { - writer.writeObjectValue("values", productPostRequestBody.values, serializeJson); - writer.writeAdditionalData(productPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/proper/index.ts b/src/drives/item/items/item/workbook/functions/proper/index.ts index 7308b4d58e4..365755be0b0 100644 --- a/src/drives/item/items/item/workbook/functions/proper/index.ts +++ b/src/drives/item/items/item/workbook/functions/proper/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoProperPostRequestBody, serializeProperPostRequestBody, type ProperPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createProperPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoProperPostRequestBody; +} +export function deserializeIntoProperPostRequestBody(properPostRequestBody: ProperPostRequestBody | undefined = {} as ProperPostRequestBody) : Record void> { + return { + "text": n => { properPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ProperPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The text property + */ + text?: Json; +} +export function serializeProperPostRequestBody(writer: SerializationWriter, properPostRequestBody: ProperPostRequestBody | undefined = {} as ProperPostRequestBody) : void { + writer.writeObjectValue("text", properPostRequestBody.text, serializeJson); + writer.writeAdditionalData(properPostRequestBody.additionalData); +} /** * Provides operations to call the proper method. */ diff --git a/src/drives/item/items/item/workbook/functions/proper/properPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/proper/properPostRequestBody.ts deleted file mode 100644 index 4d6ae888765..00000000000 --- a/src/drives/item/items/item/workbook/functions/proper/properPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createProperPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoProperPostRequestBody; -} -export function deserializeIntoProperPostRequestBody(properPostRequestBody: ProperPostRequestBody | undefined = {} as ProperPostRequestBody) : Record void> { - return { - "text": n => { properPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ProperPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The text property - */ - text?: Json; -} -export function serializeProperPostRequestBody(writer: SerializationWriter, properPostRequestBody: ProperPostRequestBody | undefined = {} as ProperPostRequestBody) : void { - writer.writeObjectValue("text", properPostRequestBody.text, serializeJson); - writer.writeAdditionalData(properPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/pv/index.ts b/src/drives/item/items/item/workbook/functions/pv/index.ts index 82ce2a08c3b..274bae4b1f3 100644 --- a/src/drives/item/items/item/workbook/functions/pv/index.ts +++ b/src/drives/item/items/item/workbook/functions/pv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createPvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -54,57 +51,5 @@ export function serializePvPostRequestBody(writer: SerializationWriter, pvPostRe writer.writeObjectValue("type", pvPostRequestBody.type, serializeJson); writer.writeAdditionalData(pvPostRequestBody.additionalData); } -/** - * Provides operations to call the pv method. - */ -export class PvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new PvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pv"); - }; - /** - * Invoke action pv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: PvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action pv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: PvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a pvRequestBuilder - */ - public withUrl(rawUrl: string) : PvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new PvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/quartile_Exc/index.ts b/src/drives/item/items/item/workbook/functions/quartile_Exc/index.ts index 9e370e3fcd7..d937fa8f233 100644 --- a/src/drives/item/items/item/workbook/functions/quartile_Exc/index.ts +++ b/src/drives/item/items/item/workbook/functions/quartile_Exc/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoQuartile_ExcPostRequestBody, serializeQuartile_ExcPostRequestBody, type Quartile_ExcPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createQuartile_ExcPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoQuartile_ExcPostRequestBody; +} +export function deserializeIntoQuartile_ExcPostRequestBody(quartile_ExcPostRequestBody: Quartile_ExcPostRequestBody | undefined = {} as Quartile_ExcPostRequestBody) : Record void> { + return { + "array": n => { quartile_ExcPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "quart": n => { quartile_ExcPostRequestBody.quart = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface Quartile_ExcPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The array property + */ + array?: Json; + /** + * The quart property + */ + quart?: Json; +} +export function serializeQuartile_ExcPostRequestBody(writer: SerializationWriter, quartile_ExcPostRequestBody: Quartile_ExcPostRequestBody | undefined = {} as Quartile_ExcPostRequestBody) : void { + writer.writeObjectValue("array", quartile_ExcPostRequestBody.array, serializeJson); + writer.writeObjectValue("quart", quartile_ExcPostRequestBody.quart, serializeJson); + writer.writeAdditionalData(quartile_ExcPostRequestBody.additionalData); +} /** * Provides operations to call the quartile_Exc method. */ diff --git a/src/drives/item/items/item/workbook/functions/quartile_Exc/quartile_ExcPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/quartile_Exc/quartile_ExcPostRequestBody.ts deleted file mode 100644 index 20b5f9fdd00..00000000000 --- a/src/drives/item/items/item/workbook/functions/quartile_Exc/quartile_ExcPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createQuartile_ExcPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoQuartile_ExcPostRequestBody; -} -export function deserializeIntoQuartile_ExcPostRequestBody(quartile_ExcPostRequestBody: Quartile_ExcPostRequestBody | undefined = {} as Quartile_ExcPostRequestBody) : Record void> { - return { - "array": n => { quartile_ExcPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "quart": n => { quartile_ExcPostRequestBody.quart = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface Quartile_ExcPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The array property - */ - array?: Json; - /** - * The quart property - */ - quart?: Json; -} -export function serializeQuartile_ExcPostRequestBody(writer: SerializationWriter, quartile_ExcPostRequestBody: Quartile_ExcPostRequestBody | undefined = {} as Quartile_ExcPostRequestBody) : void { - writer.writeObjectValue("array", quartile_ExcPostRequestBody.array, serializeJson); - writer.writeObjectValue("quart", quartile_ExcPostRequestBody.quart, serializeJson); - writer.writeAdditionalData(quartile_ExcPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/quartile_Inc/index.ts b/src/drives/item/items/item/workbook/functions/quartile_Inc/index.ts index 5bb2252b703..d7bbfefdd21 100644 --- a/src/drives/item/items/item/workbook/functions/quartile_Inc/index.ts +++ b/src/drives/item/items/item/workbook/functions/quartile_Inc/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createQuartile_IncPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeQuartile_IncPostRequestBody(writer: SerializationWriter writer.writeObjectValue("quart", quartile_IncPostRequestBody.quart, serializeJson); writer.writeAdditionalData(quartile_IncPostRequestBody.additionalData); } -/** - * Provides operations to call the quartile_Inc method. - */ -export class Quartile_IncRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Quartile_IncRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/quartile_Inc"); - }; - /** - * Invoke action quartile_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Quartile_IncPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action quartile_Inc - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Quartile_IncPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeQuartile_IncPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a quartile_IncRequestBuilder - */ - public withUrl(rawUrl: string) : Quartile_IncRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Quartile_IncRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/quotient/index.ts b/src/drives/item/items/item/workbook/functions/quotient/index.ts index 8a2883e6ea5..4b692baef51 100644 --- a/src/drives/item/items/item/workbook/functions/quotient/index.ts +++ b/src/drives/item/items/item/workbook/functions/quotient/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createQuotientPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeQuotientPostRequestBody(writer: SerializationWriter, qu writer.writeObjectValue("numerator", quotientPostRequestBody.numerator, serializeJson); writer.writeAdditionalData(quotientPostRequestBody.additionalData); } -/** - * Provides operations to call the quotient method. - */ -export class QuotientRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new QuotientRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/quotient"); - }; - /** - * Invoke action quotient - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: QuotientPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action quotient - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: QuotientPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeQuotientPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a quotientRequestBuilder - */ - public withUrl(rawUrl: string) : QuotientRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new QuotientRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/radians/index.ts b/src/drives/item/items/item/workbook/functions/radians/index.ts index 83b75db72ba..feab3f1d6c5 100644 --- a/src/drives/item/items/item/workbook/functions/radians/index.ts +++ b/src/drives/item/items/item/workbook/functions/radians/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRadiansPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeRadiansPostRequestBody(writer: SerializationWriter, rad writer.writeObjectValue("angle", radiansPostRequestBody.angle, serializeJson); writer.writeAdditionalData(radiansPostRequestBody.additionalData); } -/** - * Provides operations to call the radians method. - */ -export class RadiansRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RadiansRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/radians"); - }; - /** - * Invoke action radians - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: RadiansPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action radians - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RadiansPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRadiansPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a radiansRequestBuilder - */ - public withUrl(rawUrl: string) : RadiansRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RadiansRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/rand/index.ts b/src/drives/item/items/item/workbook/functions/rand/index.ts index 0300f0e8eef..d8dcaec4d83 100644 --- a/src/drives/item/items/item/workbook/functions/rand/index.ts +++ b/src/drives/item/items/item/workbook/functions/rand/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookFunctionResult } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type WorkbookFunctionResult } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue } from '../../../../../../../models/workbookFunctionResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/functions/randBetween/index.ts b/src/drives/item/items/item/workbook/functions/randBetween/index.ts index 053812cb52c..f3c7edfe614 100644 --- a/src/drives/item/items/item/workbook/functions/randBetween/index.ts +++ b/src/drives/item/items/item/workbook/functions/randBetween/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoRandBetweenPostRequestBody, serializeRandBetweenPostRequestBody, type RandBetweenPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRandBetweenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRandBetweenPostRequestBody; +} +export function deserializeIntoRandBetweenPostRequestBody(randBetweenPostRequestBody: RandBetweenPostRequestBody | undefined = {} as RandBetweenPostRequestBody) : Record void> { + return { + "bottom": n => { randBetweenPostRequestBody.bottom = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "top": n => { randBetweenPostRequestBody.top = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface RandBetweenPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The bottom property + */ + bottom?: Json; + /** + * The top property + */ + top?: Json; +} +export function serializeRandBetweenPostRequestBody(writer: SerializationWriter, randBetweenPostRequestBody: RandBetweenPostRequestBody | undefined = {} as RandBetweenPostRequestBody) : void { + writer.writeObjectValue("bottom", randBetweenPostRequestBody.bottom, serializeJson); + writer.writeObjectValue("top", randBetweenPostRequestBody.top, serializeJson); + writer.writeAdditionalData(randBetweenPostRequestBody.additionalData); +} /** * Provides operations to call the randBetween method. */ diff --git a/src/drives/item/items/item/workbook/functions/randBetween/randBetweenPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/randBetween/randBetweenPostRequestBody.ts deleted file mode 100644 index ce430ad8a27..00000000000 --- a/src/drives/item/items/item/workbook/functions/randBetween/randBetweenPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRandBetweenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRandBetweenPostRequestBody; -} -export function deserializeIntoRandBetweenPostRequestBody(randBetweenPostRequestBody: RandBetweenPostRequestBody | undefined = {} as RandBetweenPostRequestBody) : Record void> { - return { - "bottom": n => { randBetweenPostRequestBody.bottom = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "top": n => { randBetweenPostRequestBody.top = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface RandBetweenPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The bottom property - */ - bottom?: Json; - /** - * The top property - */ - top?: Json; -} -export function serializeRandBetweenPostRequestBody(writer: SerializationWriter, randBetweenPostRequestBody: RandBetweenPostRequestBody | undefined = {} as RandBetweenPostRequestBody) : void { - writer.writeObjectValue("bottom", randBetweenPostRequestBody.bottom, serializeJson); - writer.writeObjectValue("top", randBetweenPostRequestBody.top, serializeJson); - writer.writeAdditionalData(randBetweenPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/rank_Avg/index.ts b/src/drives/item/items/item/workbook/functions/rank_Avg/index.ts index 6ca35f60650..9b266992ab8 100644 --- a/src/drives/item/items/item/workbook/functions/rank_Avg/index.ts +++ b/src/drives/item/items/item/workbook/functions/rank_Avg/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRank_AvgPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeRank_AvgPostRequestBody(writer: SerializationWriter, ra writer.writeObjectValue("ref", rank_AvgPostRequestBody.ref, serializeJson); writer.writeAdditionalData(rank_AvgPostRequestBody.additionalData); } -/** - * Provides operations to call the rank_Avg method. - */ -export class Rank_AvgRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Rank_AvgRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rank_Avg"); - }; - /** - * Invoke action rank_Avg - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Rank_AvgPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action rank_Avg - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Rank_AvgPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRank_AvgPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a rank_AvgRequestBuilder - */ - public withUrl(rawUrl: string) : Rank_AvgRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Rank_AvgRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/rank_Eq/index.ts b/src/drives/item/items/item/workbook/functions/rank_Eq/index.ts index b5668a1135d..a453b09a263 100644 --- a/src/drives/item/items/item/workbook/functions/rank_Eq/index.ts +++ b/src/drives/item/items/item/workbook/functions/rank_Eq/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRank_EqPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeRank_EqPostRequestBody(writer: SerializationWriter, ran writer.writeObjectValue("ref", rank_EqPostRequestBody.ref, serializeJson); writer.writeAdditionalData(rank_EqPostRequestBody.additionalData); } -/** - * Provides operations to call the rank_Eq method. - */ -export class Rank_EqRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Rank_EqRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rank_Eq"); - }; - /** - * Invoke action rank_Eq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Rank_EqPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action rank_Eq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Rank_EqPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRank_EqPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a rank_EqRequestBuilder - */ - public withUrl(rawUrl: string) : Rank_EqRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Rank_EqRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/rate/index.ts b/src/drives/item/items/item/workbook/functions/rate/index.ts index 527775c73bf..d6cef397e7f 100644 --- a/src/drives/item/items/item/workbook/functions/rate/index.ts +++ b/src/drives/item/items/item/workbook/functions/rate/index.ts @@ -1,12 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoRatePostRequestBody, serializeRatePostRequestBody, type RatePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRatePostRequestBody; +} +export function deserializeIntoRatePostRequestBody(ratePostRequestBody: RatePostRequestBody | undefined = {} as RatePostRequestBody) : Record void> { + return { + "fv": n => { ratePostRequestBody.fv = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "guess": n => { ratePostRequestBody.guess = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "nper": n => { ratePostRequestBody.nper = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pmt": n => { ratePostRequestBody.pmt = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pv": n => { ratePostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "type": n => { ratePostRequestBody.type = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface RatePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fv property + */ + fv?: Json; + /** + * The guess property + */ + guess?: Json; + /** + * The nper property + */ + nper?: Json; + /** + * The pmt property + */ + pmt?: Json; + /** + * The pv property + */ + pv?: Json; + /** + * The type property + */ + type?: Json; +} +export function serializeRatePostRequestBody(writer: SerializationWriter, ratePostRequestBody: RatePostRequestBody | undefined = {} as RatePostRequestBody) : void { + writer.writeObjectValue("fv", ratePostRequestBody.fv, serializeJson); + writer.writeObjectValue("guess", ratePostRequestBody.guess, serializeJson); + writer.writeObjectValue("nper", ratePostRequestBody.nper, serializeJson); + writer.writeObjectValue("pmt", ratePostRequestBody.pmt, serializeJson); + writer.writeObjectValue("pv", ratePostRequestBody.pv, serializeJson); + writer.writeObjectValue("type", ratePostRequestBody.type, serializeJson); + writer.writeAdditionalData(ratePostRequestBody.additionalData); +} /** * Provides operations to call the rate method. */ diff --git a/src/drives/item/items/item/workbook/functions/rate/ratePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/rate/ratePostRequestBody.ts deleted file mode 100644 index 51ae1e72894..00000000000 --- a/src/drives/item/items/item/workbook/functions/rate/ratePostRequestBody.ts +++ /dev/null @@ -1,61 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRatePostRequestBody; -} -export function deserializeIntoRatePostRequestBody(ratePostRequestBody: RatePostRequestBody | undefined = {} as RatePostRequestBody) : Record void> { - return { - "fv": n => { ratePostRequestBody.fv = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "guess": n => { ratePostRequestBody.guess = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "nper": n => { ratePostRequestBody.nper = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pmt": n => { ratePostRequestBody.pmt = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pv": n => { ratePostRequestBody.pv = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "type": n => { ratePostRequestBody.type = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface RatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fv property - */ - fv?: Json; - /** - * The guess property - */ - guess?: Json; - /** - * The nper property - */ - nper?: Json; - /** - * The pmt property - */ - pmt?: Json; - /** - * The pv property - */ - pv?: Json; - /** - * The type property - */ - type?: Json; -} -export function serializeRatePostRequestBody(writer: SerializationWriter, ratePostRequestBody: RatePostRequestBody | undefined = {} as RatePostRequestBody) : void { - writer.writeObjectValue("fv", ratePostRequestBody.fv, serializeJson); - writer.writeObjectValue("guess", ratePostRequestBody.guess, serializeJson); - writer.writeObjectValue("nper", ratePostRequestBody.nper, serializeJson); - writer.writeObjectValue("pmt", ratePostRequestBody.pmt, serializeJson); - writer.writeObjectValue("pv", ratePostRequestBody.pv, serializeJson); - writer.writeObjectValue("type", ratePostRequestBody.type, serializeJson); - writer.writeAdditionalData(ratePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/received/index.ts b/src/drives/item/items/item/workbook/functions/received/index.ts index a9eb5658db3..24c6c3edad2 100644 --- a/src/drives/item/items/item/workbook/functions/received/index.ts +++ b/src/drives/item/items/item/workbook/functions/received/index.ts @@ -1,12 +1,59 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoReceivedPostRequestBody, serializeReceivedPostRequestBody, type ReceivedPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReceivedPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReceivedPostRequestBody; +} +export function deserializeIntoReceivedPostRequestBody(receivedPostRequestBody: ReceivedPostRequestBody | undefined = {} as ReceivedPostRequestBody) : Record void> { + return { + "basis": n => { receivedPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "discount": n => { receivedPostRequestBody.discount = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "investment": n => { receivedPostRequestBody.investment = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { receivedPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { receivedPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ReceivedPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The discount property + */ + discount?: Json; + /** + * The investment property + */ + investment?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The settlement property + */ + settlement?: Json; +} +export function serializeReceivedPostRequestBody(writer: SerializationWriter, receivedPostRequestBody: ReceivedPostRequestBody | undefined = {} as ReceivedPostRequestBody) : void { + writer.writeObjectValue("basis", receivedPostRequestBody.basis, serializeJson); + writer.writeObjectValue("discount", receivedPostRequestBody.discount, serializeJson); + writer.writeObjectValue("investment", receivedPostRequestBody.investment, serializeJson); + writer.writeObjectValue("maturity", receivedPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("settlement", receivedPostRequestBody.settlement, serializeJson); + writer.writeAdditionalData(receivedPostRequestBody.additionalData); +} /** * Provides operations to call the received method. */ diff --git a/src/drives/item/items/item/workbook/functions/received/receivedPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/received/receivedPostRequestBody.ts deleted file mode 100644 index 693b9d5a1c6..00000000000 --- a/src/drives/item/items/item/workbook/functions/received/receivedPostRequestBody.ts +++ /dev/null @@ -1,55 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReceivedPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReceivedPostRequestBody; -} -export function deserializeIntoReceivedPostRequestBody(receivedPostRequestBody: ReceivedPostRequestBody | undefined = {} as ReceivedPostRequestBody) : Record void> { - return { - "basis": n => { receivedPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "discount": n => { receivedPostRequestBody.discount = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "investment": n => { receivedPostRequestBody.investment = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { receivedPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { receivedPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ReceivedPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The discount property - */ - discount?: Json; - /** - * The investment property - */ - investment?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -export function serializeReceivedPostRequestBody(writer: SerializationWriter, receivedPostRequestBody: ReceivedPostRequestBody | undefined = {} as ReceivedPostRequestBody) : void { - writer.writeObjectValue("basis", receivedPostRequestBody.basis, serializeJson); - writer.writeObjectValue("discount", receivedPostRequestBody.discount, serializeJson); - writer.writeObjectValue("investment", receivedPostRequestBody.investment, serializeJson); - writer.writeObjectValue("maturity", receivedPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("settlement", receivedPostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(receivedPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/replace/index.ts b/src/drives/item/items/item/workbook/functions/replace/index.ts index 422c735acf1..b378ad8c49a 100644 --- a/src/drives/item/items/item/workbook/functions/replace/index.ts +++ b/src/drives/item/items/item/workbook/functions/replace/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoReplacePostRequestBody, serializeReplacePostRequestBody, type ReplacePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplacePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplacePostRequestBody; +} +export function deserializeIntoReplacePostRequestBody(replacePostRequestBody: ReplacePostRequestBody | undefined = {} as ReplacePostRequestBody) : Record void> { + return { + "newText": n => { replacePostRequestBody.newText = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numChars": n => { replacePostRequestBody.numChars = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "oldText": n => { replacePostRequestBody.oldText = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startNum": n => { replacePostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ReplacePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The newText property + */ + newText?: Json; + /** + * The numChars property + */ + numChars?: Json; + /** + * The oldText property + */ + oldText?: Json; + /** + * The startNum property + */ + startNum?: Json; +} +export function serializeReplacePostRequestBody(writer: SerializationWriter, replacePostRequestBody: ReplacePostRequestBody | undefined = {} as ReplacePostRequestBody) : void { + writer.writeObjectValue("newText", replacePostRequestBody.newText, serializeJson); + writer.writeObjectValue("numChars", replacePostRequestBody.numChars, serializeJson); + writer.writeObjectValue("oldText", replacePostRequestBody.oldText, serializeJson); + writer.writeObjectValue("startNum", replacePostRequestBody.startNum, serializeJson); + writer.writeAdditionalData(replacePostRequestBody.additionalData); +} /** * Provides operations to call the replace method. */ diff --git a/src/drives/item/items/item/workbook/functions/replace/replacePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/replace/replacePostRequestBody.ts deleted file mode 100644 index 1dae9031aac..00000000000 --- a/src/drives/item/items/item/workbook/functions/replace/replacePostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplacePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplacePostRequestBody; -} -export function deserializeIntoReplacePostRequestBody(replacePostRequestBody: ReplacePostRequestBody | undefined = {} as ReplacePostRequestBody) : Record void> { - return { - "newText": n => { replacePostRequestBody.newText = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numChars": n => { replacePostRequestBody.numChars = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "oldText": n => { replacePostRequestBody.oldText = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startNum": n => { replacePostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ReplacePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The newText property - */ - newText?: Json; - /** - * The numChars property - */ - numChars?: Json; - /** - * The oldText property - */ - oldText?: Json; - /** - * The startNum property - */ - startNum?: Json; -} -export function serializeReplacePostRequestBody(writer: SerializationWriter, replacePostRequestBody: ReplacePostRequestBody | undefined = {} as ReplacePostRequestBody) : void { - writer.writeObjectValue("newText", replacePostRequestBody.newText, serializeJson); - writer.writeObjectValue("numChars", replacePostRequestBody.numChars, serializeJson); - writer.writeObjectValue("oldText", replacePostRequestBody.oldText, serializeJson); - writer.writeObjectValue("startNum", replacePostRequestBody.startNum, serializeJson); - writer.writeAdditionalData(replacePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/replaceB/index.ts b/src/drives/item/items/item/workbook/functions/replaceB/index.ts index 2f53672c883..c83768ca0ea 100644 --- a/src/drives/item/items/item/workbook/functions/replaceB/index.ts +++ b/src/drives/item/items/item/workbook/functions/replaceB/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoReplaceBPostRequestBody, serializeReplaceBPostRequestBody, type ReplaceBPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplaceBPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplaceBPostRequestBody; +} +export function deserializeIntoReplaceBPostRequestBody(replaceBPostRequestBody: ReplaceBPostRequestBody | undefined = {} as ReplaceBPostRequestBody) : Record void> { + return { + "newText": n => { replaceBPostRequestBody.newText = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numBytes": n => { replaceBPostRequestBody.numBytes = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "oldText": n => { replaceBPostRequestBody.oldText = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startNum": n => { replaceBPostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface ReplaceBPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The newText property + */ + newText?: Json; + /** + * The numBytes property + */ + numBytes?: Json; + /** + * The oldText property + */ + oldText?: Json; + /** + * The startNum property + */ + startNum?: Json; +} +export function serializeReplaceBPostRequestBody(writer: SerializationWriter, replaceBPostRequestBody: ReplaceBPostRequestBody | undefined = {} as ReplaceBPostRequestBody) : void { + writer.writeObjectValue("newText", replaceBPostRequestBody.newText, serializeJson); + writer.writeObjectValue("numBytes", replaceBPostRequestBody.numBytes, serializeJson); + writer.writeObjectValue("oldText", replaceBPostRequestBody.oldText, serializeJson); + writer.writeObjectValue("startNum", replaceBPostRequestBody.startNum, serializeJson); + writer.writeAdditionalData(replaceBPostRequestBody.additionalData); +} /** * Provides operations to call the replaceB method. */ diff --git a/src/drives/item/items/item/workbook/functions/replaceB/replaceBPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/replaceB/replaceBPostRequestBody.ts deleted file mode 100644 index dea11283939..00000000000 --- a/src/drives/item/items/item/workbook/functions/replaceB/replaceBPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplaceBPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplaceBPostRequestBody; -} -export function deserializeIntoReplaceBPostRequestBody(replaceBPostRequestBody: ReplaceBPostRequestBody | undefined = {} as ReplaceBPostRequestBody) : Record void> { - return { - "newText": n => { replaceBPostRequestBody.newText = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numBytes": n => { replaceBPostRequestBody.numBytes = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "oldText": n => { replaceBPostRequestBody.oldText = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startNum": n => { replaceBPostRequestBody.startNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface ReplaceBPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The newText property - */ - newText?: Json; - /** - * The numBytes property - */ - numBytes?: Json; - /** - * The oldText property - */ - oldText?: Json; - /** - * The startNum property - */ - startNum?: Json; -} -export function serializeReplaceBPostRequestBody(writer: SerializationWriter, replaceBPostRequestBody: ReplaceBPostRequestBody | undefined = {} as ReplaceBPostRequestBody) : void { - writer.writeObjectValue("newText", replaceBPostRequestBody.newText, serializeJson); - writer.writeObjectValue("numBytes", replaceBPostRequestBody.numBytes, serializeJson); - writer.writeObjectValue("oldText", replaceBPostRequestBody.oldText, serializeJson); - writer.writeObjectValue("startNum", replaceBPostRequestBody.startNum, serializeJson); - writer.writeAdditionalData(replaceBPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/rept/index.ts b/src/drives/item/items/item/workbook/functions/rept/index.ts index 8ef0ff0713a..25d5c832f46 100644 --- a/src/drives/item/items/item/workbook/functions/rept/index.ts +++ b/src/drives/item/items/item/workbook/functions/rept/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createReptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeReptPostRequestBody(writer: SerializationWriter, reptPo writer.writeObjectValue("text", reptPostRequestBody.text, serializeJson); writer.writeAdditionalData(reptPostRequestBody.additionalData); } -/** - * Provides operations to call the rept method. - */ -export class ReptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ReptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rept"); - }; - /** - * Invoke action rept - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ReptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action rept - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ReptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeReptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a reptRequestBuilder - */ - public withUrl(rawUrl: string) : ReptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ReptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/right/index.ts b/src/drives/item/items/item/workbook/functions/right/index.ts index c208936f611..0cf65dcb587 100644 --- a/src/drives/item/items/item/workbook/functions/right/index.ts +++ b/src/drives/item/items/item/workbook/functions/right/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoRightPostRequestBody, serializeRightPostRequestBody, type RightPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRightPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRightPostRequestBody; +} +export function deserializeIntoRightPostRequestBody(rightPostRequestBody: RightPostRequestBody | undefined = {} as RightPostRequestBody) : Record void> { + return { + "numChars": n => { rightPostRequestBody.numChars = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "text": n => { rightPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface RightPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The numChars property + */ + numChars?: Json; + /** + * The text property + */ + text?: Json; +} +export function serializeRightPostRequestBody(writer: SerializationWriter, rightPostRequestBody: RightPostRequestBody | undefined = {} as RightPostRequestBody) : void { + writer.writeObjectValue("numChars", rightPostRequestBody.numChars, serializeJson); + writer.writeObjectValue("text", rightPostRequestBody.text, serializeJson); + writer.writeAdditionalData(rightPostRequestBody.additionalData); +} /** * Provides operations to call the right method. */ diff --git a/src/drives/item/items/item/workbook/functions/right/rightPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/right/rightPostRequestBody.ts deleted file mode 100644 index 180e641ae24..00000000000 --- a/src/drives/item/items/item/workbook/functions/right/rightPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRightPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRightPostRequestBody; -} -export function deserializeIntoRightPostRequestBody(rightPostRequestBody: RightPostRequestBody | undefined = {} as RightPostRequestBody) : Record void> { - return { - "numChars": n => { rightPostRequestBody.numChars = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "text": n => { rightPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface RightPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The numChars property - */ - numChars?: Json; - /** - * The text property - */ - text?: Json; -} -export function serializeRightPostRequestBody(writer: SerializationWriter, rightPostRequestBody: RightPostRequestBody | undefined = {} as RightPostRequestBody) : void { - writer.writeObjectValue("numChars", rightPostRequestBody.numChars, serializeJson); - writer.writeObjectValue("text", rightPostRequestBody.text, serializeJson); - writer.writeAdditionalData(rightPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/rightb/index.ts b/src/drives/item/items/item/workbook/functions/rightb/index.ts index 18b62c09074..9a33ad3098f 100644 --- a/src/drives/item/items/item/workbook/functions/rightb/index.ts +++ b/src/drives/item/items/item/workbook/functions/rightb/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoRightbPostRequestBody, serializeRightbPostRequestBody, type RightbPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRightbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRightbPostRequestBody; +} +export function deserializeIntoRightbPostRequestBody(rightbPostRequestBody: RightbPostRequestBody | undefined = {} as RightbPostRequestBody) : Record void> { + return { + "numBytes": n => { rightbPostRequestBody.numBytes = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "text": n => { rightbPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface RightbPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The numBytes property + */ + numBytes?: Json; + /** + * The text property + */ + text?: Json; +} +export function serializeRightbPostRequestBody(writer: SerializationWriter, rightbPostRequestBody: RightbPostRequestBody | undefined = {} as RightbPostRequestBody) : void { + writer.writeObjectValue("numBytes", rightbPostRequestBody.numBytes, serializeJson); + writer.writeObjectValue("text", rightbPostRequestBody.text, serializeJson); + writer.writeAdditionalData(rightbPostRequestBody.additionalData); +} /** * Provides operations to call the rightb method. */ diff --git a/src/drives/item/items/item/workbook/functions/rightb/rightbPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/rightb/rightbPostRequestBody.ts deleted file mode 100644 index 32d517ae5ba..00000000000 --- a/src/drives/item/items/item/workbook/functions/rightb/rightbPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRightbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRightbPostRequestBody; -} -export function deserializeIntoRightbPostRequestBody(rightbPostRequestBody: RightbPostRequestBody | undefined = {} as RightbPostRequestBody) : Record void> { - return { - "numBytes": n => { rightbPostRequestBody.numBytes = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "text": n => { rightbPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface RightbPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The numBytes property - */ - numBytes?: Json; - /** - * The text property - */ - text?: Json; -} -export function serializeRightbPostRequestBody(writer: SerializationWriter, rightbPostRequestBody: RightbPostRequestBody | undefined = {} as RightbPostRequestBody) : void { - writer.writeObjectValue("numBytes", rightbPostRequestBody.numBytes, serializeJson); - writer.writeObjectValue("text", rightbPostRequestBody.text, serializeJson); - writer.writeAdditionalData(rightbPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/roman/index.ts b/src/drives/item/items/item/workbook/functions/roman/index.ts index 7ed65ec2248..9c1f6582d4b 100644 --- a/src/drives/item/items/item/workbook/functions/roman/index.ts +++ b/src/drives/item/items/item/workbook/functions/roman/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRomanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeRomanPostRequestBody(writer: SerializationWriter, roman writer.writeObjectValue("number", romanPostRequestBody.number, serializeJson); writer.writeAdditionalData(romanPostRequestBody.additionalData); } -/** - * Provides operations to call the roman method. - */ -export class RomanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RomanRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roman"); - }; - /** - * Invoke action roman - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: RomanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action roman - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RomanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRomanPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a romanRequestBuilder - */ - public withUrl(rawUrl: string) : RomanRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RomanRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/round/index.ts b/src/drives/item/items/item/workbook/functions/round/index.ts index 1fce20ce12c..39279063f39 100644 --- a/src/drives/item/items/item/workbook/functions/round/index.ts +++ b/src/drives/item/items/item/workbook/functions/round/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRoundPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeRoundPostRequestBody(writer: SerializationWriter, round writer.writeObjectValue("numDigits", roundPostRequestBody.numDigits, serializeJson); writer.writeAdditionalData(roundPostRequestBody.additionalData); } -/** - * Provides operations to call the round method. - */ -export class RoundRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RoundRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/round"); - }; - /** - * Invoke action round - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: RoundPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action round - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RoundPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRoundPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a roundRequestBuilder - */ - public withUrl(rawUrl: string) : RoundRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RoundRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/roundDown/index.ts b/src/drives/item/items/item/workbook/functions/roundDown/index.ts index f306fd650a2..6fbbaec3c01 100644 --- a/src/drives/item/items/item/workbook/functions/roundDown/index.ts +++ b/src/drives/item/items/item/workbook/functions/roundDown/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRoundDownPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeRoundDownPostRequestBody(writer: SerializationWriter, r writer.writeObjectValue("numDigits", roundDownPostRequestBody.numDigits, serializeJson); writer.writeAdditionalData(roundDownPostRequestBody.additionalData); } -/** - * Provides operations to call the roundDown method. - */ -export class RoundDownRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RoundDownRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roundDown"); - }; - /** - * Invoke action roundDown - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: RoundDownPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action roundDown - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RoundDownPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRoundDownPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a roundDownRequestBuilder - */ - public withUrl(rawUrl: string) : RoundDownRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RoundDownRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/roundUp/index.ts b/src/drives/item/items/item/workbook/functions/roundUp/index.ts index 53b6c9743c6..939cbe4c3ce 100644 --- a/src/drives/item/items/item/workbook/functions/roundUp/index.ts +++ b/src/drives/item/items/item/workbook/functions/roundUp/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRoundUpPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export function serializeRoundUpPostRequestBody(writer: SerializationWriter, rou writer.writeObjectValue("numDigits", roundUpPostRequestBody.numDigits, serializeJson); writer.writeAdditionalData(roundUpPostRequestBody.additionalData); } -/** - * Provides operations to call the roundUp method. - */ -export class RoundUpRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RoundUpRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roundUp"); - }; - /** - * Invoke action roundUp - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: RoundUpPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action roundUp - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RoundUpPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRoundUpPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a roundUpRequestBuilder - */ - public withUrl(rawUrl: string) : RoundUpRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RoundUpRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/rows/index.ts b/src/drives/item/items/item/workbook/functions/rows/index.ts index 71122075fec..a9dbfc25bbb 100644 --- a/src/drives/item/items/item/workbook/functions/rows/index.ts +++ b/src/drives/item/items/item/workbook/functions/rows/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoRowsPostRequestBody, serializeRowsPostRequestBody, type RowsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRowsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRowsPostRequestBody; +} +export function deserializeIntoRowsPostRequestBody(rowsPostRequestBody: RowsPostRequestBody | undefined = {} as RowsPostRequestBody) : Record void> { + return { + "array": n => { rowsPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface RowsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The array property + */ + array?: Json; +} +export function serializeRowsPostRequestBody(writer: SerializationWriter, rowsPostRequestBody: RowsPostRequestBody | undefined = {} as RowsPostRequestBody) : void { + writer.writeObjectValue("array", rowsPostRequestBody.array, serializeJson); + writer.writeAdditionalData(rowsPostRequestBody.additionalData); +} /** * Provides operations to call the rows method. */ diff --git a/src/drives/item/items/item/workbook/functions/rows/rowsPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/rows/rowsPostRequestBody.ts deleted file mode 100644 index e29c059f3e6..00000000000 --- a/src/drives/item/items/item/workbook/functions/rows/rowsPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRowsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRowsPostRequestBody; -} -export function deserializeIntoRowsPostRequestBody(rowsPostRequestBody: RowsPostRequestBody | undefined = {} as RowsPostRequestBody) : Record void> { - return { - "array": n => { rowsPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface RowsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The array property - */ - array?: Json; -} -export function serializeRowsPostRequestBody(writer: SerializationWriter, rowsPostRequestBody: RowsPostRequestBody | undefined = {} as RowsPostRequestBody) : void { - writer.writeObjectValue("array", rowsPostRequestBody.array, serializeJson); - writer.writeAdditionalData(rowsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/rri/index.ts b/src/drives/item/items/item/workbook/functions/rri/index.ts index c853c371cc4..f6146a0c943 100644 --- a/src/drives/item/items/item/workbook/functions/rri/index.ts +++ b/src/drives/item/items/item/workbook/functions/rri/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRriPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export function serializeRriPostRequestBody(writer: SerializationWriter, rriPost writer.writeObjectValue("pv", rriPostRequestBody.pv, serializeJson); writer.writeAdditionalData(rriPostRequestBody.additionalData); } -/** - * Provides operations to call the rri method. - */ -export class RriRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RriRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rri"); - }; - /** - * Invoke action rri - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: RriPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action rri - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RriPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRriPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a rriRequestBuilder - */ - public withUrl(rawUrl: string) : RriRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RriRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sec/index.ts b/src/drives/item/items/item/workbook/functions/sec/index.ts index caaa4a9ff2c..71cd0884c5f 100644 --- a/src/drives/item/items/item/workbook/functions/sec/index.ts +++ b/src/drives/item/items/item/workbook/functions/sec/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSecPostRequestBody, serializeSecPostRequestBody, type SecPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSecPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSecPostRequestBody; +} +export function deserializeIntoSecPostRequestBody(secPostRequestBody: SecPostRequestBody | undefined = {} as SecPostRequestBody) : Record void> { + return { + "number": n => { secPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface SecPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeSecPostRequestBody(writer: SerializationWriter, secPostRequestBody: SecPostRequestBody | undefined = {} as SecPostRequestBody) : void { + writer.writeObjectValue("number", secPostRequestBody.number, serializeJson); + writer.writeAdditionalData(secPostRequestBody.additionalData); +} /** * Provides operations to call the sec method. */ diff --git a/src/drives/item/items/item/workbook/functions/sec/secPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/sec/secPostRequestBody.ts deleted file mode 100644 index 49aee8d6551..00000000000 --- a/src/drives/item/items/item/workbook/functions/sec/secPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSecPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSecPostRequestBody; -} -export function deserializeIntoSecPostRequestBody(secPostRequestBody: SecPostRequestBody | undefined = {} as SecPostRequestBody) : Record void> { - return { - "number": n => { secPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface SecPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeSecPostRequestBody(writer: SerializationWriter, secPostRequestBody: SecPostRequestBody | undefined = {} as SecPostRequestBody) : void { - writer.writeObjectValue("number", secPostRequestBody.number, serializeJson); - writer.writeAdditionalData(secPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sech/index.ts b/src/drives/item/items/item/workbook/functions/sech/index.ts index d0aeb10d42c..b719bc9e34b 100644 --- a/src/drives/item/items/item/workbook/functions/sech/index.ts +++ b/src/drives/item/items/item/workbook/functions/sech/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSechPostRequestBody, serializeSechPostRequestBody, type SechPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSechPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSechPostRequestBody; +} +export function deserializeIntoSechPostRequestBody(sechPostRequestBody: SechPostRequestBody | undefined = {} as SechPostRequestBody) : Record void> { + return { + "number": n => { sechPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export interface SechPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} +export function serializeSechPostRequestBody(writer: SerializationWriter, sechPostRequestBody: SechPostRequestBody | undefined = {} as SechPostRequestBody) : void { + writer.writeObjectValue("number", sechPostRequestBody.number, serializeJson); + writer.writeAdditionalData(sechPostRequestBody.additionalData); +} /** * Provides operations to call the sech method. */ diff --git a/src/drives/item/items/item/workbook/functions/sech/sechPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/sech/sechPostRequestBody.ts deleted file mode 100644 index 9c6ba2266db..00000000000 --- a/src/drives/item/items/item/workbook/functions/sech/sechPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSechPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSechPostRequestBody; -} -export function deserializeIntoSechPostRequestBody(sechPostRequestBody: SechPostRequestBody | undefined = {} as SechPostRequestBody) : Record void> { - return { - "number": n => { sechPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export interface SechPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -export function serializeSechPostRequestBody(writer: SerializationWriter, sechPostRequestBody: SechPostRequestBody | undefined = {} as SechPostRequestBody) : void { - writer.writeObjectValue("number", sechPostRequestBody.number, serializeJson); - writer.writeAdditionalData(sechPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/second/index.ts b/src/drives/item/items/item/workbook/functions/second/index.ts index 0186dd49a9c..a17ad56d143 100644 --- a/src/drives/item/items/item/workbook/functions/second/index.ts +++ b/src/drives/item/items/item/workbook/functions/second/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSecondPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export function serializeSecondPostRequestBody(writer: SerializationWriter, seco writer.writeObjectValue("serialNumber", secondPostRequestBody.serialNumber, serializeJson); writer.writeAdditionalData(secondPostRequestBody.additionalData); } -/** - * Provides operations to call the second method. - */ -export class SecondRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SecondRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/second"); - }; - /** - * Invoke action second - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SecondPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action second - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SecondPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSecondPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a secondRequestBuilder - */ - public withUrl(rawUrl: string) : SecondRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SecondRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/seriesSum/index.ts b/src/drives/item/items/item/workbook/functions/seriesSum/index.ts index 339d1debd93..cefa115827b 100644 --- a/src/drives/item/items/item/workbook/functions/seriesSum/index.ts +++ b/src/drives/item/items/item/workbook/functions/seriesSum/index.ts @@ -1,12 +1,53 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSeriesSumPostRequestBody, serializeSeriesSumPostRequestBody, type SeriesSumPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSeriesSumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSeriesSumPostRequestBody; +} +export function deserializeIntoSeriesSumPostRequestBody(seriesSumPostRequestBody: SeriesSumPostRequestBody | undefined = {} as SeriesSumPostRequestBody) : Record void> { + return { + "coefficients": n => { seriesSumPostRequestBody.coefficients = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "m": n => { seriesSumPostRequestBody.m = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "n": n => { seriesSumPostRequestBody.n = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { seriesSumPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSeriesSumPostRequestBody(writer: SerializationWriter, seriesSumPostRequestBody: SeriesSumPostRequestBody | undefined = {} as SeriesSumPostRequestBody) : void { + writer.writeObjectValue("coefficients", seriesSumPostRequestBody.coefficients, serializeJson); + writer.writeObjectValue("m", seriesSumPostRequestBody.m, serializeJson); + writer.writeObjectValue("n", seriesSumPostRequestBody.n, serializeJson); + writer.writeObjectValue("x", seriesSumPostRequestBody.x, serializeJson); + writer.writeAdditionalData(seriesSumPostRequestBody.additionalData); +} +export interface SeriesSumPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The coefficients property + */ + coefficients?: Json; + /** + * The m property + */ + m?: Json; + /** + * The n property + */ + n?: Json; + /** + * The x property + */ + x?: Json; +} /** * Provides operations to call the seriesSum method. */ diff --git a/src/drives/item/items/item/workbook/functions/seriesSum/seriesSumPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/seriesSum/seriesSumPostRequestBody.ts deleted file mode 100644 index 842675be4dc..00000000000 --- a/src/drives/item/items/item/workbook/functions/seriesSum/seriesSumPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSeriesSumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSeriesSumPostRequestBody; -} -export function deserializeIntoSeriesSumPostRequestBody(seriesSumPostRequestBody: SeriesSumPostRequestBody | undefined = {} as SeriesSumPostRequestBody) : Record void> { - return { - "coefficients": n => { seriesSumPostRequestBody.coefficients = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "m": n => { seriesSumPostRequestBody.m = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "n": n => { seriesSumPostRequestBody.n = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { seriesSumPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeSeriesSumPostRequestBody(writer: SerializationWriter, seriesSumPostRequestBody: SeriesSumPostRequestBody | undefined = {} as SeriesSumPostRequestBody) : void { - writer.writeObjectValue("coefficients", seriesSumPostRequestBody.coefficients, serializeJson); - writer.writeObjectValue("m", seriesSumPostRequestBody.m, serializeJson); - writer.writeObjectValue("n", seriesSumPostRequestBody.n, serializeJson); - writer.writeObjectValue("x", seriesSumPostRequestBody.x, serializeJson); - writer.writeAdditionalData(seriesSumPostRequestBody.additionalData); -} -export interface SeriesSumPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The coefficients property - */ - coefficients?: Json; - /** - * The m property - */ - m?: Json; - /** - * The n property - */ - n?: Json; - /** - * The x property - */ - x?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sheet/index.ts b/src/drives/item/items/item/workbook/functions/sheet/index.ts index a1856300f37..8accf85b483 100644 --- a/src/drives/item/items/item/workbook/functions/sheet/index.ts +++ b/src/drives/item/items/item/workbook/functions/sheet/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSheetPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface SheetPostRequestBody extends AdditionalDataHolder, Parsable { */ value?: Json; } -/** - * Provides operations to call the sheet method. - */ -export class SheetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SheetRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sheet"); - }; - /** - * Invoke action sheet - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SheetPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action sheet - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SheetPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSheetPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sheetRequestBuilder - */ - public withUrl(rawUrl: string) : SheetRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SheetRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sheets/index.ts b/src/drives/item/items/item/workbook/functions/sheets/index.ts index 6310debed42..bd6f8a45c56 100644 --- a/src/drives/item/items/item/workbook/functions/sheets/index.ts +++ b/src/drives/item/items/item/workbook/functions/sheets/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSheetsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface SheetsPostRequestBody extends AdditionalDataHolder, Parsable { */ reference?: Json; } -/** - * Provides operations to call the sheets method. - */ -export class SheetsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SheetsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sheets"); - }; - /** - * Invoke action sheets - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SheetsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action sheets - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SheetsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSheetsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sheetsRequestBuilder - */ - public withUrl(rawUrl: string) : SheetsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SheetsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sign/index.ts b/src/drives/item/items/item/workbook/functions/sign/index.ts index ea3f302306b..f94a7f476ac 100644 --- a/src/drives/item/items/item/workbook/functions/sign/index.ts +++ b/src/drives/item/items/item/workbook/functions/sign/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSignPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface SignPostRequestBody extends AdditionalDataHolder, Parsable { */ number?: Json; } -/** - * Provides operations to call the sign method. - */ -export class SignRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SignRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sign"); - }; - /** - * Invoke action sign - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action sign - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SignPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSignPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a signRequestBuilder - */ - public withUrl(rawUrl: string) : SignRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SignRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sin/index.ts b/src/drives/item/items/item/workbook/functions/sin/index.ts index bb1e344cd3f..b7a9ecfa361 100644 --- a/src/drives/item/items/item/workbook/functions/sin/index.ts +++ b/src/drives/item/items/item/workbook/functions/sin/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSinPostRequestBody, serializeSinPostRequestBody, type SinPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSinPostRequestBody; +} +export function deserializeIntoSinPostRequestBody(sinPostRequestBody: SinPostRequestBody | undefined = {} as SinPostRequestBody) : Record void> { + return { + "number": n => { sinPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSinPostRequestBody(writer: SerializationWriter, sinPostRequestBody: SinPostRequestBody | undefined = {} as SinPostRequestBody) : void { + writer.writeObjectValue("number", sinPostRequestBody.number, serializeJson); + writer.writeAdditionalData(sinPostRequestBody.additionalData); +} +export interface SinPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} /** * Provides operations to call the sin method. */ diff --git a/src/drives/item/items/item/workbook/functions/sin/sinPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/sin/sinPostRequestBody.ts deleted file mode 100644 index d62e6f9d72c..00000000000 --- a/src/drives/item/items/item/workbook/functions/sin/sinPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSinPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSinPostRequestBody; -} -export function deserializeIntoSinPostRequestBody(sinPostRequestBody: SinPostRequestBody | undefined = {} as SinPostRequestBody) : Record void> { - return { - "number": n => { sinPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeSinPostRequestBody(writer: SerializationWriter, sinPostRequestBody: SinPostRequestBody | undefined = {} as SinPostRequestBody) : void { - writer.writeObjectValue("number", sinPostRequestBody.number, serializeJson); - writer.writeAdditionalData(sinPostRequestBody.additionalData); -} -export interface SinPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sinh/index.ts b/src/drives/item/items/item/workbook/functions/sinh/index.ts index 9a70436a6eb..2eeaa48b8c6 100644 --- a/src/drives/item/items/item/workbook/functions/sinh/index.ts +++ b/src/drives/item/items/item/workbook/functions/sinh/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSinhPostRequestBody, serializeSinhPostRequestBody, type SinhPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSinhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSinhPostRequestBody; +} +export function deserializeIntoSinhPostRequestBody(sinhPostRequestBody: SinhPostRequestBody | undefined = {} as SinhPostRequestBody) : Record void> { + return { + "number": n => { sinhPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSinhPostRequestBody(writer: SerializationWriter, sinhPostRequestBody: SinhPostRequestBody | undefined = {} as SinhPostRequestBody) : void { + writer.writeObjectValue("number", sinhPostRequestBody.number, serializeJson); + writer.writeAdditionalData(sinhPostRequestBody.additionalData); +} +export interface SinhPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} /** * Provides operations to call the sinh method. */ diff --git a/src/drives/item/items/item/workbook/functions/sinh/sinhPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/sinh/sinhPostRequestBody.ts deleted file mode 100644 index 1e49a4ffa9f..00000000000 --- a/src/drives/item/items/item/workbook/functions/sinh/sinhPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSinhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSinhPostRequestBody; -} -export function deserializeIntoSinhPostRequestBody(sinhPostRequestBody: SinhPostRequestBody | undefined = {} as SinhPostRequestBody) : Record void> { - return { - "number": n => { sinhPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeSinhPostRequestBody(writer: SerializationWriter, sinhPostRequestBody: SinhPostRequestBody | undefined = {} as SinhPostRequestBody) : void { - writer.writeObjectValue("number", sinhPostRequestBody.number, serializeJson); - writer.writeAdditionalData(sinhPostRequestBody.additionalData); -} -export interface SinhPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/skew/index.ts b/src/drives/item/items/item/workbook/functions/skew/index.ts index ff8080d079f..6cc50f61a06 100644 --- a/src/drives/item/items/item/workbook/functions/skew/index.ts +++ b/src/drives/item/items/item/workbook/functions/skew/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSkewPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface SkewPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the skew method. - */ -export class SkewRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SkewRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/skew"); - }; - /** - * Invoke action skew - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SkewPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action skew - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SkewPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSkewPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a skewRequestBuilder - */ - public withUrl(rawUrl: string) : SkewRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SkewRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/skew_p/index.ts b/src/drives/item/items/item/workbook/functions/skew_p/index.ts index 4d8b7cbde94..07bf9cc2ff2 100644 --- a/src/drives/item/items/item/workbook/functions/skew_p/index.ts +++ b/src/drives/item/items/item/workbook/functions/skew_p/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSkew_pPostRequestBody, serializeSkew_pPostRequestBody, type Skew_pPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSkew_pPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSkew_pPostRequestBody; +} +export function deserializeIntoSkew_pPostRequestBody(skew_pPostRequestBody: Skew_pPostRequestBody | undefined = {} as Skew_pPostRequestBody) : Record void> { + return { + "values": n => { skew_pPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSkew_pPostRequestBody(writer: SerializationWriter, skew_pPostRequestBody: Skew_pPostRequestBody | undefined = {} as Skew_pPostRequestBody) : void { + writer.writeObjectValue("values", skew_pPostRequestBody.values, serializeJson); + writer.writeAdditionalData(skew_pPostRequestBody.additionalData); +} +export interface Skew_pPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} /** * Provides operations to call the skew_p method. */ diff --git a/src/drives/item/items/item/workbook/functions/skew_p/skew_pPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/skew_p/skew_pPostRequestBody.ts deleted file mode 100644 index c07a9380070..00000000000 --- a/src/drives/item/items/item/workbook/functions/skew_p/skew_pPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSkew_pPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSkew_pPostRequestBody; -} -export function deserializeIntoSkew_pPostRequestBody(skew_pPostRequestBody: Skew_pPostRequestBody | undefined = {} as Skew_pPostRequestBody) : Record void> { - return { - "values": n => { skew_pPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeSkew_pPostRequestBody(writer: SerializationWriter, skew_pPostRequestBody: Skew_pPostRequestBody | undefined = {} as Skew_pPostRequestBody) : void { - writer.writeObjectValue("values", skew_pPostRequestBody.values, serializeJson); - writer.writeAdditionalData(skew_pPostRequestBody.additionalData); -} -export interface Skew_pPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sln/index.ts b/src/drives/item/items/item/workbook/functions/sln/index.ts index 4f3ecfc4943..9174a54f134 100644 --- a/src/drives/item/items/item/workbook/functions/sln/index.ts +++ b/src/drives/item/items/item/workbook/functions/sln/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSlnPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export interface SlnPostRequestBody extends AdditionalDataHolder, Parsable { */ salvage?: Json; } -/** - * Provides operations to call the sln method. - */ -export class SlnRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SlnRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sln"); - }; - /** - * Invoke action sln - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SlnPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action sln - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SlnPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSlnPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a slnRequestBuilder - */ - public withUrl(rawUrl: string) : SlnRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SlnRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/small/index.ts b/src/drives/item/items/item/workbook/functions/small/index.ts index 40c45ee0fee..d62f8badadd 100644 --- a/src/drives/item/items/item/workbook/functions/small/index.ts +++ b/src/drives/item/items/item/workbook/functions/small/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSmallPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export interface SmallPostRequestBody extends AdditionalDataHolder, Parsable { */ k?: Json; } -/** - * Provides operations to call the small method. - */ -export class SmallRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SmallRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/small"); - }; - /** - * Invoke action small - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SmallPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action small - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SmallPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSmallPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a smallRequestBuilder - */ - public withUrl(rawUrl: string) : SmallRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SmallRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sqrt/index.ts b/src/drives/item/items/item/workbook/functions/sqrt/index.ts index 723d69d0f47..7dc02524cb2 100644 --- a/src/drives/item/items/item/workbook/functions/sqrt/index.ts +++ b/src/drives/item/items/item/workbook/functions/sqrt/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSqrtPostRequestBody, serializeSqrtPostRequestBody, type SqrtPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSqrtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSqrtPostRequestBody; +} +export function deserializeIntoSqrtPostRequestBody(sqrtPostRequestBody: SqrtPostRequestBody | undefined = {} as SqrtPostRequestBody) : Record void> { + return { + "number": n => { sqrtPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSqrtPostRequestBody(writer: SerializationWriter, sqrtPostRequestBody: SqrtPostRequestBody | undefined = {} as SqrtPostRequestBody) : void { + writer.writeObjectValue("number", sqrtPostRequestBody.number, serializeJson); + writer.writeAdditionalData(sqrtPostRequestBody.additionalData); +} +export interface SqrtPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} /** * Provides operations to call the sqrt method. */ diff --git a/src/drives/item/items/item/workbook/functions/sqrt/sqrtPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/sqrt/sqrtPostRequestBody.ts deleted file mode 100644 index eeee94465fd..00000000000 --- a/src/drives/item/items/item/workbook/functions/sqrt/sqrtPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSqrtPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSqrtPostRequestBody; -} -export function deserializeIntoSqrtPostRequestBody(sqrtPostRequestBody: SqrtPostRequestBody | undefined = {} as SqrtPostRequestBody) : Record void> { - return { - "number": n => { sqrtPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeSqrtPostRequestBody(writer: SerializationWriter, sqrtPostRequestBody: SqrtPostRequestBody | undefined = {} as SqrtPostRequestBody) : void { - writer.writeObjectValue("number", sqrtPostRequestBody.number, serializeJson); - writer.writeAdditionalData(sqrtPostRequestBody.additionalData); -} -export interface SqrtPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sqrtPi/index.ts b/src/drives/item/items/item/workbook/functions/sqrtPi/index.ts index 55c068369b3..a1a927ff551 100644 --- a/src/drives/item/items/item/workbook/functions/sqrtPi/index.ts +++ b/src/drives/item/items/item/workbook/functions/sqrtPi/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSqrtPiPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface SqrtPiPostRequestBody extends AdditionalDataHolder, Parsable { */ number?: Json; } -/** - * Provides operations to call the sqrtPi method. - */ -export class SqrtPiRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SqrtPiRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sqrtPi"); - }; - /** - * Invoke action sqrtPi - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SqrtPiPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action sqrtPi - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SqrtPiPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSqrtPiPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sqrtPiRequestBuilder - */ - public withUrl(rawUrl: string) : SqrtPiRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SqrtPiRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/stDevA/index.ts b/src/drives/item/items/item/workbook/functions/stDevA/index.ts index 83a89dbba9d..14bc7cba5b6 100644 --- a/src/drives/item/items/item/workbook/functions/stDevA/index.ts +++ b/src/drives/item/items/item/workbook/functions/stDevA/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoStDevAPostRequestBody, serializeStDevAPostRequestBody, type StDevAPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createStDevAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoStDevAPostRequestBody; +} +export function deserializeIntoStDevAPostRequestBody(stDevAPostRequestBody: StDevAPostRequestBody | undefined = {} as StDevAPostRequestBody) : Record void> { + return { + "values": n => { stDevAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeStDevAPostRequestBody(writer: SerializationWriter, stDevAPostRequestBody: StDevAPostRequestBody | undefined = {} as StDevAPostRequestBody) : void { + writer.writeObjectValue("values", stDevAPostRequestBody.values, serializeJson); + writer.writeAdditionalData(stDevAPostRequestBody.additionalData); +} +export interface StDevAPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} /** * Provides operations to call the stDevA method. */ diff --git a/src/drives/item/items/item/workbook/functions/stDevA/stDevAPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/stDevA/stDevAPostRequestBody.ts deleted file mode 100644 index 3fe9a6ce319..00000000000 --- a/src/drives/item/items/item/workbook/functions/stDevA/stDevAPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createStDevAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoStDevAPostRequestBody; -} -export function deserializeIntoStDevAPostRequestBody(stDevAPostRequestBody: StDevAPostRequestBody | undefined = {} as StDevAPostRequestBody) : Record void> { - return { - "values": n => { stDevAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeStDevAPostRequestBody(writer: SerializationWriter, stDevAPostRequestBody: StDevAPostRequestBody | undefined = {} as StDevAPostRequestBody) : void { - writer.writeObjectValue("values", stDevAPostRequestBody.values, serializeJson); - writer.writeAdditionalData(stDevAPostRequestBody.additionalData); -} -export interface StDevAPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/stDevPA/index.ts b/src/drives/item/items/item/workbook/functions/stDevPA/index.ts index 78b7f3cb5bb..c556b860ee5 100644 --- a/src/drives/item/items/item/workbook/functions/stDevPA/index.ts +++ b/src/drives/item/items/item/workbook/functions/stDevPA/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoStDevPAPostRequestBody, serializeStDevPAPostRequestBody, type StDevPAPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createStDevPAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoStDevPAPostRequestBody; +} +export function deserializeIntoStDevPAPostRequestBody(stDevPAPostRequestBody: StDevPAPostRequestBody | undefined = {} as StDevPAPostRequestBody) : Record void> { + return { + "values": n => { stDevPAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeStDevPAPostRequestBody(writer: SerializationWriter, stDevPAPostRequestBody: StDevPAPostRequestBody | undefined = {} as StDevPAPostRequestBody) : void { + writer.writeObjectValue("values", stDevPAPostRequestBody.values, serializeJson); + writer.writeAdditionalData(stDevPAPostRequestBody.additionalData); +} +export interface StDevPAPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} /** * Provides operations to call the stDevPA method. */ diff --git a/src/drives/item/items/item/workbook/functions/stDevPA/stDevPAPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/stDevPA/stDevPAPostRequestBody.ts deleted file mode 100644 index 46a8e6fc03d..00000000000 --- a/src/drives/item/items/item/workbook/functions/stDevPA/stDevPAPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createStDevPAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoStDevPAPostRequestBody; -} -export function deserializeIntoStDevPAPostRequestBody(stDevPAPostRequestBody: StDevPAPostRequestBody | undefined = {} as StDevPAPostRequestBody) : Record void> { - return { - "values": n => { stDevPAPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeStDevPAPostRequestBody(writer: SerializationWriter, stDevPAPostRequestBody: StDevPAPostRequestBody | undefined = {} as StDevPAPostRequestBody) : void { - writer.writeObjectValue("values", stDevPAPostRequestBody.values, serializeJson); - writer.writeAdditionalData(stDevPAPostRequestBody.additionalData); -} -export interface StDevPAPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/stDev_P/index.ts b/src/drives/item/items/item/workbook/functions/stDev_P/index.ts index bfcb8056e9a..20f714ebfb9 100644 --- a/src/drives/item/items/item/workbook/functions/stDev_P/index.ts +++ b/src/drives/item/items/item/workbook/functions/stDev_P/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoStDev_PPostRequestBody, serializeStDev_PPostRequestBody, type StDev_PPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createStDev_PPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoStDev_PPostRequestBody; +} +export function deserializeIntoStDev_PPostRequestBody(stDev_PPostRequestBody: StDev_PPostRequestBody | undefined = {} as StDev_PPostRequestBody) : Record void> { + return { + "values": n => { stDev_PPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeStDev_PPostRequestBody(writer: SerializationWriter, stDev_PPostRequestBody: StDev_PPostRequestBody | undefined = {} as StDev_PPostRequestBody) : void { + writer.writeObjectValue("values", stDev_PPostRequestBody.values, serializeJson); + writer.writeAdditionalData(stDev_PPostRequestBody.additionalData); +} +export interface StDev_PPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} /** * Provides operations to call the stDev_P method. */ diff --git a/src/drives/item/items/item/workbook/functions/stDev_P/stDev_PPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/stDev_P/stDev_PPostRequestBody.ts deleted file mode 100644 index 54bbeffaf8e..00000000000 --- a/src/drives/item/items/item/workbook/functions/stDev_P/stDev_PPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createStDev_PPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoStDev_PPostRequestBody; -} -export function deserializeIntoStDev_PPostRequestBody(stDev_PPostRequestBody: StDev_PPostRequestBody | undefined = {} as StDev_PPostRequestBody) : Record void> { - return { - "values": n => { stDev_PPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeStDev_PPostRequestBody(writer: SerializationWriter, stDev_PPostRequestBody: StDev_PPostRequestBody | undefined = {} as StDev_PPostRequestBody) : void { - writer.writeObjectValue("values", stDev_PPostRequestBody.values, serializeJson); - writer.writeAdditionalData(stDev_PPostRequestBody.additionalData); -} -export interface StDev_PPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/stDev_S/index.ts b/src/drives/item/items/item/workbook/functions/stDev_S/index.ts index 656a6dfff93..be77ad65c50 100644 --- a/src/drives/item/items/item/workbook/functions/stDev_S/index.ts +++ b/src/drives/item/items/item/workbook/functions/stDev_S/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createStDev_SPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface StDev_SPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the stDev_S method. - */ -export class StDev_SRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new StDev_SRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDev_S"); - }; - /** - * Invoke action stDev_S - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: StDev_SPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action stDev_S - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: StDev_SPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStDev_SPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a stDev_SRequestBuilder - */ - public withUrl(rawUrl: string) : StDev_SRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new StDev_SRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/standardize/index.ts b/src/drives/item/items/item/workbook/functions/standardize/index.ts index d9ba83e1ec6..c14f76909cd 100644 --- a/src/drives/item/items/item/workbook/functions/standardize/index.ts +++ b/src/drives/item/items/item/workbook/functions/standardize/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createStandardizePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export interface StandardizePostRequestBody extends AdditionalDataHolder, Parsab */ x?: Json; } -/** - * Provides operations to call the standardize method. - */ -export class StandardizeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new StandardizeRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/standardize"); - }; - /** - * Invoke action standardize - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: StandardizePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action standardize - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: StandardizePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStandardizePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a standardizeRequestBuilder - */ - public withUrl(rawUrl: string) : StandardizeRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new StandardizeRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/substitute/index.ts b/src/drives/item/items/item/workbook/functions/substitute/index.ts index 926e7986351..65b13740205 100644 --- a/src/drives/item/items/item/workbook/functions/substitute/index.ts +++ b/src/drives/item/items/item/workbook/functions/substitute/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSubstitutePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +45,5 @@ export interface SubstitutePostRequestBody extends AdditionalDataHolder, Parsabl */ text?: Json; } -/** - * Provides operations to call the substitute method. - */ -export class SubstituteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SubstituteRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/substitute"); - }; - /** - * Invoke action substitute - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SubstitutePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action substitute - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SubstitutePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSubstitutePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a substituteRequestBuilder - */ - public withUrl(rawUrl: string) : SubstituteRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SubstituteRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/subtotal/index.ts b/src/drives/item/items/item/workbook/functions/subtotal/index.ts index 261f41e9498..5ca928318e2 100644 --- a/src/drives/item/items/item/workbook/functions/subtotal/index.ts +++ b/src/drives/item/items/item/workbook/functions/subtotal/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSubtotalPostRequestBody, serializeSubtotalPostRequestBody, type SubtotalPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSubtotalPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSubtotalPostRequestBody; +} +export function deserializeIntoSubtotalPostRequestBody(subtotalPostRequestBody: SubtotalPostRequestBody | undefined = {} as SubtotalPostRequestBody) : Record void> { + return { + "functionNum": n => { subtotalPostRequestBody.functionNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "values": n => { subtotalPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSubtotalPostRequestBody(writer: SerializationWriter, subtotalPostRequestBody: SubtotalPostRequestBody | undefined = {} as SubtotalPostRequestBody) : void { + writer.writeObjectValue("functionNum", subtotalPostRequestBody.functionNum, serializeJson); + writer.writeObjectValue("values", subtotalPostRequestBody.values, serializeJson); + writer.writeAdditionalData(subtotalPostRequestBody.additionalData); +} +export interface SubtotalPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The functionNum property + */ + functionNum?: Json; + /** + * The values property + */ + values?: Json; +} /** * Provides operations to call the subtotal method. */ diff --git a/src/drives/item/items/item/workbook/functions/subtotal/subtotalPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/subtotal/subtotalPostRequestBody.ts deleted file mode 100644 index 82820e51e99..00000000000 --- a/src/drives/item/items/item/workbook/functions/subtotal/subtotalPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSubtotalPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSubtotalPostRequestBody; -} -export function deserializeIntoSubtotalPostRequestBody(subtotalPostRequestBody: SubtotalPostRequestBody | undefined = {} as SubtotalPostRequestBody) : Record void> { - return { - "functionNum": n => { subtotalPostRequestBody.functionNum = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "values": n => { subtotalPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeSubtotalPostRequestBody(writer: SerializationWriter, subtotalPostRequestBody: SubtotalPostRequestBody | undefined = {} as SubtotalPostRequestBody) : void { - writer.writeObjectValue("functionNum", subtotalPostRequestBody.functionNum, serializeJson); - writer.writeObjectValue("values", subtotalPostRequestBody.values, serializeJson); - writer.writeAdditionalData(subtotalPostRequestBody.additionalData); -} -export interface SubtotalPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The functionNum property - */ - functionNum?: Json; - /** - * The values property - */ - values?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sum/index.ts b/src/drives/item/items/item/workbook/functions/sum/index.ts index b1874504f34..d8cafc30d95 100644 --- a/src/drives/item/items/item/workbook/functions/sum/index.ts +++ b/src/drives/item/items/item/workbook/functions/sum/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoSumPostRequestBody, serializeSumPostRequestBody, type SumPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSumPostRequestBody; +} +export function deserializeIntoSumPostRequestBody(sumPostRequestBody: SumPostRequestBody | undefined = {} as SumPostRequestBody) : Record void> { + return { + "values": n => { sumPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSumPostRequestBody(writer: SerializationWriter, sumPostRequestBody: SumPostRequestBody | undefined = {} as SumPostRequestBody) : void { + writer.writeObjectValue("values", sumPostRequestBody.values, serializeJson); + writer.writeAdditionalData(sumPostRequestBody.additionalData); +} +export interface SumPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} /** * Provides operations to call the sum method. */ diff --git a/src/drives/item/items/item/workbook/functions/sum/sumPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/sum/sumPostRequestBody.ts deleted file mode 100644 index a8099fbdf46..00000000000 --- a/src/drives/item/items/item/workbook/functions/sum/sumPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSumPostRequestBody; -} -export function deserializeIntoSumPostRequestBody(sumPostRequestBody: SumPostRequestBody | undefined = {} as SumPostRequestBody) : Record void> { - return { - "values": n => { sumPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeSumPostRequestBody(writer: SerializationWriter, sumPostRequestBody: SumPostRequestBody | undefined = {} as SumPostRequestBody) : void { - writer.writeObjectValue("values", sumPostRequestBody.values, serializeJson); - writer.writeAdditionalData(sumPostRequestBody.additionalData); -} -export interface SumPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sumIf/index.ts b/src/drives/item/items/item/workbook/functions/sumIf/index.ts index c05a0bda2e4..7c59ee8c686 100644 --- a/src/drives/item/items/item/workbook/functions/sumIf/index.ts +++ b/src/drives/item/items/item/workbook/functions/sumIf/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSumIfPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export interface SumIfPostRequestBody extends AdditionalDataHolder, Parsable { */ sumRange?: Json; } -/** - * Provides operations to call the sumIf method. - */ -export class SumIfRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SumIfRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumIf"); - }; - /** - * Invoke action sumIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SumIfPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action sumIf - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SumIfPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSumIfPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sumIfRequestBuilder - */ - public withUrl(rawUrl: string) : SumIfRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SumIfRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sumIfs/index.ts b/src/drives/item/items/item/workbook/functions/sumIfs/index.ts index c748ed478da..34cc84ca7aa 100644 --- a/src/drives/item/items/item/workbook/functions/sumIfs/index.ts +++ b/src/drives/item/items/item/workbook/functions/sumIfs/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSumIfsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export interface SumIfsPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the sumIfs method. - */ -export class SumIfsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SumIfsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumIfs"); - }; - /** - * Invoke action sumIfs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SumIfsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action sumIfs - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SumIfsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSumIfsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sumIfsRequestBuilder - */ - public withUrl(rawUrl: string) : SumIfsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SumIfsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/sumSq/index.ts b/src/drives/item/items/item/workbook/functions/sumSq/index.ts index 0ce02600ecd..97b95da210b 100644 --- a/src/drives/item/items/item/workbook/functions/sumSq/index.ts +++ b/src/drives/item/items/item/workbook/functions/sumSq/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSumSqPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface SumSqPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the sumSq method. - */ -export class SumSqRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SumSqRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumSq"); - }; - /** - * Invoke action sumSq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SumSqPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action sumSq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SumSqPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSumSqPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sumSqRequestBuilder - */ - public withUrl(rawUrl: string) : SumSqRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SumSqRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/syd/index.ts b/src/drives/item/items/item/workbook/functions/syd/index.ts index 85ec96bc1c1..834c3d4eb1e 100644 --- a/src/drives/item/items/item/workbook/functions/syd/index.ts +++ b/src/drives/item/items/item/workbook/functions/syd/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSydPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +45,5 @@ export interface SydPostRequestBody extends AdditionalDataHolder, Parsable { */ salvage?: Json; } -/** - * Provides operations to call the syd method. - */ -export class SydRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SydRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/syd"); - }; - /** - * Invoke action syd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: SydPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action syd - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SydPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSydPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sydRequestBuilder - */ - public withUrl(rawUrl: string) : SydRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SydRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/t/index.ts b/src/drives/item/items/item/workbook/functions/t/index.ts index 08b9e0dcdbf..308a2aacdfe 100644 --- a/src/drives/item/items/item/workbook/functions/t/index.ts +++ b/src/drives/item/items/item/workbook/functions/t/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface TPostRequestBody extends AdditionalDataHolder, Parsable { */ value?: Json; } -/** - * Provides operations to call the t method. - */ -export class TRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t"); - }; - /** - * Invoke action t - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: TPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action t - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tRequestBuilder - */ - public withUrl(rawUrl: string) : TRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/t_Dist/index.ts b/src/drives/item/items/item/workbook/functions/t_Dist/index.ts index c3cc1744d07..d6cafd8722f 100644 --- a/src/drives/item/items/item/workbook/functions/t_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/t_Dist/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoT_DistPostRequestBody, serializeT_DistPostRequestBody, type T_DistPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createT_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoT_DistPostRequestBody; +} +export function deserializeIntoT_DistPostRequestBody(t_DistPostRequestBody: T_DistPostRequestBody | undefined = {} as T_DistPostRequestBody) : Record void> { + return { + "cumulative": n => { t_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "degFreedom": n => { t_DistPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { t_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeT_DistPostRequestBody(writer: SerializationWriter, t_DistPostRequestBody: T_DistPostRequestBody | undefined = {} as T_DistPostRequestBody) : void { + writer.writeObjectValue("cumulative", t_DistPostRequestBody.cumulative, serializeJson); + writer.writeObjectValue("degFreedom", t_DistPostRequestBody.degFreedom, serializeJson); + writer.writeObjectValue("x", t_DistPostRequestBody.x, serializeJson); + writer.writeAdditionalData(t_DistPostRequestBody.additionalData); +} +export interface T_DistPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cumulative property + */ + cumulative?: Json; + /** + * The degFreedom property + */ + degFreedom?: Json; + /** + * The x property + */ + x?: Json; +} /** * Provides operations to call the t_Dist method. */ diff --git a/src/drives/item/items/item/workbook/functions/t_Dist/t_DistPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/t_Dist/t_DistPostRequestBody.ts deleted file mode 100644 index 83793f6afe1..00000000000 --- a/src/drives/item/items/item/workbook/functions/t_Dist/t_DistPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createT_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoT_DistPostRequestBody; -} -export function deserializeIntoT_DistPostRequestBody(t_DistPostRequestBody: T_DistPostRequestBody | undefined = {} as T_DistPostRequestBody) : Record void> { - return { - "cumulative": n => { t_DistPostRequestBody.cumulative = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "degFreedom": n => { t_DistPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { t_DistPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeT_DistPostRequestBody(writer: SerializationWriter, t_DistPostRequestBody: T_DistPostRequestBody | undefined = {} as T_DistPostRequestBody) : void { - writer.writeObjectValue("cumulative", t_DistPostRequestBody.cumulative, serializeJson); - writer.writeObjectValue("degFreedom", t_DistPostRequestBody.degFreedom, serializeJson); - writer.writeObjectValue("x", t_DistPostRequestBody.x, serializeJson); - writer.writeAdditionalData(t_DistPostRequestBody.additionalData); -} -export interface T_DistPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cumulative property - */ - cumulative?: Json; - /** - * The degFreedom property - */ - degFreedom?: Json; - /** - * The x property - */ - x?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/t_Dist_2T/index.ts b/src/drives/item/items/item/workbook/functions/t_Dist_2T/index.ts index 143f28d9be6..7cccb6d41f0 100644 --- a/src/drives/item/items/item/workbook/functions/t_Dist_2T/index.ts +++ b/src/drives/item/items/item/workbook/functions/t_Dist_2T/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoT_Dist_2TPostRequestBody, serializeT_Dist_2TPostRequestBody, type T_Dist_2TPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createT_Dist_2TPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoT_Dist_2TPostRequestBody; +} +export function deserializeIntoT_Dist_2TPostRequestBody(t_Dist_2TPostRequestBody: T_Dist_2TPostRequestBody | undefined = {} as T_Dist_2TPostRequestBody) : Record void> { + return { + "degFreedom": n => { t_Dist_2TPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { t_Dist_2TPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeT_Dist_2TPostRequestBody(writer: SerializationWriter, t_Dist_2TPostRequestBody: T_Dist_2TPostRequestBody | undefined = {} as T_Dist_2TPostRequestBody) : void { + writer.writeObjectValue("degFreedom", t_Dist_2TPostRequestBody.degFreedom, serializeJson); + writer.writeObjectValue("x", t_Dist_2TPostRequestBody.x, serializeJson); + writer.writeAdditionalData(t_Dist_2TPostRequestBody.additionalData); +} +export interface T_Dist_2TPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The degFreedom property + */ + degFreedom?: Json; + /** + * The x property + */ + x?: Json; +} /** * Provides operations to call the t_Dist_2T method. */ diff --git a/src/drives/item/items/item/workbook/functions/t_Dist_2T/t_Dist_2TPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/t_Dist_2T/t_Dist_2TPostRequestBody.ts deleted file mode 100644 index 3e5b83ccce4..00000000000 --- a/src/drives/item/items/item/workbook/functions/t_Dist_2T/t_Dist_2TPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createT_Dist_2TPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoT_Dist_2TPostRequestBody; -} -export function deserializeIntoT_Dist_2TPostRequestBody(t_Dist_2TPostRequestBody: T_Dist_2TPostRequestBody | undefined = {} as T_Dist_2TPostRequestBody) : Record void> { - return { - "degFreedom": n => { t_Dist_2TPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { t_Dist_2TPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeT_Dist_2TPostRequestBody(writer: SerializationWriter, t_Dist_2TPostRequestBody: T_Dist_2TPostRequestBody | undefined = {} as T_Dist_2TPostRequestBody) : void { - writer.writeObjectValue("degFreedom", t_Dist_2TPostRequestBody.degFreedom, serializeJson); - writer.writeObjectValue("x", t_Dist_2TPostRequestBody.x, serializeJson); - writer.writeAdditionalData(t_Dist_2TPostRequestBody.additionalData); -} -export interface T_Dist_2TPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The degFreedom property - */ - degFreedom?: Json; - /** - * The x property - */ - x?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/t_Dist_RT/index.ts b/src/drives/item/items/item/workbook/functions/t_Dist_RT/index.ts index 788051fba93..e4ff7445eb3 100644 --- a/src/drives/item/items/item/workbook/functions/t_Dist_RT/index.ts +++ b/src/drives/item/items/item/workbook/functions/t_Dist_RT/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createT_Dist_RTPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export interface T_Dist_RTPostRequestBody extends AdditionalDataHolder, Parsable */ x?: Json; } -/** - * Provides operations to call the t_Dist_RT method. - */ -export class T_Dist_RTRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new T_Dist_RTRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Dist_RT"); - }; - /** - * Invoke action t_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: T_Dist_RTPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action t_Dist_RT - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: T_Dist_RTPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeT_Dist_RTPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a t_Dist_RTRequestBuilder - */ - public withUrl(rawUrl: string) : T_Dist_RTRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new T_Dist_RTRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/t_Inv/index.ts b/src/drives/item/items/item/workbook/functions/t_Inv/index.ts index f3ec9e27457..4a67a5f4af7 100644 --- a/src/drives/item/items/item/workbook/functions/t_Inv/index.ts +++ b/src/drives/item/items/item/workbook/functions/t_Inv/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoT_InvPostRequestBody, serializeT_InvPostRequestBody, type T_InvPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createT_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoT_InvPostRequestBody; +} +export function deserializeIntoT_InvPostRequestBody(t_InvPostRequestBody: T_InvPostRequestBody | undefined = {} as T_InvPostRequestBody) : Record void> { + return { + "degFreedom": n => { t_InvPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probability": n => { t_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeT_InvPostRequestBody(writer: SerializationWriter, t_InvPostRequestBody: T_InvPostRequestBody | undefined = {} as T_InvPostRequestBody) : void { + writer.writeObjectValue("degFreedom", t_InvPostRequestBody.degFreedom, serializeJson); + writer.writeObjectValue("probability", t_InvPostRequestBody.probability, serializeJson); + writer.writeAdditionalData(t_InvPostRequestBody.additionalData); +} +export interface T_InvPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The degFreedom property + */ + degFreedom?: Json; + /** + * The probability property + */ + probability?: Json; +} /** * Provides operations to call the t_Inv method. */ diff --git a/src/drives/item/items/item/workbook/functions/t_Inv/t_InvPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/t_Inv/t_InvPostRequestBody.ts deleted file mode 100644 index f31c4e0b1fd..00000000000 --- a/src/drives/item/items/item/workbook/functions/t_Inv/t_InvPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createT_InvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoT_InvPostRequestBody; -} -export function deserializeIntoT_InvPostRequestBody(t_InvPostRequestBody: T_InvPostRequestBody | undefined = {} as T_InvPostRequestBody) : Record void> { - return { - "degFreedom": n => { t_InvPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probability": n => { t_InvPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeT_InvPostRequestBody(writer: SerializationWriter, t_InvPostRequestBody: T_InvPostRequestBody | undefined = {} as T_InvPostRequestBody) : void { - writer.writeObjectValue("degFreedom", t_InvPostRequestBody.degFreedom, serializeJson); - writer.writeObjectValue("probability", t_InvPostRequestBody.probability, serializeJson); - writer.writeAdditionalData(t_InvPostRequestBody.additionalData); -} -export interface T_InvPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The degFreedom property - */ - degFreedom?: Json; - /** - * The probability property - */ - probability?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/t_Inv_2T/index.ts b/src/drives/item/items/item/workbook/functions/t_Inv_2T/index.ts index 205f0735e16..f5057711d80 100644 --- a/src/drives/item/items/item/workbook/functions/t_Inv_2T/index.ts +++ b/src/drives/item/items/item/workbook/functions/t_Inv_2T/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoT_Inv_2TPostRequestBody, serializeT_Inv_2TPostRequestBody, type T_Inv_2TPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createT_Inv_2TPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoT_Inv_2TPostRequestBody; +} +export function deserializeIntoT_Inv_2TPostRequestBody(t_Inv_2TPostRequestBody: T_Inv_2TPostRequestBody | undefined = {} as T_Inv_2TPostRequestBody) : Record void> { + return { + "degFreedom": n => { t_Inv_2TPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "probability": n => { t_Inv_2TPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeT_Inv_2TPostRequestBody(writer: SerializationWriter, t_Inv_2TPostRequestBody: T_Inv_2TPostRequestBody | undefined = {} as T_Inv_2TPostRequestBody) : void { + writer.writeObjectValue("degFreedom", t_Inv_2TPostRequestBody.degFreedom, serializeJson); + writer.writeObjectValue("probability", t_Inv_2TPostRequestBody.probability, serializeJson); + writer.writeAdditionalData(t_Inv_2TPostRequestBody.additionalData); +} +export interface T_Inv_2TPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The degFreedom property + */ + degFreedom?: Json; + /** + * The probability property + */ + probability?: Json; +} /** * Provides operations to call the t_Inv_2T method. */ diff --git a/src/drives/item/items/item/workbook/functions/t_Inv_2T/t_Inv_2TPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/t_Inv_2T/t_Inv_2TPostRequestBody.ts deleted file mode 100644 index 3bb1bcf720e..00000000000 --- a/src/drives/item/items/item/workbook/functions/t_Inv_2T/t_Inv_2TPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createT_Inv_2TPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoT_Inv_2TPostRequestBody; -} -export function deserializeIntoT_Inv_2TPostRequestBody(t_Inv_2TPostRequestBody: T_Inv_2TPostRequestBody | undefined = {} as T_Inv_2TPostRequestBody) : Record void> { - return { - "degFreedom": n => { t_Inv_2TPostRequestBody.degFreedom = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "probability": n => { t_Inv_2TPostRequestBody.probability = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeT_Inv_2TPostRequestBody(writer: SerializationWriter, t_Inv_2TPostRequestBody: T_Inv_2TPostRequestBody | undefined = {} as T_Inv_2TPostRequestBody) : void { - writer.writeObjectValue("degFreedom", t_Inv_2TPostRequestBody.degFreedom, serializeJson); - writer.writeObjectValue("probability", t_Inv_2TPostRequestBody.probability, serializeJson); - writer.writeAdditionalData(t_Inv_2TPostRequestBody.additionalData); -} -export interface T_Inv_2TPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The degFreedom property - */ - degFreedom?: Json; - /** - * The probability property - */ - probability?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/tan/index.ts b/src/drives/item/items/item/workbook/functions/tan/index.ts index 26a465ae46c..5bec3dcf5c2 100644 --- a/src/drives/item/items/item/workbook/functions/tan/index.ts +++ b/src/drives/item/items/item/workbook/functions/tan/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoTanPostRequestBody, serializeTanPostRequestBody, type TanPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTanPostRequestBody; +} +export function deserializeIntoTanPostRequestBody(tanPostRequestBody: TanPostRequestBody | undefined = {} as TanPostRequestBody) : Record void> { + return { + "number": n => { tanPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeTanPostRequestBody(writer: SerializationWriter, tanPostRequestBody: TanPostRequestBody | undefined = {} as TanPostRequestBody) : void { + writer.writeObjectValue("number", tanPostRequestBody.number, serializeJson); + writer.writeAdditionalData(tanPostRequestBody.additionalData); +} +export interface TanPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; +} /** * Provides operations to call the tan method. */ diff --git a/src/drives/item/items/item/workbook/functions/tan/tanPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/tan/tanPostRequestBody.ts deleted file mode 100644 index 6e2987dcf0e..00000000000 --- a/src/drives/item/items/item/workbook/functions/tan/tanPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTanPostRequestBody; -} -export function deserializeIntoTanPostRequestBody(tanPostRequestBody: TanPostRequestBody | undefined = {} as TanPostRequestBody) : Record void> { - return { - "number": n => { tanPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeTanPostRequestBody(writer: SerializationWriter, tanPostRequestBody: TanPostRequestBody | undefined = {} as TanPostRequestBody) : void { - writer.writeObjectValue("number", tanPostRequestBody.number, serializeJson); - writer.writeAdditionalData(tanPostRequestBody.additionalData); -} -export interface TanPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/tanh/index.ts b/src/drives/item/items/item/workbook/functions/tanh/index.ts index e8b8997074f..52be7dfcad7 100644 --- a/src/drives/item/items/item/workbook/functions/tanh/index.ts +++ b/src/drives/item/items/item/workbook/functions/tanh/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTanhPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface TanhPostRequestBody extends AdditionalDataHolder, Parsable { */ number?: Json; } -/** - * Provides operations to call the tanh method. - */ -export class TanhRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TanhRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tanh"); - }; - /** - * Invoke action tanh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: TanhPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action tanh - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TanhPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTanhPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tanhRequestBuilder - */ - public withUrl(rawUrl: string) : TanhRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TanhRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/tbillEq/index.ts b/src/drives/item/items/item/workbook/functions/tbillEq/index.ts index 95336d5abfc..60afcfce1e8 100644 --- a/src/drives/item/items/item/workbook/functions/tbillEq/index.ts +++ b/src/drives/item/items/item/workbook/functions/tbillEq/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTbillEqPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export interface TbillEqPostRequestBody extends AdditionalDataHolder, Parsable { */ settlement?: Json; } -/** - * Provides operations to call the tbillEq method. - */ -export class TbillEqRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TbillEqRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tbillEq"); - }; - /** - * Invoke action tbillEq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: TbillEqPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action tbillEq - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TbillEqPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTbillEqPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tbillEqRequestBuilder - */ - public withUrl(rawUrl: string) : TbillEqRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TbillEqRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/tbillPrice/index.ts b/src/drives/item/items/item/workbook/functions/tbillPrice/index.ts index 4aff8988b79..7a67893d9a6 100644 --- a/src/drives/item/items/item/workbook/functions/tbillPrice/index.ts +++ b/src/drives/item/items/item/workbook/functions/tbillPrice/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTbillPricePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export interface TbillPricePostRequestBody extends AdditionalDataHolder, Parsabl */ settlement?: Json; } -/** - * Provides operations to call the tbillPrice method. - */ -export class TbillPriceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TbillPriceRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tbillPrice"); - }; - /** - * Invoke action tbillPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: TbillPricePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action tbillPrice - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TbillPricePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTbillPricePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tbillPriceRequestBuilder - */ - public withUrl(rawUrl: string) : TbillPriceRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TbillPriceRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/tbillYield/index.ts b/src/drives/item/items/item/workbook/functions/tbillYield/index.ts index 11efa5a0c59..175a6170bc9 100644 --- a/src/drives/item/items/item/workbook/functions/tbillYield/index.ts +++ b/src/drives/item/items/item/workbook/functions/tbillYield/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoTbillYieldPostRequestBody, serializeTbillYieldPostRequestBody, type TbillYieldPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTbillYieldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTbillYieldPostRequestBody; +} +export function deserializeIntoTbillYieldPostRequestBody(tbillYieldPostRequestBody: TbillYieldPostRequestBody | undefined = {} as TbillYieldPostRequestBody) : Record void> { + return { + "maturity": n => { tbillYieldPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pr": n => { tbillYieldPostRequestBody.pr = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { tbillYieldPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeTbillYieldPostRequestBody(writer: SerializationWriter, tbillYieldPostRequestBody: TbillYieldPostRequestBody | undefined = {} as TbillYieldPostRequestBody) : void { + writer.writeObjectValue("maturity", tbillYieldPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("pr", tbillYieldPostRequestBody.pr, serializeJson); + writer.writeObjectValue("settlement", tbillYieldPostRequestBody.settlement, serializeJson); + writer.writeAdditionalData(tbillYieldPostRequestBody.additionalData); +} +export interface TbillYieldPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The maturity property + */ + maturity?: Json; + /** + * The pr property + */ + pr?: Json; + /** + * The settlement property + */ + settlement?: Json; +} /** * Provides operations to call the tbillYield method. */ diff --git a/src/drives/item/items/item/workbook/functions/tbillYield/tbillYieldPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/tbillYield/tbillYieldPostRequestBody.ts deleted file mode 100644 index 7f1c5c6b9b6..00000000000 --- a/src/drives/item/items/item/workbook/functions/tbillYield/tbillYieldPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTbillYieldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTbillYieldPostRequestBody; -} -export function deserializeIntoTbillYieldPostRequestBody(tbillYieldPostRequestBody: TbillYieldPostRequestBody | undefined = {} as TbillYieldPostRequestBody) : Record void> { - return { - "maturity": n => { tbillYieldPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pr": n => { tbillYieldPostRequestBody.pr = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { tbillYieldPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeTbillYieldPostRequestBody(writer: SerializationWriter, tbillYieldPostRequestBody: TbillYieldPostRequestBody | undefined = {} as TbillYieldPostRequestBody) : void { - writer.writeObjectValue("maturity", tbillYieldPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("pr", tbillYieldPostRequestBody.pr, serializeJson); - writer.writeObjectValue("settlement", tbillYieldPostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(tbillYieldPostRequestBody.additionalData); -} -export interface TbillYieldPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The maturity property - */ - maturity?: Json; - /** - * The pr property - */ - pr?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/text/index.ts b/src/drives/item/items/item/workbook/functions/text/index.ts index 98c1e71bc5b..afd33384d1f 100644 --- a/src/drives/item/items/item/workbook/functions/text/index.ts +++ b/src/drives/item/items/item/workbook/functions/text/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTextPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export interface TextPostRequestBody extends AdditionalDataHolder, Parsable { */ value?: Json; } -/** - * Provides operations to call the text method. - */ -export class TextRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TextRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/text"); - }; - /** - * Invoke action text - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: TextPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action text - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TextPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTextPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a textRequestBuilder - */ - public withUrl(rawUrl: string) : TextRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TextRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/time/index.ts b/src/drives/item/items/item/workbook/functions/time/index.ts index dffc1849050..a1c848023a1 100644 --- a/src/drives/item/items/item/workbook/functions/time/index.ts +++ b/src/drives/item/items/item/workbook/functions/time/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoTimePostRequestBody, serializeTimePostRequestBody, type TimePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTimePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTimePostRequestBody; +} +export function deserializeIntoTimePostRequestBody(timePostRequestBody: TimePostRequestBody | undefined = {} as TimePostRequestBody) : Record void> { + return { + "hour": n => { timePostRequestBody.hour = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "minute": n => { timePostRequestBody.minute = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "second": n => { timePostRequestBody.second = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeTimePostRequestBody(writer: SerializationWriter, timePostRequestBody: TimePostRequestBody | undefined = {} as TimePostRequestBody) : void { + writer.writeObjectValue("hour", timePostRequestBody.hour, serializeJson); + writer.writeObjectValue("minute", timePostRequestBody.minute, serializeJson); + writer.writeObjectValue("second", timePostRequestBody.second, serializeJson); + writer.writeAdditionalData(timePostRequestBody.additionalData); +} +export interface TimePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The hour property + */ + hour?: Json; + /** + * The minute property + */ + minute?: Json; + /** + * The second property + */ + second?: Json; +} /** * Provides operations to call the time method. */ diff --git a/src/drives/item/items/item/workbook/functions/time/timePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/time/timePostRequestBody.ts deleted file mode 100644 index f586ec7344a..00000000000 --- a/src/drives/item/items/item/workbook/functions/time/timePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTimePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTimePostRequestBody; -} -export function deserializeIntoTimePostRequestBody(timePostRequestBody: TimePostRequestBody | undefined = {} as TimePostRequestBody) : Record void> { - return { - "hour": n => { timePostRequestBody.hour = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "minute": n => { timePostRequestBody.minute = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "second": n => { timePostRequestBody.second = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeTimePostRequestBody(writer: SerializationWriter, timePostRequestBody: TimePostRequestBody | undefined = {} as TimePostRequestBody) : void { - writer.writeObjectValue("hour", timePostRequestBody.hour, serializeJson); - writer.writeObjectValue("minute", timePostRequestBody.minute, serializeJson); - writer.writeObjectValue("second", timePostRequestBody.second, serializeJson); - writer.writeAdditionalData(timePostRequestBody.additionalData); -} -export interface TimePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The hour property - */ - hour?: Json; - /** - * The minute property - */ - minute?: Json; - /** - * The second property - */ - second?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/timevalue/index.ts b/src/drives/item/items/item/workbook/functions/timevalue/index.ts index 45b07c8134f..0fc884f9a01 100644 --- a/src/drives/item/items/item/workbook/functions/timevalue/index.ts +++ b/src/drives/item/items/item/workbook/functions/timevalue/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTimevaluePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -27,5 +30,57 @@ export interface TimevaluePostRequestBody extends AdditionalDataHolder, Parsable */ timeText?: Json; } +/** + * Provides operations to call the timevalue method. + */ +export class TimevalueRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TimevalueRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/timevalue"); + }; + /** + * Invoke action timevalue + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: TimevaluePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action timevalue + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: TimevaluePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTimevaluePostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a timevalueRequestBuilder + */ + public withUrl(rawUrl: string) : TimevalueRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new TimevalueRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/timevalue/timevaluePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/timevalue/timevaluePostRequestBody.ts deleted file mode 100644 index 99a85b85bf4..00000000000 --- a/src/drives/item/items/item/workbook/functions/timevalue/timevaluePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTimevaluePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTimevaluePostRequestBody; -} -export function deserializeIntoTimevaluePostRequestBody(timevaluePostRequestBody: TimevaluePostRequestBody | undefined = {} as TimevaluePostRequestBody) : Record void> { - return { - "timeText": n => { timevaluePostRequestBody.timeText = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeTimevaluePostRequestBody(writer: SerializationWriter, timevaluePostRequestBody: TimevaluePostRequestBody | undefined = {} as TimevaluePostRequestBody) : void { - writer.writeObjectValue("timeText", timevaluePostRequestBody.timeText, serializeJson); - writer.writeAdditionalData(timevaluePostRequestBody.additionalData); -} -export interface TimevaluePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The timeText property - */ - timeText?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/today/index.ts b/src/drives/item/items/item/workbook/functions/today/index.ts index cf1bac8e654..a2cf0691fca 100644 --- a/src/drives/item/items/item/workbook/functions/today/index.ts +++ b/src/drives/item/items/item/workbook/functions/today/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookFunctionResult } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type WorkbookFunctionResult } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue } from '../../../../../../../models/workbookFunctionResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/functions/trim/index.ts b/src/drives/item/items/item/workbook/functions/trim/index.ts index cd2584b0d55..113425571f6 100644 --- a/src/drives/item/items/item/workbook/functions/trim/index.ts +++ b/src/drives/item/items/item/workbook/functions/trim/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTrimPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface TrimPostRequestBody extends AdditionalDataHolder, Parsable { */ text?: Json; } -/** - * Provides operations to call the trim method. - */ -export class TrimRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TrimRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/trim"); - }; - /** - * Invoke action trim - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: TrimPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action trim - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TrimPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTrimPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a trimRequestBuilder - */ - public withUrl(rawUrl: string) : TrimRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TrimRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/trimMean/index.ts b/src/drives/item/items/item/workbook/functions/trimMean/index.ts index 074985f0a58..c08ab5cbcc2 100644 --- a/src/drives/item/items/item/workbook/functions/trimMean/index.ts +++ b/src/drives/item/items/item/workbook/functions/trimMean/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTrimMeanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export interface TrimMeanPostRequestBody extends AdditionalDataHolder, Parsable */ percent?: Json; } -/** - * Provides operations to call the trimMean method. - */ -export class TrimMeanRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TrimMeanRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/trimMean"); - }; - /** - * Invoke action trimMean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: TrimMeanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action trimMean - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TrimMeanPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTrimMeanPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a trimMeanRequestBuilder - */ - public withUrl(rawUrl: string) : TrimMeanRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TrimMeanRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/trueEscaped/index.ts b/src/drives/item/items/item/workbook/functions/trueEscaped/index.ts index f1790875557..eeef70d54b4 100644 --- a/src/drives/item/items/item/workbook/functions/trueEscaped/index.ts +++ b/src/drives/item/items/item/workbook/functions/trueEscaped/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookFunctionResult } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type WorkbookFunctionResult } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue } from '../../../../../../../models/workbookFunctionResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/functions/trunc/index.ts b/src/drives/item/items/item/workbook/functions/trunc/index.ts index 129f88f9d33..19cc854e1cf 100644 --- a/src/drives/item/items/item/workbook/functions/trunc/index.ts +++ b/src/drives/item/items/item/workbook/functions/trunc/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoTruncPostRequestBody, serializeTruncPostRequestBody, type TruncPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTruncPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTruncPostRequestBody; +} +export function deserializeIntoTruncPostRequestBody(truncPostRequestBody: TruncPostRequestBody | undefined = {} as TruncPostRequestBody) : Record void> { + return { + "number": n => { truncPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "numDigits": n => { truncPostRequestBody.numDigits = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeTruncPostRequestBody(writer: SerializationWriter, truncPostRequestBody: TruncPostRequestBody | undefined = {} as TruncPostRequestBody) : void { + writer.writeObjectValue("number", truncPostRequestBody.number, serializeJson); + writer.writeObjectValue("numDigits", truncPostRequestBody.numDigits, serializeJson); + writer.writeAdditionalData(truncPostRequestBody.additionalData); +} +export interface TruncPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The number property + */ + number?: Json; + /** + * The numDigits property + */ + numDigits?: Json; +} /** * Provides operations to call the trunc method. */ diff --git a/src/drives/item/items/item/workbook/functions/trunc/truncPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/trunc/truncPostRequestBody.ts deleted file mode 100644 index 1521787931e..00000000000 --- a/src/drives/item/items/item/workbook/functions/trunc/truncPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTruncPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTruncPostRequestBody; -} -export function deserializeIntoTruncPostRequestBody(truncPostRequestBody: TruncPostRequestBody | undefined = {} as TruncPostRequestBody) : Record void> { - return { - "number": n => { truncPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "numDigits": n => { truncPostRequestBody.numDigits = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeTruncPostRequestBody(writer: SerializationWriter, truncPostRequestBody: TruncPostRequestBody | undefined = {} as TruncPostRequestBody) : void { - writer.writeObjectValue("number", truncPostRequestBody.number, serializeJson); - writer.writeObjectValue("numDigits", truncPostRequestBody.numDigits, serializeJson); - writer.writeAdditionalData(truncPostRequestBody.additionalData); -} -export interface TruncPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; - /** - * The numDigits property - */ - numDigits?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/type/index.ts b/src/drives/item/items/item/workbook/functions/type/index.ts index 51eb2409911..2dff4e19b22 100644 --- a/src/drives/item/items/item/workbook/functions/type/index.ts +++ b/src/drives/item/items/item/workbook/functions/type/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTypePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface TypePostRequestBody extends AdditionalDataHolder, Parsable { */ value?: Json; } -/** - * Provides operations to call the type method. - */ -export class TypeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TypeRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/type"); - }; - /** - * Invoke action type - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: TypePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action type - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TypePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTypePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a typeRequestBuilder - */ - public withUrl(rawUrl: string) : TypeRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TypeRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/unichar/index.ts b/src/drives/item/items/item/workbook/functions/unichar/index.ts index 90a77d7e300..302f46d6034 100644 --- a/src/drives/item/items/item/workbook/functions/unichar/index.ts +++ b/src/drives/item/items/item/workbook/functions/unichar/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createUnicharPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -27,5 +30,57 @@ export interface UnicharPostRequestBody extends AdditionalDataHolder, Parsable { */ number?: Json; } +/** + * Provides operations to call the unichar method. + */ +export class UnicharRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new UnicharRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/unichar"); + }; + /** + * Invoke action unichar + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: UnicharPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action unichar + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: UnicharPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUnicharPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a unicharRequestBuilder + */ + public withUrl(rawUrl: string) : UnicharRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new UnicharRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/unichar/unicharPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/unichar/unicharPostRequestBody.ts deleted file mode 100644 index 1495c04ac86..00000000000 --- a/src/drives/item/items/item/workbook/functions/unichar/unicharPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnicharPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnicharPostRequestBody; -} -export function deserializeIntoUnicharPostRequestBody(unicharPostRequestBody: UnicharPostRequestBody | undefined = {} as UnicharPostRequestBody) : Record void> { - return { - "number": n => { unicharPostRequestBody.number = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeUnicharPostRequestBody(writer: SerializationWriter, unicharPostRequestBody: UnicharPostRequestBody | undefined = {} as UnicharPostRequestBody) : void { - writer.writeObjectValue("number", unicharPostRequestBody.number, serializeJson); - writer.writeAdditionalData(unicharPostRequestBody.additionalData); -} -export interface UnicharPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The number property - */ - number?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/unicode/index.ts b/src/drives/item/items/item/workbook/functions/unicode/index.ts index 4b9a14853a4..498a875d633 100644 --- a/src/drives/item/items/item/workbook/functions/unicode/index.ts +++ b/src/drives/item/items/item/workbook/functions/unicode/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoUnicodePostRequestBody, serializeUnicodePostRequestBody, type UnicodePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnicodePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnicodePostRequestBody; +} +export function deserializeIntoUnicodePostRequestBody(unicodePostRequestBody: UnicodePostRequestBody | undefined = {} as UnicodePostRequestBody) : Record void> { + return { + "text": n => { unicodePostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeUnicodePostRequestBody(writer: SerializationWriter, unicodePostRequestBody: UnicodePostRequestBody | undefined = {} as UnicodePostRequestBody) : void { + writer.writeObjectValue("text", unicodePostRequestBody.text, serializeJson); + writer.writeAdditionalData(unicodePostRequestBody.additionalData); +} +export interface UnicodePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The text property + */ + text?: Json; +} /** * Provides operations to call the unicode method. */ diff --git a/src/drives/item/items/item/workbook/functions/unicode/unicodePostRequestBody.ts b/src/drives/item/items/item/workbook/functions/unicode/unicodePostRequestBody.ts deleted file mode 100644 index 8e0e446f561..00000000000 --- a/src/drives/item/items/item/workbook/functions/unicode/unicodePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnicodePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnicodePostRequestBody; -} -export function deserializeIntoUnicodePostRequestBody(unicodePostRequestBody: UnicodePostRequestBody | undefined = {} as UnicodePostRequestBody) : Record void> { - return { - "text": n => { unicodePostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeUnicodePostRequestBody(writer: SerializationWriter, unicodePostRequestBody: UnicodePostRequestBody | undefined = {} as UnicodePostRequestBody) : void { - writer.writeObjectValue("text", unicodePostRequestBody.text, serializeJson); - writer.writeAdditionalData(unicodePostRequestBody.additionalData); -} -export interface UnicodePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The text property - */ - text?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/upper/index.ts b/src/drives/item/items/item/workbook/functions/upper/index.ts index 37a32780166..7a13f796578 100644 --- a/src/drives/item/items/item/workbook/functions/upper/index.ts +++ b/src/drives/item/items/item/workbook/functions/upper/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoUpperPostRequestBody, serializeUpperPostRequestBody, type UpperPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpperPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpperPostRequestBody; +} +export function deserializeIntoUpperPostRequestBody(upperPostRequestBody: UpperPostRequestBody | undefined = {} as UpperPostRequestBody) : Record void> { + return { + "text": n => { upperPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeUpperPostRequestBody(writer: SerializationWriter, upperPostRequestBody: UpperPostRequestBody | undefined = {} as UpperPostRequestBody) : void { + writer.writeObjectValue("text", upperPostRequestBody.text, serializeJson); + writer.writeAdditionalData(upperPostRequestBody.additionalData); +} +export interface UpperPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The text property + */ + text?: Json; +} /** * Provides operations to call the upper method. */ diff --git a/src/drives/item/items/item/workbook/functions/upper/upperPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/upper/upperPostRequestBody.ts deleted file mode 100644 index f4bb696eeb9..00000000000 --- a/src/drives/item/items/item/workbook/functions/upper/upperPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpperPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpperPostRequestBody; -} -export function deserializeIntoUpperPostRequestBody(upperPostRequestBody: UpperPostRequestBody | undefined = {} as UpperPostRequestBody) : Record void> { - return { - "text": n => { upperPostRequestBody.text = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeUpperPostRequestBody(writer: SerializationWriter, upperPostRequestBody: UpperPostRequestBody | undefined = {} as UpperPostRequestBody) : void { - writer.writeObjectValue("text", upperPostRequestBody.text, serializeJson); - writer.writeAdditionalData(upperPostRequestBody.additionalData); -} -export interface UpperPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The text property - */ - text?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/usdollar/index.ts b/src/drives/item/items/item/workbook/functions/usdollar/index.ts index 9017f0ba17e..1be7263f5bf 100644 --- a/src/drives/item/items/item/workbook/functions/usdollar/index.ts +++ b/src/drives/item/items/item/workbook/functions/usdollar/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createUsdollarPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export interface UsdollarPostRequestBody extends AdditionalDataHolder, Parsable */ number?: Json; } -/** - * Provides operations to call the usdollar method. - */ -export class UsdollarRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new UsdollarRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/usdollar"); - }; - /** - * Invoke action usdollar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: UsdollarPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action usdollar - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: UsdollarPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUsdollarPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a usdollarRequestBuilder - */ - public withUrl(rawUrl: string) : UsdollarRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new UsdollarRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/value/index.ts b/src/drives/item/items/item/workbook/functions/value/index.ts index e3db2ae4457..fc89dde324e 100644 --- a/src/drives/item/items/item/workbook/functions/value/index.ts +++ b/src/drives/item/items/item/workbook/functions/value/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createValuePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface ValuePostRequestBody extends AdditionalDataHolder, Parsable { */ text?: Json; } -/** - * Provides operations to call the value method. - */ -export class ValueRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValueRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/value"); - }; - /** - * Invoke action value - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: ValuePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action value - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValuePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValuePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a valueRequestBuilder - */ - public withUrl(rawUrl: string) : ValueRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValueRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/varA/index.ts b/src/drives/item/items/item/workbook/functions/varA/index.ts index 954ffdda665..6e9355a784c 100644 --- a/src/drives/item/items/item/workbook/functions/varA/index.ts +++ b/src/drives/item/items/item/workbook/functions/varA/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createVarAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface VarAPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the varA method. - */ -export class VarARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new VarARequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/varA"); - }; - /** - * Invoke action varA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: VarAPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action varA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: VarAPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeVarAPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a varARequestBuilder - */ - public withUrl(rawUrl: string) : VarARequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new VarARequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/varPA/index.ts b/src/drives/item/items/item/workbook/functions/varPA/index.ts index abaea3e7998..8bdeeb1bd27 100644 --- a/src/drives/item/items/item/workbook/functions/varPA/index.ts +++ b/src/drives/item/items/item/workbook/functions/varPA/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createVarPAPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface VarPAPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the varPA method. - */ -export class VarPARequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new VarPARequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/varPA"); - }; - /** - * Invoke action varPA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: VarPAPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action varPA - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: VarPAPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeVarPAPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a varPARequestBuilder - */ - public withUrl(rawUrl: string) : VarPARequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new VarPARequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/var_P/index.ts b/src/drives/item/items/item/workbook/functions/var_P/index.ts index fd5f27cd6a2..44058fe0b41 100644 --- a/src/drives/item/items/item/workbook/functions/var_P/index.ts +++ b/src/drives/item/items/item/workbook/functions/var_P/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createVar_PPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface Var_PPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the var_P method. - */ -export class Var_PRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Var_PRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/var_P"); - }; - /** - * Invoke action var_P - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Var_PPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action var_P - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Var_PPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeVar_PPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a var_PRequestBuilder - */ - public withUrl(rawUrl: string) : Var_PRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Var_PRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/var_S/index.ts b/src/drives/item/items/item/workbook/functions/var_S/index.ts index 2a3d1ac3c39..cfaad346b0a 100644 --- a/src/drives/item/items/item/workbook/functions/var_S/index.ts +++ b/src/drives/item/items/item/workbook/functions/var_S/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createVar_SPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,57 +27,5 @@ export interface Var_SPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the var_S method. - */ -export class Var_SRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Var_SRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/var_S"); - }; - /** - * Invoke action var_S - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Var_SPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action var_S - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Var_SPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeVar_SPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a var_SRequestBuilder - */ - public withUrl(rawUrl: string) : Var_SRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Var_SRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/vdb/index.ts b/src/drives/item/items/item/workbook/functions/vdb/index.ts index b231603505e..48c76e09b0b 100644 --- a/src/drives/item/items/item/workbook/functions/vdb/index.ts +++ b/src/drives/item/items/item/workbook/functions/vdb/index.ts @@ -1,12 +1,71 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoVdbPostRequestBody, serializeVdbPostRequestBody, type VdbPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createVdbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoVdbPostRequestBody; +} +export function deserializeIntoVdbPostRequestBody(vdbPostRequestBody: VdbPostRequestBody | undefined = {} as VdbPostRequestBody) : Record void> { + return { + "cost": n => { vdbPostRequestBody.cost = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "endPeriod": n => { vdbPostRequestBody.endPeriod = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "factor": n => { vdbPostRequestBody.factor = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "life": n => { vdbPostRequestBody.life = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "noSwitch": n => { vdbPostRequestBody.noSwitch = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "salvage": n => { vdbPostRequestBody.salvage = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startPeriod": n => { vdbPostRequestBody.startPeriod = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeVdbPostRequestBody(writer: SerializationWriter, vdbPostRequestBody: VdbPostRequestBody | undefined = {} as VdbPostRequestBody) : void { + writer.writeObjectValue("cost", vdbPostRequestBody.cost, serializeJson); + writer.writeObjectValue("endPeriod", vdbPostRequestBody.endPeriod, serializeJson); + writer.writeObjectValue("factor", vdbPostRequestBody.factor, serializeJson); + writer.writeObjectValue("life", vdbPostRequestBody.life, serializeJson); + writer.writeObjectValue("noSwitch", vdbPostRequestBody.noSwitch, serializeJson); + writer.writeObjectValue("salvage", vdbPostRequestBody.salvage, serializeJson); + writer.writeObjectValue("startPeriod", vdbPostRequestBody.startPeriod, serializeJson); + writer.writeAdditionalData(vdbPostRequestBody.additionalData); +} +export interface VdbPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cost property + */ + cost?: Json; + /** + * The endPeriod property + */ + endPeriod?: Json; + /** + * The factor property + */ + factor?: Json; + /** + * The life property + */ + life?: Json; + /** + * The noSwitch property + */ + noSwitch?: Json; + /** + * The salvage property + */ + salvage?: Json; + /** + * The startPeriod property + */ + startPeriod?: Json; +} /** * Provides operations to call the vdb method. */ diff --git a/src/drives/item/items/item/workbook/functions/vdb/vdbPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/vdb/vdbPostRequestBody.ts deleted file mode 100644 index 998d48eb684..00000000000 --- a/src/drives/item/items/item/workbook/functions/vdb/vdbPostRequestBody.ts +++ /dev/null @@ -1,67 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createVdbPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoVdbPostRequestBody; -} -export function deserializeIntoVdbPostRequestBody(vdbPostRequestBody: VdbPostRequestBody | undefined = {} as VdbPostRequestBody) : Record void> { - return { - "cost": n => { vdbPostRequestBody.cost = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "endPeriod": n => { vdbPostRequestBody.endPeriod = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "factor": n => { vdbPostRequestBody.factor = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "life": n => { vdbPostRequestBody.life = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "noSwitch": n => { vdbPostRequestBody.noSwitch = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "salvage": n => { vdbPostRequestBody.salvage = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startPeriod": n => { vdbPostRequestBody.startPeriod = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeVdbPostRequestBody(writer: SerializationWriter, vdbPostRequestBody: VdbPostRequestBody | undefined = {} as VdbPostRequestBody) : void { - writer.writeObjectValue("cost", vdbPostRequestBody.cost, serializeJson); - writer.writeObjectValue("endPeriod", vdbPostRequestBody.endPeriod, serializeJson); - writer.writeObjectValue("factor", vdbPostRequestBody.factor, serializeJson); - writer.writeObjectValue("life", vdbPostRequestBody.life, serializeJson); - writer.writeObjectValue("noSwitch", vdbPostRequestBody.noSwitch, serializeJson); - writer.writeObjectValue("salvage", vdbPostRequestBody.salvage, serializeJson); - writer.writeObjectValue("startPeriod", vdbPostRequestBody.startPeriod, serializeJson); - writer.writeAdditionalData(vdbPostRequestBody.additionalData); -} -export interface VdbPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cost property - */ - cost?: Json; - /** - * The endPeriod property - */ - endPeriod?: Json; - /** - * The factor property - */ - factor?: Json; - /** - * The life property - */ - life?: Json; - /** - * The noSwitch property - */ - noSwitch?: Json; - /** - * The salvage property - */ - salvage?: Json; - /** - * The startPeriod property - */ - startPeriod?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/vlookup/index.ts b/src/drives/item/items/item/workbook/functions/vlookup/index.ts index 3c4f9f2de2d..a40861b980b 100644 --- a/src/drives/item/items/item/workbook/functions/vlookup/index.ts +++ b/src/drives/item/items/item/workbook/functions/vlookup/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createVlookupPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +45,5 @@ export interface VlookupPostRequestBody extends AdditionalDataHolder, Parsable { */ tableArray?: Json; } -/** - * Provides operations to call the vlookup method. - */ -export class VlookupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new VlookupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/vlookup"); - }; - /** - * Invoke action vlookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: VlookupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action vlookup - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: VlookupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeVlookupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a vlookupRequestBuilder - */ - public withUrl(rawUrl: string) : VlookupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new VlookupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/weekNum/index.ts b/src/drives/item/items/item/workbook/functions/weekNum/index.ts index 5026a0e44f2..7c6514cb169 100644 --- a/src/drives/item/items/item/workbook/functions/weekNum/index.ts +++ b/src/drives/item/items/item/workbook/functions/weekNum/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createWeekNumPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export interface WeekNumPostRequestBody extends AdditionalDataHolder, Parsable { */ serialNumber?: Json; } -/** - * Provides operations to call the weekNum method. - */ -export class WeekNumRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new WeekNumRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weekNum"); - }; - /** - * Invoke action weekNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: WeekNumPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action weekNum - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: WeekNumPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWeekNumPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a weekNumRequestBuilder - */ - public withUrl(rawUrl: string) : WeekNumRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new WeekNumRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/weekday/index.ts b/src/drives/item/items/item/workbook/functions/weekday/index.ts index 941cf8171f1..170f9dc6449 100644 --- a/src/drives/item/items/item/workbook/functions/weekday/index.ts +++ b/src/drives/item/items/item/workbook/functions/weekday/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createWeekdayPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -36,57 +33,5 @@ export interface WeekdayPostRequestBody extends AdditionalDataHolder, Parsable { */ serialNumber?: Json; } -/** - * Provides operations to call the weekday method. - */ -export class WeekdayRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new WeekdayRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weekday"); - }; - /** - * Invoke action weekday - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: WeekdayPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action weekday - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: WeekdayPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWeekdayPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a weekdayRequestBuilder - */ - public withUrl(rawUrl: string) : WeekdayRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new WeekdayRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/weibull_Dist/index.ts b/src/drives/item/items/item/workbook/functions/weibull_Dist/index.ts index 3f9faef05ec..d071ff8d244 100644 --- a/src/drives/item/items/item/workbook/functions/weibull_Dist/index.ts +++ b/src/drives/item/items/item/workbook/functions/weibull_Dist/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createWeibull_DistPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +45,5 @@ export interface Weibull_DistPostRequestBody extends AdditionalDataHolder, Parsa */ x?: Json; } -/** - * Provides operations to call the weibull_Dist method. - */ -export class Weibull_DistRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new Weibull_DistRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weibull_Dist"); - }; - /** - * Invoke action weibull_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: Weibull_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action weibull_Dist - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: Weibull_DistPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWeibull_DistPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a weibull_DistRequestBuilder - */ - public withUrl(rawUrl: string) : Weibull_DistRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new Weibull_DistRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/workDay/index.ts b/src/drives/item/items/item/workbook/functions/workDay/index.ts index 5e75ec7ad3d..4f7b98ad228 100644 --- a/src/drives/item/items/item/workbook/functions/workDay/index.ts +++ b/src/drives/item/items/item/workbook/functions/workDay/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoWorkDayPostRequestBody, serializeWorkDayPostRequestBody, type WorkDayPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createWorkDayPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoWorkDayPostRequestBody; +} +export function deserializeIntoWorkDayPostRequestBody(workDayPostRequestBody: WorkDayPostRequestBody | undefined = {} as WorkDayPostRequestBody) : Record void> { + return { + "days": n => { workDayPostRequestBody.days = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "holidays": n => { workDayPostRequestBody.holidays = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startDate": n => { workDayPostRequestBody.startDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeWorkDayPostRequestBody(writer: SerializationWriter, workDayPostRequestBody: WorkDayPostRequestBody | undefined = {} as WorkDayPostRequestBody) : void { + writer.writeObjectValue("days", workDayPostRequestBody.days, serializeJson); + writer.writeObjectValue("holidays", workDayPostRequestBody.holidays, serializeJson); + writer.writeObjectValue("startDate", workDayPostRequestBody.startDate, serializeJson); + writer.writeAdditionalData(workDayPostRequestBody.additionalData); +} +export interface WorkDayPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The days property + */ + days?: Json; + /** + * The holidays property + */ + holidays?: Json; + /** + * The startDate property + */ + startDate?: Json; +} /** * Provides operations to call the workDay method. */ diff --git a/src/drives/item/items/item/workbook/functions/workDay/workDayPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/workDay/workDayPostRequestBody.ts deleted file mode 100644 index ed0ee88bd81..00000000000 --- a/src/drives/item/items/item/workbook/functions/workDay/workDayPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createWorkDayPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoWorkDayPostRequestBody; -} -export function deserializeIntoWorkDayPostRequestBody(workDayPostRequestBody: WorkDayPostRequestBody | undefined = {} as WorkDayPostRequestBody) : Record void> { - return { - "days": n => { workDayPostRequestBody.days = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "holidays": n => { workDayPostRequestBody.holidays = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startDate": n => { workDayPostRequestBody.startDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeWorkDayPostRequestBody(writer: SerializationWriter, workDayPostRequestBody: WorkDayPostRequestBody | undefined = {} as WorkDayPostRequestBody) : void { - writer.writeObjectValue("days", workDayPostRequestBody.days, serializeJson); - writer.writeObjectValue("holidays", workDayPostRequestBody.holidays, serializeJson); - writer.writeObjectValue("startDate", workDayPostRequestBody.startDate, serializeJson); - writer.writeAdditionalData(workDayPostRequestBody.additionalData); -} -export interface WorkDayPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The days property - */ - days?: Json; - /** - * The holidays property - */ - holidays?: Json; - /** - * The startDate property - */ - startDate?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/workDay_Intl/index.ts b/src/drives/item/items/item/workbook/functions/workDay_Intl/index.ts index b87912ffcbf..aab14abcb60 100644 --- a/src/drives/item/items/item/workbook/functions/workDay_Intl/index.ts +++ b/src/drives/item/items/item/workbook/functions/workDay_Intl/index.ts @@ -2,7 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createWorkDay_IntlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -45,5 +48,57 @@ export interface WorkDay_IntlPostRequestBody extends AdditionalDataHolder, Parsa */ weekend?: Json; } +/** + * Provides operations to call the workDay_Intl method. + */ +export class WorkDay_IntlRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new WorkDay_IntlRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/workDay_Intl"); + }; + /** + * Invoke action workDay_Intl + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFunctionResult + */ + public post(body: WorkDay_IntlPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action workDay_Intl + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: WorkDay_IntlPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkDay_IntlPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a workDay_IntlRequestBuilder + */ + public withUrl(rawUrl: string) : WorkDay_IntlRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new WorkDay_IntlRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/workDay_Intl/workDay_IntlPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/workDay_Intl/workDay_IntlPostRequestBody.ts deleted file mode 100644 index 6fdf9cbb737..00000000000 --- a/src/drives/item/items/item/workbook/functions/workDay_Intl/workDay_IntlPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createWorkDay_IntlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoWorkDay_IntlPostRequestBody; -} -export function deserializeIntoWorkDay_IntlPostRequestBody(workDay_IntlPostRequestBody: WorkDay_IntlPostRequestBody | undefined = {} as WorkDay_IntlPostRequestBody) : Record void> { - return { - "days": n => { workDay_IntlPostRequestBody.days = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "holidays": n => { workDay_IntlPostRequestBody.holidays = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startDate": n => { workDay_IntlPostRequestBody.startDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "weekend": n => { workDay_IntlPostRequestBody.weekend = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeWorkDay_IntlPostRequestBody(writer: SerializationWriter, workDay_IntlPostRequestBody: WorkDay_IntlPostRequestBody | undefined = {} as WorkDay_IntlPostRequestBody) : void { - writer.writeObjectValue("days", workDay_IntlPostRequestBody.days, serializeJson); - writer.writeObjectValue("holidays", workDay_IntlPostRequestBody.holidays, serializeJson); - writer.writeObjectValue("startDate", workDay_IntlPostRequestBody.startDate, serializeJson); - writer.writeObjectValue("weekend", workDay_IntlPostRequestBody.weekend, serializeJson); - writer.writeAdditionalData(workDay_IntlPostRequestBody.additionalData); -} -export interface WorkDay_IntlPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The days property - */ - days?: Json; - /** - * The holidays property - */ - holidays?: Json; - /** - * The startDate property - */ - startDate?: Json; - /** - * The weekend property - */ - weekend?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/xirr/index.ts b/src/drives/item/items/item/workbook/functions/xirr/index.ts index 8750a53974d..248dfb850d5 100644 --- a/src/drives/item/items/item/workbook/functions/xirr/index.ts +++ b/src/drives/item/items/item/workbook/functions/xirr/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createXirrPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export interface XirrPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the xirr method. - */ -export class XirrRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new XirrRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/xirr"); - }; - /** - * Invoke action xirr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: XirrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action xirr - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: XirrPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeXirrPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a xirrRequestBuilder - */ - public withUrl(rawUrl: string) : XirrRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new XirrRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/xnpv/index.ts b/src/drives/item/items/item/workbook/functions/xnpv/index.ts index d5f4579d322..73390b494b2 100644 --- a/src/drives/item/items/item/workbook/functions/xnpv/index.ts +++ b/src/drives/item/items/item/workbook/functions/xnpv/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createXnpvPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,57 +39,5 @@ export interface XnpvPostRequestBody extends AdditionalDataHolder, Parsable { */ values?: Json; } -/** - * Provides operations to call the xnpv method. - */ -export class XnpvRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new XnpvRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/xnpv"); - }; - /** - * Invoke action xnpv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookFunctionResult - */ - public post(body: XnpvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookFunctionResultFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action xnpv - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: XnpvPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeXnpvPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a xnpvRequestBuilder - */ - public withUrl(rawUrl: string) : XnpvRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new XnpvRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/xor/index.ts b/src/drives/item/items/item/workbook/functions/xor/index.ts index f9237899ca7..964808c53e6 100644 --- a/src/drives/item/items/item/workbook/functions/xor/index.ts +++ b/src/drives/item/items/item/workbook/functions/xor/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoXorPostRequestBody, serializeXorPostRequestBody, type XorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createXorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoXorPostRequestBody; +} +export function deserializeIntoXorPostRequestBody(xorPostRequestBody: XorPostRequestBody | undefined = {} as XorPostRequestBody) : Record void> { + return { + "values": n => { xorPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeXorPostRequestBody(writer: SerializationWriter, xorPostRequestBody: XorPostRequestBody | undefined = {} as XorPostRequestBody) : void { + writer.writeObjectValue("values", xorPostRequestBody.values, serializeJson); + writer.writeAdditionalData(xorPostRequestBody.additionalData); +} +export interface XorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} /** * Provides operations to call the xor method. */ diff --git a/src/drives/item/items/item/workbook/functions/xor/xorPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/xor/xorPostRequestBody.ts deleted file mode 100644 index d3c6222f378..00000000000 --- a/src/drives/item/items/item/workbook/functions/xor/xorPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createXorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoXorPostRequestBody; -} -export function deserializeIntoXorPostRequestBody(xorPostRequestBody: XorPostRequestBody | undefined = {} as XorPostRequestBody) : Record void> { - return { - "values": n => { xorPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeXorPostRequestBody(writer: SerializationWriter, xorPostRequestBody: XorPostRequestBody | undefined = {} as XorPostRequestBody) : void { - writer.writeObjectValue("values", xorPostRequestBody.values, serializeJson); - writer.writeAdditionalData(xorPostRequestBody.additionalData); -} -export interface XorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/year/index.ts b/src/drives/item/items/item/workbook/functions/year/index.ts index ecba42f4f3d..239e22dbe1d 100644 --- a/src/drives/item/items/item/workbook/functions/year/index.ts +++ b/src/drives/item/items/item/workbook/functions/year/index.ts @@ -1,12 +1,35 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoYearPostRequestBody, serializeYearPostRequestBody, type YearPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createYearPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoYearPostRequestBody; +} +export function deserializeIntoYearPostRequestBody(yearPostRequestBody: YearPostRequestBody | undefined = {} as YearPostRequestBody) : Record void> { + return { + "serialNumber": n => { yearPostRequestBody.serialNumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeYearPostRequestBody(writer: SerializationWriter, yearPostRequestBody: YearPostRequestBody | undefined = {} as YearPostRequestBody) : void { + writer.writeObjectValue("serialNumber", yearPostRequestBody.serialNumber, serializeJson); + writer.writeAdditionalData(yearPostRequestBody.additionalData); +} +export interface YearPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The serialNumber property + */ + serialNumber?: Json; +} /** * Provides operations to call the year method. */ diff --git a/src/drives/item/items/item/workbook/functions/year/yearPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/year/yearPostRequestBody.ts deleted file mode 100644 index 2ec2168e51b..00000000000 --- a/src/drives/item/items/item/workbook/functions/year/yearPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createYearPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoYearPostRequestBody; -} -export function deserializeIntoYearPostRequestBody(yearPostRequestBody: YearPostRequestBody | undefined = {} as YearPostRequestBody) : Record void> { - return { - "serialNumber": n => { yearPostRequestBody.serialNumber = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeYearPostRequestBody(writer: SerializationWriter, yearPostRequestBody: YearPostRequestBody | undefined = {} as YearPostRequestBody) : void { - writer.writeObjectValue("serialNumber", yearPostRequestBody.serialNumber, serializeJson); - writer.writeAdditionalData(yearPostRequestBody.additionalData); -} -export interface YearPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The serialNumber property - */ - serialNumber?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/yearFrac/index.ts b/src/drives/item/items/item/workbook/functions/yearFrac/index.ts index 5a8813d8c16..63cb58ebc07 100644 --- a/src/drives/item/items/item/workbook/functions/yearFrac/index.ts +++ b/src/drives/item/items/item/workbook/functions/yearFrac/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoYearFracPostRequestBody, serializeYearFracPostRequestBody, type YearFracPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createYearFracPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoYearFracPostRequestBody; +} +export function deserializeIntoYearFracPostRequestBody(yearFracPostRequestBody: YearFracPostRequestBody | undefined = {} as YearFracPostRequestBody) : Record void> { + return { + "basis": n => { yearFracPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "endDate": n => { yearFracPostRequestBody.endDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startDate": n => { yearFracPostRequestBody.startDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeYearFracPostRequestBody(writer: SerializationWriter, yearFracPostRequestBody: YearFracPostRequestBody | undefined = {} as YearFracPostRequestBody) : void { + writer.writeObjectValue("basis", yearFracPostRequestBody.basis, serializeJson); + writer.writeObjectValue("endDate", yearFracPostRequestBody.endDate, serializeJson); + writer.writeObjectValue("startDate", yearFracPostRequestBody.startDate, serializeJson); + writer.writeAdditionalData(yearFracPostRequestBody.additionalData); +} +export interface YearFracPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The endDate property + */ + endDate?: Json; + /** + * The startDate property + */ + startDate?: Json; +} /** * Provides operations to call the yearFrac method. */ diff --git a/src/drives/item/items/item/workbook/functions/yearFrac/yearFracPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/yearFrac/yearFracPostRequestBody.ts deleted file mode 100644 index fdb48c29ac7..00000000000 --- a/src/drives/item/items/item/workbook/functions/yearFrac/yearFracPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createYearFracPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoYearFracPostRequestBody; -} -export function deserializeIntoYearFracPostRequestBody(yearFracPostRequestBody: YearFracPostRequestBody | undefined = {} as YearFracPostRequestBody) : Record void> { - return { - "basis": n => { yearFracPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "endDate": n => { yearFracPostRequestBody.endDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "startDate": n => { yearFracPostRequestBody.startDate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeYearFracPostRequestBody(writer: SerializationWriter, yearFracPostRequestBody: YearFracPostRequestBody | undefined = {} as YearFracPostRequestBody) : void { - writer.writeObjectValue("basis", yearFracPostRequestBody.basis, serializeJson); - writer.writeObjectValue("endDate", yearFracPostRequestBody.endDate, serializeJson); - writer.writeObjectValue("startDate", yearFracPostRequestBody.startDate, serializeJson); - writer.writeAdditionalData(yearFracPostRequestBody.additionalData); -} -export interface YearFracPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The endDate property - */ - endDate?: Json; - /** - * The startDate property - */ - startDate?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/yield/index.ts b/src/drives/item/items/item/workbook/functions/yield/index.ts index 1db11d130b2..c9b58a7eea2 100644 --- a/src/drives/item/items/item/workbook/functions/yield/index.ts +++ b/src/drives/item/items/item/workbook/functions/yield/index.ts @@ -1,12 +1,71 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoYieldPostRequestBody, serializeYieldPostRequestBody, type YieldPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createYieldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoYieldPostRequestBody; +} +export function deserializeIntoYieldPostRequestBody(yieldPostRequestBody: YieldPostRequestBody | undefined = {} as YieldPostRequestBody) : Record void> { + return { + "basis": n => { yieldPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "frequency": n => { yieldPostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { yieldPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pr": n => { yieldPostRequestBody.pr = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "rate": n => { yieldPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "redemption": n => { yieldPostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { yieldPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeYieldPostRequestBody(writer: SerializationWriter, yieldPostRequestBody: YieldPostRequestBody | undefined = {} as YieldPostRequestBody) : void { + writer.writeObjectValue("basis", yieldPostRequestBody.basis, serializeJson); + writer.writeObjectValue("frequency", yieldPostRequestBody.frequency, serializeJson); + writer.writeObjectValue("maturity", yieldPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("pr", yieldPostRequestBody.pr, serializeJson); + writer.writeObjectValue("rate", yieldPostRequestBody.rate, serializeJson); + writer.writeObjectValue("redemption", yieldPostRequestBody.redemption, serializeJson); + writer.writeObjectValue("settlement", yieldPostRequestBody.settlement, serializeJson); + writer.writeAdditionalData(yieldPostRequestBody.additionalData); +} +export interface YieldPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The frequency property + */ + frequency?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The pr property + */ + pr?: Json; + /** + * The rate property + */ + rate?: Json; + /** + * The redemption property + */ + redemption?: Json; + /** + * The settlement property + */ + settlement?: Json; +} /** * Provides operations to call the yield method. */ diff --git a/src/drives/item/items/item/workbook/functions/yield/yieldPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/yield/yieldPostRequestBody.ts deleted file mode 100644 index 0968ce9403e..00000000000 --- a/src/drives/item/items/item/workbook/functions/yield/yieldPostRequestBody.ts +++ /dev/null @@ -1,67 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createYieldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoYieldPostRequestBody; -} -export function deserializeIntoYieldPostRequestBody(yieldPostRequestBody: YieldPostRequestBody | undefined = {} as YieldPostRequestBody) : Record void> { - return { - "basis": n => { yieldPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "frequency": n => { yieldPostRequestBody.frequency = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { yieldPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pr": n => { yieldPostRequestBody.pr = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "rate": n => { yieldPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "redemption": n => { yieldPostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { yieldPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeYieldPostRequestBody(writer: SerializationWriter, yieldPostRequestBody: YieldPostRequestBody | undefined = {} as YieldPostRequestBody) : void { - writer.writeObjectValue("basis", yieldPostRequestBody.basis, serializeJson); - writer.writeObjectValue("frequency", yieldPostRequestBody.frequency, serializeJson); - writer.writeObjectValue("maturity", yieldPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("pr", yieldPostRequestBody.pr, serializeJson); - writer.writeObjectValue("rate", yieldPostRequestBody.rate, serializeJson); - writer.writeObjectValue("redemption", yieldPostRequestBody.redemption, serializeJson); - writer.writeObjectValue("settlement", yieldPostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(yieldPostRequestBody.additionalData); -} -export interface YieldPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The frequency property - */ - frequency?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The pr property - */ - pr?: Json; - /** - * The rate property - */ - rate?: Json; - /** - * The redemption property - */ - redemption?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/yieldDisc/index.ts b/src/drives/item/items/item/workbook/functions/yieldDisc/index.ts index 4d5f66096d1..ce3a382df08 100644 --- a/src/drives/item/items/item/workbook/functions/yieldDisc/index.ts +++ b/src/drives/item/items/item/workbook/functions/yieldDisc/index.ts @@ -1,12 +1,59 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoYieldDiscPostRequestBody, serializeYieldDiscPostRequestBody, type YieldDiscPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createYieldDiscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoYieldDiscPostRequestBody; +} +export function deserializeIntoYieldDiscPostRequestBody(yieldDiscPostRequestBody: YieldDiscPostRequestBody | undefined = {} as YieldDiscPostRequestBody) : Record void> { + return { + "basis": n => { yieldDiscPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { yieldDiscPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pr": n => { yieldDiscPostRequestBody.pr = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "redemption": n => { yieldDiscPostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { yieldDiscPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeYieldDiscPostRequestBody(writer: SerializationWriter, yieldDiscPostRequestBody: YieldDiscPostRequestBody | undefined = {} as YieldDiscPostRequestBody) : void { + writer.writeObjectValue("basis", yieldDiscPostRequestBody.basis, serializeJson); + writer.writeObjectValue("maturity", yieldDiscPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("pr", yieldDiscPostRequestBody.pr, serializeJson); + writer.writeObjectValue("redemption", yieldDiscPostRequestBody.redemption, serializeJson); + writer.writeObjectValue("settlement", yieldDiscPostRequestBody.settlement, serializeJson); + writer.writeAdditionalData(yieldDiscPostRequestBody.additionalData); +} +export interface YieldDiscPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The pr property + */ + pr?: Json; + /** + * The redemption property + */ + redemption?: Json; + /** + * The settlement property + */ + settlement?: Json; +} /** * Provides operations to call the yieldDisc method. */ diff --git a/src/drives/item/items/item/workbook/functions/yieldDisc/yieldDiscPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/yieldDisc/yieldDiscPostRequestBody.ts deleted file mode 100644 index cca1cd09c3a..00000000000 --- a/src/drives/item/items/item/workbook/functions/yieldDisc/yieldDiscPostRequestBody.ts +++ /dev/null @@ -1,55 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createYieldDiscPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoYieldDiscPostRequestBody; -} -export function deserializeIntoYieldDiscPostRequestBody(yieldDiscPostRequestBody: YieldDiscPostRequestBody | undefined = {} as YieldDiscPostRequestBody) : Record void> { - return { - "basis": n => { yieldDiscPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { yieldDiscPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pr": n => { yieldDiscPostRequestBody.pr = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "redemption": n => { yieldDiscPostRequestBody.redemption = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { yieldDiscPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeYieldDiscPostRequestBody(writer: SerializationWriter, yieldDiscPostRequestBody: YieldDiscPostRequestBody | undefined = {} as YieldDiscPostRequestBody) : void { - writer.writeObjectValue("basis", yieldDiscPostRequestBody.basis, serializeJson); - writer.writeObjectValue("maturity", yieldDiscPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("pr", yieldDiscPostRequestBody.pr, serializeJson); - writer.writeObjectValue("redemption", yieldDiscPostRequestBody.redemption, serializeJson); - writer.writeObjectValue("settlement", yieldDiscPostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(yieldDiscPostRequestBody.additionalData); -} -export interface YieldDiscPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The pr property - */ - pr?: Json; - /** - * The redemption property - */ - redemption?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/yieldMat/index.ts b/src/drives/item/items/item/workbook/functions/yieldMat/index.ts index f30e56a0e25..4c6f2193f83 100644 --- a/src/drives/item/items/item/workbook/functions/yieldMat/index.ts +++ b/src/drives/item/items/item/workbook/functions/yieldMat/index.ts @@ -1,12 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoYieldMatPostRequestBody, serializeYieldMatPostRequestBody, type YieldMatPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createYieldMatPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoYieldMatPostRequestBody; +} +export function deserializeIntoYieldMatPostRequestBody(yieldMatPostRequestBody: YieldMatPostRequestBody | undefined = {} as YieldMatPostRequestBody) : Record void> { + return { + "basis": n => { yieldMatPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "issue": n => { yieldMatPostRequestBody.issue = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "maturity": n => { yieldMatPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "pr": n => { yieldMatPostRequestBody.pr = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "rate": n => { yieldMatPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "settlement": n => { yieldMatPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeYieldMatPostRequestBody(writer: SerializationWriter, yieldMatPostRequestBody: YieldMatPostRequestBody | undefined = {} as YieldMatPostRequestBody) : void { + writer.writeObjectValue("basis", yieldMatPostRequestBody.basis, serializeJson); + writer.writeObjectValue("issue", yieldMatPostRequestBody.issue, serializeJson); + writer.writeObjectValue("maturity", yieldMatPostRequestBody.maturity, serializeJson); + writer.writeObjectValue("pr", yieldMatPostRequestBody.pr, serializeJson); + writer.writeObjectValue("rate", yieldMatPostRequestBody.rate, serializeJson); + writer.writeObjectValue("settlement", yieldMatPostRequestBody.settlement, serializeJson); + writer.writeAdditionalData(yieldMatPostRequestBody.additionalData); +} +export interface YieldMatPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The basis property + */ + basis?: Json; + /** + * The issue property + */ + issue?: Json; + /** + * The maturity property + */ + maturity?: Json; + /** + * The pr property + */ + pr?: Json; + /** + * The rate property + */ + rate?: Json; + /** + * The settlement property + */ + settlement?: Json; +} /** * Provides operations to call the yieldMat method. */ diff --git a/src/drives/item/items/item/workbook/functions/yieldMat/yieldMatPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/yieldMat/yieldMatPostRequestBody.ts deleted file mode 100644 index 051ec2fb566..00000000000 --- a/src/drives/item/items/item/workbook/functions/yieldMat/yieldMatPostRequestBody.ts +++ /dev/null @@ -1,61 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createYieldMatPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoYieldMatPostRequestBody; -} -export function deserializeIntoYieldMatPostRequestBody(yieldMatPostRequestBody: YieldMatPostRequestBody | undefined = {} as YieldMatPostRequestBody) : Record void> { - return { - "basis": n => { yieldMatPostRequestBody.basis = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "issue": n => { yieldMatPostRequestBody.issue = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "maturity": n => { yieldMatPostRequestBody.maturity = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "pr": n => { yieldMatPostRequestBody.pr = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "rate": n => { yieldMatPostRequestBody.rate = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "settlement": n => { yieldMatPostRequestBody.settlement = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeYieldMatPostRequestBody(writer: SerializationWriter, yieldMatPostRequestBody: YieldMatPostRequestBody | undefined = {} as YieldMatPostRequestBody) : void { - writer.writeObjectValue("basis", yieldMatPostRequestBody.basis, serializeJson); - writer.writeObjectValue("issue", yieldMatPostRequestBody.issue, serializeJson); - writer.writeObjectValue("maturity", yieldMatPostRequestBody.maturity, serializeJson); - writer.writeObjectValue("pr", yieldMatPostRequestBody.pr, serializeJson); - writer.writeObjectValue("rate", yieldMatPostRequestBody.rate, serializeJson); - writer.writeObjectValue("settlement", yieldMatPostRequestBody.settlement, serializeJson); - writer.writeAdditionalData(yieldMatPostRequestBody.additionalData); -} -export interface YieldMatPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The basis property - */ - basis?: Json; - /** - * The issue property - */ - issue?: Json; - /** - * The maturity property - */ - maturity?: Json; - /** - * The pr property - */ - pr?: Json; - /** - * The rate property - */ - rate?: Json; - /** - * The settlement property - */ - settlement?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/functions/z_Test/index.ts b/src/drives/item/items/item/workbook/functions/z_Test/index.ts index 96707d75923..c6c7eaf22a7 100644 --- a/src/drives/item/items/item/workbook/functions/z_Test/index.ts +++ b/src/drives/item/items/item/workbook/functions/z_Test/index.ts @@ -1,12 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFunctionResultFromDiscriminatorValue, deserializeIntoWorkbookFunctionResult, serializeWorkbookFunctionResult, type WorkbookFunctionResult } from '../../../../../../../models/workbookFunctionResult'; -import { deserializeIntoZ_TestPostRequestBody, serializeZ_TestPostRequestBody, type Z_TestPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createZ_TestPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoZ_TestPostRequestBody; +} +export function deserializeIntoZ_TestPostRequestBody(z_TestPostRequestBody: Z_TestPostRequestBody | undefined = {} as Z_TestPostRequestBody) : Record void> { + return { + "array": n => { z_TestPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "sigma": n => { z_TestPostRequestBody.sigma = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "x": n => { z_TestPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeZ_TestPostRequestBody(writer: SerializationWriter, z_TestPostRequestBody: Z_TestPostRequestBody | undefined = {} as Z_TestPostRequestBody) : void { + writer.writeObjectValue("array", z_TestPostRequestBody.array, serializeJson); + writer.writeObjectValue("sigma", z_TestPostRequestBody.sigma, serializeJson); + writer.writeObjectValue("x", z_TestPostRequestBody.x, serializeJson); + writer.writeAdditionalData(z_TestPostRequestBody.additionalData); +} +export interface Z_TestPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The array property + */ + array?: Json; + /** + * The sigma property + */ + sigma?: Json; + /** + * The x property + */ + x?: Json; +} /** * Provides operations to call the z_Test method. */ diff --git a/src/drives/item/items/item/workbook/functions/z_Test/z_TestPostRequestBody.ts b/src/drives/item/items/item/workbook/functions/z_Test/z_TestPostRequestBody.ts deleted file mode 100644 index b1235e7640c..00000000000 --- a/src/drives/item/items/item/workbook/functions/z_Test/z_TestPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createZ_TestPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoZ_TestPostRequestBody; -} -export function deserializeIntoZ_TestPostRequestBody(z_TestPostRequestBody: Z_TestPostRequestBody | undefined = {} as Z_TestPostRequestBody) : Record void> { - return { - "array": n => { z_TestPostRequestBody.array = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "sigma": n => { z_TestPostRequestBody.sigma = n.getObjectValue(createJsonFromDiscriminatorValue); }, - "x": n => { z_TestPostRequestBody.x = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeZ_TestPostRequestBody(writer: SerializationWriter, z_TestPostRequestBody: Z_TestPostRequestBody | undefined = {} as Z_TestPostRequestBody) : void { - writer.writeObjectValue("array", z_TestPostRequestBody.array, serializeJson); - writer.writeObjectValue("sigma", z_TestPostRequestBody.sigma, serializeJson); - writer.writeObjectValue("x", z_TestPostRequestBody.x, serializeJson); - writer.writeAdditionalData(z_TestPostRequestBody.additionalData); -} -export interface Z_TestPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The array property - */ - array?: Json; - /** - * The sigma property - */ - sigma?: Json; - /** - * The x property - */ - x?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/index.ts b/src/drives/item/items/item/workbook/index.ts index d7b8fe9009c..7e41658f9e5 100644 --- a/src/drives/item/items/item/workbook/index.ts +++ b/src/drives/item/items/item/workbook/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createWorkbookFromDiscriminatorValue, deserializeIntoWorkbook, serializeWorkbook, type Workbook } from '../../../../../models/workbook'; -import { ApplicationRequestBuilder } from './application/'; -import { CloseSessionRequestBuilder } from './closeSession/'; -import { CommentsRequestBuilder } from './comments/'; -import { CreateSessionRequestBuilder } from './createSession/'; -import { FunctionsRequestBuilder } from './functions/'; -import { NamesRequestBuilder } from './names/'; -import { OperationsRequestBuilder } from './operations/'; -import { RefreshSessionRequestBuilder } from './refreshSession/'; -import { SessionInfoResourceWithKeyRequestBuilder } from './sessionInfoResourceWithKey/'; -import { TableRowOperationResultWithKeyRequestBuilder } from './tableRowOperationResultWithKey/'; -import { TablesRequestBuilder } from './tables/'; -import { WorksheetsRequestBuilder } from './worksheets/'; +import { ApplicationRequestBuilder } from './application'; +import { CloseSessionRequestBuilder } from './closeSession'; +import { CommentsRequestBuilder } from './comments'; +import { CreateSessionRequestBuilder } from './createSession'; +import { FunctionsRequestBuilder } from './functions'; +import { NamesRequestBuilder } from './names'; +import { OperationsRequestBuilder } from './operations'; +import { RefreshSessionRequestBuilder } from './refreshSession'; +import { SessionInfoResourceWithKeyRequestBuilder } from './sessionInfoResourceWithKey'; +import { TableRowOperationResultWithKeyRequestBuilder } from './tableRowOperationResultWithKey'; +import { TablesRequestBuilder } from './tables'; +import { WorksheetsRequestBuilder } from './worksheets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/names/add/index.ts b/src/drives/item/items/item/workbook/names/add/index.ts index e64c277a652..cc25549eb1d 100644 --- a/src/drives/item/items/item/workbook/names/add/index.ts +++ b/src/drives/item/items/item/workbook/names/add/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookNamedItemFromDiscriminatorValue, deserializeIntoWorkbookNamedItem, serializeWorkbookNamedItem, type WorkbookNamedItem } from '../../../../../../../models/workbookNamedItem'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,58 +39,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeObjectValue("reference", addPostRequestBody.reference, serializeJson); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/add"); - }; - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookNamedItem - * @see {@link https://learn.microsoft.com/graph/api/nameditem-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookNamedItemFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/names/addFormulaLocal/index.ts b/src/drives/item/items/item/workbook/names/addFormulaLocal/index.ts index 2c7b155f241..2e80112a27d 100644 --- a/src/drives/item/items/item/workbook/names/addFormulaLocal/index.ts +++ b/src/drives/item/items/item/workbook/names/addFormulaLocal/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookNamedItemFromDiscriminatorValue, deserializeIntoWorkbookNamedItem, serializeWorkbookNamedItem, type WorkbookNamedItem } from '../../../../../../../models/workbookNamedItem'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddFormulaLocalPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -41,58 +38,5 @@ export function serializeAddFormulaLocalPostRequestBody(writer: SerializationWri writer.writeStringValue("name", addFormulaLocalPostRequestBody.name); writer.writeAdditionalData(addFormulaLocalPostRequestBody.additionalData); } -/** - * Provides operations to call the addFormulaLocal method. - */ -export class AddFormulaLocalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddFormulaLocalRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/addFormulaLocal"); - }; - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookNamedItem - * @see {@link https://learn.microsoft.com/graph/api/nameditem-addformulalocal?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddFormulaLocalPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookNamedItemFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddFormulaLocalPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddFormulaLocalPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addFormulaLocalRequestBuilder - */ - public withUrl(rawUrl: string) : AddFormulaLocalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddFormulaLocalRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/names/count/index.ts b/src/drives/item/items/item/workbook/names/count/index.ts index 7a3f3113147..cecc586435d 100644 --- a/src/drives/item/items/item/workbook/names/count/index.ts +++ b/src/drives/item/items/item/workbook/names/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/names/index.ts b/src/drives/item/items/item/workbook/names/index.ts index 3fb222c34de..8922032a1ba 100644 --- a/src/drives/item/items/item/workbook/names/index.ts +++ b/src/drives/item/items/item/workbook/names/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookNamedItemCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type WorkbookNamedItemCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookNamedItemFromDiscriminatorValue, deserializeIntoWorkbookNamedItem, serializeWorkbookNamedItem, type WorkbookNamedItem } from '../../../../../../models/workbookNamedItem'; import { createWorkbookNamedItemCollectionResponseFromDiscriminatorValue } from '../../../../../../models/workbookNamedItemCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { AddFormulaLocalRequestBuilder } from './addFormulaLocal/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookNamedItemItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { AddFormulaLocalRequestBuilder } from './addFormulaLocal'; +import { CountRequestBuilder } from './count'; +import { WorkbookNamedItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NamesRequestBuilderGetQueryParameters { @@ -91,7 +91,7 @@ export class NamesRequestBuilder extends BaseRequestBuilder { * Retrieve a list of nameditem objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookNamedItemCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/workbook-list-names?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/nameditem-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/names/item/index.ts b/src/drives/item/items/item/workbook/names/item/index.ts index 76e4fc92f61..2dca794a043 100644 --- a/src/drives/item/items/item/workbook/names/item/index.ts +++ b/src/drives/item/items/item/workbook/names/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookNamedItemFromDiscriminatorValue, deserializeIntoWorkbookNamedItem, serializeWorkbookNamedItem, type WorkbookNamedItem } from '../../../../../../../models/workbookNamedItem'; -import { RangeRequestBuilder } from './range/'; -import { WorksheetRequestBuilder } from './worksheet/'; +import { RangeRequestBuilder } from './range'; +import { WorksheetRequestBuilder } from './worksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookNamedItemItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/names/item/range/index.ts b/src/drives/item/items/item/workbook/names/item/range/index.ts index 0fcc30c79c5..ca25107197f 100644 --- a/src/drives/item/items/item/workbook/names/item/range/index.ts +++ b/src/drives/item/items/item/workbook/names/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/names/item/worksheet/index.ts b/src/drives/item/items/item/workbook/names/item/worksheet/index.ts index b7fad310bcc..03f67b7182e 100644 --- a/src/drives/item/items/item/workbook/names/item/worksheet/index.ts +++ b/src/drives/item/items/item/workbook/names/item/worksheet/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookWorksheet } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookWorksheet } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetFromDiscriminatorValue } from '../../../../../../../../models/workbookWorksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/operations/count/index.ts b/src/drives/item/items/item/workbook/operations/count/index.ts index f601ab1c618..1376b10622d 100644 --- a/src/drives/item/items/item/workbook/operations/count/index.ts +++ b/src/drives/item/items/item/workbook/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/operations/index.ts b/src/drives/item/items/item/workbook/operations/index.ts index 7557b24d12b..5c18d7da279 100644 --- a/src/drives/item/items/item/workbook/operations/index.ts +++ b/src/drives/item/items/item/workbook/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookOperationCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type WorkbookOperationCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookOperationFromDiscriminatorValue, deserializeIntoWorkbookOperation, serializeWorkbookOperation, type WorkbookOperation } from '../../../../../../models/workbookOperation'; import { createWorkbookOperationCollectionResponseFromDiscriminatorValue } from '../../../../../../models/workbookOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WorkbookOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkbookOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/operations/item/index.ts b/src/drives/item/items/item/workbook/operations/item/index.ts index c29642ba373..dfd39917204 100644 --- a/src/drives/item/items/item/workbook/operations/item/index.ts +++ b/src/drives/item/items/item/workbook/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookOperationFromDiscriminatorValue, deserializeIntoWorkbookOperation, serializeWorkbookOperation, type WorkbookOperation } from '../../../../../../../models/workbookOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/refreshSession/index.ts b/src/drives/item/items/item/workbook/refreshSession/index.ts index 7f898cab462..b73b305c3d7 100644 --- a/src/drives/item/items/item/workbook/refreshSession/index.ts +++ b/src/drives/item/items/item/workbook/refreshSession/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/sessionInfoResourceWithKey/index.ts b/src/drives/item/items/item/workbook/sessionInfoResourceWithKey/index.ts index e59b8f38576..779fbdb1207 100644 --- a/src/drives/item/items/item/workbook/sessionInfoResourceWithKey/index.ts +++ b/src/drives/item/items/item/workbook/sessionInfoResourceWithKey/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookSessionInfo } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type WorkbookSessionInfo } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookSessionInfoFromDiscriminatorValue } from '../../../../../../models/workbookSessionInfo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tableRowOperationResultWithKey/index.ts b/src/drives/item/items/item/workbook/tableRowOperationResultWithKey/index.ts index 3a4b4d6eb8e..445e281e0e7 100644 --- a/src/drives/item/items/item/workbook/tableRowOperationResultWithKey/index.ts +++ b/src/drives/item/items/item/workbook/tableRowOperationResultWithKey/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableRow } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type WorkbookTableRow } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableRowFromDiscriminatorValue } from '../../../../../../models/workbookTableRow'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/add/index.ts b/src/drives/item/items/item/workbook/tables/add/index.ts index 9a00b1d08e4..9ec18802573 100644 --- a/src/drives/item/items/item/workbook/tables/add/index.ts +++ b/src/drives/item/items/item/workbook/tables/add/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookTableFromDiscriminatorValue, deserializeIntoWorkbookTable, serializeWorkbookTable, type WorkbookTable } from '../../../../../../../models/workbookTable'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,58 +32,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeBooleanValue("hasHeaders", addPostRequestBody.hasHeaders); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add"); - }; - /** - * Use this API to create a new Table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookTable - * @see {@link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableFromDiscriminatorValue, errorMapping); - }; - /** - * Use this API to create a new Table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/count/index.ts b/src/drives/item/items/item/workbook/tables/count/index.ts index 0b74504f3a2..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/tables/count/index.ts +++ b/src/drives/item/items/item/workbook/tables/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/index.ts b/src/drives/item/items/item/workbook/tables/index.ts index 330bd52db6f..41484209997 100644 --- a/src/drives/item/items/item/workbook/tables/index.ts +++ b/src/drives/item/items/item/workbook/tables/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type WorkbookTableCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableFromDiscriminatorValue, deserializeIntoWorkbookTable, serializeWorkbookTable, type WorkbookTable } from '../../../../../../models/workbookTable'; import { createWorkbookTableCollectionResponseFromDiscriminatorValue } from '../../../../../../models/workbookTableCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookTableItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { WorkbookTableItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TablesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/tables/item/clearFilters/index.ts b/src/drives/item/items/item/workbook/tables/item/clearFilters/index.ts index a3f2181e47a..dcf309f948a 100644 --- a/src/drives/item/items/item/workbook/tables/item/clearFilters/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/clearFilters/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/columns/add/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/add/index.ts index bb921866b5b..a7449c04fc6 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/add/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/add/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookTableColumnFromDiscriminatorValue, deserializeIntoWorkbookTableColumn, serializeWorkbookTableColumn, type WorkbookTableColumn } from '../../../../../../../../../models/workbookTableColumn'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,58 +39,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeObjectValue("values", addPostRequestBody.values, serializeJson); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/add"); - }; - /** - * Adds a new column to the table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookTableColumn - * @see {@link https://learn.microsoft.com/graph/api/tablecolumncollection-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableColumnFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a new column to the table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/count/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/count/index.ts index 06c36bf0694..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/count/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/index.ts index 2299c0909e9..153a21ee240 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableColumnCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableColumnCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableColumnFromDiscriminatorValue, deserializeIntoWorkbookTableColumn, serializeWorkbookTableColumn, type WorkbookTableColumn } from '../../../../../../../../models/workbookTableColumn'; import { createWorkbookTableColumnCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/workbookTableColumnCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookTableColumnItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { WorkbookTableColumnItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { @@ -85,7 +85,7 @@ export class ColumnsRequestBuilder extends BaseRequestBuilder { * Retrieve a list of tablecolumn objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookTableColumnCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/dataBodyRange/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/dataBodyRange/index.ts index 00549379cd5..3e8bb129a2a 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/dataBodyRange/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/dataBodyRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/applyPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/applyPostRequestBody.ts deleted file mode 100644 index cafa7adbafe..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/applyPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createWorkbookFilterCriteriaFromDiscriminatorValue, serializeWorkbookFilterCriteria, type WorkbookFilterCriteria } from '../../../../../../../../../../../models/workbookFilterCriteria'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: WorkbookFilterCriteria; -} -export function createApplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyPostRequestBody; -} -export function deserializeIntoApplyPostRequestBody(applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : Record void> { - return { - "criteria": n => { applyPostRequestBody.criteria = n.getObjectValue(createWorkbookFilterCriteriaFromDiscriminatorValue); }, - } -} -export function serializeApplyPostRequestBody(writer: SerializationWriter, applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : void { - writer.writeObjectValue("criteria", applyPostRequestBody.criteria, serializeWorkbookFilterCriteria); - writer.writeAdditionalData(applyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/index.ts index 7faf05a06e3..cc369bd16c0 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/apply/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyPostRequestBody, serializeApplyPostRequestBody, type ApplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createWorkbookFilterCriteriaFromDiscriminatorValue, serializeWorkbookFilterCriteria, type WorkbookFilterCriteria } from '../../../../../../../../../../../models/workbookFilterCriteria'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: WorkbookFilterCriteria; +} +export function createApplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyPostRequestBody; +} +export function deserializeIntoApplyPostRequestBody(applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : Record void> { + return { + "criteria": n => { applyPostRequestBody.criteria = n.getObjectValue(createWorkbookFilterCriteriaFromDiscriminatorValue); }, + } +} +export function serializeApplyPostRequestBody(writer: SerializationWriter, applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : void { + writer.writeObjectValue("criteria", applyPostRequestBody.criteria, serializeWorkbookFilterCriteria); + writer.writeAdditionalData(applyPostRequestBody.additionalData); +} /** * Provides operations to call the apply method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomItemsFilter/applyBottomItemsFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomItemsFilter/applyBottomItemsFilterPostRequestBody.ts deleted file mode 100644 index 83165081014..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomItemsFilter/applyBottomItemsFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyBottomItemsFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The count property - */ - count?: number; -} -export function createApplyBottomItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyBottomItemsFilterPostRequestBody; -} -export function deserializeIntoApplyBottomItemsFilterPostRequestBody(applyBottomItemsFilterPostRequestBody: ApplyBottomItemsFilterPostRequestBody | undefined = {} as ApplyBottomItemsFilterPostRequestBody) : Record void> { - return { - "count": n => { applyBottomItemsFilterPostRequestBody.count = n.getNumberValue(); }, - } -} -export function serializeApplyBottomItemsFilterPostRequestBody(writer: SerializationWriter, applyBottomItemsFilterPostRequestBody: ApplyBottomItemsFilterPostRequestBody | undefined = {} as ApplyBottomItemsFilterPostRequestBody) : void { - writer.writeNumberValue("count", applyBottomItemsFilterPostRequestBody.count); - writer.writeAdditionalData(applyBottomItemsFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomItemsFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomItemsFilter/index.ts index 47698422dec..319c3bd7933 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomItemsFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomItemsFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyBottomItemsFilterPostRequestBody, serializeApplyBottomItemsFilterPostRequestBody, type ApplyBottomItemsFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyBottomItemsFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The count property + */ + count?: number; +} +export function createApplyBottomItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyBottomItemsFilterPostRequestBody; +} +export function deserializeIntoApplyBottomItemsFilterPostRequestBody(applyBottomItemsFilterPostRequestBody: ApplyBottomItemsFilterPostRequestBody | undefined = {} as ApplyBottomItemsFilterPostRequestBody) : Record void> { + return { + "count": n => { applyBottomItemsFilterPostRequestBody.count = n.getNumberValue(); }, + } +} +export function serializeApplyBottomItemsFilterPostRequestBody(writer: SerializationWriter, applyBottomItemsFilterPostRequestBody: ApplyBottomItemsFilterPostRequestBody | undefined = {} as ApplyBottomItemsFilterPostRequestBody) : void { + writer.writeNumberValue("count", applyBottomItemsFilterPostRequestBody.count); + writer.writeAdditionalData(applyBottomItemsFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyBottomItemsFilter method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomPercentFilter/applyBottomPercentFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomPercentFilter/applyBottomPercentFilterPostRequestBody.ts deleted file mode 100644 index 894a3b7a201..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomPercentFilter/applyBottomPercentFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyBottomPercentFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The percent property - */ - percent?: number; -} -export function createApplyBottomPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyBottomPercentFilterPostRequestBody; -} -export function deserializeIntoApplyBottomPercentFilterPostRequestBody(applyBottomPercentFilterPostRequestBody: ApplyBottomPercentFilterPostRequestBody | undefined = {} as ApplyBottomPercentFilterPostRequestBody) : Record void> { - return { - "percent": n => { applyBottomPercentFilterPostRequestBody.percent = n.getNumberValue(); }, - } -} -export function serializeApplyBottomPercentFilterPostRequestBody(writer: SerializationWriter, applyBottomPercentFilterPostRequestBody: ApplyBottomPercentFilterPostRequestBody | undefined = {} as ApplyBottomPercentFilterPostRequestBody) : void { - writer.writeNumberValue("percent", applyBottomPercentFilterPostRequestBody.percent); - writer.writeAdditionalData(applyBottomPercentFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomPercentFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomPercentFilter/index.ts index 69c7fe7aa2d..0d3eb0d7fa8 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomPercentFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyBottomPercentFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyBottomPercentFilterPostRequestBody, serializeApplyBottomPercentFilterPostRequestBody, type ApplyBottomPercentFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyBottomPercentFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The percent property + */ + percent?: number; +} +export function createApplyBottomPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyBottomPercentFilterPostRequestBody; +} +export function deserializeIntoApplyBottomPercentFilterPostRequestBody(applyBottomPercentFilterPostRequestBody: ApplyBottomPercentFilterPostRequestBody | undefined = {} as ApplyBottomPercentFilterPostRequestBody) : Record void> { + return { + "percent": n => { applyBottomPercentFilterPostRequestBody.percent = n.getNumberValue(); }, + } +} +export function serializeApplyBottomPercentFilterPostRequestBody(writer: SerializationWriter, applyBottomPercentFilterPostRequestBody: ApplyBottomPercentFilterPostRequestBody | undefined = {} as ApplyBottomPercentFilterPostRequestBody) : void { + writer.writeNumberValue("percent", applyBottomPercentFilterPostRequestBody.percent); + writer.writeAdditionalData(applyBottomPercentFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyBottomPercentFilter method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCellColorFilter/applyCellColorFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCellColorFilter/applyCellColorFilterPostRequestBody.ts deleted file mode 100644 index 04c9a1084b6..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCellColorFilter/applyCellColorFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyCellColorFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The color property - */ - color?: string; -} -export function createApplyCellColorFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyCellColorFilterPostRequestBody; -} -export function deserializeIntoApplyCellColorFilterPostRequestBody(applyCellColorFilterPostRequestBody: ApplyCellColorFilterPostRequestBody | undefined = {} as ApplyCellColorFilterPostRequestBody) : Record void> { - return { - "color": n => { applyCellColorFilterPostRequestBody.color = n.getStringValue(); }, - } -} -export function serializeApplyCellColorFilterPostRequestBody(writer: SerializationWriter, applyCellColorFilterPostRequestBody: ApplyCellColorFilterPostRequestBody | undefined = {} as ApplyCellColorFilterPostRequestBody) : void { - writer.writeStringValue("color", applyCellColorFilterPostRequestBody.color); - writer.writeAdditionalData(applyCellColorFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCellColorFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCellColorFilter/index.ts index 6732bfecdee..d12f745eb7c 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCellColorFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCellColorFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyCellColorFilterPostRequestBody, serializeApplyCellColorFilterPostRequestBody, type ApplyCellColorFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyCellColorFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The color property + */ + color?: string; +} +export function createApplyCellColorFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyCellColorFilterPostRequestBody; +} +export function deserializeIntoApplyCellColorFilterPostRequestBody(applyCellColorFilterPostRequestBody: ApplyCellColorFilterPostRequestBody | undefined = {} as ApplyCellColorFilterPostRequestBody) : Record void> { + return { + "color": n => { applyCellColorFilterPostRequestBody.color = n.getStringValue(); }, + } +} +export function serializeApplyCellColorFilterPostRequestBody(writer: SerializationWriter, applyCellColorFilterPostRequestBody: ApplyCellColorFilterPostRequestBody | undefined = {} as ApplyCellColorFilterPostRequestBody) : void { + writer.writeStringValue("color", applyCellColorFilterPostRequestBody.color); + writer.writeAdditionalData(applyCellColorFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyCellColorFilter method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCustomFilter/applyCustomFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCustomFilter/applyCustomFilterPostRequestBody.ts deleted file mode 100644 index 45dd0cb5f96..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCustomFilter/applyCustomFilterPostRequestBody.ts +++ /dev/null @@ -1,42 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyCustomFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria1 property - */ - criteria1?: string; - /** - * The criteria2 property - */ - criteria2?: string; - /** - * The oper property - */ - oper?: string; -} -export function createApplyCustomFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyCustomFilterPostRequestBody; -} -export function deserializeIntoApplyCustomFilterPostRequestBody(applyCustomFilterPostRequestBody: ApplyCustomFilterPostRequestBody | undefined = {} as ApplyCustomFilterPostRequestBody) : Record void> { - return { - "criteria1": n => { applyCustomFilterPostRequestBody.criteria1 = n.getStringValue(); }, - "criteria2": n => { applyCustomFilterPostRequestBody.criteria2 = n.getStringValue(); }, - "oper": n => { applyCustomFilterPostRequestBody.oper = n.getStringValue(); }, - } -} -export function serializeApplyCustomFilterPostRequestBody(writer: SerializationWriter, applyCustomFilterPostRequestBody: ApplyCustomFilterPostRequestBody | undefined = {} as ApplyCustomFilterPostRequestBody) : void { - writer.writeStringValue("criteria1", applyCustomFilterPostRequestBody.criteria1); - writer.writeStringValue("criteria2", applyCustomFilterPostRequestBody.criteria2); - writer.writeStringValue("oper", applyCustomFilterPostRequestBody.oper); - writer.writeAdditionalData(applyCustomFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCustomFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCustomFilter/index.ts index 58b8adc433e..219929b7f81 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCustomFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyCustomFilter/index.ts @@ -1,11 +1,45 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyCustomFilterPostRequestBody, serializeApplyCustomFilterPostRequestBody, type ApplyCustomFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyCustomFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria1 property + */ + criteria1?: string; + /** + * The criteria2 property + */ + criteria2?: string; + /** + * The oper property + */ + oper?: string; +} +export function createApplyCustomFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyCustomFilterPostRequestBody; +} +export function deserializeIntoApplyCustomFilterPostRequestBody(applyCustomFilterPostRequestBody: ApplyCustomFilterPostRequestBody | undefined = {} as ApplyCustomFilterPostRequestBody) : Record void> { + return { + "criteria1": n => { applyCustomFilterPostRequestBody.criteria1 = n.getStringValue(); }, + "criteria2": n => { applyCustomFilterPostRequestBody.criteria2 = n.getStringValue(); }, + "oper": n => { applyCustomFilterPostRequestBody.oper = n.getStringValue(); }, + } +} +export function serializeApplyCustomFilterPostRequestBody(writer: SerializationWriter, applyCustomFilterPostRequestBody: ApplyCustomFilterPostRequestBody | undefined = {} as ApplyCustomFilterPostRequestBody) : void { + writer.writeStringValue("criteria1", applyCustomFilterPostRequestBody.criteria1); + writer.writeStringValue("criteria2", applyCustomFilterPostRequestBody.criteria2); + writer.writeStringValue("oper", applyCustomFilterPostRequestBody.oper); + writer.writeAdditionalData(applyCustomFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyCustomFilter method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyDynamicFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyDynamicFilter/index.ts index c26ae172b77..4bf7d7a584c 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyDynamicFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyDynamicFilter/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ApplyDynamicFilterPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,56 +26,5 @@ export function serializeApplyDynamicFilterPostRequestBody(writer: Serialization writer.writeStringValue("criteria", applyDynamicFilterPostRequestBody.criteria); writer.writeAdditionalData(applyDynamicFilterPostRequestBody.additionalData); } -/** - * Provides operations to call the applyDynamicFilter method. - */ -export class ApplyDynamicFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ApplyDynamicFilterRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter"); - }; - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - */ - public post(body: ApplyDynamicFilterPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ApplyDynamicFilterPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeApplyDynamicFilterPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a applyDynamicFilterRequestBuilder - */ - public withUrl(rawUrl: string) : ApplyDynamicFilterRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ApplyDynamicFilterRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyFontColorFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyFontColorFilter/index.ts index 1bba39d4206..b42a0a932a2 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyFontColorFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyFontColorFilter/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ApplyFontColorFilterPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,56 +26,5 @@ export function serializeApplyFontColorFilterPostRequestBody(writer: Serializati writer.writeStringValue("color", applyFontColorFilterPostRequestBody.color); writer.writeAdditionalData(applyFontColorFilterPostRequestBody.additionalData); } -/** - * Provides operations to call the applyFontColorFilter method. - */ -export class ApplyFontColorFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ApplyFontColorFilterRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter"); - }; - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - */ - public post(body: ApplyFontColorFilterPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ApplyFontColorFilterPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeApplyFontColorFilterPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a applyFontColorFilterRequestBuilder - */ - public withUrl(rawUrl: string) : ApplyFontColorFilterRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ApplyFontColorFilterRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyIconFilter/applyIconFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyIconFilter/applyIconFilterPostRequestBody.ts deleted file mode 100644 index c58feb6d9d8..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyIconFilter/applyIconFilterPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createWorkbookIconFromDiscriminatorValue, serializeWorkbookIcon, type WorkbookIcon } from '../../../../../../../../../../../models/workbookIcon'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyIconFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The icon property - */ - icon?: WorkbookIcon; -} -export function createApplyIconFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyIconFilterPostRequestBody; -} -export function deserializeIntoApplyIconFilterPostRequestBody(applyIconFilterPostRequestBody: ApplyIconFilterPostRequestBody | undefined = {} as ApplyIconFilterPostRequestBody) : Record void> { - return { - "icon": n => { applyIconFilterPostRequestBody.icon = n.getObjectValue(createWorkbookIconFromDiscriminatorValue); }, - } -} -export function serializeApplyIconFilterPostRequestBody(writer: SerializationWriter, applyIconFilterPostRequestBody: ApplyIconFilterPostRequestBody | undefined = {} as ApplyIconFilterPostRequestBody) : void { - writer.writeObjectValue("icon", applyIconFilterPostRequestBody.icon, serializeWorkbookIcon); - writer.writeAdditionalData(applyIconFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyIconFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyIconFilter/index.ts index 1867870b9ff..15732dba9cf 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyIconFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyIconFilter/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyIconFilterPostRequestBody, serializeApplyIconFilterPostRequestBody, type ApplyIconFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createWorkbookIconFromDiscriminatorValue, serializeWorkbookIcon, type WorkbookIcon } from '../../../../../../../../../../../models/workbookIcon'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyIconFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The icon property + */ + icon?: WorkbookIcon; +} +export function createApplyIconFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyIconFilterPostRequestBody; +} +export function deserializeIntoApplyIconFilterPostRequestBody(applyIconFilterPostRequestBody: ApplyIconFilterPostRequestBody | undefined = {} as ApplyIconFilterPostRequestBody) : Record void> { + return { + "icon": n => { applyIconFilterPostRequestBody.icon = n.getObjectValue(createWorkbookIconFromDiscriminatorValue); }, + } +} +export function serializeApplyIconFilterPostRequestBody(writer: SerializationWriter, applyIconFilterPostRequestBody: ApplyIconFilterPostRequestBody | undefined = {} as ApplyIconFilterPostRequestBody) : void { + writer.writeObjectValue("icon", applyIconFilterPostRequestBody.icon, serializeWorkbookIcon); + writer.writeAdditionalData(applyIconFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyIconFilter method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopItemsFilter/applyTopItemsFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopItemsFilter/applyTopItemsFilterPostRequestBody.ts deleted file mode 100644 index be3717ff0aa..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopItemsFilter/applyTopItemsFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyTopItemsFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The count property - */ - count?: number; -} -export function createApplyTopItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyTopItemsFilterPostRequestBody; -} -export function deserializeIntoApplyTopItemsFilterPostRequestBody(applyTopItemsFilterPostRequestBody: ApplyTopItemsFilterPostRequestBody | undefined = {} as ApplyTopItemsFilterPostRequestBody) : Record void> { - return { - "count": n => { applyTopItemsFilterPostRequestBody.count = n.getNumberValue(); }, - } -} -export function serializeApplyTopItemsFilterPostRequestBody(writer: SerializationWriter, applyTopItemsFilterPostRequestBody: ApplyTopItemsFilterPostRequestBody | undefined = {} as ApplyTopItemsFilterPostRequestBody) : void { - writer.writeNumberValue("count", applyTopItemsFilterPostRequestBody.count); - writer.writeAdditionalData(applyTopItemsFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopItemsFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopItemsFilter/index.ts index 3ae0e5b6cb6..250b574a2e2 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopItemsFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopItemsFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyTopItemsFilterPostRequestBody, serializeApplyTopItemsFilterPostRequestBody, type ApplyTopItemsFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyTopItemsFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The count property + */ + count?: number; +} +export function createApplyTopItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyTopItemsFilterPostRequestBody; +} +export function deserializeIntoApplyTopItemsFilterPostRequestBody(applyTopItemsFilterPostRequestBody: ApplyTopItemsFilterPostRequestBody | undefined = {} as ApplyTopItemsFilterPostRequestBody) : Record void> { + return { + "count": n => { applyTopItemsFilterPostRequestBody.count = n.getNumberValue(); }, + } +} +export function serializeApplyTopItemsFilterPostRequestBody(writer: SerializationWriter, applyTopItemsFilterPostRequestBody: ApplyTopItemsFilterPostRequestBody | undefined = {} as ApplyTopItemsFilterPostRequestBody) : void { + writer.writeNumberValue("count", applyTopItemsFilterPostRequestBody.count); + writer.writeAdditionalData(applyTopItemsFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyTopItemsFilter method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopPercentFilter/applyTopPercentFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopPercentFilter/applyTopPercentFilterPostRequestBody.ts deleted file mode 100644 index 31c55b887be..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopPercentFilter/applyTopPercentFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyTopPercentFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The percent property - */ - percent?: number; -} -export function createApplyTopPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyTopPercentFilterPostRequestBody; -} -export function deserializeIntoApplyTopPercentFilterPostRequestBody(applyTopPercentFilterPostRequestBody: ApplyTopPercentFilterPostRequestBody | undefined = {} as ApplyTopPercentFilterPostRequestBody) : Record void> { - return { - "percent": n => { applyTopPercentFilterPostRequestBody.percent = n.getNumberValue(); }, - } -} -export function serializeApplyTopPercentFilterPostRequestBody(writer: SerializationWriter, applyTopPercentFilterPostRequestBody: ApplyTopPercentFilterPostRequestBody | undefined = {} as ApplyTopPercentFilterPostRequestBody) : void { - writer.writeNumberValue("percent", applyTopPercentFilterPostRequestBody.percent); - writer.writeAdditionalData(applyTopPercentFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopPercentFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopPercentFilter/index.ts index 9c7be27f23c..ebea13e40f8 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopPercentFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyTopPercentFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyTopPercentFilterPostRequestBody, serializeApplyTopPercentFilterPostRequestBody, type ApplyTopPercentFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyTopPercentFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The percent property + */ + percent?: number; +} +export function createApplyTopPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyTopPercentFilterPostRequestBody; +} +export function deserializeIntoApplyTopPercentFilterPostRequestBody(applyTopPercentFilterPostRequestBody: ApplyTopPercentFilterPostRequestBody | undefined = {} as ApplyTopPercentFilterPostRequestBody) : Record void> { + return { + "percent": n => { applyTopPercentFilterPostRequestBody.percent = n.getNumberValue(); }, + } +} +export function serializeApplyTopPercentFilterPostRequestBody(writer: SerializationWriter, applyTopPercentFilterPostRequestBody: ApplyTopPercentFilterPostRequestBody | undefined = {} as ApplyTopPercentFilterPostRequestBody) : void { + writer.writeNumberValue("percent", applyTopPercentFilterPostRequestBody.percent); + writer.writeAdditionalData(applyTopPercentFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyTopPercentFilter method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyValuesFilter/applyValuesFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyValuesFilter/applyValuesFilterPostRequestBody.ts deleted file mode 100644 index bd8c51a6578..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyValuesFilter/applyValuesFilterPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyValuesFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function createApplyValuesFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyValuesFilterPostRequestBody; -} -export function deserializeIntoApplyValuesFilterPostRequestBody(applyValuesFilterPostRequestBody: ApplyValuesFilterPostRequestBody | undefined = {} as ApplyValuesFilterPostRequestBody) : Record void> { - return { - "values": n => { applyValuesFilterPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeApplyValuesFilterPostRequestBody(writer: SerializationWriter, applyValuesFilterPostRequestBody: ApplyValuesFilterPostRequestBody | undefined = {} as ApplyValuesFilterPostRequestBody) : void { - writer.writeObjectValue("values", applyValuesFilterPostRequestBody.values, serializeJson); - writer.writeAdditionalData(applyValuesFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyValuesFilter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyValuesFilter/index.ts index af3dd60fcd0..44c586f335f 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyValuesFilter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/applyValuesFilter/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyValuesFilterPostRequestBody, serializeApplyValuesFilterPostRequestBody, type ApplyValuesFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyValuesFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function createApplyValuesFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyValuesFilterPostRequestBody; +} +export function deserializeIntoApplyValuesFilterPostRequestBody(applyValuesFilterPostRequestBody: ApplyValuesFilterPostRequestBody | undefined = {} as ApplyValuesFilterPostRequestBody) : Record void> { + return { + "values": n => { applyValuesFilterPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeApplyValuesFilterPostRequestBody(writer: SerializationWriter, applyValuesFilterPostRequestBody: ApplyValuesFilterPostRequestBody | undefined = {} as ApplyValuesFilterPostRequestBody) : void { + writer.writeObjectValue("values", applyValuesFilterPostRequestBody.values, serializeJson); + writer.writeAdditionalData(applyValuesFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyValuesFilter method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/clear/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/clear/index.ts index cb7c41a7ff3..6845b46add0 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/clear/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/index.ts index 5927301a38c..267ca482975 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/filter/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/filter/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFilterFromDiscriminatorValue, deserializeIntoWorkbookFilter, serializeWorkbookFilter, type WorkbookFilter } from '../../../../../../../../../../models/workbookFilter'; -import { ApplyRequestBuilder } from './apply/'; -import { ApplyBottomItemsFilterRequestBuilder } from './applyBottomItemsFilter/'; -import { ApplyBottomPercentFilterRequestBuilder } from './applyBottomPercentFilter/'; -import { ApplyCellColorFilterRequestBuilder } from './applyCellColorFilter/'; -import { ApplyCustomFilterRequestBuilder } from './applyCustomFilter/'; -import { ApplyDynamicFilterRequestBuilder } from './applyDynamicFilter/'; -import { ApplyFontColorFilterRequestBuilder } from './applyFontColorFilter/'; -import { ApplyIconFilterRequestBuilder } from './applyIconFilter/'; -import { ApplyTopItemsFilterRequestBuilder } from './applyTopItemsFilter/'; -import { ApplyTopPercentFilterRequestBuilder } from './applyTopPercentFilter/'; -import { ApplyValuesFilterRequestBuilder } from './applyValuesFilter/'; -import { ClearRequestBuilder } from './clear/'; +import { ApplyRequestBuilder } from './apply'; +import { ApplyBottomItemsFilterRequestBuilder } from './applyBottomItemsFilter'; +import { ApplyBottomPercentFilterRequestBuilder } from './applyBottomPercentFilter'; +import { ApplyCellColorFilterRequestBuilder } from './applyCellColorFilter'; +import { ApplyCustomFilterRequestBuilder } from './applyCustomFilter'; +import { ApplyDynamicFilterRequestBuilder } from './applyDynamicFilter'; +import { ApplyFontColorFilterRequestBuilder } from './applyFontColorFilter'; +import { ApplyIconFilterRequestBuilder } from './applyIconFilter'; +import { ApplyTopItemsFilterRequestBuilder } from './applyTopItemsFilter'; +import { ApplyTopPercentFilterRequestBuilder } from './applyTopPercentFilter'; +import { ApplyValuesFilterRequestBuilder } from './applyValuesFilter'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilterRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/headerRowRange/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/headerRowRange/index.ts index 0e911ee0f48..56e121aa631 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/headerRowRange/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/headerRowRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/index.ts index b1c58ead08c..c91f9eea7cc 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableColumnFromDiscriminatorValue, deserializeIntoWorkbookTableColumn, serializeWorkbookTableColumn, type WorkbookTableColumn } from '../../../../../../../../../models/workbookTableColumn'; -import { DataBodyRangeRequestBuilder } from './dataBodyRange/'; -import { FilterRequestBuilder } from './filter/'; -import { HeaderRowRangeRequestBuilder } from './headerRowRange/'; -import { RangeRequestBuilder } from './range/'; -import { TotalRowRangeRequestBuilder } from './totalRowRange/'; +import { DataBodyRangeRequestBuilder } from './dataBodyRange'; +import { FilterRequestBuilder } from './filter'; +import { HeaderRowRangeRequestBuilder } from './headerRowRange'; +import { RangeRequestBuilder } from './range'; +import { TotalRowRangeRequestBuilder } from './totalRowRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookTableColumnItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/range/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/range/index.ts index 1f8bda5af0a..0b15f949b60 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/range/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/columns/item/totalRowRange/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/item/totalRowRange/index.ts index 56694c32f81..f29f3b7436a 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/item/totalRowRange/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/item/totalRowRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/index.ts index 7c5a539cb60..ec15193b318 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableColumn } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableColumn } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableColumnFromDiscriminatorValue } from '../../../../../../../../../models/workbookTableColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/convertToRange/index.ts b/src/drives/item/items/item/workbook/tables/item/convertToRange/index.ts index 72bf45a55f4..16b436c544d 100644 --- a/src/drives/item/items/item/workbook/tables/item/convertToRange/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/convertToRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/dataBodyRange/index.ts b/src/drives/item/items/item/workbook/tables/item/dataBodyRange/index.ts index 5654a354225..ef2a7117017 100644 --- a/src/drives/item/items/item/workbook/tables/item/dataBodyRange/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/dataBodyRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/headerRowRange/index.ts b/src/drives/item/items/item/workbook/tables/item/headerRowRange/index.ts index f574f6c5d52..52c95a19788 100644 --- a/src/drives/item/items/item/workbook/tables/item/headerRowRange/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/headerRowRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/index.ts b/src/drives/item/items/item/workbook/tables/item/index.ts index 8b1854afabb..3a38d1e596b 100644 --- a/src/drives/item/items/item/workbook/tables/item/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableFromDiscriminatorValue, deserializeIntoWorkbookTable, serializeWorkbookTable, type WorkbookTable } from '../../../../../../../models/workbookTable'; -import { ClearFiltersRequestBuilder } from './clearFilters/'; -import { ColumnsRequestBuilder } from './columns/'; -import { ConvertToRangeRequestBuilder } from './convertToRange/'; -import { DataBodyRangeRequestBuilder } from './dataBodyRange/'; -import { HeaderRowRangeRequestBuilder } from './headerRowRange/'; -import { RangeRequestBuilder } from './range/'; -import { ReapplyFiltersRequestBuilder } from './reapplyFilters/'; -import { RowsRequestBuilder } from './rows/'; -import { SortRequestBuilder } from './sort/'; -import { TotalRowRangeRequestBuilder } from './totalRowRange/'; -import { WorksheetRequestBuilder } from './worksheet/'; +import { ClearFiltersRequestBuilder } from './clearFilters'; +import { ColumnsRequestBuilder } from './columns'; +import { ConvertToRangeRequestBuilder } from './convertToRange'; +import { DataBodyRangeRequestBuilder } from './dataBodyRange'; +import { HeaderRowRangeRequestBuilder } from './headerRowRange'; +import { RangeRequestBuilder } from './range'; +import { ReapplyFiltersRequestBuilder } from './reapplyFilters'; +import { RowsRequestBuilder } from './rows'; +import { SortRequestBuilder } from './sort'; +import { TotalRowRangeRequestBuilder } from './totalRowRange'; +import { WorksheetRequestBuilder } from './worksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookTableItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/tables/item/range/index.ts b/src/drives/item/items/item/workbook/tables/item/range/index.ts index d2cbcc56c40..98fbc87ca56 100644 --- a/src/drives/item/items/item/workbook/tables/item/range/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/reapplyFilters/index.ts b/src/drives/item/items/item/workbook/tables/item/reapplyFilters/index.ts index 0614d980bfe..fa70401d0e4 100644 --- a/src/drives/item/items/item/workbook/tables/item/reapplyFilters/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/reapplyFilters/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/rows/add/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/add/index.ts index 12fe3ee64d3..e8c96ad3609 100644 --- a/src/drives/item/items/item/workbook/tables/item/rows/add/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/rows/add/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookTableRowFromDiscriminatorValue, deserializeIntoWorkbookTableRow, serializeWorkbookTableRow, type WorkbookTableRow } from '../../../../../../../../../models/workbookTableRow'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,58 +33,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeObjectValue("values", addPostRequestBody.values, serializeJson); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/add"); - }; - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookTableRow - * @see {@link https://learn.microsoft.com/graph/api/tablerowcollection-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableRowFromDiscriminatorValue, errorMapping); - }; - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/rows/count/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/count/index.ts index 28bbe75da88..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/tables/item/rows/count/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/rows/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/rows/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/index.ts index d0a51fdea7a..058fddeff8d 100644 --- a/src/drives/item/items/item/workbook/tables/item/rows/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/rows/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableRowCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableRowCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableRowFromDiscriminatorValue, deserializeIntoWorkbookTableRow, serializeWorkbookTableRow, type WorkbookTableRow } from '../../../../../../../../models/workbookTableRow'; import { createWorkbookTableRowCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/workbookTableRowCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookTableRowItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { WorkbookTableRowItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RowsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/tables/item/rows/item/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/item/index.ts index 697b77a84dd..3b73516a2b0 100644 --- a/src/drives/item/items/item/workbook/tables/item/rows/item/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/rows/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableRowFromDiscriminatorValue, deserializeIntoWorkbookTableRow, serializeWorkbookTableRow, type WorkbookTableRow } from '../../../../../../../../../models/workbookTableRow'; -import { RangeRequestBuilder } from './range/'; +import { RangeRequestBuilder } from './range'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookTableRowItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/tables/item/rows/item/range/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/item/range/index.ts index 691ea96c96b..e34e6db4c4b 100644 --- a/src/drives/item/items/item/workbook/tables/item/rows/item/range/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/rows/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/index.ts index f0dd8bdb7a1..bff606c722b 100644 --- a/src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableRow } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableRow } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableRowFromDiscriminatorValue } from '../../../../../../../../../models/workbookTableRow'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/sort/apply/applyPostRequestBody.ts b/src/drives/item/items/item/workbook/tables/item/sort/apply/applyPostRequestBody.ts deleted file mode 100644 index 2f9612d1c8f..00000000000 --- a/src/drives/item/items/item/workbook/tables/item/sort/apply/applyPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createWorkbookSortFieldFromDiscriminatorValue, serializeWorkbookSortField, type WorkbookSortField } from '../../../../../../../../../models/workbookSortField'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fields property - */ - fields?: WorkbookSortField[]; - /** - * The matchCase property - */ - matchCase?: boolean; - /** - * The method property - */ - method?: string; -} -export function createApplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyPostRequestBody; -} -export function deserializeIntoApplyPostRequestBody(applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : Record void> { - return { - "fields": n => { applyPostRequestBody.fields = n.getCollectionOfObjectValues(createWorkbookSortFieldFromDiscriminatorValue); }, - "matchCase": n => { applyPostRequestBody.matchCase = n.getBooleanValue(); }, - "method": n => { applyPostRequestBody.method = n.getStringValue(); }, - } -} -export function serializeApplyPostRequestBody(writer: SerializationWriter, applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : void { - writer.writeCollectionOfObjectValues("fields", applyPostRequestBody.fields, serializeWorkbookSortField); - writer.writeBooleanValue("matchCase", applyPostRequestBody.matchCase); - writer.writeStringValue("method", applyPostRequestBody.method); - writer.writeAdditionalData(applyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/tables/item/sort/apply/index.ts b/src/drives/item/items/item/workbook/tables/item/sort/apply/index.ts index a3ae495b6db..4d1740d198a 100644 --- a/src/drives/item/items/item/workbook/tables/item/sort/apply/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/sort/apply/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyPostRequestBody, serializeApplyPostRequestBody, type ApplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createWorkbookSortFieldFromDiscriminatorValue, serializeWorkbookSortField, type WorkbookSortField } from '../../../../../../../../../models/workbookSortField'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fields property + */ + fields?: WorkbookSortField[]; + /** + * The matchCase property + */ + matchCase?: boolean; + /** + * The method property + */ + method?: string; +} +export function createApplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyPostRequestBody; +} +export function deserializeIntoApplyPostRequestBody(applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : Record void> { + return { + "fields": n => { applyPostRequestBody.fields = n.getCollectionOfObjectValues(createWorkbookSortFieldFromDiscriminatorValue); }, + "matchCase": n => { applyPostRequestBody.matchCase = n.getBooleanValue(); }, + "method": n => { applyPostRequestBody.method = n.getStringValue(); }, + } +} +export function serializeApplyPostRequestBody(writer: SerializationWriter, applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : void { + writer.writeCollectionOfObjectValues("fields", applyPostRequestBody.fields, serializeWorkbookSortField); + writer.writeBooleanValue("matchCase", applyPostRequestBody.matchCase); + writer.writeStringValue("method", applyPostRequestBody.method); + writer.writeAdditionalData(applyPostRequestBody.additionalData); +} /** * Provides operations to call the apply method. */ diff --git a/src/drives/item/items/item/workbook/tables/item/sort/clear/index.ts b/src/drives/item/items/item/workbook/tables/item/sort/clear/index.ts index 466937a1577..623a6981d49 100644 --- a/src/drives/item/items/item/workbook/tables/item/sort/clear/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/sort/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/sort/index.ts b/src/drives/item/items/item/workbook/tables/item/sort/index.ts index f8a9de5211d..1c4dd35a25a 100644 --- a/src/drives/item/items/item/workbook/tables/item/sort/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/sort/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableSortFromDiscriminatorValue, deserializeIntoWorkbookTableSort, serializeWorkbookTableSort, type WorkbookTableSort } from '../../../../../../../../models/workbookTableSort'; -import { ApplyRequestBuilder } from './apply/'; -import { ClearRequestBuilder } from './clear/'; -import { ReapplyRequestBuilder } from './reapply/'; +import { ApplyRequestBuilder } from './apply'; +import { ClearRequestBuilder } from './clear'; +import { ReapplyRequestBuilder } from './reapply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SortRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/tables/item/sort/reapply/index.ts b/src/drives/item/items/item/workbook/tables/item/sort/reapply/index.ts index c0e61789fe5..70b4098f4db 100644 --- a/src/drives/item/items/item/workbook/tables/item/sort/reapply/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/sort/reapply/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/totalRowRange/index.ts b/src/drives/item/items/item/workbook/tables/item/totalRowRange/index.ts index 47028691c9f..8980bc12886 100644 --- a/src/drives/item/items/item/workbook/tables/item/totalRowRange/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/totalRowRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/item/worksheet/index.ts b/src/drives/item/items/item/workbook/tables/item/worksheet/index.ts index 38f5ed1018c..21c51190607 100644 --- a/src/drives/item/items/item/workbook/tables/item/worksheet/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/worksheet/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookWorksheet } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookWorksheet } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetFromDiscriminatorValue } from '../../../../../../../../models/workbookWorksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/index.ts index 0f3db100583..827cd0f5a7e 100644 --- a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTable } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type WorkbookTable } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableFromDiscriminatorValue } from '../../../../../../../models/workbookTable'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/add/index.ts b/src/drives/item/items/item/workbook/worksheets/add/index.ts index f3677b07b79..b65673cc4ed 100644 --- a/src/drives/item/items/item/workbook/worksheets/add/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/add/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookWorksheetFromDiscriminatorValue, deserializeIntoWorkbookWorksheet, serializeWorkbookWorksheet, type WorkbookWorksheet } from '../../../../../../../models/workbookWorksheet'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeStringValue("name", addPostRequestBody.name); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/add"); - }; - /** - * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookWorksheet - * @see {@link https://learn.microsoft.com/graph/api/worksheetcollection-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookWorksheetFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/count/index.ts b/src/drives/item/items/item/workbook/worksheets/count/index.ts index be646a751a6..df4b50535a9 100644 --- a/src/drives/item/items/item/workbook/worksheets/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/index.ts b/src/drives/item/items/item/workbook/worksheets/index.ts index f4cd524d649..7662c2729fa 100644 --- a/src/drives/item/items/item/workbook/worksheets/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookWorksheetCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type WorkbookWorksheetCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetFromDiscriminatorValue, deserializeIntoWorkbookWorksheet, serializeWorkbookWorksheet, type WorkbookWorksheet } from '../../../../../../models/workbookWorksheet'; import { createWorkbookWorksheetCollectionResponseFromDiscriminatorValue } from '../../../../../../models/workbookWorksheetCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookWorksheetItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { WorkbookWorksheetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorksheetsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/cellWithRowWithColumn/index.ts b/src/drives/item/items/item/workbook/worksheets/item/cellWithRowWithColumn/index.ts index d99641528a6..b6c8834eca5 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/cellWithRowWithColumn/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/cellWithRowWithColumn/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/add/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/add/index.ts index 8b366e726fb..df692f76d46 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/add/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/add/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookChartFromDiscriminatorValue, deserializeIntoWorkbookChart, serializeWorkbookChart, type WorkbookChart } from '../../../../../../../../../models/workbookChart'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,58 +39,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeStringValue("type", addPostRequestBody.type); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/add"); - }; - /** - * Creates a new chart. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookChart - * @see {@link https://learn.microsoft.com/graph/api/chartcollection-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartFromDiscriminatorValue, errorMapping); - }; - /** - * Creates a new chart. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/count/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/count/index.ts index c495f4dc060..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/index.ts index 725644bba5b..95da2ac5aaf 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookChartCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookChartCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFromDiscriminatorValue, deserializeIntoWorkbookChart, serializeWorkbookChart, type WorkbookChart } from '../../../../../../../../models/workbookChart'; import { createWorkbookChartCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/workbookChartCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookChartItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; -import { ItemWithNameRequestBuilder } from './itemWithName/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { WorkbookChartItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; +import { ItemWithNameRequestBuilder } from './itemWithName'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChartsRequestBuilderGetQueryParameters { @@ -86,7 +86,7 @@ export class ChartsRequestBuilder extends BaseRequestBuilder { * Retrieve a list of chart objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookChartCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/chart-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/font/index.ts index 66900035e7e..925571316ab 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/index.ts index 1ebb3f3015c..f9e0fa703b3 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAxisFormat, serializeWorkbookChartAxisFormat, type WorkbookChartAxisFormat } from '../../../../../../../../../../../../models/workbookChartAxisFormat'; -import { FontRequestBuilder } from './font/'; -import { LineRequestBuilder } from './line/'; +import { FontRequestBuilder } from './font'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/line/clear/index.ts index 928f8248070..7097bc21fde 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/line/index.ts index bee4c3c4897..735d75fce52 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/index.ts index ae0bf38e89e..d12f109d555 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisFromDiscriminatorValue, deserializeIntoWorkbookChartAxis, serializeWorkbookChartAxis, type WorkbookChartAxis } from '../../../../../../../../../../../models/workbookChartAxis'; -import { FormatRequestBuilder } from './format/'; -import { MajorGridlinesRequestBuilder } from './majorGridlines/'; -import { MinorGridlinesRequestBuilder } from './minorGridlines/'; -import { TitleRequestBuilder } from './title/'; +import { FormatRequestBuilder } from './format'; +import { MajorGridlinesRequestBuilder } from './majorGridlines'; +import { MinorGridlinesRequestBuilder } from './minorGridlines'; +import { TitleRequestBuilder } from './title'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoryAxisRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/index.ts index e49e38d0608..bc62e8e0020 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFormatFromDiscriminatorValue, deserializeIntoWorkbookChartGridlinesFormat, serializeWorkbookChartGridlinesFormat, type WorkbookChartGridlinesFormat } from '../../../../../../../../../../../../../models/workbookChartGridlinesFormat'; -import { LineRequestBuilder } from './line/'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/line/clear/index.ts index 7876020be01..76c6b13f0c0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/line/index.ts index edf967b3b64..3711628dd3f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/index.ts index 72a0d4ea8f4..e36f2b0cf7b 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/majorGridlines/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFromDiscriminatorValue, deserializeIntoWorkbookChartGridlines, serializeWorkbookChartGridlines, type WorkbookChartGridlines } from '../../../../../../../../../../../../models/workbookChartGridlines'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MajorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/index.ts index 1cab169d719..f9c0d44d622 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFormatFromDiscriminatorValue, deserializeIntoWorkbookChartGridlinesFormat, serializeWorkbookChartGridlinesFormat, type WorkbookChartGridlinesFormat } from '../../../../../../../../../../../../../models/workbookChartGridlinesFormat'; -import { LineRequestBuilder } from './line/'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/line/clear/index.ts index 515156a01b3..8d42297be92 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/line/index.ts index 4dc99cd0033..988d1f8c682 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/index.ts index 7cfe678bbe8..6ee1229ddda 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/minorGridlines/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFromDiscriminatorValue, deserializeIntoWorkbookChartGridlines, serializeWorkbookChartGridlines, type WorkbookChartGridlines } from '../../../../../../../../../../../../models/workbookChartGridlines'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MinorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/format/font/index.ts index d9d6cb36f4b..ac6470183a2 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/format/index.ts index 6894a9b9c9c..696fa4b72d1 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisTitleFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAxisTitleFormat, serializeWorkbookChartAxisTitleFormat, type WorkbookChartAxisTitleFormat } from '../../../../../../../../../../../../../models/workbookChartAxisTitleFormat'; -import { FontRequestBuilder } from './font/'; +import { FontRequestBuilder } from './font'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/index.ts index 3d1554a93eb..3a1b3da28c0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/categoryAxis/title/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisTitleFromDiscriminatorValue, deserializeIntoWorkbookChartAxisTitle, serializeWorkbookChartAxisTitle, type WorkbookChartAxisTitle } from '../../../../../../../../../../../../models/workbookChartAxisTitle'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TitleRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/index.ts index d2f0adb8419..fc0e0a0bec6 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxesFromDiscriminatorValue, deserializeIntoWorkbookChartAxes, serializeWorkbookChartAxes, type WorkbookChartAxes } from '../../../../../../../../../../models/workbookChartAxes'; -import { CategoryAxisRequestBuilder } from './categoryAxis/'; -import { SeriesAxisRequestBuilder } from './seriesAxis/'; -import { ValueAxisRequestBuilder } from './valueAxis/'; +import { CategoryAxisRequestBuilder } from './categoryAxis'; +import { SeriesAxisRequestBuilder } from './seriesAxis'; +import { ValueAxisRequestBuilder } from './valueAxis'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AxesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/font/index.ts index 645bb23e16f..c8e9560aac1 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/index.ts index dac1aa83c56..0243708e79e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAxisFormat, serializeWorkbookChartAxisFormat, type WorkbookChartAxisFormat } from '../../../../../../../../../../../../models/workbookChartAxisFormat'; -import { FontRequestBuilder } from './font/'; -import { LineRequestBuilder } from './line/'; +import { FontRequestBuilder } from './font'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/line/clear/index.ts index 61e00e2ddd0..d581f6faba9 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/line/index.ts index 4265c3eb5e0..4fcc001f91d 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/index.ts index 1229e787352..20085148924 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisFromDiscriminatorValue, deserializeIntoWorkbookChartAxis, serializeWorkbookChartAxis, type WorkbookChartAxis } from '../../../../../../../../../../../models/workbookChartAxis'; -import { FormatRequestBuilder } from './format/'; -import { MajorGridlinesRequestBuilder } from './majorGridlines/'; -import { MinorGridlinesRequestBuilder } from './minorGridlines/'; -import { TitleRequestBuilder } from './title/'; +import { FormatRequestBuilder } from './format'; +import { MajorGridlinesRequestBuilder } from './majorGridlines'; +import { MinorGridlinesRequestBuilder } from './minorGridlines'; +import { TitleRequestBuilder } from './title'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SeriesAxisRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/index.ts index fa47fa63d8d..ed367487ddf 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFormatFromDiscriminatorValue, deserializeIntoWorkbookChartGridlinesFormat, serializeWorkbookChartGridlinesFormat, type WorkbookChartGridlinesFormat } from '../../../../../../../../../../../../../models/workbookChartGridlinesFormat'; -import { LineRequestBuilder } from './line/'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/line/clear/index.ts index f081ce8ed91..19b8f99dc9c 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/line/index.ts index 5ebbd298794..b99b07251d6 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/index.ts index fe01ba6327e..77533574767 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/majorGridlines/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFromDiscriminatorValue, deserializeIntoWorkbookChartGridlines, serializeWorkbookChartGridlines, type WorkbookChartGridlines } from '../../../../../../../../../../../../models/workbookChartGridlines'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MajorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/index.ts index 2c545c4ee2c..ea2a19b337a 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFormatFromDiscriminatorValue, deserializeIntoWorkbookChartGridlinesFormat, serializeWorkbookChartGridlinesFormat, type WorkbookChartGridlinesFormat } from '../../../../../../../../../../../../../models/workbookChartGridlinesFormat'; -import { LineRequestBuilder } from './line/'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/line/clear/index.ts index fb6714ce451..814d2e0ef93 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/line/index.ts index 27979004e63..d93f22d0392 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/index.ts index 368dc0ff601..111fa23ec8f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/minorGridlines/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFromDiscriminatorValue, deserializeIntoWorkbookChartGridlines, serializeWorkbookChartGridlines, type WorkbookChartGridlines } from '../../../../../../../../../../../../models/workbookChartGridlines'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MinorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/format/font/index.ts index cec29a1d0cb..cf1a01f56de 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/format/index.ts index 25ba31b7867..b03bb31bc24 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisTitleFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAxisTitleFormat, serializeWorkbookChartAxisTitleFormat, type WorkbookChartAxisTitleFormat } from '../../../../../../../../../../../../../models/workbookChartAxisTitleFormat'; -import { FontRequestBuilder } from './font/'; +import { FontRequestBuilder } from './font'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/index.ts index d826029ab51..b01332bff29 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/seriesAxis/title/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisTitleFromDiscriminatorValue, deserializeIntoWorkbookChartAxisTitle, serializeWorkbookChartAxisTitle, type WorkbookChartAxisTitle } from '../../../../../../../../../../../../models/workbookChartAxisTitle'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TitleRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/font/index.ts index c98faa47318..71e750300bb 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/index.ts index 109f3858373..86dbf1e483f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAxisFormat, serializeWorkbookChartAxisFormat, type WorkbookChartAxisFormat } from '../../../../../../../../../../../../models/workbookChartAxisFormat'; -import { FontRequestBuilder } from './font/'; -import { LineRequestBuilder } from './line/'; +import { FontRequestBuilder } from './font'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/line/clear/index.ts index aac84ba524a..dc0d9bbb89b 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/line/index.ts index d96b50ab429..85c998d1380 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/index.ts index 0046754d5e6..9b7d6f06edb 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisFromDiscriminatorValue, deserializeIntoWorkbookChartAxis, serializeWorkbookChartAxis, type WorkbookChartAxis } from '../../../../../../../../../../../models/workbookChartAxis'; -import { FormatRequestBuilder } from './format/'; -import { MajorGridlinesRequestBuilder } from './majorGridlines/'; -import { MinorGridlinesRequestBuilder } from './minorGridlines/'; -import { TitleRequestBuilder } from './title/'; +import { FormatRequestBuilder } from './format'; +import { MajorGridlinesRequestBuilder } from './majorGridlines'; +import { MinorGridlinesRequestBuilder } from './minorGridlines'; +import { TitleRequestBuilder } from './title'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ValueAxisRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/index.ts index 75785d322ee..0ceba42b4f2 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFormatFromDiscriminatorValue, deserializeIntoWorkbookChartGridlinesFormat, serializeWorkbookChartGridlinesFormat, type WorkbookChartGridlinesFormat } from '../../../../../../../../../../../../../models/workbookChartGridlinesFormat'; -import { LineRequestBuilder } from './line/'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/line/clear/index.ts index 6d3acbc9b9c..7e058458024 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/line/index.ts index bdd43d0c840..af5f37e62b5 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/index.ts index 8f329e0a057..d5e17aa6abd 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/majorGridlines/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFromDiscriminatorValue, deserializeIntoWorkbookChartGridlines, serializeWorkbookChartGridlines, type WorkbookChartGridlines } from '../../../../../../../../../../../../models/workbookChartGridlines'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MajorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/index.ts index 8991242e4e4..5008b3d38e3 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFormatFromDiscriminatorValue, deserializeIntoWorkbookChartGridlinesFormat, serializeWorkbookChartGridlinesFormat, type WorkbookChartGridlinesFormat } from '../../../../../../../../../../../../../models/workbookChartGridlinesFormat'; -import { LineRequestBuilder } from './line/'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/line/clear/index.ts index 89a6039225d..daec029e0d3 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/line/index.ts index 2fc0fbc35b1..89e1b229e8a 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/index.ts index 0c2ebd38f19..0a6ae585785 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/minorGridlines/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartGridlinesFromDiscriminatorValue, deserializeIntoWorkbookChartGridlines, serializeWorkbookChartGridlines, type WorkbookChartGridlines } from '../../../../../../../../../../../../models/workbookChartGridlines'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MinorGridlinesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/format/font/index.ts index e00e9e9d710..b04940cf446 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/format/index.ts index 6025e580c08..d81dcf76a5f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisTitleFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAxisTitleFormat, serializeWorkbookChartAxisTitleFormat, type WorkbookChartAxisTitleFormat } from '../../../../../../../../../../../../../models/workbookChartAxisTitleFormat'; -import { FontRequestBuilder } from './font/'; +import { FontRequestBuilder } from './font'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/index.ts index bb360c7b26f..1c06971900d 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/axes/valueAxis/title/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAxisTitleFromDiscriminatorValue, deserializeIntoWorkbookChartAxisTitle, serializeWorkbookChartAxisTitle, type WorkbookChartAxisTitle } from '../../../../../../../../../../../../models/workbookChartAxisTitle'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TitleRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/clear/index.ts index c2687876fca..172103bd193 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/index.ts index a2623ab92a3..c3ed235c772 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFillFromDiscriminatorValue, deserializeIntoWorkbookChartFill, serializeWorkbookChartFill, type WorkbookChartFill } from '../../../../../../../../../../../../models/workbookChartFill'; -import { ClearRequestBuilder } from './clear/'; -import { SetSolidColorRequestBuilder } from './setSolidColor/'; +import { ClearRequestBuilder } from './clear'; +import { SetSolidColorRequestBuilder } from './setSolidColor'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FillRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/setSolidColor/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/setSolidColor/index.ts index 4f7662ff48e..25be94fdd9a 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/setSolidColor/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/setSolidColor/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetSolidColorPostRequestBody, serializeSetSolidColorPostRequestBody, type SetSolidColorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetSolidColorPostRequestBody; +} +export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { + return { + "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, + } +} +export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { + writer.writeStringValue("color", setSolidColorPostRequestBody.color); + writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); +} +export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The color property + */ + color?: string; +} /** * Provides operations to call the setSolidColor method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/setSolidColor/setSolidColorPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/setSolidColor/setSolidColorPostRequestBody.ts deleted file mode 100644 index 8540612d4e4..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/fill/setSolidColor/setSolidColorPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetSolidColorPostRequestBody; -} -export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { - return { - "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, - } -} -export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { - writer.writeStringValue("color", setSolidColorPostRequestBody.color); - writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); -} -export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The color property - */ - color?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/font/index.ts index fc4b5af629d..95451153463 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/index.ts index 1d0cd0ff691..e3128c01383 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/format/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartDataLabelFormatFromDiscriminatorValue, deserializeIntoWorkbookChartDataLabelFormat, serializeWorkbookChartDataLabelFormat, type WorkbookChartDataLabelFormat } from '../../../../../../../../../../../models/workbookChartDataLabelFormat'; -import { FillRequestBuilder } from './fill/'; -import { FontRequestBuilder } from './font/'; +import { FillRequestBuilder } from './fill'; +import { FontRequestBuilder } from './font'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/index.ts index fc042fee90f..44d093b8394 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/dataLabels/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartDataLabelsFromDiscriminatorValue, deserializeIntoWorkbookChartDataLabels, serializeWorkbookChartDataLabels, type WorkbookChartDataLabels } from '../../../../../../../../../../models/workbookChartDataLabels'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DataLabelsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/clear/index.ts index ffa8b002549..0c334ac7885 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/index.ts index c62bb33f350..04b02def48b 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFillFromDiscriminatorValue, deserializeIntoWorkbookChartFill, serializeWorkbookChartFill, type WorkbookChartFill } from '../../../../../../../../../../../models/workbookChartFill'; -import { ClearRequestBuilder } from './clear/'; -import { SetSolidColorRequestBuilder } from './setSolidColor/'; +import { ClearRequestBuilder } from './clear'; +import { SetSolidColorRequestBuilder } from './setSolidColor'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FillRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/setSolidColor/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/setSolidColor/index.ts index 026172fa32e..27f78813b77 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/setSolidColor/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/setSolidColor/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetSolidColorPostRequestBody, serializeSetSolidColorPostRequestBody, type SetSolidColorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetSolidColorPostRequestBody; +} +export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { + return { + "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, + } +} +export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { + writer.writeStringValue("color", setSolidColorPostRequestBody.color); + writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); +} +export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The color property + */ + color?: string; +} /** * Provides operations to call the setSolidColor method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts deleted file mode 100644 index 8540612d4e4..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetSolidColorPostRequestBody; -} -export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { - return { - "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, - } -} -export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { - writer.writeStringValue("color", setSolidColorPostRequestBody.color); - writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); -} -export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The color property - */ - color?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/font/index.ts index 08c5348d09e..519c414d911 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/index.ts index 7b349c19a0e..aa6f5dde5c2 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/format/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartAreaFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAreaFormat, serializeWorkbookChartAreaFormat, type WorkbookChartAreaFormat } from '../../../../../../../../../../models/workbookChartAreaFormat'; -import { FillRequestBuilder } from './fill/'; -import { FontRequestBuilder } from './font/'; +import { FillRequestBuilder } from './fill'; +import { FontRequestBuilder } from './font'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/image/imageGetResponse.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/image/imageGetResponse.ts deleted file mode 100644 index 9a8dd30eac2..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/image/imageGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImageGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImageGetResponse; -} -export function deserializeIntoImageGetResponse(imageGetResponse: ImageGetResponse | undefined = {} as ImageGetResponse) : Record void> { - return { - "value": n => { imageGetResponse.value = n.getStringValue(); }, - } -} -export interface ImageGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: string; -} -export function serializeImageGetResponse(writer: SerializationWriter, imageGetResponse: ImageGetResponse | undefined = {} as ImageGetResponse) : void { - writer.writeStringValue("value", imageGetResponse.value); - writer.writeAdditionalData(imageGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/image/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/image/index.ts index dc575aca485..4536b58743c 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/image/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/image/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createImageGetResponseFromDiscriminatorValue } from './'; -import { type ImageGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImageGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImageGetResponse; +} +export function deserializeIntoImageGetResponse(imageGetResponse: ImageGetResponse | undefined = {} as ImageGetResponse) : Record void> { + return { + "value": n => { imageGetResponse.value = n.getStringValue(); }, + } +} +export interface ImageGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: string; +} +export function serializeImageGetResponse(writer: SerializationWriter, imageGetResponse: ImageGetResponse | undefined = {} as ImageGetResponse) : void { + writer.writeStringValue("value", imageGetResponse.value); + writer.writeAdditionalData(imageGetResponse.additionalData); +} /** * Provides operations to call the image method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidth/imageWithWidthGetResponse.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidth/imageWithWidthGetResponse.ts deleted file mode 100644 index 18c262893e9..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidth/imageWithWidthGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImageWithWidthGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImageWithWidthGetResponse; -} -export function deserializeIntoImageWithWidthGetResponse(imageWithWidthGetResponse: ImageWithWidthGetResponse | undefined = {} as ImageWithWidthGetResponse) : Record void> { - return { - "value": n => { imageWithWidthGetResponse.value = n.getStringValue(); }, - } -} -export interface ImageWithWidthGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: string; -} -export function serializeImageWithWidthGetResponse(writer: SerializationWriter, imageWithWidthGetResponse: ImageWithWidthGetResponse | undefined = {} as ImageWithWidthGetResponse) : void { - writer.writeStringValue("value", imageWithWidthGetResponse.value); - writer.writeAdditionalData(imageWithWidthGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidth/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidth/index.ts index 86bb3daa8e0..beff90d2d31 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidth/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidth/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createImageWithWidthGetResponseFromDiscriminatorValue } from './'; -import { type ImageWithWidthGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImageWithWidthGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImageWithWidthGetResponse; +} +export function deserializeIntoImageWithWidthGetResponse(imageWithWidthGetResponse: ImageWithWidthGetResponse | undefined = {} as ImageWithWidthGetResponse) : Record void> { + return { + "value": n => { imageWithWidthGetResponse.value = n.getStringValue(); }, + } +} +export interface ImageWithWidthGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: string; +} +export function serializeImageWithWidthGetResponse(writer: SerializationWriter, imageWithWidthGetResponse: ImageWithWidthGetResponse | undefined = {} as ImageWithWidthGetResponse) : void { + writer.writeStringValue("value", imageWithWidthGetResponse.value); + writer.writeAdditionalData(imageWithWidthGetResponse.additionalData); +} /** * Provides operations to call the image method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeight/imageWithWidthWithHeightGetResponse.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeight/imageWithWidthWithHeightGetResponse.ts deleted file mode 100644 index 37f1dce23aa..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeight/imageWithWidthWithHeightGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImageWithWidthWithHeightGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImageWithWidthWithHeightGetResponse; -} -export function deserializeIntoImageWithWidthWithHeightGetResponse(imageWithWidthWithHeightGetResponse: ImageWithWidthWithHeightGetResponse | undefined = {} as ImageWithWidthWithHeightGetResponse) : Record void> { - return { - "value": n => { imageWithWidthWithHeightGetResponse.value = n.getStringValue(); }, - } -} -export interface ImageWithWidthWithHeightGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: string; -} -export function serializeImageWithWidthWithHeightGetResponse(writer: SerializationWriter, imageWithWidthWithHeightGetResponse: ImageWithWidthWithHeightGetResponse | undefined = {} as ImageWithWidthWithHeightGetResponse) : void { - writer.writeStringValue("value", imageWithWidthWithHeightGetResponse.value); - writer.writeAdditionalData(imageWithWidthWithHeightGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeight/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeight/index.ts index 1e1fadefa36..33e6df282fb 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeight/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeight/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createImageWithWidthWithHeightGetResponseFromDiscriminatorValue } from './'; -import { type ImageWithWidthWithHeightGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImageWithWidthWithHeightGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImageWithWidthWithHeightGetResponse; +} +export function deserializeIntoImageWithWidthWithHeightGetResponse(imageWithWidthWithHeightGetResponse: ImageWithWidthWithHeightGetResponse | undefined = {} as ImageWithWidthWithHeightGetResponse) : Record void> { + return { + "value": n => { imageWithWidthWithHeightGetResponse.value = n.getStringValue(); }, + } +} +export interface ImageWithWidthWithHeightGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: string; +} +export function serializeImageWithWidthWithHeightGetResponse(writer: SerializationWriter, imageWithWidthWithHeightGetResponse: ImageWithWidthWithHeightGetResponse | undefined = {} as ImageWithWidthWithHeightGetResponse) : void { + writer.writeStringValue("value", imageWithWidthWithHeightGetResponse.value); + writer.writeAdditionalData(imageWithWidthWithHeightGetResponse.additionalData); +} /** * Provides operations to call the image method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeightWithFittingMode/imageWithWidthWithHeightWithFittingModeGetResponse.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeightWithFittingMode/imageWithWidthWithHeightWithFittingModeGetResponse.ts deleted file mode 100644 index c11cc939d87..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeightWithFittingMode/imageWithWidthWithHeightWithFittingModeGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoImageWithWidthWithHeightWithFittingModeGetResponse; -} -export function deserializeIntoImageWithWidthWithHeightWithFittingModeGetResponse(imageWithWidthWithHeightWithFittingModeGetResponse: ImageWithWidthWithHeightWithFittingModeGetResponse | undefined = {} as ImageWithWidthWithHeightWithFittingModeGetResponse) : Record void> { - return { - "value": n => { imageWithWidthWithHeightWithFittingModeGetResponse.value = n.getStringValue(); }, - } -} -export interface ImageWithWidthWithHeightWithFittingModeGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: string; -} -export function serializeImageWithWidthWithHeightWithFittingModeGetResponse(writer: SerializationWriter, imageWithWidthWithHeightWithFittingModeGetResponse: ImageWithWidthWithHeightWithFittingModeGetResponse | undefined = {} as ImageWithWidthWithHeightWithFittingModeGetResponse) : void { - writer.writeStringValue("value", imageWithWidthWithHeightWithFittingModeGetResponse.value); - writer.writeAdditionalData(imageWithWidthWithHeightWithFittingModeGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeightWithFittingMode/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeightWithFittingMode/index.ts index a31829ab3f4..8099f496308 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeightWithFittingMode/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/imageWithWidthWithHeightWithFittingMode/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue } from './'; -import { type ImageWithWidthWithHeightWithFittingModeGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoImageWithWidthWithHeightWithFittingModeGetResponse; +} +export function deserializeIntoImageWithWidthWithHeightWithFittingModeGetResponse(imageWithWidthWithHeightWithFittingModeGetResponse: ImageWithWidthWithHeightWithFittingModeGetResponse | undefined = {} as ImageWithWidthWithHeightWithFittingModeGetResponse) : Record void> { + return { + "value": n => { imageWithWidthWithHeightWithFittingModeGetResponse.value = n.getStringValue(); }, + } +} +export interface ImageWithWidthWithHeightWithFittingModeGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: string; +} +export function serializeImageWithWidthWithHeightWithFittingModeGetResponse(writer: SerializationWriter, imageWithWidthWithHeightWithFittingModeGetResponse: ImageWithWidthWithHeightWithFittingModeGetResponse | undefined = {} as ImageWithWidthWithHeightWithFittingModeGetResponse) : void { + writer.writeStringValue("value", imageWithWidthWithHeightWithFittingModeGetResponse.value); + writer.writeAdditionalData(imageWithWidthWithHeightWithFittingModeGetResponse.additionalData); +} /** * Provides operations to call the image method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/index.ts index cd74e2561d3..00031d0239a 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/index.ts @@ -1,22 +1,22 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFromDiscriminatorValue, deserializeIntoWorkbookChart, serializeWorkbookChart, type WorkbookChart } from '../../../../../../../../../models/workbookChart'; -import { AxesRequestBuilder } from './axes/'; -import { DataLabelsRequestBuilder } from './dataLabels/'; -import { FormatRequestBuilder } from './format/'; -import { ImageRequestBuilder } from './image/'; -import { ImageWithWidthRequestBuilder } from './imageWithWidth/'; -import { ImageWithWidthWithHeightRequestBuilder } from './imageWithWidthWithHeight/'; -import { ImageWithWidthWithHeightWithFittingModeRequestBuilder } from './imageWithWidthWithHeightWithFittingMode/'; -import { LegendRequestBuilder } from './legend/'; -import { SeriesRequestBuilder } from './series/'; -import { SetDataRequestBuilder } from './setData/'; -import { SetPositionRequestBuilder } from './setPosition/'; -import { TitleRequestBuilder } from './title/'; -import { WorksheetRequestBuilder } from './worksheet/'; +import { AxesRequestBuilder } from './axes'; +import { DataLabelsRequestBuilder } from './dataLabels'; +import { FormatRequestBuilder } from './format'; +import { ImageRequestBuilder } from './image'; +import { ImageWithWidthRequestBuilder } from './imageWithWidth'; +import { ImageWithWidthWithHeightRequestBuilder } from './imageWithWidthWithHeight'; +import { ImageWithWidthWithHeightWithFittingModeRequestBuilder } from './imageWithWidthWithHeightWithFittingMode'; +import { LegendRequestBuilder } from './legend'; +import { SeriesRequestBuilder } from './series'; +import { SetDataRequestBuilder } from './setData'; +import { SetPositionRequestBuilder } from './setPosition'; +import { TitleRequestBuilder } from './title'; +import { WorksheetRequestBuilder } from './worksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookChartItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/index.ts index e9796a11712..ca79a317d5f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/index.ts index 1a6dced3a27..435d5b0a5e1 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFillFromDiscriminatorValue, deserializeIntoWorkbookChartFill, serializeWorkbookChartFill, type WorkbookChartFill } from '../../../../../../../../../../../../models/workbookChartFill'; -import { ClearRequestBuilder } from './clear/'; -import { SetSolidColorRequestBuilder } from './setSolidColor/'; +import { ClearRequestBuilder } from './clear'; +import { SetSolidColorRequestBuilder } from './setSolidColor'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FillRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setSolidColor/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setSolidColor/index.ts index ab0d054e125..220b592f107 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setSolidColor/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setSolidColor/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetSolidColorPostRequestBody, serializeSetSolidColorPostRequestBody, type SetSolidColorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetSolidColorPostRequestBody; +} +export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { + return { + "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, + } +} +export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { + writer.writeStringValue("color", setSolidColorPostRequestBody.color); + writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); +} +export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The color property + */ + color?: string; +} /** * Provides operations to call the setSolidColor method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setSolidColor/setSolidColorPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setSolidColor/setSolidColorPostRequestBody.ts deleted file mode 100644 index 8540612d4e4..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setSolidColor/setSolidColorPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetSolidColorPostRequestBody; -} -export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { - return { - "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, - } -} -export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { - writer.writeStringValue("color", setSolidColorPostRequestBody.color); - writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); -} -export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The color property - */ - color?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/font/index.ts index d472c128b4c..fa4f4c6a220 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/index.ts index 52c082d03a6..2c052983816 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/format/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLegendFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLegendFormat, serializeWorkbookChartLegendFormat, type WorkbookChartLegendFormat } from '../../../../../../../../../../../models/workbookChartLegendFormat'; -import { FillRequestBuilder } from './fill/'; -import { FontRequestBuilder } from './font/'; +import { FillRequestBuilder } from './fill'; +import { FontRequestBuilder } from './font'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/index.ts index 6a9e655a97f..a1df500747a 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/legend/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLegendFromDiscriminatorValue, deserializeIntoWorkbookChartLegend, serializeWorkbookChartLegend, type WorkbookChartLegend } from '../../../../../../../../../../models/workbookChartLegend'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LegendRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/index.ts index 4564af42014..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/index.ts index c9013e42566..dffbbeda393 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookChartSeriesCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookChartSeriesCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartSeriesFromDiscriminatorValue, deserializeIntoWorkbookChartSeries, serializeWorkbookChartSeries, type WorkbookChartSeries } from '../../../../../../../../../../models/workbookChartSeries'; import { createWorkbookChartSeriesCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/workbookChartSeriesCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WorkbookChartSeriesItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; +import { CountRequestBuilder } from './count'; +import { WorkbookChartSeriesItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SeriesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/index.ts index 907f398bcab..30a2849c4fb 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/index.ts index d9dcf0030cc..2e5558fe1a6 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFillFromDiscriminatorValue, deserializeIntoWorkbookChartFill, serializeWorkbookChartFill, type WorkbookChartFill } from '../../../../../../../../../../../../../models/workbookChartFill'; -import { ClearRequestBuilder } from './clear/'; -import { SetSolidColorRequestBuilder } from './setSolidColor/'; +import { ClearRequestBuilder } from './clear'; +import { SetSolidColorRequestBuilder } from './setSolidColor'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FillRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setSolidColor/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setSolidColor/index.ts index f6b3e344632..773c70ce6d2 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setSolidColor/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setSolidColor/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetSolidColorPostRequestBody, serializeSetSolidColorPostRequestBody, type SetSolidColorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetSolidColorPostRequestBody; +} +export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { + return { + "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, + } +} +export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { + writer.writeStringValue("color", setSolidColorPostRequestBody.color); + writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); +} +export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The color property + */ + color?: string; +} /** * Provides operations to call the setSolidColor method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts deleted file mode 100644 index 8540612d4e4..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetSolidColorPostRequestBody; -} -export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { - return { - "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, - } -} -export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { - writer.writeStringValue("color", setSolidColorPostRequestBody.color); - writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); -} -export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The color property - */ - color?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/index.ts index 3037bd94344..1a60c77e126 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartSeriesFormatFromDiscriminatorValue, deserializeIntoWorkbookChartSeriesFormat, serializeWorkbookChartSeriesFormat, type WorkbookChartSeriesFormat } from '../../../../../../../../../../../../models/workbookChartSeriesFormat'; -import { FillRequestBuilder } from './fill/'; -import { LineRequestBuilder } from './line/'; +import { FillRequestBuilder } from './fill'; +import { LineRequestBuilder } from './line'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/index.ts index e610b9060f0..68ab8c041fe 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/index.ts index eb35f4d32d6..3f0a8454730 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/line/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartLineFormatFromDiscriminatorValue, deserializeIntoWorkbookChartLineFormat, serializeWorkbookChartLineFormat, type WorkbookChartLineFormat } from '../../../../../../../../../../../../../models/workbookChartLineFormat'; -import { ClearRequestBuilder } from './clear/'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LineRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/index.ts index 8afdb536142..40be5f87a00 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartSeriesFromDiscriminatorValue, deserializeIntoWorkbookChartSeries, serializeWorkbookChartSeries, type WorkbookChartSeries } from '../../../../../../../../../../../models/workbookChartSeries'; -import { FormatRequestBuilder } from './format/'; -import { PointsRequestBuilder } from './points/'; +import { FormatRequestBuilder } from './format'; +import { PointsRequestBuilder } from './points'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookChartSeriesItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/index.ts index 00cdf87f63e..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/index.ts index 863e1c7141a..37f3d11a072 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookChartPointCollectionResponse } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookChartPointCollectionResponse } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartPointFromDiscriminatorValue, deserializeIntoWorkbookChartPoint, serializeWorkbookChartPoint, type WorkbookChartPoint } from '../../../../../../../../../../../../models/workbookChartPoint'; import { createWorkbookChartPointCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/workbookChartPointCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WorkbookChartPointItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; +import { CountRequestBuilder } from './count'; +import { WorkbookChartPointItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PointsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/index.ts index 905bcd93f88..ef276dbfb0e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/index.ts index ae5a7b4144d..a76fb6ce18e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFillFromDiscriminatorValue, deserializeIntoWorkbookChartFill, serializeWorkbookChartFill, type WorkbookChartFill } from '../../../../../../../../../../../../../../../models/workbookChartFill'; -import { ClearRequestBuilder } from './clear/'; -import { SetSolidColorRequestBuilder } from './setSolidColor/'; +import { ClearRequestBuilder } from './clear'; +import { SetSolidColorRequestBuilder } from './setSolidColor'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FillRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setSolidColor/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setSolidColor/index.ts index c28340e6915..6400430ce4f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setSolidColor/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setSolidColor/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetSolidColorPostRequestBody, serializeSetSolidColorPostRequestBody, type SetSolidColorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetSolidColorPostRequestBody; +} +export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { + return { + "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, + } +} +export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { + writer.writeStringValue("color", setSolidColorPostRequestBody.color); + writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); +} +export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The color property + */ + color?: string; +} /** * Provides operations to call the setSolidColor method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts deleted file mode 100644 index 8540612d4e4..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setSolidColor/setSolidColorPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetSolidColorPostRequestBody; -} -export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { - return { - "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, - } -} -export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { - writer.writeStringValue("color", setSolidColorPostRequestBody.color); - writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); -} -export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The color property - */ - color?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/index.ts index 1c4ce93d7eb..af806826e14 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartPointFormatFromDiscriminatorValue, deserializeIntoWorkbookChartPointFormat, serializeWorkbookChartPointFormat, type WorkbookChartPointFormat } from '../../../../../../../../../../../../../../models/workbookChartPointFormat'; -import { FillRequestBuilder } from './fill/'; +import { FillRequestBuilder } from './fill'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/index.ts index b0d56314407..20e64f4db1b 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartPointFromDiscriminatorValue, deserializeIntoWorkbookChartPoint, serializeWorkbookChartPoint, type WorkbookChartPoint } from '../../../../../../../../../../../../../models/workbookChartPoint'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookChartPointItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itemAtWithIndex/index.ts index 451f818f4c9..6e56f7a50a0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookChartPoint } from '../../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookChartPoint } from '../../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartPointFromDiscriminatorValue } from '../../../../../../../../../../../../../models/workbookChartPoint'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/index.ts index a280f46bd55..163633b8092 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookChartSeries } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookChartSeries } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartSeriesFromDiscriminatorValue } from '../../../../../../../../../../../models/workbookChartSeries'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/setData/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/setData/index.ts index 526f329d26d..680de5f72bf 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/setData/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/setData/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetDataPostRequestBody, serializeSetDataPostRequestBody, type SetDataPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetDataPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetDataPostRequestBody; +} +export function deserializeIntoSetDataPostRequestBody(setDataPostRequestBody: SetDataPostRequestBody | undefined = {} as SetDataPostRequestBody) : Record void> { + return { + "seriesBy": n => { setDataPostRequestBody.seriesBy = n.getStringValue(); }, + "sourceData": n => { setDataPostRequestBody.sourceData = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSetDataPostRequestBody(writer: SerializationWriter, setDataPostRequestBody: SetDataPostRequestBody | undefined = {} as SetDataPostRequestBody) : void { + writer.writeStringValue("seriesBy", setDataPostRequestBody.seriesBy); + writer.writeObjectValue("sourceData", setDataPostRequestBody.sourceData, serializeJson); + writer.writeAdditionalData(setDataPostRequestBody.additionalData); +} +export interface SetDataPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The seriesBy property + */ + seriesBy?: string; + /** + * The sourceData property + */ + sourceData?: Json; +} /** * Provides operations to call the setData method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/setData/setDataPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/setData/setDataPostRequestBody.ts deleted file mode 100644 index d81bcfa7837..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/setData/setDataPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetDataPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetDataPostRequestBody; -} -export function deserializeIntoSetDataPostRequestBody(setDataPostRequestBody: SetDataPostRequestBody | undefined = {} as SetDataPostRequestBody) : Record void> { - return { - "seriesBy": n => { setDataPostRequestBody.seriesBy = n.getStringValue(); }, - "sourceData": n => { setDataPostRequestBody.sourceData = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeSetDataPostRequestBody(writer: SerializationWriter, setDataPostRequestBody: SetDataPostRequestBody | undefined = {} as SetDataPostRequestBody) : void { - writer.writeStringValue("seriesBy", setDataPostRequestBody.seriesBy); - writer.writeObjectValue("sourceData", setDataPostRequestBody.sourceData, serializeJson); - writer.writeAdditionalData(setDataPostRequestBody.additionalData); -} -export interface SetDataPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The seriesBy property - */ - seriesBy?: string; - /** - * The sourceData property - */ - sourceData?: Json; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/setPosition/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/setPosition/index.ts index f2056af6302..4e8744b7509 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/setPosition/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/setPosition/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSetPositionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,57 +33,5 @@ export interface SetPositionPostRequestBody extends AdditionalDataHolder, Parsab */ startCell?: Json; } -/** - * Provides operations to call the setPosition method. - */ -export class SetPositionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SetPositionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setPosition"); - }; - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/chart-setposition?view=graph-rest-1.0|Find more info here} - */ - public post(body: SetPositionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Positions the chart relative to cells on the worksheet. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SetPositionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetPositionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a setPositionRequestBuilder - */ - public withUrl(rawUrl: string) : SetPositionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SetPositionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/index.ts index c3f335b09ab..32c814327fe 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/index.ts index 245b0fcc4be..d62d90bd4df 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFillFromDiscriminatorValue, deserializeIntoWorkbookChartFill, serializeWorkbookChartFill, type WorkbookChartFill } from '../../../../../../../../../../../../models/workbookChartFill'; -import { ClearRequestBuilder } from './clear/'; -import { SetSolidColorRequestBuilder } from './setSolidColor/'; +import { ClearRequestBuilder } from './clear'; +import { SetSolidColorRequestBuilder } from './setSolidColor'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FillRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/setSolidColor/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/setSolidColor/index.ts index e617dc7c810..bacb0f5e4a1 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/setSolidColor/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/setSolidColor/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetSolidColorPostRequestBody, serializeSetSolidColorPostRequestBody, type SetSolidColorPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetSolidColorPostRequestBody; +} +export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { + return { + "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, + } +} +export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { + writer.writeStringValue("color", setSolidColorPostRequestBody.color); + writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); +} +export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The color property + */ + color?: string; +} /** * Provides operations to call the setSolidColor method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/setSolidColor/setSolidColorPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/setSolidColor/setSolidColorPostRequestBody.ts deleted file mode 100644 index 8540612d4e4..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/fill/setSolidColor/setSolidColorPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetSolidColorPostRequestBody; -} -export function deserializeIntoSetSolidColorPostRequestBody(setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : Record void> { - return { - "color": n => { setSolidColorPostRequestBody.color = n.getStringValue(); }, - } -} -export function serializeSetSolidColorPostRequestBody(writer: SerializationWriter, setSolidColorPostRequestBody: SetSolidColorPostRequestBody | undefined = {} as SetSolidColorPostRequestBody) : void { - writer.writeStringValue("color", setSolidColorPostRequestBody.color); - writer.writeAdditionalData(setSolidColorPostRequestBody.additionalData); -} -export interface SetSolidColorPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The color property - */ - color?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/font/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/font/index.ts index dd88f039a5e..924ad64b768 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/font/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/font/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFontFromDiscriminatorValue, deserializeIntoWorkbookChartFont, serializeWorkbookChartFont, type WorkbookChartFont } from '../../../../../../../../../../../../models/workbookChartFont'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/index.ts index f4c3388e2ea..50ce7d0c77f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartTitleFormatFromDiscriminatorValue, deserializeIntoWorkbookChartTitleFormat, serializeWorkbookChartTitleFormat, type WorkbookChartTitleFormat } from '../../../../../../../../../../../models/workbookChartTitleFormat'; -import { FillRequestBuilder } from './fill/'; -import { FontRequestBuilder } from './font/'; +import { FillRequestBuilder } from './fill'; +import { FontRequestBuilder } from './font'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FormatRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/index.ts index d706fff1f57..646b2f91685 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/title/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartTitleFromDiscriminatorValue, deserializeIntoWorkbookChartTitle, serializeWorkbookChartTitle, type WorkbookChartTitle } from '../../../../../../../../../../models/workbookChartTitle'; -import { FormatRequestBuilder } from './format/'; +import { FormatRequestBuilder } from './format'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TitleRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/worksheet/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/worksheet/index.ts index e4e1d8d7221..d3316b32b2e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/worksheet/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/worksheet/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookWorksheet } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookWorksheet } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetFromDiscriminatorValue } from '../../../../../../../../../../models/workbookWorksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/index.ts index 94a94712d61..66343b47a56 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookChart } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type WorkbookChart } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFromDiscriminatorValue } from '../../../../../../../../../models/workbookChart'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/index.ts index e786d4fe742..a412c184187 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookChart } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type WorkbookChart } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookChartFromDiscriminatorValue } from '../../../../../../../../../models/workbookChart'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/index.ts index c47c9534273..f728eb3832a 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/index.ts @@ -1,19 +1,19 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetFromDiscriminatorValue, deserializeIntoWorkbookWorksheet, serializeWorkbookWorksheet, type WorkbookWorksheet } from '../../../../../../../models/workbookWorksheet'; -import { CellWithRowWithColumnRequestBuilder } from './cellWithRowWithColumn/'; -import { ChartsRequestBuilder } from './charts/'; -import { NamesRequestBuilder } from './names/'; -import { PivotTablesRequestBuilder } from './pivotTables/'; -import { ProtectionRequestBuilder } from './protection/'; -import { RangeRequestBuilder } from './range/'; -import { RangeWithAddressRequestBuilder } from './rangeWithAddress/'; -import { TablesRequestBuilder } from './tables/'; -import { UsedRangeRequestBuilder } from './usedRange/'; -import { UsedRangeWithValuesOnlyRequestBuilder } from './usedRangeWithValuesOnly/'; +import { CellWithRowWithColumnRequestBuilder } from './cellWithRowWithColumn'; +import { ChartsRequestBuilder } from './charts'; +import { NamesRequestBuilder } from './names'; +import { PivotTablesRequestBuilder } from './pivotTables'; +import { ProtectionRequestBuilder } from './protection'; +import { RangeRequestBuilder } from './range'; +import { RangeWithAddressRequestBuilder } from './rangeWithAddress'; +import { TablesRequestBuilder } from './tables'; +import { UsedRangeRequestBuilder } from './usedRange'; +import { UsedRangeWithValuesOnlyRequestBuilder } from './usedRangeWithValuesOnly'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookWorksheetItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/names/add/index.ts b/src/drives/item/items/item/workbook/worksheets/item/names/add/index.ts index 0b507c635d7..e60d3fa30a4 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/names/add/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/names/add/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookNamedItemFromDiscriminatorValue, deserializeIntoWorkbookNamedItem, serializeWorkbookNamedItem, type WorkbookNamedItem } from '../../../../../../../../../models/workbookNamedItem'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,58 +39,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeObjectValue("reference", addPostRequestBody.reference, serializeJson); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/add"); - }; - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookNamedItem - * @see {@link https://learn.microsoft.com/graph/api/nameditem-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookNamedItemFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/names/addFormulaLocal/index.ts b/src/drives/item/items/item/workbook/worksheets/item/names/addFormulaLocal/index.ts index a576dfc31e1..2e80112a27d 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/names/addFormulaLocal/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/names/addFormulaLocal/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookNamedItemFromDiscriminatorValue, deserializeIntoWorkbookNamedItem, serializeWorkbookNamedItem, type WorkbookNamedItem } from '../../../../../../../../../models/workbookNamedItem'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddFormulaLocalPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -41,58 +38,5 @@ export function serializeAddFormulaLocalPostRequestBody(writer: SerializationWri writer.writeStringValue("name", addFormulaLocalPostRequestBody.name); writer.writeAdditionalData(addFormulaLocalPostRequestBody.additionalData); } -/** - * Provides operations to call the addFormulaLocal method. - */ -export class AddFormulaLocalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddFormulaLocalRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/addFormulaLocal"); - }; - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookNamedItem - * @see {@link https://learn.microsoft.com/graph/api/nameditem-addformulalocal?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddFormulaLocalPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookNamedItemFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a new name to the collection of the given scope using the user's locale for the formula. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddFormulaLocalPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddFormulaLocalPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addFormulaLocalRequestBuilder - */ - public withUrl(rawUrl: string) : AddFormulaLocalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddFormulaLocalRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/names/count/index.ts b/src/drives/item/items/item/workbook/worksheets/item/names/count/index.ts index cade072d447..92dadd38fe5 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/names/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/names/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/names/index.ts b/src/drives/item/items/item/workbook/worksheets/item/names/index.ts index 74f4d678fb0..1f7113ef07f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/names/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/names/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookNamedItemCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookNamedItemCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookNamedItemFromDiscriminatorValue, deserializeIntoWorkbookNamedItem, serializeWorkbookNamedItem, type WorkbookNamedItem } from '../../../../../../../../models/workbookNamedItem'; import { createWorkbookNamedItemCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/workbookNamedItemCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { AddFormulaLocalRequestBuilder } from './addFormulaLocal/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookNamedItemItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { AddFormulaLocalRequestBuilder } from './addFormulaLocal'; +import { CountRequestBuilder } from './count'; +import { WorkbookNamedItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NamesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/names/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/names/item/index.ts index eb574cd620b..edc14e866cc 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/names/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/names/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookNamedItemFromDiscriminatorValue, deserializeIntoWorkbookNamedItem, serializeWorkbookNamedItem, type WorkbookNamedItem } from '../../../../../../../../../models/workbookNamedItem'; -import { RangeRequestBuilder } from './range/'; -import { WorksheetRequestBuilder } from './worksheet/'; +import { RangeRequestBuilder } from './range'; +import { WorksheetRequestBuilder } from './worksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookNamedItemItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts index 016494c3fbe..1e67a8d9c74 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/index.ts b/src/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/index.ts index 78870150ce4..57227888e6e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookWorksheet } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookWorksheet } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetFromDiscriminatorValue } from '../../../../../../../../../../models/workbookWorksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/count/index.ts b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/count/index.ts index df28b4b4766..f67820f1eb4 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/index.ts b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/index.ts index b0e7cb6f486..c87e2b7ca17 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookPivotTableCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookPivotTableCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookPivotTableFromDiscriminatorValue, deserializeIntoWorkbookPivotTable, serializeWorkbookPivotTable, type WorkbookPivotTable } from '../../../../../../../../models/workbookPivotTable'; import { createWorkbookPivotTableCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/workbookPivotTableCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WorkbookPivotTableItemRequestBuilder } from './item/'; -import { RefreshAllRequestBuilder } from './refreshAll/'; +import { CountRequestBuilder } from './count'; +import { WorkbookPivotTableItemRequestBuilder } from './item'; +import { RefreshAllRequestBuilder } from './refreshAll'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PivotTablesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/index.ts index a1ae89cf08c..d22cd2ab8e6 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookPivotTableFromDiscriminatorValue, deserializeIntoWorkbookPivotTable, serializeWorkbookPivotTable, type WorkbookPivotTable } from '../../../../../../../../../models/workbookPivotTable'; -import { RefreshRequestBuilder } from './refresh/'; -import { WorksheetRequestBuilder } from './worksheet/'; +import { RefreshRequestBuilder } from './refresh'; +import { WorksheetRequestBuilder } from './worksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookPivotTableItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/refresh/index.ts b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/refresh/index.ts index 6423873a8bf..efe040b17a9 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/refresh/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/refresh/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/worksheet/index.ts b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/worksheet/index.ts index 99ec646a549..6e099046122 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/worksheet/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/item/worksheet/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookWorksheet } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookWorksheet } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetFromDiscriminatorValue } from '../../../../../../../../../../models/workbookWorksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/refreshAll/index.ts b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/refreshAll/index.ts index 5fd97564d44..ee979831524 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/pivotTables/refreshAll/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/pivotTables/refreshAll/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/protection/index.ts b/src/drives/item/items/item/workbook/worksheets/item/protection/index.ts index 7add427c3e3..c5a1b74a90c 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/protection/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/protection/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetProtectionFromDiscriminatorValue, deserializeIntoWorkbookWorksheetProtection, serializeWorkbookWorksheetProtection, type WorkbookWorksheetProtection } from '../../../../../../../../models/workbookWorksheetProtection'; -import { ProtectRequestBuilder } from './protect/'; -import { UnprotectRequestBuilder } from './unprotect/'; +import { ProtectRequestBuilder } from './protect'; +import { UnprotectRequestBuilder } from './unprotect'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ProtectionRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/protection/protect/index.ts b/src/drives/item/items/item/workbook/worksheets/item/protection/protect/index.ts index d8de948735f..3808230b167 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/protection/protect/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/protection/protect/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetProtectionOptionsFromDiscriminatorValue, serializeWorkbookWorksheetProtectionOptions, type WorkbookWorksheetProtectionOptions } from '../../../../../../../../../models/workbookWorksheetProtectionOptions'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createProtectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export function serializeProtectPostRequestBody(writer: SerializationWriter, pro writer.writeObjectValue("options", protectPostRequestBody.options, serializeWorkbookWorksheetProtectionOptions); writer.writeAdditionalData(protectPostRequestBody.additionalData); } -/** - * Provides operations to call the protect method. - */ -export class ProtectRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ProtectRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/protect"); - }; - /** - * Protect a worksheet. It throws if the worksheet has been protected. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/worksheetprotection-protect?view=graph-rest-1.0|Find more info here} - */ - public post(body: ProtectPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Protect a worksheet. It throws if the worksheet has been protected. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ProtectPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeProtectPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a protectRequestBuilder - */ - public withUrl(rawUrl: string) : ProtectRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ProtectRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/protection/unprotect/index.ts b/src/drives/item/items/item/workbook/worksheets/item/protection/unprotect/index.ts index ecd05ef3066..51c82aad45c 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/protection/unprotect/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/protection/unprotect/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/range/index.ts index bd519881501..1315897aeed 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/range/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/rangeWithAddress/index.ts b/src/drives/item/items/item/workbook/worksheets/item/rangeWithAddress/index.ts index 3d07448ccda..acffbe5ec4e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/rangeWithAddress/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/rangeWithAddress/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/add/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/add/index.ts index 59ec2f67c08..9ec18802573 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/add/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/add/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookTableFromDiscriminatorValue, deserializeIntoWorkbookTable, serializeWorkbookTable, type WorkbookTable } from '../../../../../../../../../models/workbookTable'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,58 +32,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeBooleanValue("hasHeaders", addPostRequestBody.hasHeaders); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add"); - }; - /** - * Use this API to create a new Table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookTable - * @see {@link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableFromDiscriminatorValue, errorMapping); - }; - /** - * Use this API to create a new Table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/count/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/count/index.ts index 1d6277385f5..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/index.ts index 8107ac0c738..04bb0f75233 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableFromDiscriminatorValue, deserializeIntoWorkbookTable, serializeWorkbookTable, type WorkbookTable } from '../../../../../../../../models/workbookTable'; import { createWorkbookTableCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/workbookTableCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookTableItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { WorkbookTableItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TablesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/clearFilters/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/clearFilters/index.ts index 98ea78b00c6..bca03ff7a0a 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/clearFilters/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/clearFilters/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/index.ts index a8821d91480..933327d7bda 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/add/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookTableColumnFromDiscriminatorValue, deserializeIntoWorkbookTableColumn, serializeWorkbookTableColumn, type WorkbookTableColumn } from '../../../../../../../../../../../models/workbookTableColumn'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,58 +39,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeObjectValue("values", addPostRequestBody.values, serializeJson); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/add"); - }; - /** - * Adds a new column to the table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookTableColumn - * @see {@link https://learn.microsoft.com/graph/api/tablecolumncollection-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableColumnFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a new column to the table. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/index.ts index 85aa1783b1e..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts index 97888fc4044..61a516d852d 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableColumnCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableColumnCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableColumnFromDiscriminatorValue, deserializeIntoWorkbookTableColumn, serializeWorkbookTableColumn, type WorkbookTableColumn } from '../../../../../../../../../../models/workbookTableColumn'; import { createWorkbookTableColumnCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/workbookTableColumnCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookTableColumnItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { WorkbookTableColumnItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { @@ -85,7 +85,7 @@ export class ColumnsRequestBuilder extends BaseRequestBuilder { * Retrieve a list of tablecolumn objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookTableColumnCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/dataBodyRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/dataBodyRange/index.ts index 243d8bc3dde..b066d82820b 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/dataBodyRange/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/dataBodyRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/applyPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/applyPostRequestBody.ts deleted file mode 100644 index 966afd17032..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/applyPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createWorkbookFilterCriteriaFromDiscriminatorValue, serializeWorkbookFilterCriteria, type WorkbookFilterCriteria } from '../../../../../../../../../../../../../models/workbookFilterCriteria'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: WorkbookFilterCriteria; -} -export function createApplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyPostRequestBody; -} -export function deserializeIntoApplyPostRequestBody(applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : Record void> { - return { - "criteria": n => { applyPostRequestBody.criteria = n.getObjectValue(createWorkbookFilterCriteriaFromDiscriminatorValue); }, - } -} -export function serializeApplyPostRequestBody(writer: SerializationWriter, applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : void { - writer.writeObjectValue("criteria", applyPostRequestBody.criteria, serializeWorkbookFilterCriteria); - writer.writeAdditionalData(applyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/index.ts index 56926a67ce5..e3dc050faf7 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyPostRequestBody, serializeApplyPostRequestBody, type ApplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createWorkbookFilterCriteriaFromDiscriminatorValue, serializeWorkbookFilterCriteria, type WorkbookFilterCriteria } from '../../../../../../../../../../../../../models/workbookFilterCriteria'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: WorkbookFilterCriteria; +} +export function createApplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyPostRequestBody; +} +export function deserializeIntoApplyPostRequestBody(applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : Record void> { + return { + "criteria": n => { applyPostRequestBody.criteria = n.getObjectValue(createWorkbookFilterCriteriaFromDiscriminatorValue); }, + } +} +export function serializeApplyPostRequestBody(writer: SerializationWriter, applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : void { + writer.writeObjectValue("criteria", applyPostRequestBody.criteria, serializeWorkbookFilterCriteria); + writer.writeAdditionalData(applyPostRequestBody.additionalData); +} /** * Provides operations to call the apply method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomItemsFilter/applyBottomItemsFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomItemsFilter/applyBottomItemsFilterPostRequestBody.ts deleted file mode 100644 index 83165081014..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomItemsFilter/applyBottomItemsFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyBottomItemsFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The count property - */ - count?: number; -} -export function createApplyBottomItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyBottomItemsFilterPostRequestBody; -} -export function deserializeIntoApplyBottomItemsFilterPostRequestBody(applyBottomItemsFilterPostRequestBody: ApplyBottomItemsFilterPostRequestBody | undefined = {} as ApplyBottomItemsFilterPostRequestBody) : Record void> { - return { - "count": n => { applyBottomItemsFilterPostRequestBody.count = n.getNumberValue(); }, - } -} -export function serializeApplyBottomItemsFilterPostRequestBody(writer: SerializationWriter, applyBottomItemsFilterPostRequestBody: ApplyBottomItemsFilterPostRequestBody | undefined = {} as ApplyBottomItemsFilterPostRequestBody) : void { - writer.writeNumberValue("count", applyBottomItemsFilterPostRequestBody.count); - writer.writeAdditionalData(applyBottomItemsFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomItemsFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomItemsFilter/index.ts index bd236741f77..75046f8d26d 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomItemsFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomItemsFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyBottomItemsFilterPostRequestBody, serializeApplyBottomItemsFilterPostRequestBody, type ApplyBottomItemsFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyBottomItemsFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The count property + */ + count?: number; +} +export function createApplyBottomItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyBottomItemsFilterPostRequestBody; +} +export function deserializeIntoApplyBottomItemsFilterPostRequestBody(applyBottomItemsFilterPostRequestBody: ApplyBottomItemsFilterPostRequestBody | undefined = {} as ApplyBottomItemsFilterPostRequestBody) : Record void> { + return { + "count": n => { applyBottomItemsFilterPostRequestBody.count = n.getNumberValue(); }, + } +} +export function serializeApplyBottomItemsFilterPostRequestBody(writer: SerializationWriter, applyBottomItemsFilterPostRequestBody: ApplyBottomItemsFilterPostRequestBody | undefined = {} as ApplyBottomItemsFilterPostRequestBody) : void { + writer.writeNumberValue("count", applyBottomItemsFilterPostRequestBody.count); + writer.writeAdditionalData(applyBottomItemsFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyBottomItemsFilter method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomPercentFilter/applyBottomPercentFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomPercentFilter/applyBottomPercentFilterPostRequestBody.ts deleted file mode 100644 index 894a3b7a201..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomPercentFilter/applyBottomPercentFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyBottomPercentFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The percent property - */ - percent?: number; -} -export function createApplyBottomPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyBottomPercentFilterPostRequestBody; -} -export function deserializeIntoApplyBottomPercentFilterPostRequestBody(applyBottomPercentFilterPostRequestBody: ApplyBottomPercentFilterPostRequestBody | undefined = {} as ApplyBottomPercentFilterPostRequestBody) : Record void> { - return { - "percent": n => { applyBottomPercentFilterPostRequestBody.percent = n.getNumberValue(); }, - } -} -export function serializeApplyBottomPercentFilterPostRequestBody(writer: SerializationWriter, applyBottomPercentFilterPostRequestBody: ApplyBottomPercentFilterPostRequestBody | undefined = {} as ApplyBottomPercentFilterPostRequestBody) : void { - writer.writeNumberValue("percent", applyBottomPercentFilterPostRequestBody.percent); - writer.writeAdditionalData(applyBottomPercentFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomPercentFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomPercentFilter/index.ts index d2e90e0c182..a3e7f486c10 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomPercentFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyBottomPercentFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyBottomPercentFilterPostRequestBody, serializeApplyBottomPercentFilterPostRequestBody, type ApplyBottomPercentFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyBottomPercentFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The percent property + */ + percent?: number; +} +export function createApplyBottomPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyBottomPercentFilterPostRequestBody; +} +export function deserializeIntoApplyBottomPercentFilterPostRequestBody(applyBottomPercentFilterPostRequestBody: ApplyBottomPercentFilterPostRequestBody | undefined = {} as ApplyBottomPercentFilterPostRequestBody) : Record void> { + return { + "percent": n => { applyBottomPercentFilterPostRequestBody.percent = n.getNumberValue(); }, + } +} +export function serializeApplyBottomPercentFilterPostRequestBody(writer: SerializationWriter, applyBottomPercentFilterPostRequestBody: ApplyBottomPercentFilterPostRequestBody | undefined = {} as ApplyBottomPercentFilterPostRequestBody) : void { + writer.writeNumberValue("percent", applyBottomPercentFilterPostRequestBody.percent); + writer.writeAdditionalData(applyBottomPercentFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyBottomPercentFilter method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCellColorFilter/applyCellColorFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCellColorFilter/applyCellColorFilterPostRequestBody.ts deleted file mode 100644 index 04c9a1084b6..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCellColorFilter/applyCellColorFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyCellColorFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The color property - */ - color?: string; -} -export function createApplyCellColorFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyCellColorFilterPostRequestBody; -} -export function deserializeIntoApplyCellColorFilterPostRequestBody(applyCellColorFilterPostRequestBody: ApplyCellColorFilterPostRequestBody | undefined = {} as ApplyCellColorFilterPostRequestBody) : Record void> { - return { - "color": n => { applyCellColorFilterPostRequestBody.color = n.getStringValue(); }, - } -} -export function serializeApplyCellColorFilterPostRequestBody(writer: SerializationWriter, applyCellColorFilterPostRequestBody: ApplyCellColorFilterPostRequestBody | undefined = {} as ApplyCellColorFilterPostRequestBody) : void { - writer.writeStringValue("color", applyCellColorFilterPostRequestBody.color); - writer.writeAdditionalData(applyCellColorFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCellColorFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCellColorFilter/index.ts index 230be1d7078..f06c6933d2b 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCellColorFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCellColorFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyCellColorFilterPostRequestBody, serializeApplyCellColorFilterPostRequestBody, type ApplyCellColorFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyCellColorFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The color property + */ + color?: string; +} +export function createApplyCellColorFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyCellColorFilterPostRequestBody; +} +export function deserializeIntoApplyCellColorFilterPostRequestBody(applyCellColorFilterPostRequestBody: ApplyCellColorFilterPostRequestBody | undefined = {} as ApplyCellColorFilterPostRequestBody) : Record void> { + return { + "color": n => { applyCellColorFilterPostRequestBody.color = n.getStringValue(); }, + } +} +export function serializeApplyCellColorFilterPostRequestBody(writer: SerializationWriter, applyCellColorFilterPostRequestBody: ApplyCellColorFilterPostRequestBody | undefined = {} as ApplyCellColorFilterPostRequestBody) : void { + writer.writeStringValue("color", applyCellColorFilterPostRequestBody.color); + writer.writeAdditionalData(applyCellColorFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyCellColorFilter method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCustomFilter/applyCustomFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCustomFilter/applyCustomFilterPostRequestBody.ts deleted file mode 100644 index 45dd0cb5f96..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCustomFilter/applyCustomFilterPostRequestBody.ts +++ /dev/null @@ -1,42 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyCustomFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria1 property - */ - criteria1?: string; - /** - * The criteria2 property - */ - criteria2?: string; - /** - * The oper property - */ - oper?: string; -} -export function createApplyCustomFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyCustomFilterPostRequestBody; -} -export function deserializeIntoApplyCustomFilterPostRequestBody(applyCustomFilterPostRequestBody: ApplyCustomFilterPostRequestBody | undefined = {} as ApplyCustomFilterPostRequestBody) : Record void> { - return { - "criteria1": n => { applyCustomFilterPostRequestBody.criteria1 = n.getStringValue(); }, - "criteria2": n => { applyCustomFilterPostRequestBody.criteria2 = n.getStringValue(); }, - "oper": n => { applyCustomFilterPostRequestBody.oper = n.getStringValue(); }, - } -} -export function serializeApplyCustomFilterPostRequestBody(writer: SerializationWriter, applyCustomFilterPostRequestBody: ApplyCustomFilterPostRequestBody | undefined = {} as ApplyCustomFilterPostRequestBody) : void { - writer.writeStringValue("criteria1", applyCustomFilterPostRequestBody.criteria1); - writer.writeStringValue("criteria2", applyCustomFilterPostRequestBody.criteria2); - writer.writeStringValue("oper", applyCustomFilterPostRequestBody.oper); - writer.writeAdditionalData(applyCustomFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCustomFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCustomFilter/index.ts index 2f75f7efc07..45a5f3b9cfb 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCustomFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyCustomFilter/index.ts @@ -1,11 +1,45 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyCustomFilterPostRequestBody, serializeApplyCustomFilterPostRequestBody, type ApplyCustomFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyCustomFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria1 property + */ + criteria1?: string; + /** + * The criteria2 property + */ + criteria2?: string; + /** + * The oper property + */ + oper?: string; +} +export function createApplyCustomFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyCustomFilterPostRequestBody; +} +export function deserializeIntoApplyCustomFilterPostRequestBody(applyCustomFilterPostRequestBody: ApplyCustomFilterPostRequestBody | undefined = {} as ApplyCustomFilterPostRequestBody) : Record void> { + return { + "criteria1": n => { applyCustomFilterPostRequestBody.criteria1 = n.getStringValue(); }, + "criteria2": n => { applyCustomFilterPostRequestBody.criteria2 = n.getStringValue(); }, + "oper": n => { applyCustomFilterPostRequestBody.oper = n.getStringValue(); }, + } +} +export function serializeApplyCustomFilterPostRequestBody(writer: SerializationWriter, applyCustomFilterPostRequestBody: ApplyCustomFilterPostRequestBody | undefined = {} as ApplyCustomFilterPostRequestBody) : void { + writer.writeStringValue("criteria1", applyCustomFilterPostRequestBody.criteria1); + writer.writeStringValue("criteria2", applyCustomFilterPostRequestBody.criteria2); + writer.writeStringValue("oper", applyCustomFilterPostRequestBody.oper); + writer.writeAdditionalData(applyCustomFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyCustomFilter method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyDynamicFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyDynamicFilter/index.ts index dce40772c20..4bf7d7a584c 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyDynamicFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyDynamicFilter/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ApplyDynamicFilterPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,56 +26,5 @@ export function serializeApplyDynamicFilterPostRequestBody(writer: Serialization writer.writeStringValue("criteria", applyDynamicFilterPostRequestBody.criteria); writer.writeAdditionalData(applyDynamicFilterPostRequestBody.additionalData); } -/** - * Provides operations to call the applyDynamicFilter method. - */ -export class ApplyDynamicFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ApplyDynamicFilterRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter"); - }; - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - */ - public post(body: ApplyDynamicFilterPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Invoke action applyDynamicFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ApplyDynamicFilterPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeApplyDynamicFilterPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a applyDynamicFilterRequestBuilder - */ - public withUrl(rawUrl: string) : ApplyDynamicFilterRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ApplyDynamicFilterRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyFontColorFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyFontColorFilter/index.ts index ed9aef099a3..b42a0a932a2 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyFontColorFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyFontColorFilter/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ApplyFontColorFilterPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,56 +26,5 @@ export function serializeApplyFontColorFilterPostRequestBody(writer: Serializati writer.writeStringValue("color", applyFontColorFilterPostRequestBody.color); writer.writeAdditionalData(applyFontColorFilterPostRequestBody.additionalData); } -/** - * Provides operations to call the applyFontColorFilter method. - */ -export class ApplyFontColorFilterRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ApplyFontColorFilterRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter"); - }; - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - */ - public post(body: ApplyFontColorFilterPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Invoke action applyFontColorFilter - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ApplyFontColorFilterPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeApplyFontColorFilterPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a applyFontColorFilterRequestBuilder - */ - public withUrl(rawUrl: string) : ApplyFontColorFilterRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ApplyFontColorFilterRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyIconFilter/applyIconFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyIconFilter/applyIconFilterPostRequestBody.ts deleted file mode 100644 index 11d54505f85..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyIconFilter/applyIconFilterPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createWorkbookIconFromDiscriminatorValue, serializeWorkbookIcon, type WorkbookIcon } from '../../../../../../../../../../../../../models/workbookIcon'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyIconFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The icon property - */ - icon?: WorkbookIcon; -} -export function createApplyIconFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyIconFilterPostRequestBody; -} -export function deserializeIntoApplyIconFilterPostRequestBody(applyIconFilterPostRequestBody: ApplyIconFilterPostRequestBody | undefined = {} as ApplyIconFilterPostRequestBody) : Record void> { - return { - "icon": n => { applyIconFilterPostRequestBody.icon = n.getObjectValue(createWorkbookIconFromDiscriminatorValue); }, - } -} -export function serializeApplyIconFilterPostRequestBody(writer: SerializationWriter, applyIconFilterPostRequestBody: ApplyIconFilterPostRequestBody | undefined = {} as ApplyIconFilterPostRequestBody) : void { - writer.writeObjectValue("icon", applyIconFilterPostRequestBody.icon, serializeWorkbookIcon); - writer.writeAdditionalData(applyIconFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyIconFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyIconFilter/index.ts index dee590e6218..8f98b4b3b50 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyIconFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyIconFilter/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyIconFilterPostRequestBody, serializeApplyIconFilterPostRequestBody, type ApplyIconFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createWorkbookIconFromDiscriminatorValue, serializeWorkbookIcon, type WorkbookIcon } from '../../../../../../../../../../../../../models/workbookIcon'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyIconFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The icon property + */ + icon?: WorkbookIcon; +} +export function createApplyIconFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyIconFilterPostRequestBody; +} +export function deserializeIntoApplyIconFilterPostRequestBody(applyIconFilterPostRequestBody: ApplyIconFilterPostRequestBody | undefined = {} as ApplyIconFilterPostRequestBody) : Record void> { + return { + "icon": n => { applyIconFilterPostRequestBody.icon = n.getObjectValue(createWorkbookIconFromDiscriminatorValue); }, + } +} +export function serializeApplyIconFilterPostRequestBody(writer: SerializationWriter, applyIconFilterPostRequestBody: ApplyIconFilterPostRequestBody | undefined = {} as ApplyIconFilterPostRequestBody) : void { + writer.writeObjectValue("icon", applyIconFilterPostRequestBody.icon, serializeWorkbookIcon); + writer.writeAdditionalData(applyIconFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyIconFilter method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopItemsFilter/applyTopItemsFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopItemsFilter/applyTopItemsFilterPostRequestBody.ts deleted file mode 100644 index be3717ff0aa..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopItemsFilter/applyTopItemsFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyTopItemsFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The count property - */ - count?: number; -} -export function createApplyTopItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyTopItemsFilterPostRequestBody; -} -export function deserializeIntoApplyTopItemsFilterPostRequestBody(applyTopItemsFilterPostRequestBody: ApplyTopItemsFilterPostRequestBody | undefined = {} as ApplyTopItemsFilterPostRequestBody) : Record void> { - return { - "count": n => { applyTopItemsFilterPostRequestBody.count = n.getNumberValue(); }, - } -} -export function serializeApplyTopItemsFilterPostRequestBody(writer: SerializationWriter, applyTopItemsFilterPostRequestBody: ApplyTopItemsFilterPostRequestBody | undefined = {} as ApplyTopItemsFilterPostRequestBody) : void { - writer.writeNumberValue("count", applyTopItemsFilterPostRequestBody.count); - writer.writeAdditionalData(applyTopItemsFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopItemsFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopItemsFilter/index.ts index 8794605cbab..5453375783e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopItemsFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopItemsFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyTopItemsFilterPostRequestBody, serializeApplyTopItemsFilterPostRequestBody, type ApplyTopItemsFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyTopItemsFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The count property + */ + count?: number; +} +export function createApplyTopItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyTopItemsFilterPostRequestBody; +} +export function deserializeIntoApplyTopItemsFilterPostRequestBody(applyTopItemsFilterPostRequestBody: ApplyTopItemsFilterPostRequestBody | undefined = {} as ApplyTopItemsFilterPostRequestBody) : Record void> { + return { + "count": n => { applyTopItemsFilterPostRequestBody.count = n.getNumberValue(); }, + } +} +export function serializeApplyTopItemsFilterPostRequestBody(writer: SerializationWriter, applyTopItemsFilterPostRequestBody: ApplyTopItemsFilterPostRequestBody | undefined = {} as ApplyTopItemsFilterPostRequestBody) : void { + writer.writeNumberValue("count", applyTopItemsFilterPostRequestBody.count); + writer.writeAdditionalData(applyTopItemsFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyTopItemsFilter method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopPercentFilter/applyTopPercentFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopPercentFilter/applyTopPercentFilterPostRequestBody.ts deleted file mode 100644 index 31c55b887be..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopPercentFilter/applyTopPercentFilterPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyTopPercentFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The percent property - */ - percent?: number; -} -export function createApplyTopPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyTopPercentFilterPostRequestBody; -} -export function deserializeIntoApplyTopPercentFilterPostRequestBody(applyTopPercentFilterPostRequestBody: ApplyTopPercentFilterPostRequestBody | undefined = {} as ApplyTopPercentFilterPostRequestBody) : Record void> { - return { - "percent": n => { applyTopPercentFilterPostRequestBody.percent = n.getNumberValue(); }, - } -} -export function serializeApplyTopPercentFilterPostRequestBody(writer: SerializationWriter, applyTopPercentFilterPostRequestBody: ApplyTopPercentFilterPostRequestBody | undefined = {} as ApplyTopPercentFilterPostRequestBody) : void { - writer.writeNumberValue("percent", applyTopPercentFilterPostRequestBody.percent); - writer.writeAdditionalData(applyTopPercentFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopPercentFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopPercentFilter/index.ts index 8a1b6a78ffc..95bf6636015 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopPercentFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyTopPercentFilter/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyTopPercentFilterPostRequestBody, serializeApplyTopPercentFilterPostRequestBody, type ApplyTopPercentFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyTopPercentFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The percent property + */ + percent?: number; +} +export function createApplyTopPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyTopPercentFilterPostRequestBody; +} +export function deserializeIntoApplyTopPercentFilterPostRequestBody(applyTopPercentFilterPostRequestBody: ApplyTopPercentFilterPostRequestBody | undefined = {} as ApplyTopPercentFilterPostRequestBody) : Record void> { + return { + "percent": n => { applyTopPercentFilterPostRequestBody.percent = n.getNumberValue(); }, + } +} +export function serializeApplyTopPercentFilterPostRequestBody(writer: SerializationWriter, applyTopPercentFilterPostRequestBody: ApplyTopPercentFilterPostRequestBody | undefined = {} as ApplyTopPercentFilterPostRequestBody) : void { + writer.writeNumberValue("percent", applyTopPercentFilterPostRequestBody.percent); + writer.writeAdditionalData(applyTopPercentFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyTopPercentFilter method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyValuesFilter/applyValuesFilterPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyValuesFilter/applyValuesFilterPostRequestBody.ts deleted file mode 100644 index c5c834accce..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyValuesFilter/applyValuesFilterPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../../../../models/json'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyValuesFilterPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: Json; -} -export function createApplyValuesFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyValuesFilterPostRequestBody; -} -export function deserializeIntoApplyValuesFilterPostRequestBody(applyValuesFilterPostRequestBody: ApplyValuesFilterPostRequestBody | undefined = {} as ApplyValuesFilterPostRequestBody) : Record void> { - return { - "values": n => { applyValuesFilterPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, - } -} -export function serializeApplyValuesFilterPostRequestBody(writer: SerializationWriter, applyValuesFilterPostRequestBody: ApplyValuesFilterPostRequestBody | undefined = {} as ApplyValuesFilterPostRequestBody) : void { - writer.writeObjectValue("values", applyValuesFilterPostRequestBody.values, serializeJson); - writer.writeAdditionalData(applyValuesFilterPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyValuesFilter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyValuesFilter/index.ts index be3f1cd8eaa..b9f2c0eca04 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyValuesFilter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyValuesFilter/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../../../../models/json'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyValuesFilterPostRequestBody, serializeApplyValuesFilterPostRequestBody, type ApplyValuesFilterPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyValuesFilterPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The values property + */ + values?: Json; +} +export function createApplyValuesFilterPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyValuesFilterPostRequestBody; +} +export function deserializeIntoApplyValuesFilterPostRequestBody(applyValuesFilterPostRequestBody: ApplyValuesFilterPostRequestBody | undefined = {} as ApplyValuesFilterPostRequestBody) : Record void> { + return { + "values": n => { applyValuesFilterPostRequestBody.values = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeApplyValuesFilterPostRequestBody(writer: SerializationWriter, applyValuesFilterPostRequestBody: ApplyValuesFilterPostRequestBody | undefined = {} as ApplyValuesFilterPostRequestBody) : void { + writer.writeObjectValue("values", applyValuesFilterPostRequestBody.values, serializeJson); + writer.writeAdditionalData(applyValuesFilterPostRequestBody.additionalData); +} /** * Provides operations to call the applyValuesFilter method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/index.ts index 562d289af0b..f7a9bf42276 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/index.ts index 14d1bc69814..a6bd5205c13 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookFilterFromDiscriminatorValue, deserializeIntoWorkbookFilter, serializeWorkbookFilter, type WorkbookFilter } from '../../../../../../../../../../../../models/workbookFilter'; -import { ApplyRequestBuilder } from './apply/'; -import { ApplyBottomItemsFilterRequestBuilder } from './applyBottomItemsFilter/'; -import { ApplyBottomPercentFilterRequestBuilder } from './applyBottomPercentFilter/'; -import { ApplyCellColorFilterRequestBuilder } from './applyCellColorFilter/'; -import { ApplyCustomFilterRequestBuilder } from './applyCustomFilter/'; -import { ApplyDynamicFilterRequestBuilder } from './applyDynamicFilter/'; -import { ApplyFontColorFilterRequestBuilder } from './applyFontColorFilter/'; -import { ApplyIconFilterRequestBuilder } from './applyIconFilter/'; -import { ApplyTopItemsFilterRequestBuilder } from './applyTopItemsFilter/'; -import { ApplyTopPercentFilterRequestBuilder } from './applyTopPercentFilter/'; -import { ApplyValuesFilterRequestBuilder } from './applyValuesFilter/'; -import { ClearRequestBuilder } from './clear/'; +import { ApplyRequestBuilder } from './apply'; +import { ApplyBottomItemsFilterRequestBuilder } from './applyBottomItemsFilter'; +import { ApplyBottomPercentFilterRequestBuilder } from './applyBottomPercentFilter'; +import { ApplyCellColorFilterRequestBuilder } from './applyCellColorFilter'; +import { ApplyCustomFilterRequestBuilder } from './applyCustomFilter'; +import { ApplyDynamicFilterRequestBuilder } from './applyDynamicFilter'; +import { ApplyFontColorFilterRequestBuilder } from './applyFontColorFilter'; +import { ApplyIconFilterRequestBuilder } from './applyIconFilter'; +import { ApplyTopItemsFilterRequestBuilder } from './applyTopItemsFilter'; +import { ApplyTopPercentFilterRequestBuilder } from './applyTopPercentFilter'; +import { ApplyValuesFilterRequestBuilder } from './applyValuesFilter'; +import { ClearRequestBuilder } from './clear'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilterRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/headerRowRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/headerRowRange/index.ts index 693c54aa90d..656bbc4b5fd 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/headerRowRange/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/headerRowRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/index.ts index b32d55d1003..1e9a390db57 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableColumnFromDiscriminatorValue, deserializeIntoWorkbookTableColumn, serializeWorkbookTableColumn, type WorkbookTableColumn } from '../../../../../../../../../../../models/workbookTableColumn'; -import { DataBodyRangeRequestBuilder } from './dataBodyRange/'; -import { FilterRequestBuilder } from './filter/'; -import { HeaderRowRangeRequestBuilder } from './headerRowRange/'; -import { RangeRequestBuilder } from './range/'; -import { TotalRowRangeRequestBuilder } from './totalRowRange/'; +import { DataBodyRangeRequestBuilder } from './dataBodyRange'; +import { FilterRequestBuilder } from './filter'; +import { HeaderRowRangeRequestBuilder } from './headerRowRange'; +import { RangeRequestBuilder } from './range'; +import { TotalRowRangeRequestBuilder } from './totalRowRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookTableColumnItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/index.ts index 79020351ce4..c4146f93021 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/totalRowRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/totalRowRange/index.ts index 6bfda1eb7e2..b7345326dc6 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/totalRowRange/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/totalRowRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/index.ts index 435d39e5d19..afb7ff4b728 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableColumn } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableColumn } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableColumnFromDiscriminatorValue } from '../../../../../../../../../../../models/workbookTableColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/convertToRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/convertToRange/index.ts index 92121b3183a..7447be32bc0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/convertToRange/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/convertToRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/dataBodyRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/dataBodyRange/index.ts index 0af92da2686..7b2b6cdd268 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/dataBodyRange/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/dataBodyRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/headerRowRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/headerRowRange/index.ts index f1cf4b3771b..58f90316bd7 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/headerRowRange/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/headerRowRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/index.ts index 4261c865494..45c30cd86e3 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableFromDiscriminatorValue, deserializeIntoWorkbookTable, serializeWorkbookTable, type WorkbookTable } from '../../../../../../../../../models/workbookTable'; -import { ClearFiltersRequestBuilder } from './clearFilters/'; -import { ColumnsRequestBuilder } from './columns/'; -import { ConvertToRangeRequestBuilder } from './convertToRange/'; -import { DataBodyRangeRequestBuilder } from './dataBodyRange/'; -import { HeaderRowRangeRequestBuilder } from './headerRowRange/'; -import { RangeRequestBuilder } from './range/'; -import { ReapplyFiltersRequestBuilder } from './reapplyFilters/'; -import { RowsRequestBuilder } from './rows/'; -import { SortRequestBuilder } from './sort/'; -import { TotalRowRangeRequestBuilder } from './totalRowRange/'; -import { WorksheetRequestBuilder } from './worksheet/'; +import { ClearFiltersRequestBuilder } from './clearFilters'; +import { ColumnsRequestBuilder } from './columns'; +import { ConvertToRangeRequestBuilder } from './convertToRange'; +import { DataBodyRangeRequestBuilder } from './dataBodyRange'; +import { HeaderRowRangeRequestBuilder } from './headerRowRange'; +import { RangeRequestBuilder } from './range'; +import { ReapplyFiltersRequestBuilder } from './reapplyFilters'; +import { RowsRequestBuilder } from './rows'; +import { SortRequestBuilder } from './sort'; +import { TotalRowRangeRequestBuilder } from './totalRowRange'; +import { WorksheetRequestBuilder } from './worksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookTableItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/range/index.ts index 404c6f9db29..df35a37b3ea 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/range/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/reapplyFilters/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/reapplyFilters/index.ts index 4d48bfefd0d..e2a767d6346 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/reapplyFilters/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/reapplyFilters/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/index.ts index 1c297f7762f..528a4913d6e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/add/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../../models/json'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { createWorkbookTableRowFromDiscriminatorValue, deserializeIntoWorkbookTableRow, serializeWorkbookTableRow, type WorkbookTableRow } from '../../../../../../../../../../../models/workbookTableRow'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -36,58 +33,5 @@ export function serializeAddPostRequestBody(writer: SerializationWriter, addPost writer.writeObjectValue("values", addPostRequestBody.values, serializeJson); writer.writeAdditionalData(addPostRequestBody.additionalData); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/add"); - }; - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of WorkbookTableRow - * @see {@link https://learn.microsoft.com/graph/api/tablerowcollection-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableRowFromDiscriminatorValue, errorMapping); - }; - /** - * Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/index.ts index 25c337e4c0c..8b2faba80c0 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/count/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CountGetResponse extends AdditionalDataHolder, Parsable { /** @@ -28,53 +26,5 @@ export function serializeCountGetResponse(writer: SerializationWriter, countGetR writer.writeNumberValue("value", countGetResponse.value); writer.writeAdditionalData(countGetResponse.additionalData); } -/** - * Provides operations to call the count method. - */ -export class CountRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CountRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/count()"); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CountGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCountGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function count - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a countRequestBuilder - */ - public withUrl(rawUrl: string) : CountRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CountRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/index.ts index e52b52c9c87..eb72b9d6c6e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableRowCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableRowCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableRowFromDiscriminatorValue, deserializeIntoWorkbookTableRow, serializeWorkbookTableRow, type WorkbookTableRow } from '../../../../../../../../../../models/workbookTableRow'; import { createWorkbookTableRowCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/workbookTableRowCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { WorkbookTableRowItemRequestBuilder } from './item/'; -import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { WorkbookTableRowItemRequestBuilder } from './item'; +import { ItemAtWithIndexRequestBuilder } from './itemAtWithIndex'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RowsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/index.ts index fa93d176f2e..c15629f661a 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableRowFromDiscriminatorValue, deserializeIntoWorkbookTableRow, serializeWorkbookTableRow, type WorkbookTableRow } from '../../../../../../../../../../../models/workbookTableRow'; -import { RangeRequestBuilder } from './range/'; +import { RangeRequestBuilder } from './range'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkbookTableRowItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/index.ts index 8a71c89cf38..5684238bf6e 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/range/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/index.ts index 7b9a4a2df42..db618ae8272 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTableRow } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookTableRow } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableRowFromDiscriminatorValue } from '../../../../../../../../../../../models/workbookTableRow'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/applyPostRequestBody.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/applyPostRequestBody.ts deleted file mode 100644 index c79b2156938..00000000000 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/applyPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createWorkbookSortFieldFromDiscriminatorValue, serializeWorkbookSortField, type WorkbookSortField } from '../../../../../../../../../../../models/workbookSortField'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The fields property - */ - fields?: WorkbookSortField[]; - /** - * The matchCase property - */ - matchCase?: boolean; - /** - * The method property - */ - method?: string; -} -export function createApplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyPostRequestBody; -} -export function deserializeIntoApplyPostRequestBody(applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : Record void> { - return { - "fields": n => { applyPostRequestBody.fields = n.getCollectionOfObjectValues(createWorkbookSortFieldFromDiscriminatorValue); }, - "matchCase": n => { applyPostRequestBody.matchCase = n.getBooleanValue(); }, - "method": n => { applyPostRequestBody.method = n.getStringValue(); }, - } -} -export function serializeApplyPostRequestBody(writer: SerializationWriter, applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : void { - writer.writeCollectionOfObjectValues("fields", applyPostRequestBody.fields, serializeWorkbookSortField); - writer.writeBooleanValue("matchCase", applyPostRequestBody.matchCase); - writer.writeStringValue("method", applyPostRequestBody.method); - writer.writeAdditionalData(applyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/index.ts index 5ba0f063cf8..b13e7de956f 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/apply/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyPostRequestBody, serializeApplyPostRequestBody, type ApplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createWorkbookSortFieldFromDiscriminatorValue, serializeWorkbookSortField, type WorkbookSortField } from '../../../../../../../../../../../models/workbookSortField'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The fields property + */ + fields?: WorkbookSortField[]; + /** + * The matchCase property + */ + matchCase?: boolean; + /** + * The method property + */ + method?: string; +} +export function createApplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyPostRequestBody; +} +export function deserializeIntoApplyPostRequestBody(applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : Record void> { + return { + "fields": n => { applyPostRequestBody.fields = n.getCollectionOfObjectValues(createWorkbookSortFieldFromDiscriminatorValue); }, + "matchCase": n => { applyPostRequestBody.matchCase = n.getBooleanValue(); }, + "method": n => { applyPostRequestBody.method = n.getStringValue(); }, + } +} +export function serializeApplyPostRequestBody(writer: SerializationWriter, applyPostRequestBody: ApplyPostRequestBody | undefined = {} as ApplyPostRequestBody) : void { + writer.writeCollectionOfObjectValues("fields", applyPostRequestBody.fields, serializeWorkbookSortField); + writer.writeBooleanValue("matchCase", applyPostRequestBody.matchCase); + writer.writeStringValue("method", applyPostRequestBody.method); + writer.writeAdditionalData(applyPostRequestBody.additionalData); +} /** * Provides operations to call the apply method. */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/clear/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/clear/index.ts index 2c1804dbd2a..1f34b51cef1 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/clear/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/clear/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/index.ts index 94b224be5f9..07464ed2293 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableSortFromDiscriminatorValue, deserializeIntoWorkbookTableSort, serializeWorkbookTableSort, type WorkbookTableSort } from '../../../../../../../../../../models/workbookTableSort'; -import { ApplyRequestBuilder } from './apply/'; -import { ClearRequestBuilder } from './clear/'; -import { ReapplyRequestBuilder } from './reapply/'; +import { ApplyRequestBuilder } from './apply'; +import { ClearRequestBuilder } from './clear'; +import { ReapplyRequestBuilder } from './reapply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SortRequestBuilderGetQueryParameters { diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/reapply/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/reapply/index.ts index b504e755a23..380cd7b627d 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/reapply/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/sort/reapply/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/totalRowRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/totalRowRange/index.ts index 109d51028ab..cd53d00b750 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/totalRowRange/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/totalRowRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/worksheet/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/worksheet/index.ts index 7dc26fe122c..dd1fbdb26b8 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/worksheet/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/worksheet/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookWorksheet } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type WorkbookWorksheet } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookWorksheetFromDiscriminatorValue } from '../../../../../../../../../../models/workbookWorksheet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/index.ts index 18c9adb7f52..b495b11c020 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookTable } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type WorkbookTable } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookTableFromDiscriminatorValue } from '../../../../../../../../../models/workbookTable'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/usedRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/usedRange/index.ts index 51295556b17..ffd683705c3 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/usedRange/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/usedRange/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/items/item/workbook/worksheets/item/usedRangeWithValuesOnly/index.ts b/src/drives/item/items/item/workbook/worksheets/item/usedRangeWithValuesOnly/index.ts index 9c7d93fb761..09f0eaabd28 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/usedRangeWithValuesOnly/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/usedRangeWithValuesOnly/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkbookRange } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type WorkbookRange } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createWorkbookRangeFromDiscriminatorValue } from '../../../../../../../../models/workbookRange'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/lastModifiedByUser/index.ts b/src/drives/item/lastModifiedByUser/index.ts index 7c8fe9ff35b..683e0eff76f 100644 --- a/src/drives/item/lastModifiedByUser/index.ts +++ b/src/drives/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/drives/item/lastModifiedByUser/mailboxSettings/index.ts b/src/drives/item/lastModifiedByUser/mailboxSettings/index.ts index 92d0d563e1d..87f7831c245 100644 --- a/src/drives/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/drives/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/drives/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index d4a8abe3d8d..59d763c0f0b 100644 --- a/src/drives/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/drives/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/drives/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index 08bb167e48e..3711b92efb7 100644 --- a/src/drives/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/drives/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/columns/count/index.ts b/src/drives/item/list/columns/count/index.ts index 1f0c1401c1c..0f89305cc35 100644 --- a/src/drives/item/list/columns/count/index.ts +++ b/src/drives/item/list/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/columns/index.ts b/src/drives/item/list/columns/index.ts index 26bfc5ad6a2..d1d87b97baa 100644 --- a/src/drives/item/list/columns/index.ts +++ b/src/drives/item/list/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/columns/item/index.ts b/src/drives/item/list/columns/item/index.ts index f45af5f6280..51c0710be3a 100644 --- a/src/drives/item/list/columns/item/index.ts +++ b/src/drives/item/list/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/columns/item/sourceColumn/index.ts b/src/drives/item/list/columns/item/sourceColumn/index.ts index 8733ec0b8c3..7caa330ad00 100644 --- a/src/drives/item/list/columns/item/sourceColumn/index.ts +++ b/src/drives/item/list/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/addCopy/addCopyPostRequestBody.ts b/src/drives/item/list/contentTypes/addCopy/addCopyPostRequestBody.ts deleted file mode 100644 index 85058f03a64..00000000000 --- a/src/drives/item/list/contentTypes/addCopy/addCopyPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The contentType property - */ - contentType?: string; -} -export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddCopyPostRequestBody; -} -export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { - return { - "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, - } -} -export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { - writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); - writer.writeAdditionalData(addCopyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/list/contentTypes/addCopy/index.ts b/src/drives/item/list/contentTypes/addCopy/index.ts index 22bb009c2ea..95d63010c23 100644 --- a/src/drives/item/list/contentTypes/addCopy/index.ts +++ b/src/drives/item/list/contentTypes/addCopy/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAddCopyPostRequestBody, serializeAddCopyPostRequestBody, type AddCopyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The contentType property + */ + contentType?: string; +} +export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddCopyPostRequestBody; +} +export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { + return { + "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, + } +} +export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { + writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); + writer.writeAdditionalData(addCopyPostRequestBody.additionalData); +} /** * Provides operations to call the addCopy method. */ diff --git a/src/drives/item/list/contentTypes/addCopyFromContentTypeHub/index.ts b/src/drives/item/list/contentTypes/addCopyFromContentTypeHub/index.ts index 392b5247bb2..b3a25387260 100644 --- a/src/drives/item/list/contentTypes/addCopyFromContentTypeHub/index.ts +++ b/src/drives/item/list/contentTypes/addCopyFromContentTypeHub/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddCopyFromContentTypeHubPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeAddCopyFromContentTypeHubPostRequestBody(writer: Serial writer.writeStringValue("contentTypeId", addCopyFromContentTypeHubPostRequestBody.contentTypeId); writer.writeAdditionalData(addCopyFromContentTypeHubPostRequestBody.additionalData); } -/** - * Provides operations to call the addCopyFromContentTypeHub method. - */ -export class AddCopyFromContentTypeHubRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddCopyFromContentTypeHubRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/addCopyFromContentTypeHub"); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ContentType - * @see {@link https://learn.microsoft.com/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createContentTypeFromDiscriminatorValue, errorMapping); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddCopyFromContentTypeHubPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addCopyFromContentTypeHubRequestBuilder - */ - public withUrl(rawUrl: string) : AddCopyFromContentTypeHubRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddCopyFromContentTypeHubRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/list/contentTypes/count/index.ts b/src/drives/item/list/contentTypes/count/index.ts index bd9dd09b99e..4ac15a735fc 100644 --- a/src/drives/item/list/contentTypes/count/index.ts +++ b/src/drives/item/list/contentTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts b/src/drives/item/list/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts deleted file mode 100644 index db778d73570..00000000000 --- a/src/drives/item/list/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetCompatibleHubContentTypesGetResponse; -} -export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), - "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, - } -} -export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ContentType[]; -} -export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) - writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/list/contentTypes/getCompatibleHubContentTypes/index.ts b/src/drives/item/list/contentTypes/getCompatibleHubContentTypes/index.ts index e4a0afb0664..b879f7c38a4 100644 --- a/src/drives/item/list/contentTypes/getCompatibleHubContentTypes/index.ts +++ b/src/drives/item/list/contentTypes/getCompatibleHubContentTypes/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../models/contentType'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue } from './'; -import { type GetCompatibleHubContentTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetCompatibleHubContentTypesGetResponse; +} +export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), + "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, + } +} +export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ContentType[]; +} export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) + writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); +} /** * Provides operations to call the getCompatibleHubContentTypes method. */ diff --git a/src/drives/item/list/contentTypes/index.ts b/src/drives/item/list/contentTypes/index.ts index 7423776e1fd..7fefd79aae5 100644 --- a/src/drives/item/list/contentTypes/index.ts +++ b/src/drives/item/list/contentTypes/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../models'; import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../models/contentType'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AddCopyRequestBuilder } from './addCopy/'; -import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub/'; -import { CountRequestBuilder } from './count/'; -import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { AddCopyRequestBuilder } from './addCopy'; +import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub'; +import { CountRequestBuilder } from './count'; +import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/contentTypes/item/associateWithHubSites/index.ts b/src/drives/item/list/contentTypes/item/associateWithHubSites/index.ts index ca83f09efd0..1c75d048bb8 100644 --- a/src/drives/item/list/contentTypes/item/associateWithHubSites/index.ts +++ b/src/drives/item/list/contentTypes/item/associateWithHubSites/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssociateWithHubSitesPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAssociateWithHubSitesPostRequestBody(writer: Serializat writer.writeBooleanValue("propagateToExistingLists", associateWithHubSitesPostRequestBody.propagateToExistingLists); writer.writeAdditionalData(associateWithHubSitesPostRequestBody.additionalData); } -/** - * Provides operations to call the associateWithHubSites method. - */ -export class AssociateWithHubSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssociateWithHubSitesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/associateWithHubSites"); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-associatewithhubsites?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssociateWithHubSitesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a associateWithHubSitesRequestBuilder - */ - public withUrl(rawUrl: string) : AssociateWithHubSitesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssociateWithHubSitesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/list/contentTypes/item/base/index.ts b/src/drives/item/list/contentTypes/item/base/index.ts index 819389d1e67..50bfcfc3a27 100644 --- a/src/drives/item/list/contentTypes/item/base/index.ts +++ b/src/drives/item/list/contentTypes/item/base/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../models/'; +import { type ContentType } from '../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/baseTypes/count/index.ts b/src/drives/item/list/contentTypes/item/baseTypes/count/index.ts index 94f0a4d4030..601fe0e8d85 100644 --- a/src/drives/item/list/contentTypes/item/baseTypes/count/index.ts +++ b/src/drives/item/list/contentTypes/item/baseTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/baseTypes/index.ts b/src/drives/item/list/contentTypes/item/baseTypes/index.ts index a97b80afff6..15567353ecd 100644 --- a/src/drives/item/list/contentTypes/item/baseTypes/index.ts +++ b/src/drives/item/list/contentTypes/item/baseTypes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../../models'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BaseTypesRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/contentTypes/item/baseTypes/item/index.ts b/src/drives/item/list/contentTypes/item/baseTypes/item/index.ts index 05366462b12..56ca15bdcb8 100644 --- a/src/drives/item/list/contentTypes/item/baseTypes/item/index.ts +++ b/src/drives/item/list/contentTypes/item/baseTypes/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../../models/'; +import { type ContentType } from '../../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/columnLinks/count/index.ts b/src/drives/item/list/contentTypes/item/columnLinks/count/index.ts index 9c99238d651..34a3cad565f 100644 --- a/src/drives/item/list/contentTypes/item/columnLinks/count/index.ts +++ b/src/drives/item/list/contentTypes/item/columnLinks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/columnLinks/index.ts b/src/drives/item/list/contentTypes/item/columnLinks/index.ts index e5fa5650c2f..ecd93e93811 100644 --- a/src/drives/item/list/contentTypes/item/columnLinks/index.ts +++ b/src/drives/item/list/contentTypes/item/columnLinks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnLinkCollectionResponse } from '../../../../../../models/'; +import { type ColumnLinkCollectionResponse } from '../../../../../../models'; import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../models/columnLink'; import { createColumnLinkCollectionResponseFromDiscriminatorValue } from '../../../../../../models/columnLinkCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnLinkItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnLinkItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnLinksRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/contentTypes/item/columnLinks/item/index.ts b/src/drives/item/list/contentTypes/item/columnLinks/item/index.ts index 20a37cc0406..4668eca6447 100644 --- a/src/drives/item/list/contentTypes/item/columnLinks/item/index.ts +++ b/src/drives/item/list/contentTypes/item/columnLinks/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../../models/columnLink'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/columnPositions/count/index.ts b/src/drives/item/list/contentTypes/item/columnPositions/count/index.ts index 5d7648c71a7..8e375039397 100644 --- a/src/drives/item/list/contentTypes/item/columnPositions/count/index.ts +++ b/src/drives/item/list/contentTypes/item/columnPositions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/columnPositions/index.ts b/src/drives/item/list/contentTypes/item/columnPositions/index.ts index 5033daac7e5..14e4361d7a1 100644 --- a/src/drives/item/list/contentTypes/item/columnPositions/index.ts +++ b/src/drives/item/list/contentTypes/item/columnPositions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../models'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnPositionsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/contentTypes/item/columnPositions/item/index.ts b/src/drives/item/list/contentTypes/item/columnPositions/item/index.ts index 6bf05f82c97..017b27eae69 100644 --- a/src/drives/item/list/contentTypes/item/columnPositions/item/index.ts +++ b/src/drives/item/list/contentTypes/item/columnPositions/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/columns/count/index.ts b/src/drives/item/list/contentTypes/item/columns/count/index.ts index 824760fc454..dc755780271 100644 --- a/src/drives/item/list/contentTypes/item/columns/count/index.ts +++ b/src/drives/item/list/contentTypes/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/columns/index.ts b/src/drives/item/list/contentTypes/item/columns/index.ts index 4bcc6bae3be..4c6d61c0b07 100644 --- a/src/drives/item/list/contentTypes/item/columns/index.ts +++ b/src/drives/item/list/contentTypes/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/contentTypes/item/columns/item/index.ts b/src/drives/item/list/contentTypes/item/columns/item/index.ts index 56cd125325a..322260ebd6d 100644 --- a/src/drives/item/list/contentTypes/item/columns/item/index.ts +++ b/src/drives/item/list/contentTypes/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/contentTypes/item/columns/item/sourceColumn/index.ts b/src/drives/item/list/contentTypes/item/columns/item/sourceColumn/index.ts index 940bdbe558d..40a7bf9cdb0 100644 --- a/src/drives/item/list/contentTypes/item/columns/item/sourceColumn/index.ts +++ b/src/drives/item/list/contentTypes/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/copyToDefaultContentLocation/index.ts b/src/drives/item/list/contentTypes/item/copyToDefaultContentLocation/index.ts index 6b96b8e3c8d..360a0845393 100644 --- a/src/drives/item/list/contentTypes/item/copyToDefaultContentLocation/index.ts +++ b/src/drives/item/list/contentTypes/item/copyToDefaultContentLocation/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../../models/itemReference'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToDefaultContentLocationPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,57 +33,5 @@ export function serializeCopyToDefaultContentLocationPostRequestBody(writer: Ser writer.writeObjectValue("sourceFile", copyToDefaultContentLocationPostRequestBody.sourceFile, serializeItemReference); writer.writeAdditionalData(copyToDefaultContentLocationPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToDefaultContentLocation method. - */ -export class CopyToDefaultContentLocationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToDefaultContentLocationRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation"); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-copytodefaultcontentlocation?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToDefaultContentLocationPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToDefaultContentLocationRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToDefaultContentLocationRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToDefaultContentLocationRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/drives/item/list/contentTypes/item/index.ts b/src/drives/item/list/contentTypes/item/index.ts index 70816d42c51..64fe04b19b1 100644 --- a/src/drives/item/list/contentTypes/item/index.ts +++ b/src/drives/item/list/contentTypes/item/index.ts @@ -2,18 +2,18 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites/'; -import { BaseRequestBuilderEscaped } from './base/'; -import { BaseTypesRequestBuilder } from './baseTypes/'; -import { ColumnLinksRequestBuilder } from './columnLinks/'; -import { ColumnPositionsRequestBuilder } from './columnPositions/'; -import { ColumnsRequestBuilder } from './columns/'; -import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation/'; -import { IsPublishedRequestBuilder } from './isPublished/'; -import { PublishRequestBuilder } from './publish/'; -import { UnpublishRequestBuilder } from './unpublish/'; +import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites'; +import { BaseRequestBuilderEscaped } from './base'; +import { BaseTypesRequestBuilder } from './baseTypes'; +import { ColumnLinksRequestBuilder } from './columnLinks'; +import { ColumnPositionsRequestBuilder } from './columnPositions'; +import { ColumnsRequestBuilder } from './columns'; +import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation'; +import { IsPublishedRequestBuilder } from './isPublished'; +import { PublishRequestBuilder } from './publish'; +import { UnpublishRequestBuilder } from './unpublish'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypeItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/contentTypes/item/isPublished/index.ts b/src/drives/item/list/contentTypes/item/isPublished/index.ts index a1d40d17d1e..62c802d6c85 100644 --- a/src/drives/item/list/contentTypes/item/isPublished/index.ts +++ b/src/drives/item/list/contentTypes/item/isPublished/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createIsPublishedGetResponseFromDiscriminatorValue } from './'; -import { type IsPublishedGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsPublishedGetResponse; +} +export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { + return { + "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, + } +} +export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} +export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { + writer.writeBooleanValue("value", isPublishedGetResponse.value); + writer.writeAdditionalData(isPublishedGetResponse.additionalData); +} /** * Provides operations to call the isPublished method. */ diff --git a/src/drives/item/list/contentTypes/item/isPublished/isPublishedGetResponse.ts b/src/drives/item/list/contentTypes/item/isPublished/isPublishedGetResponse.ts deleted file mode 100644 index e6621aa5f27..00000000000 --- a/src/drives/item/list/contentTypes/item/isPublished/isPublishedGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsPublishedGetResponse; -} -export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { - return { - "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, - } -} -export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { - writer.writeBooleanValue("value", isPublishedGetResponse.value); - writer.writeAdditionalData(isPublishedGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/list/contentTypes/item/publish/index.ts b/src/drives/item/list/contentTypes/item/publish/index.ts index 9c96ca217a9..bf92684b71e 100644 --- a/src/drives/item/list/contentTypes/item/publish/index.ts +++ b/src/drives/item/list/contentTypes/item/publish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/contentTypes/item/unpublish/index.ts b/src/drives/item/list/contentTypes/item/unpublish/index.ts index df1b7765efc..140f8259276 100644 --- a/src/drives/item/list/contentTypes/item/unpublish/index.ts +++ b/src/drives/item/list/contentTypes/item/unpublish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/createdByUser/index.ts b/src/drives/item/list/createdByUser/index.ts index 6ea66dcc432..74dd51066cf 100644 --- a/src/drives/item/list/createdByUser/index.ts +++ b/src/drives/item/list/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type User } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/createdByUser/mailboxSettings/index.ts b/src/drives/item/list/createdByUser/mailboxSettings/index.ts index 23bac2f73ab..4ddeac38ae6 100644 --- a/src/drives/item/list/createdByUser/mailboxSettings/index.ts +++ b/src/drives/item/list/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/createdByUser/serviceProvisioningErrors/count/index.ts b/src/drives/item/list/createdByUser/serviceProvisioningErrors/count/index.ts index c07ebdf3620..792ba68ecda 100644 --- a/src/drives/item/list/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/drives/item/list/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/createdByUser/serviceProvisioningErrors/index.ts b/src/drives/item/list/createdByUser/serviceProvisioningErrors/index.ts index ee2c6bbd932..6670896944d 100644 --- a/src/drives/item/list/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/drives/item/list/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/drive/index.ts b/src/drives/item/list/drive/index.ts index 22e915ed2e8..358109813b8 100644 --- a/src/drives/item/list/drive/index.ts +++ b/src/drives/item/list/drive/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../models/'; +import { type Drive } from '../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../models/drive'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/index.ts b/src/drives/item/list/index.ts index e2b714a6a69..c85c6bb61aa 100644 --- a/src/drives/item/list/index.ts +++ b/src/drives/item/list/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List } from '../../../models/list'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ColumnsRequestBuilder } from './columns/'; -import { ContentTypesRequestBuilder } from './contentTypes/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DriveRequestBuilder } from './drive/'; -import { ItemsRequestBuilder } from './items/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { OperationsRequestBuilder } from './operations/'; -import { SubscriptionsRequestBuilder } from './subscriptions/'; +import { ColumnsRequestBuilder } from './columns'; +import { ContentTypesRequestBuilder } from './contentTypes'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DriveRequestBuilder } from './drive'; +import { ItemsRequestBuilder } from './items'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { OperationsRequestBuilder } from './operations'; +import { SubscriptionsRequestBuilder } from './subscriptions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/count/index.ts b/src/drives/item/list/items/count/index.ts index 2c452fbd76c..06d99bc7b72 100644 --- a/src/drives/item/list/items/count/index.ts +++ b/src/drives/item/list/items/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/index.ts b/src/drives/item/list/items/index.ts index 9f393d0aae2..c50a9dd1e93 100644 --- a/src/drives/item/list/items/index.ts +++ b/src/drives/item/list/items/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItemCollectionResponse } from '../../../../models/'; +import { type ListItemCollectionResponse } from '../../../../models'; import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializeListItem, type ListItem } from '../../../../models/listItem'; import { createListItemCollectionResponseFromDiscriminatorValue } from '../../../../models/listItemCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ListItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ListItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/analytics/index.ts b/src/drives/item/list/items/item/analytics/index.ts index e57a9a2355d..0b87fbe0816 100644 --- a/src/drives/item/list/items/item/analytics/index.ts +++ b/src/drives/item/list/items/item/analytics/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemAnalytics } from '../../../../../../models/'; +import { type ItemAnalytics } from '../../../../../../models'; import { createItemAnalyticsFromDiscriminatorValue } from '../../../../../../models/itemAnalytics'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/createdByUser/index.ts b/src/drives/item/list/items/item/createdByUser/index.ts index fe0ef258b0f..f5813ab272a 100644 --- a/src/drives/item/list/items/item/createdByUser/index.ts +++ b/src/drives/item/list/items/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/createdByUser/mailboxSettings/index.ts b/src/drives/item/list/items/item/createdByUser/mailboxSettings/index.ts index 1c5412af71c..62b2996a81a 100644 --- a/src/drives/item/list/items/item/createdByUser/mailboxSettings/index.ts +++ b/src/drives/item/list/items/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/drives/item/list/items/item/createdByUser/serviceProvisioningErrors/count/index.ts index 3fd4494956b..64c8fec259c 100644 --- a/src/drives/item/list/items/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/drives/item/list/items/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/createdByUser/serviceProvisioningErrors/index.ts b/src/drives/item/list/items/item/createdByUser/serviceProvisioningErrors/index.ts index a5a24624e1d..b15808e1814 100644 --- a/src/drives/item/list/items/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/drives/item/list/items/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/documentSetVersions/count/index.ts b/src/drives/item/list/items/item/documentSetVersions/count/index.ts index 5cd62c9eafc..b26c3d954c8 100644 --- a/src/drives/item/list/items/item/documentSetVersions/count/index.ts +++ b/src/drives/item/list/items/item/documentSetVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/documentSetVersions/index.ts b/src/drives/item/list/items/item/documentSetVersions/index.ts index 520eecc4d01..45922b5897e 100644 --- a/src/drives/item/list/items/item/documentSetVersions/index.ts +++ b/src/drives/item/list/items/item/documentSetVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DocumentSetVersionCollectionResponse } from '../../../../../../models/'; +import { type DocumentSetVersionCollectionResponse } from '../../../../../../models'; import { createDocumentSetVersionFromDiscriminatorValue, deserializeIntoDocumentSetVersion, serializeDocumentSetVersion, type DocumentSetVersion } from '../../../../../../models/documentSetVersion'; import { createDocumentSetVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/documentSetVersionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DocumentSetVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DocumentSetVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentSetVersionsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/documentSetVersions/item/fields/index.ts b/src/drives/item/list/items/item/documentSetVersions/item/fields/index.ts index 65785b35c1c..24a99bef8e0 100644 --- a/src/drives/item/list/items/item/documentSetVersions/item/fields/index.ts +++ b/src/drives/item/list/items/item/documentSetVersions/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/documentSetVersions/item/index.ts b/src/drives/item/list/items/item/documentSetVersions/item/index.ts index 87fd532ba67..345a73ef903 100644 --- a/src/drives/item/list/items/item/documentSetVersions/item/index.ts +++ b/src/drives/item/list/items/item/documentSetVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createDocumentSetVersionFromDiscriminatorValue, deserializeIntoDocumentSetVersion, serializeDocumentSetVersion, type DocumentSetVersion } from '../../../../../../../models/documentSetVersion'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { FieldsRequestBuilder } from './fields/'; -import { RestoreRequestBuilder } from './restore/'; +import { FieldsRequestBuilder } from './fields'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentSetVersionItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/documentSetVersions/item/restore/index.ts b/src/drives/item/list/items/item/documentSetVersions/item/restore/index.ts index ec463d4f89f..5b479452e86 100644 --- a/src/drives/item/list/items/item/documentSetVersions/item/restore/index.ts +++ b/src/drives/item/list/items/item/documentSetVersions/item/restore/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/driveItem/content/index.ts b/src/drives/item/list/items/item/driveItem/content/index.ts index 1b6c6eca06f..79d0c009d6b 100644 --- a/src/drives/item/list/items/item/driveItem/content/index.ts +++ b/src/drives/item/list/items/item/driveItem/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/driveItem/index.ts b/src/drives/item/list/items/item/driveItem/index.ts index e55cb2b6b61..56b7ea3714b 100644 --- a/src/drives/item/list/items/item/driveItem/index.ts +++ b/src/drives/item/list/items/item/driveItem/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../models/'; +import { type DriveItem } from '../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/fields/index.ts b/src/drives/item/list/items/item/fields/index.ts index d91ba8187de..0cc7dbbe04a 100644 --- a/src/drives/item/list/items/item/fields/index.ts +++ b/src/drives/item/list/items/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts b/src/drives/item/list/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts deleted file mode 100644 index 73f748a6494..00000000000 --- a/src/drives/item/list/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../models/itemActivityStat'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetActivitiesByIntervalGetResponse; -} -export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), - "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, - } -} -export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ItemActivityStat[]; -} -export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) - writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/list/items/item/getActivitiesByInterval/index.ts b/src/drives/item/list/items/item/getActivitiesByInterval/index.ts index 51972a3e869..f715623b367 100644 --- a/src/drives/item/list/items/item/getActivitiesByInterval/index.ts +++ b/src/drives/item/list/items/item/getActivitiesByInterval/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; +import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../models/itemActivityStat'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createGetActivitiesByIntervalGetResponseFromDiscriminatorValue } from './'; -import { type GetActivitiesByIntervalGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetActivitiesByIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), + "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ItemActivityStat[]; +} export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) + writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); +} /** * Provides operations to call the getActivitiesByInterval method. */ diff --git a/src/drives/item/list/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/drives/item/list/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts index 91583120b95..908a3bb3db5 100644 --- a/src/drives/item/list/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts +++ b/src/drives/item/list/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,102 +21,9 @@ export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInte */ value?: ItemActivityStat[]; } -export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value, serializeItemActivityStat); } -/** - * Provides operations to call the getActivitiesByInterval method. - */ -export class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: string | undefined, interval?: string | undefined, startDateTime?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["interval"] = interval - this.pathParameters["startDateTime"] = startDateTime - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder - */ - public withUrl(rawUrl: string) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/drives/item/list/items/item/index.ts b/src/drives/item/list/items/item/index.ts index eb11aec3c58..d4ecfce7a87 100644 --- a/src/drives/item/list/items/item/index.ts +++ b/src/drives/item/list/items/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializeListItem, type ListItem } from '../../../../../models/listItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AnalyticsRequestBuilder } from './analytics/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DocumentSetVersionsRequestBuilder } from './documentSetVersions/'; -import { DriveItemRequestBuilder } from './driveItem/'; -import { FieldsRequestBuilder } from './fields/'; -import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval/'; -import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { VersionsRequestBuilder } from './versions/'; +import { AnalyticsRequestBuilder } from './analytics'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DocumentSetVersionsRequestBuilder } from './documentSetVersions'; +import { DriveItemRequestBuilder } from './driveItem'; +import { FieldsRequestBuilder } from './fields'; +import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval'; +import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/lastModifiedByUser/index.ts b/src/drives/item/list/items/item/lastModifiedByUser/index.ts index 78500cfbc6e..fa16733a317 100644 --- a/src/drives/item/list/items/item/lastModifiedByUser/index.ts +++ b/src/drives/item/list/items/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/lastModifiedByUser/mailboxSettings/index.ts b/src/drives/item/list/items/item/lastModifiedByUser/mailboxSettings/index.ts index 4156bff2ff8..55addf6f441 100644 --- a/src/drives/item/list/items/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/drives/item/list/items/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/drives/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 7815b306abf..d8fce019b6d 100644 --- a/src/drives/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/drives/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/drives/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index 1c3241ff4c3..bbb4c420937 100644 --- a/src/drives/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/drives/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/versions/count/index.ts b/src/drives/item/list/items/item/versions/count/index.ts index 07d2a90e1da..4ae8a18b1c1 100644 --- a/src/drives/item/list/items/item/versions/count/index.ts +++ b/src/drives/item/list/items/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/versions/index.ts b/src/drives/item/list/items/item/versions/index.ts index abfa8c19e0c..249f856091f 100644 --- a/src/drives/item/list/items/item/versions/index.ts +++ b/src/drives/item/list/items/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItemVersionCollectionResponse } from '../../../../../../models/'; +import { type ListItemVersionCollectionResponse } from '../../../../../../models'; import { createListItemVersionFromDiscriminatorValue, deserializeIntoListItemVersion, serializeListItemVersion, type ListItemVersion } from '../../../../../../models/listItemVersion'; import { createListItemVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/listItemVersionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ListItemVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ListItemVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/versions/item/fields/index.ts b/src/drives/item/list/items/item/versions/item/fields/index.ts index 014b4663e29..fddc2da369b 100644 --- a/src/drives/item/list/items/item/versions/item/fields/index.ts +++ b/src/drives/item/list/items/item/versions/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/items/item/versions/item/index.ts b/src/drives/item/list/items/item/versions/item/index.ts index c411920d2ad..21060bb68a9 100644 --- a/src/drives/item/list/items/item/versions/item/index.ts +++ b/src/drives/item/list/items/item/versions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createListItemVersionFromDiscriminatorValue, deserializeIntoListItemVersion, serializeListItemVersion, type ListItemVersion } from '../../../../../../../models/listItemVersion'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { FieldsRequestBuilder } from './fields/'; -import { RestoreVersionRequestBuilder } from './restoreVersion/'; +import { FieldsRequestBuilder } from './fields'; +import { RestoreVersionRequestBuilder } from './restoreVersion'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemVersionItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/items/item/versions/item/restoreVersion/index.ts b/src/drives/item/list/items/item/versions/item/restoreVersion/index.ts index 25ac97a4d28..a81adf4134e 100644 --- a/src/drives/item/list/items/item/versions/item/restoreVersion/index.ts +++ b/src/drives/item/list/items/item/versions/item/restoreVersion/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/lastModifiedByUser/index.ts b/src/drives/item/list/lastModifiedByUser/index.ts index 9ea6d7dcc58..d67f70c991a 100644 --- a/src/drives/item/list/lastModifiedByUser/index.ts +++ b/src/drives/item/list/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type User } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/lastModifiedByUser/mailboxSettings/index.ts b/src/drives/item/list/lastModifiedByUser/mailboxSettings/index.ts index 3dfe76141d7..86c70f1b06f 100644 --- a/src/drives/item/list/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/drives/item/list/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/drives/item/list/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 87a1f1f96b7..f8657cbd52c 100644 --- a/src/drives/item/list/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/drives/item/list/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/drives/item/list/lastModifiedByUser/serviceProvisioningErrors/index.ts index 68a9c1b5247..1a41c5ac579 100644 --- a/src/drives/item/list/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/drives/item/list/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/operations/count/index.ts b/src/drives/item/list/operations/count/index.ts index 454e3b19c9d..d0edc807c92 100644 --- a/src/drives/item/list/operations/count/index.ts +++ b/src/drives/item/list/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/operations/index.ts b/src/drives/item/list/operations/index.ts index ca272788ef5..340c39346d0 100644 --- a/src/drives/item/list/operations/index.ts +++ b/src/drives/item/list/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RichLongRunningOperationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type RichLongRunningOperationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../models/richLongRunningOperation'; import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/richLongRunningOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RichLongRunningOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RichLongRunningOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/operations/item/index.ts b/src/drives/item/list/operations/item/index.ts index b65551c199a..ae109468981 100644 --- a/src/drives/item/list/operations/item/index.ts +++ b/src/drives/item/list/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../../models/richLongRunningOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/subscriptions/count/index.ts b/src/drives/item/list/subscriptions/count/index.ts index e1f471361cc..4ff548629ec 100644 --- a/src/drives/item/list/subscriptions/count/index.ts +++ b/src/drives/item/list/subscriptions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/list/subscriptions/index.ts b/src/drives/item/list/subscriptions/index.ts index 55014b8cdd7..299af5aba49 100644 --- a/src/drives/item/list/subscriptions/index.ts +++ b/src/drives/item/list/subscriptions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubscriptionCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SubscriptionCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../models/subscription'; import { createSubscriptionCollectionResponseFromDiscriminatorValue } from '../../../../models/subscriptionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubscriptionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubscriptionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionsRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/subscriptions/item/index.ts b/src/drives/item/list/subscriptions/item/index.ts index efc27b48156..0db72c11385 100644 --- a/src/drives/item/list/subscriptions/item/index.ts +++ b/src/drives/item/list/subscriptions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../../models/subscription'; -import { ReauthorizeRequestBuilder } from './reauthorize/'; +import { ReauthorizeRequestBuilder } from './reauthorize'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionItemRequestBuilderGetQueryParameters { diff --git a/src/drives/item/list/subscriptions/item/reauthorize/index.ts b/src/drives/item/list/subscriptions/item/reauthorize/index.ts index 18956d6e7da..a50e5a30849 100644 --- a/src/drives/item/list/subscriptions/item/reauthorize/index.ts +++ b/src/drives/item/list/subscriptions/item/reauthorize/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/recent/index.ts b/src/drives/item/recent/index.ts index ab9046ec7dd..d13bd4976ae 100644 --- a/src/drives/item/recent/index.ts +++ b/src/drives/item/recent/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; import { createDriveItemFromDiscriminatorValue, serializeDriveItem, type DriveItem } from '../../../models/driveItem'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRecentGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,96 +21,9 @@ export interface RecentGetResponse extends BaseCollectionPaginationCountResponse */ value?: DriveItem[]; } -export interface RecentRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeRecentGetResponse(writer: SerializationWriter, recentGetResponse: RecentGetResponse | undefined = {} as RecentGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, recentGetResponse) writer.writeCollectionOfObjectValues("value", recentGetResponse.value, serializeDriveItem); } -/** - * Provides operations to call the recent method. - */ -export class RecentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RecentRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/recent(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function recent - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of RecentGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createRecentGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function recent - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, recentRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a recentRequestBuilder - */ - public withUrl(rawUrl: string) : RecentRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RecentRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const recentRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/drives/item/root/content/index.ts b/src/drives/item/root/content/index.ts index 3e983dd1e6e..207c8e24342 100644 --- a/src/drives/item/root/content/index.ts +++ b/src/drives/item/root/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../models/'; +import { type DriveItem } from '../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/root/index.ts b/src/drives/item/root/index.ts index 14c4bd6f444..6d055d7bad1 100644 --- a/src/drives/item/root/index.ts +++ b/src/drives/item/root/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../models/'; +import { type DriveItem } from '../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../models/driveItem'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RootRequestBuilderGetQueryParameters { diff --git a/src/drives/item/searchWithQ/index.ts b/src/drives/item/searchWithQ/index.ts index 14e321b672c..3881c756c51 100644 --- a/src/drives/item/searchWithQ/index.ts +++ b/src/drives/item/searchWithQ/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; import { createDriveItemFromDiscriminatorValue, serializeDriveItem, type DriveItem } from '../../../models/driveItem'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSearchWithQGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,98 +21,9 @@ export interface SearchWithQGetResponse extends BaseCollectionPaginationCountRes */ value?: DriveItem[]; } -export interface SearchWithQRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeSearchWithQGetResponse(writer: SerializationWriter, searchWithQGetResponse: SearchWithQGetResponse | undefined = {} as SearchWithQGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, searchWithQGetResponse) writer.writeCollectionOfObjectValues("value", searchWithQGetResponse.value, serializeDriveItem); } -/** - * Provides operations to call the search method. - */ -export class SearchWithQRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SearchWithQRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param q Usage: q='{q}' - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, q?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/search(q='{q}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["q"] = q - }; - /** - * Invoke function search - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of SearchWithQGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createSearchWithQGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function search - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, searchWithQRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a searchWithQRequestBuilder - */ - public withUrl(rawUrl: string) : SearchWithQRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SearchWithQRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const searchWithQRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/drives/item/sharedWithMe/index.ts b/src/drives/item/sharedWithMe/index.ts index b202c0042a1..ef7fd03d68f 100644 --- a/src/drives/item/sharedWithMe/index.ts +++ b/src/drives/item/sharedWithMe/index.ts @@ -1,12 +1,32 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { createDriveItemFromDiscriminatorValue, serializeDriveItem, type DriveItem } from '../../../models/driveItem'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createSharedWithMeGetResponseFromDiscriminatorValue } from './'; -import { type SharedWithMeGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSharedWithMeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSharedWithMeGetResponse; +} +export function deserializeIntoSharedWithMeGetResponse(sharedWithMeGetResponse: SharedWithMeGetResponse | undefined = {} as SharedWithMeGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(sharedWithMeGetResponse), + "value": n => { sharedWithMeGetResponse.value = n.getCollectionOfObjectValues(createDriveItemFromDiscriminatorValue); }, + } +} +export function serializeSharedWithMeGetResponse(writer: SerializationWriter, sharedWithMeGetResponse: SharedWithMeGetResponse | undefined = {} as SharedWithMeGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, sharedWithMeGetResponse) + writer.writeCollectionOfObjectValues("value", sharedWithMeGetResponse.value, serializeDriveItem); +} +export interface SharedWithMeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: DriveItem[]; +} export interface SharedWithMeRequestBuilderGetQueryParameters { /** * Include count of items diff --git a/src/drives/item/sharedWithMe/sharedWithMeGetResponse.ts b/src/drives/item/sharedWithMe/sharedWithMeGetResponse.ts deleted file mode 100644 index 9ceb00b8f64..00000000000 --- a/src/drives/item/sharedWithMe/sharedWithMeGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createDriveItemFromDiscriminatorValue, serializeDriveItem, type DriveItem } from '../../../models/driveItem'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSharedWithMeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSharedWithMeGetResponse; -} -export function deserializeIntoSharedWithMeGetResponse(sharedWithMeGetResponse: SharedWithMeGetResponse | undefined = {} as SharedWithMeGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(sharedWithMeGetResponse), - "value": n => { sharedWithMeGetResponse.value = n.getCollectionOfObjectValues(createDriveItemFromDiscriminatorValue); }, - } -} -export function serializeSharedWithMeGetResponse(writer: SerializationWriter, sharedWithMeGetResponse: SharedWithMeGetResponse | undefined = {} as SharedWithMeGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, sharedWithMeGetResponse) - writer.writeCollectionOfObjectValues("value", sharedWithMeGetResponse.value, serializeDriveItem); -} -export interface SharedWithMeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: DriveItem[]; -} -// tslint:enable -// eslint-enable diff --git a/src/drives/item/special/count/index.ts b/src/drives/item/special/count/index.ts index bc734989409..fd8d80f269e 100644 --- a/src/drives/item/special/count/index.ts +++ b/src/drives/item/special/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/special/index.ts b/src/drives/item/special/index.ts index 423bf32807f..0686bd5c291 100644 --- a/src/drives/item/special/index.ts +++ b/src/drives/item/special/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItemCollectionResponse } from '../../../models/'; +import { type DriveItemCollectionResponse } from '../../../models'; import { createDriveItemCollectionResponseFromDiscriminatorValue } from '../../../models/driveItemCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SpecialRequestBuilderGetQueryParameters { diff --git a/src/drives/item/special/item/content/index.ts b/src/drives/item/special/item/content/index.ts index 3d4158b6e98..9739e1ef66b 100644 --- a/src/drives/item/special/item/content/index.ts +++ b/src/drives/item/special/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/drives/item/special/item/index.ts b/src/drives/item/special/item/index.ts index 4fd092a8cb3..767a64345f9 100644 --- a/src/drives/item/special/item/index.ts +++ b/src/drives/item/special/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../models/'; +import { type DriveItem } from '../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemItemRequestBuilderGetQueryParameters { diff --git a/src/education/classes/count/index.ts b/src/education/classes/count/index.ts index dc81ea3d131..1b058ce6811 100644 --- a/src/education/classes/count/index.ts +++ b/src/education/classes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/delta/index.ts b/src/education/classes/delta/index.ts index 1d2ab3b0da6..077161fdb3d 100644 --- a/src/education/classes/delta/index.ts +++ b/src/education/classes/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../models/baseDeltaFunctionResponse'; import { createEducationClassFromDiscriminatorValue, serializeEducationClass, type EducationClass } from '../../../models/educationClass'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationClass[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationClass); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/classes/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/classes/index.ts b/src/education/classes/index.ts index 10815d153da..1570035bed5 100644 --- a/src/education/classes/index.ts +++ b/src/education/classes/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClassCollectionResponse } from '../../models/'; +import { type EducationClassCollectionResponse } from '../../models'; import { createEducationClassFromDiscriminatorValue, deserializeIntoEducationClass, serializeEducationClass, type EducationClass } from '../../models/educationClass'; import { createEducationClassCollectionResponseFromDiscriminatorValue } from '../../models/educationClassCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationClassItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationClassItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ClassesRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignmentCategories/count/index.ts b/src/education/classes/item/assignmentCategories/count/index.ts index 565e263e45f..58d5d14d8b3 100644 --- a/src/education/classes/item/assignmentCategories/count/index.ts +++ b/src/education/classes/item/assignmentCategories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignmentCategories/delta/index.ts b/src/education/classes/item/assignmentCategories/delta/index.ts index f4bf1dae34e..8373f9f1b1e 100644 --- a/src/education/classes/item/assignmentCategories/delta/index.ts +++ b/src/education/classes/item/assignmentCategories/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createEducationCategoryFromDiscriminatorValue, serializeEducationCategory, type EducationCategory } from '../../../../../models/educationCategory'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationCategory[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationCategory); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/classes/item/assignmentCategories/index.ts b/src/education/classes/item/assignmentCategories/index.ts index 87d1acf8fe8..5bd862a58ab 100644 --- a/src/education/classes/item/assignmentCategories/index.ts +++ b/src/education/classes/item/assignmentCategories/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationCategoryCollectionResponse } from '../../../../models/'; +import { type EducationCategoryCollectionResponse } from '../../../../models'; import { createEducationCategoryFromDiscriminatorValue, deserializeIntoEducationCategory, serializeEducationCategory, type EducationCategory } from '../../../../models/educationCategory'; import { createEducationCategoryCollectionResponseFromDiscriminatorValue } from '../../../../models/educationCategoryCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentCategoriesRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignmentCategories/item/index.ts b/src/education/classes/item/assignmentCategories/item/index.ts index 2dba8a7d5de..5a7b3aa91ca 100644 --- a/src/education/classes/item/assignmentCategories/item/index.ts +++ b/src/education/classes/item/assignmentCategories/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationCategoryFromDiscriminatorValue, deserializeIntoEducationCategory, serializeEducationCategory, type EducationCategory } from '../../../../../models/educationCategory'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignmentDefaults/index.ts b/src/education/classes/item/assignmentDefaults/index.ts index b69c172281a..318b57b5f81 100644 --- a/src/education/classes/item/assignmentDefaults/index.ts +++ b/src/education/classes/item/assignmentDefaults/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationAssignmentDefaultsFromDiscriminatorValue, deserializeIntoEducationAssignmentDefaults, serializeEducationAssignmentDefaults, type EducationAssignmentDefaults } from '../../../../models/educationAssignmentDefaults'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignmentSettings/index.ts b/src/education/classes/item/assignmentSettings/index.ts index f359c9e9aad..b2109123664 100644 --- a/src/education/classes/item/assignmentSettings/index.ts +++ b/src/education/classes/item/assignmentSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationAssignmentSettingsFromDiscriminatorValue, deserializeIntoEducationAssignmentSettings, serializeEducationAssignmentSettings, type EducationAssignmentSettings } from '../../../../models/educationAssignmentSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/count/index.ts b/src/education/classes/item/assignments/count/index.ts index e48cfc014bd..f13184402d8 100644 --- a/src/education/classes/item/assignments/count/index.ts +++ b/src/education/classes/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/delta/index.ts b/src/education/classes/item/assignments/delta/index.ts index 6063157f9cb..ae9538d6dfc 100644 --- a/src/education/classes/item/assignments/delta/index.ts +++ b/src/education/classes/item/assignments/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createEducationAssignmentFromDiscriminatorValue, serializeEducationAssignment, type EducationAssignment } from '../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationAssignment[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationAssignment); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/classes/item/assignments/index.ts b/src/education/classes/item/assignments/index.ts index d78e76331b7..3b21bca18a6 100644 --- a/src/education/classes/item/assignments/index.ts +++ b/src/education/classes/item/assignments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignmentCollectionResponse } from '../../../../models/'; +import { type EducationAssignmentCollectionResponse } from '../../../../models'; import { createEducationAssignmentFromDiscriminatorValue, deserializeIntoEducationAssignment, serializeEducationAssignment, type EducationAssignment } from '../../../../models/educationAssignment'; import { createEducationAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/educationAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/categories/count/index.ts b/src/education/classes/item/assignments/item/categories/count/index.ts index b94b6951cd0..9fce410dceb 100644 --- a/src/education/classes/item/assignments/item/categories/count/index.ts +++ b/src/education/classes/item/assignments/item/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/categories/delta/index.ts b/src/education/classes/item/assignments/item/categories/delta/index.ts index 92a6f189d60..ea01116da94 100644 --- a/src/education/classes/item/assignments/item/categories/delta/index.ts +++ b/src/education/classes/item/assignments/item/categories/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createEducationCategoryFromDiscriminatorValue, serializeEducationCategory, type EducationCategory } from '../../../../../../../models/educationCategory'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationCategory[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationCategory); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/classes/item/assignments/item/categories/index.ts b/src/education/classes/item/assignments/item/categories/index.ts index 8b46063c1d8..4204df14a4f 100644 --- a/src/education/classes/item/assignments/item/categories/index.ts +++ b/src/education/classes/item/assignments/item/categories/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationCategoryCollectionResponse } from '../../../../../../models/'; +import { type EducationCategoryCollectionResponse } from '../../../../../../models'; import { createEducationCategoryFromDiscriminatorValue, deserializeIntoEducationCategory, serializeEducationCategory, type EducationCategory } from '../../../../../../models/educationCategory'; import { createEducationCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../../models/educationCategoryCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationCategoryItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationCategoryItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/categories/item/index.ts b/src/education/classes/item/assignments/item/categories/item/index.ts index a0f0d0b8256..cf99bd438e6 100644 --- a/src/education/classes/item/assignments/item/categories/item/index.ts +++ b/src/education/classes/item/assignments/item/categories/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/education/classes/item/assignments/item/categories/item/ref/index.ts b/src/education/classes/item/assignments/item/categories/item/ref/index.ts index acd8cd82618..d1ff7ba218d 100644 --- a/src/education/classes/item/assignments/item/categories/item/ref/index.ts +++ b/src/education/classes/item/assignments/item/categories/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/categories/ref/index.ts b/src/education/classes/item/assignments/item/categories/ref/index.ts index 9a2dd9dcde7..7d07f262d72 100644 --- a/src/education/classes/item/assignments/item/categories/ref/index.ts +++ b/src/education/classes/item/assignments/item/categories/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/stringCollectionResponse'; diff --git a/src/education/classes/item/assignments/item/index.ts b/src/education/classes/item/assignments/item/index.ts index babb4c244a6..2cb3c906b96 100644 --- a/src/education/classes/item/assignments/item/index.ts +++ b/src/education/classes/item/assignments/item/index.ts @@ -2,15 +2,15 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationAssignmentFromDiscriminatorValue, deserializeIntoEducationAssignment, serializeEducationAssignment, type EducationAssignment } from '../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CategoriesRequestBuilder } from './categories/'; -import { PublishRequestBuilder } from './publish/'; -import { ResourcesRequestBuilder } from './resources/'; -import { RubricRequestBuilder } from './rubric/'; -import { SetUpFeedbackResourcesFolderRequestBuilder } from './setUpFeedbackResourcesFolder/'; -import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder/'; -import { SubmissionsRequestBuilder } from './submissions/'; +import { CategoriesRequestBuilder } from './categories'; +import { PublishRequestBuilder } from './publish'; +import { ResourcesRequestBuilder } from './resources'; +import { RubricRequestBuilder } from './rubric'; +import { SetUpFeedbackResourcesFolderRequestBuilder } from './setUpFeedbackResourcesFolder'; +import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder'; +import { SubmissionsRequestBuilder } from './submissions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/publish/index.ts b/src/education/classes/item/assignments/item/publish/index.ts index 18e71c73a80..c45257b27d2 100644 --- a/src/education/classes/item/assignments/item/publish/index.ts +++ b/src/education/classes/item/assignments/item/publish/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../../models/'; +import { type EducationAssignment } from '../../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/resources/count/index.ts b/src/education/classes/item/assignments/item/resources/count/index.ts index c20f230c678..8f308d63619 100644 --- a/src/education/classes/item/assignments/item/resources/count/index.ts +++ b/src/education/classes/item/assignments/item/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/resources/index.ts b/src/education/classes/item/assignments/item/resources/index.ts index 7401564a97c..54959f499c1 100644 --- a/src/education/classes/item/assignments/item/resources/index.ts +++ b/src/education/classes/item/assignments/item/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignmentResourceCollectionResponse } from '../../../../../../models/'; +import { type EducationAssignmentResourceCollectionResponse } from '../../../../../../models'; import { createEducationAssignmentResourceFromDiscriminatorValue, deserializeIntoEducationAssignmentResource, serializeEducationAssignmentResource, type EducationAssignmentResource } from '../../../../../../models/educationAssignmentResource'; import { createEducationAssignmentResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../models/educationAssignmentResourceCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationAssignmentResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationAssignmentResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/resources/item/index.ts b/src/education/classes/item/assignments/item/resources/item/index.ts index dbeeebb5f77..3498c7bf331 100644 --- a/src/education/classes/item/assignments/item/resources/item/index.ts +++ b/src/education/classes/item/assignments/item/resources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationAssignmentResourceFromDiscriminatorValue, deserializeIntoEducationAssignmentResource, serializeEducationAssignmentResource, type EducationAssignmentResource } from '../../../../../../../models/educationAssignmentResource'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/rubric/index.ts b/src/education/classes/item/assignments/item/rubric/index.ts index 90d76b8ca59..2130344fcfe 100644 --- a/src/education/classes/item/assignments/item/rubric/index.ts +++ b/src/education/classes/item/assignments/item/rubric/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationRubricFromDiscriminatorValue, deserializeIntoEducationRubric, serializeEducationRubric, type EducationRubric } from '../../../../../../models/educationRubric'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RubricRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/rubric/ref/index.ts b/src/education/classes/item/assignments/item/rubric/ref/index.ts index 491c8a4efec..b311e5559a3 100644 --- a/src/education/classes/item/assignments/item/rubric/ref/index.ts +++ b/src/education/classes/item/assignments/item/rubric/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceUpdate, serializeReferenceUpdate, type ReferenceUpdate } from '../../../../../../../models/referenceUpdate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/setUpFeedbackResourcesFolder/index.ts b/src/education/classes/item/assignments/item/setUpFeedbackResourcesFolder/index.ts index c11c714af67..8b0823e9db8 100644 --- a/src/education/classes/item/assignments/item/setUpFeedbackResourcesFolder/index.ts +++ b/src/education/classes/item/assignments/item/setUpFeedbackResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../../models/'; +import { type EducationAssignment } from '../../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/setUpResourcesFolder/index.ts b/src/education/classes/item/assignments/item/setUpResourcesFolder/index.ts index 77cde3d4e19..7511bc468d3 100644 --- a/src/education/classes/item/assignments/item/setUpResourcesFolder/index.ts +++ b/src/education/classes/item/assignments/item/setUpResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../../models/'; +import { type EducationAssignment } from '../../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/count/index.ts b/src/education/classes/item/assignments/item/submissions/count/index.ts index c348c4d75fe..cbbc069ef09 100644 --- a/src/education/classes/item/assignments/item/submissions/count/index.ts +++ b/src/education/classes/item/assignments/item/submissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/index.ts b/src/education/classes/item/assignments/item/submissions/index.ts index b8548770379..e2d1ab9909f 100644 --- a/src/education/classes/item/assignments/item/submissions/index.ts +++ b/src/education/classes/item/assignments/item/submissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionCollectionResponse } from '../../../../../../models/'; +import { type EducationSubmissionCollectionResponse } from '../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue, deserializeIntoEducationSubmission, serializeEducationSubmission, type EducationSubmission } from '../../../../../../models/educationSubmission'; import { createEducationSubmissionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/educationSubmissionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubmissionsRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/submissions/item/index.ts b/src/education/classes/item/assignments/item/submissions/item/index.ts index 0bd8a57f851..42c7de7dd3d 100644 --- a/src/education/classes/item/assignments/item/submissions/item/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionFromDiscriminatorValue, deserializeIntoEducationSubmission, serializeEducationSubmission, type EducationSubmission } from '../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { OutcomesRequestBuilder } from './outcomes/'; -import { ReassignRequestBuilder } from './reassign/'; -import { ResourcesRequestBuilder } from './resources/'; -import { ReturnRequestBuilder } from './returnEscaped/'; -import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder/'; -import { SubmitRequestBuilder } from './submit/'; -import { SubmittedResourcesRequestBuilder } from './submittedResources/'; -import { UnsubmitRequestBuilder } from './unsubmit/'; +import { OutcomesRequestBuilder } from './outcomes'; +import { ReassignRequestBuilder } from './reassign'; +import { ResourcesRequestBuilder } from './resources'; +import { ReturnRequestBuilder } from './returnEscaped'; +import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder'; +import { SubmitRequestBuilder } from './submit'; +import { SubmittedResourcesRequestBuilder } from './submittedResources'; +import { UnsubmitRequestBuilder } from './unsubmit'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationSubmissionItemRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/submissions/item/outcomes/count/index.ts b/src/education/classes/item/assignments/item/submissions/item/outcomes/count/index.ts index 183c5b201cc..341827beda9 100644 --- a/src/education/classes/item/assignments/item/submissions/item/outcomes/count/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/outcomes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/outcomes/index.ts b/src/education/classes/item/assignments/item/submissions/item/outcomes/index.ts index f1b77c0ead2..ea2e5f42bc4 100644 --- a/src/education/classes/item/assignments/item/submissions/item/outcomes/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/outcomes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationOutcomeCollectionResponse } from '../../../../../../../../models/'; +import { type EducationOutcomeCollectionResponse } from '../../../../../../../../models'; import { createEducationOutcomeFromDiscriminatorValue, deserializeIntoEducationOutcome, serializeEducationOutcome, type EducationOutcome } from '../../../../../../../../models/educationOutcome'; import { createEducationOutcomeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/educationOutcomeCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationOutcomeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationOutcomeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OutcomesRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/submissions/item/outcomes/item/index.ts b/src/education/classes/item/assignments/item/submissions/item/outcomes/item/index.ts index fb3f5d693c1..c6248677d10 100644 --- a/src/education/classes/item/assignments/item/submissions/item/outcomes/item/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/outcomes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationOutcomeFromDiscriminatorValue, deserializeIntoEducationOutcome, serializeEducationOutcome, type EducationOutcome } from '../../../../../../../../../models/educationOutcome'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/reassign/index.ts b/src/education/classes/item/assignments/item/submissions/item/reassign/index.ts index a3ed31e70e8..62855810edf 100644 --- a/src/education/classes/item/assignments/item/submissions/item/reassign/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/reassign/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/resources/count/index.ts b/src/education/classes/item/assignments/item/submissions/item/resources/count/index.ts index d2bd0662575..ce0a0863ed3 100644 --- a/src/education/classes/item/assignments/item/submissions/item/resources/count/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/resources/index.ts b/src/education/classes/item/assignments/item/submissions/item/resources/index.ts index eb2fd959dd2..a3ee8132b3d 100644 --- a/src/education/classes/item/assignments/item/submissions/item/resources/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../../models/'; +import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../../models'; import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../models/educationSubmissionResource'; import { createEducationSubmissionResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/educationSubmissionResourceCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/submissions/item/resources/item/index.ts b/src/education/classes/item/assignments/item/submissions/item/resources/item/index.ts index 9de259c15fe..9af56413321 100644 --- a/src/education/classes/item/assignments/item/submissions/item/resources/item/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/resources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../../models/educationSubmissionResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/returnEscaped/index.ts b/src/education/classes/item/assignments/item/submissions/item/returnEscaped/index.ts index 27e353e7acd..9ddbf5d8ede 100644 --- a/src/education/classes/item/assignments/item/submissions/item/returnEscaped/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/returnEscaped/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/setUpResourcesFolder/index.ts b/src/education/classes/item/assignments/item/submissions/item/setUpResourcesFolder/index.ts index e43c23af2c0..24dfd9d91cb 100644 --- a/src/education/classes/item/assignments/item/submissions/item/setUpResourcesFolder/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/setUpResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/submit/index.ts b/src/education/classes/item/assignments/item/submissions/item/submit/index.ts index 5ef77c8f9d4..c16658bfc37 100644 --- a/src/education/classes/item/assignments/item/submissions/item/submit/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/submit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/submittedResources/count/index.ts b/src/education/classes/item/assignments/item/submissions/item/submittedResources/count/index.ts index 44cb96334c8..12c892873b7 100644 --- a/src/education/classes/item/assignments/item/submissions/item/submittedResources/count/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/submittedResources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/submittedResources/index.ts b/src/education/classes/item/assignments/item/submissions/item/submittedResources/index.ts index 84f04794cae..d113deeb5de 100644 --- a/src/education/classes/item/assignments/item/submissions/item/submittedResources/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/submittedResources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../../models/'; +import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../../models'; import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../models/educationSubmissionResource'; import { createEducationSubmissionResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/educationSubmissionResourceCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubmittedResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/assignments/item/submissions/item/submittedResources/item/index.ts b/src/education/classes/item/assignments/item/submissions/item/submittedResources/item/index.ts index cb6dfe15ed5..c7b0f3ba8ce 100644 --- a/src/education/classes/item/assignments/item/submissions/item/submittedResources/item/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/submittedResources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../../models/educationSubmissionResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/assignments/item/submissions/item/unsubmit/index.ts b/src/education/classes/item/assignments/item/submissions/item/unsubmit/index.ts index 14fe53a1ca6..493d7794b26 100644 --- a/src/education/classes/item/assignments/item/submissions/item/unsubmit/index.ts +++ b/src/education/classes/item/assignments/item/submissions/item/unsubmit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/group/index.ts b/src/education/classes/item/group/index.ts index f5ee1b90da8..f509b0d5d7b 100644 --- a/src/education/classes/item/group/index.ts +++ b/src/education/classes/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../models/'; +import { type Group } from '../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../models/group'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/group/serviceProvisioningErrors/count/index.ts b/src/education/classes/item/group/serviceProvisioningErrors/count/index.ts index a2aac5e9bdb..844c7aa523e 100644 --- a/src/education/classes/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/education/classes/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/group/serviceProvisioningErrors/index.ts b/src/education/classes/item/group/serviceProvisioningErrors/index.ts index db2d3693440..9387a86d796 100644 --- a/src/education/classes/item/group/serviceProvisioningErrors/index.ts +++ b/src/education/classes/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/index.ts b/src/education/classes/item/index.ts index bb56dda5e82..0760c2102dc 100644 --- a/src/education/classes/item/index.ts +++ b/src/education/classes/item/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationClassFromDiscriminatorValue, deserializeIntoEducationClass, serializeEducationClass, type EducationClass } from '../../../models/educationClass'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignmentCategoriesRequestBuilder } from './assignmentCategories/'; -import { AssignmentDefaultsRequestBuilder } from './assignmentDefaults/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { AssignmentSettingsRequestBuilder } from './assignmentSettings/'; -import { GroupRequestBuilder } from './group/'; -import { MembersRequestBuilder } from './members/'; -import { SchoolsRequestBuilder } from './schools/'; -import { TeachersRequestBuilder } from './teachers/'; +import { AssignmentCategoriesRequestBuilder } from './assignmentCategories'; +import { AssignmentDefaultsRequestBuilder } from './assignmentDefaults'; +import { AssignmentsRequestBuilder } from './assignments'; +import { AssignmentSettingsRequestBuilder } from './assignmentSettings'; +import { GroupRequestBuilder } from './group'; +import { MembersRequestBuilder } from './members'; +import { SchoolsRequestBuilder } from './schools'; +import { TeachersRequestBuilder } from './teachers'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationClassItemRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/members/count/index.ts b/src/education/classes/item/members/count/index.ts index ba97a97643b..aaee7016712 100644 --- a/src/education/classes/item/members/count/index.ts +++ b/src/education/classes/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/members/index.ts b/src/education/classes/item/members/index.ts index 1c79e6509c2..12700cfbe83 100644 --- a/src/education/classes/item/members/index.ts +++ b/src/education/classes/item/members/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationUserCollectionResponse } from '../../../../models/'; +import { type EducationUserCollectionResponse } from '../../../../models'; import { createEducationUserCollectionResponseFromDiscriminatorValue } from '../../../../models/educationUserCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationUserItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { EducationUserItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/members/item/index.ts b/src/education/classes/item/members/item/index.ts index b7da5accce0..97f0f57a64f 100644 --- a/src/education/classes/item/members/item/index.ts +++ b/src/education/classes/item/members/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/education/classes/item/members/item/ref/index.ts b/src/education/classes/item/members/item/ref/index.ts index 4d0667b1160..9669b49c170 100644 --- a/src/education/classes/item/members/item/ref/index.ts +++ b/src/education/classes/item/members/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/members/ref/index.ts b/src/education/classes/item/members/ref/index.ts index aca1bcc4f6b..7471b1a4998 100644 --- a/src/education/classes/item/members/ref/index.ts +++ b/src/education/classes/item/members/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/education/classes/item/schools/count/index.ts b/src/education/classes/item/schools/count/index.ts index 7828fb5a21b..8cf74ba332a 100644 --- a/src/education/classes/item/schools/count/index.ts +++ b/src/education/classes/item/schools/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/schools/index.ts b/src/education/classes/item/schools/index.ts index 1810eb985b9..a0e2dbe5c61 100644 --- a/src/education/classes/item/schools/index.ts +++ b/src/education/classes/item/schools/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSchoolCollectionResponse } from '../../../../models/'; +import { type EducationSchoolCollectionResponse } from '../../../../models'; import { createEducationSchoolCollectionResponseFromDiscriminatorValue } from '../../../../models/educationSchoolCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSchoolItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSchoolItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchoolsRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/schools/item/index.ts b/src/education/classes/item/schools/item/index.ts index 7c8304bb467..1953341968e 100644 --- a/src/education/classes/item/schools/item/index.ts +++ b/src/education/classes/item/schools/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSchool } from '../../../../../models/'; +import { type EducationSchool } from '../../../../../models'; import { createEducationSchoolFromDiscriminatorValue } from '../../../../../models/educationSchool'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/teachers/count/index.ts b/src/education/classes/item/teachers/count/index.ts index d2b01170ccd..51ec2274ca0 100644 --- a/src/education/classes/item/teachers/count/index.ts +++ b/src/education/classes/item/teachers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/teachers/index.ts b/src/education/classes/item/teachers/index.ts index 7c5f0d5657b..2964bd37d53 100644 --- a/src/education/classes/item/teachers/index.ts +++ b/src/education/classes/item/teachers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationUserCollectionResponse } from '../../../../models/'; +import { type EducationUserCollectionResponse } from '../../../../models'; import { createEducationUserCollectionResponseFromDiscriminatorValue } from '../../../../models/educationUserCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationUserItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { EducationUserItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeachersRequestBuilderGetQueryParameters { diff --git a/src/education/classes/item/teachers/item/index.ts b/src/education/classes/item/teachers/item/index.ts index bff6379ab5e..5f118a98f23 100644 --- a/src/education/classes/item/teachers/item/index.ts +++ b/src/education/classes/item/teachers/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/education/classes/item/teachers/item/ref/index.ts b/src/education/classes/item/teachers/item/ref/index.ts index bcd2ee5a52d..b4fc0ffa651 100644 --- a/src/education/classes/item/teachers/item/ref/index.ts +++ b/src/education/classes/item/teachers/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/classes/item/teachers/ref/index.ts b/src/education/classes/item/teachers/ref/index.ts index 5b2bbbd37a0..b095aa5489e 100644 --- a/src/education/classes/item/teachers/ref/index.ts +++ b/src/education/classes/item/teachers/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/education/index.ts b/src/education/index.ts index 458beac39e7..589ee7aac9b 100644 --- a/src/education/index.ts +++ b/src/education/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationRootFromDiscriminatorValue, deserializeIntoEducationRoot, serializeEducationRoot, type EducationRoot } from '../models/educationRoot'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { ClassesRequestBuilder } from './classes/'; -import { MeRequestBuilder } from './me/'; -import { SchoolsRequestBuilder } from './schools/'; -import { UsersRequestBuilder } from './users/'; +import { ClassesRequestBuilder } from './classes'; +import { MeRequestBuilder } from './me'; +import { SchoolsRequestBuilder } from './schools'; +import { UsersRequestBuilder } from './users'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/count/index.ts b/src/education/me/assignments/count/index.ts index a9385d77d2b..9074fd9c807 100644 --- a/src/education/me/assignments/count/index.ts +++ b/src/education/me/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/delta/index.ts b/src/education/me/assignments/delta/index.ts index 585b7cf9cd3..f8fdce71626 100644 --- a/src/education/me/assignments/delta/index.ts +++ b/src/education/me/assignments/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createEducationAssignmentFromDiscriminatorValue, serializeEducationAssignment, type EducationAssignment } from '../../../../models/educationAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationAssignment[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationAssignment); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/me/assignments/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/me/assignments/index.ts b/src/education/me/assignments/index.ts index 493aa6d5105..f2d116d9b3e 100644 --- a/src/education/me/assignments/index.ts +++ b/src/education/me/assignments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignmentCollectionResponse } from '../../../models/'; +import { type EducationAssignmentCollectionResponse } from '../../../models'; import { createEducationAssignmentFromDiscriminatorValue, deserializeIntoEducationAssignment, serializeEducationAssignment, type EducationAssignment } from '../../../models/educationAssignment'; import { createEducationAssignmentCollectionResponseFromDiscriminatorValue } from '../../../models/educationAssignmentCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/categories/count/index.ts b/src/education/me/assignments/item/categories/count/index.ts index 11c64cc8529..6779abf19f7 100644 --- a/src/education/me/assignments/item/categories/count/index.ts +++ b/src/education/me/assignments/item/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/categories/delta/index.ts b/src/education/me/assignments/item/categories/delta/index.ts index de0a4291c55..6ddc37fab7c 100644 --- a/src/education/me/assignments/item/categories/delta/index.ts +++ b/src/education/me/assignments/item/categories/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createEducationCategoryFromDiscriminatorValue, serializeEducationCategory, type EducationCategory } from '../../../../../../models/educationCategory'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationCategory[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationCategory); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/me/assignments/item/categories/index.ts b/src/education/me/assignments/item/categories/index.ts index 8f81e1a6e29..95ea4bd2a18 100644 --- a/src/education/me/assignments/item/categories/index.ts +++ b/src/education/me/assignments/item/categories/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationCategoryCollectionResponse } from '../../../../../models/'; +import { type EducationCategoryCollectionResponse } from '../../../../../models'; import { createEducationCategoryFromDiscriminatorValue, deserializeIntoEducationCategory, serializeEducationCategory, type EducationCategory } from '../../../../../models/educationCategory'; import { createEducationCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../models/educationCategoryCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationCategoryItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationCategoryItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/categories/item/index.ts b/src/education/me/assignments/item/categories/item/index.ts index b74ff5587a1..c89587a39d1 100644 --- a/src/education/me/assignments/item/categories/item/index.ts +++ b/src/education/me/assignments/item/categories/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/education/me/assignments/item/categories/item/ref/index.ts b/src/education/me/assignments/item/categories/item/ref/index.ts index b0d792f5d7d..52018dd3418 100644 --- a/src/education/me/assignments/item/categories/item/ref/index.ts +++ b/src/education/me/assignments/item/categories/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/categories/ref/index.ts b/src/education/me/assignments/item/categories/ref/index.ts index 438733908a2..a10693423cc 100644 --- a/src/education/me/assignments/item/categories/ref/index.ts +++ b/src/education/me/assignments/item/categories/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../../models/stringCollectionResponse'; diff --git a/src/education/me/assignments/item/index.ts b/src/education/me/assignments/item/index.ts index 9d910b0fa1d..037b479c141 100644 --- a/src/education/me/assignments/item/index.ts +++ b/src/education/me/assignments/item/index.ts @@ -2,15 +2,15 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationAssignmentFromDiscriminatorValue, deserializeIntoEducationAssignment, serializeEducationAssignment, type EducationAssignment } from '../../../../models/educationAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CategoriesRequestBuilder } from './categories/'; -import { PublishRequestBuilder } from './publish/'; -import { ResourcesRequestBuilder } from './resources/'; -import { RubricRequestBuilder } from './rubric/'; -import { SetUpFeedbackResourcesFolderRequestBuilder } from './setUpFeedbackResourcesFolder/'; -import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder/'; -import { SubmissionsRequestBuilder } from './submissions/'; +import { CategoriesRequestBuilder } from './categories'; +import { PublishRequestBuilder } from './publish'; +import { ResourcesRequestBuilder } from './resources'; +import { RubricRequestBuilder } from './rubric'; +import { SetUpFeedbackResourcesFolderRequestBuilder } from './setUpFeedbackResourcesFolder'; +import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder'; +import { SubmissionsRequestBuilder } from './submissions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/publish/index.ts b/src/education/me/assignments/item/publish/index.ts index 215ffbd1ad5..2c56e909295 100644 --- a/src/education/me/assignments/item/publish/index.ts +++ b/src/education/me/assignments/item/publish/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../models/'; +import { type EducationAssignment } from '../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/resources/count/index.ts b/src/education/me/assignments/item/resources/count/index.ts index 292d14dd85c..04c646b9ad1 100644 --- a/src/education/me/assignments/item/resources/count/index.ts +++ b/src/education/me/assignments/item/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/resources/index.ts b/src/education/me/assignments/item/resources/index.ts index 3b9581cbd2e..3b7c5237f7f 100644 --- a/src/education/me/assignments/item/resources/index.ts +++ b/src/education/me/assignments/item/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignmentResourceCollectionResponse } from '../../../../../models/'; +import { type EducationAssignmentResourceCollectionResponse } from '../../../../../models'; import { createEducationAssignmentResourceFromDiscriminatorValue, deserializeIntoEducationAssignmentResource, serializeEducationAssignmentResource, type EducationAssignmentResource } from '../../../../../models/educationAssignmentResource'; import { createEducationAssignmentResourceCollectionResponseFromDiscriminatorValue } from '../../../../../models/educationAssignmentResourceCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationAssignmentResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationAssignmentResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/resources/item/index.ts b/src/education/me/assignments/item/resources/item/index.ts index 3d7c92261c4..c8d2cff1e64 100644 --- a/src/education/me/assignments/item/resources/item/index.ts +++ b/src/education/me/assignments/item/resources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationAssignmentResourceFromDiscriminatorValue, deserializeIntoEducationAssignmentResource, serializeEducationAssignmentResource, type EducationAssignmentResource } from '../../../../../../models/educationAssignmentResource'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/rubric/index.ts b/src/education/me/assignments/item/rubric/index.ts index 5e8e23423bb..d1a7b4afa88 100644 --- a/src/education/me/assignments/item/rubric/index.ts +++ b/src/education/me/assignments/item/rubric/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationRubricFromDiscriminatorValue, deserializeIntoEducationRubric, serializeEducationRubric, type EducationRubric } from '../../../../../models/educationRubric'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RubricRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/rubric/ref/index.ts b/src/education/me/assignments/item/rubric/ref/index.ts index e9bbb216571..7fe1fd358a7 100644 --- a/src/education/me/assignments/item/rubric/ref/index.ts +++ b/src/education/me/assignments/item/rubric/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceUpdate, serializeReferenceUpdate, type ReferenceUpdate } from '../../../../../../models/referenceUpdate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/setUpFeedbackResourcesFolder/index.ts b/src/education/me/assignments/item/setUpFeedbackResourcesFolder/index.ts index bd9fb1ece78..537f1f1fff8 100644 --- a/src/education/me/assignments/item/setUpFeedbackResourcesFolder/index.ts +++ b/src/education/me/assignments/item/setUpFeedbackResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../models/'; +import { type EducationAssignment } from '../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/setUpResourcesFolder/index.ts b/src/education/me/assignments/item/setUpResourcesFolder/index.ts index 0c50fefe9ee..f8ce839bedf 100644 --- a/src/education/me/assignments/item/setUpResourcesFolder/index.ts +++ b/src/education/me/assignments/item/setUpResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../models/'; +import { type EducationAssignment } from '../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/count/index.ts b/src/education/me/assignments/item/submissions/count/index.ts index d83ef747c8a..03e07f5dc9c 100644 --- a/src/education/me/assignments/item/submissions/count/index.ts +++ b/src/education/me/assignments/item/submissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/index.ts b/src/education/me/assignments/item/submissions/index.ts index e352c69f1af..bc39a11d1d4 100644 --- a/src/education/me/assignments/item/submissions/index.ts +++ b/src/education/me/assignments/item/submissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionCollectionResponse } from '../../../../../models/'; +import { type EducationSubmissionCollectionResponse } from '../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue, deserializeIntoEducationSubmission, serializeEducationSubmission, type EducationSubmission } from '../../../../../models/educationSubmission'; import { createEducationSubmissionCollectionResponseFromDiscriminatorValue } from '../../../../../models/educationSubmissionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubmissionsRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/submissions/item/index.ts b/src/education/me/assignments/item/submissions/item/index.ts index 0783fe0cbb1..9dc3720bc67 100644 --- a/src/education/me/assignments/item/submissions/item/index.ts +++ b/src/education/me/assignments/item/submissions/item/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionFromDiscriminatorValue, deserializeIntoEducationSubmission, serializeEducationSubmission, type EducationSubmission } from '../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { OutcomesRequestBuilder } from './outcomes/'; -import { ReassignRequestBuilder } from './reassign/'; -import { ResourcesRequestBuilder } from './resources/'; -import { ReturnRequestBuilder } from './returnEscaped/'; -import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder/'; -import { SubmitRequestBuilder } from './submit/'; -import { SubmittedResourcesRequestBuilder } from './submittedResources/'; -import { UnsubmitRequestBuilder } from './unsubmit/'; +import { OutcomesRequestBuilder } from './outcomes'; +import { ReassignRequestBuilder } from './reassign'; +import { ResourcesRequestBuilder } from './resources'; +import { ReturnRequestBuilder } from './returnEscaped'; +import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder'; +import { SubmitRequestBuilder } from './submit'; +import { SubmittedResourcesRequestBuilder } from './submittedResources'; +import { UnsubmitRequestBuilder } from './unsubmit'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationSubmissionItemRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/submissions/item/outcomes/count/index.ts b/src/education/me/assignments/item/submissions/item/outcomes/count/index.ts index 42680df38c1..1f1df8b5dcb 100644 --- a/src/education/me/assignments/item/submissions/item/outcomes/count/index.ts +++ b/src/education/me/assignments/item/submissions/item/outcomes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/outcomes/index.ts b/src/education/me/assignments/item/submissions/item/outcomes/index.ts index f1dec0360eb..132e03bb1c9 100644 --- a/src/education/me/assignments/item/submissions/item/outcomes/index.ts +++ b/src/education/me/assignments/item/submissions/item/outcomes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationOutcomeCollectionResponse } from '../../../../../../../models/'; +import { type EducationOutcomeCollectionResponse } from '../../../../../../../models'; import { createEducationOutcomeFromDiscriminatorValue, deserializeIntoEducationOutcome, serializeEducationOutcome, type EducationOutcome } from '../../../../../../../models/educationOutcome'; import { createEducationOutcomeCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/educationOutcomeCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationOutcomeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationOutcomeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OutcomesRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/submissions/item/outcomes/item/index.ts b/src/education/me/assignments/item/submissions/item/outcomes/item/index.ts index 8fb57517648..79f62b3d6e7 100644 --- a/src/education/me/assignments/item/submissions/item/outcomes/item/index.ts +++ b/src/education/me/assignments/item/submissions/item/outcomes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationOutcomeFromDiscriminatorValue, deserializeIntoEducationOutcome, serializeEducationOutcome, type EducationOutcome } from '../../../../../../../../models/educationOutcome'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/reassign/index.ts b/src/education/me/assignments/item/submissions/item/reassign/index.ts index 5feada107e3..30c29903045 100644 --- a/src/education/me/assignments/item/submissions/item/reassign/index.ts +++ b/src/education/me/assignments/item/submissions/item/reassign/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/resources/count/index.ts b/src/education/me/assignments/item/submissions/item/resources/count/index.ts index 77da0f91f34..5a214b7946e 100644 --- a/src/education/me/assignments/item/submissions/item/resources/count/index.ts +++ b/src/education/me/assignments/item/submissions/item/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/resources/index.ts b/src/education/me/assignments/item/submissions/item/resources/index.ts index 3ce1a977f9d..6e3e0be14e6 100644 --- a/src/education/me/assignments/item/submissions/item/resources/index.ts +++ b/src/education/me/assignments/item/submissions/item/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../models/'; +import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../models'; import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../models/educationSubmissionResource'; import { createEducationSubmissionResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/educationSubmissionResourceCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/submissions/item/resources/item/index.ts b/src/education/me/assignments/item/submissions/item/resources/item/index.ts index 754181af1af..117d4ac3834 100644 --- a/src/education/me/assignments/item/submissions/item/resources/item/index.ts +++ b/src/education/me/assignments/item/submissions/item/resources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../models/educationSubmissionResource'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/returnEscaped/index.ts b/src/education/me/assignments/item/submissions/item/returnEscaped/index.ts index 7be43864d63..e26609a11d3 100644 --- a/src/education/me/assignments/item/submissions/item/returnEscaped/index.ts +++ b/src/education/me/assignments/item/submissions/item/returnEscaped/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/setUpResourcesFolder/index.ts b/src/education/me/assignments/item/submissions/item/setUpResourcesFolder/index.ts index c86a7410e39..ef8ec74d6f1 100644 --- a/src/education/me/assignments/item/submissions/item/setUpResourcesFolder/index.ts +++ b/src/education/me/assignments/item/submissions/item/setUpResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/submit/index.ts b/src/education/me/assignments/item/submissions/item/submit/index.ts index 209bebc84bc..92800318e62 100644 --- a/src/education/me/assignments/item/submissions/item/submit/index.ts +++ b/src/education/me/assignments/item/submissions/item/submit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/submittedResources/count/index.ts b/src/education/me/assignments/item/submissions/item/submittedResources/count/index.ts index b2dce02e398..b8f94c40df2 100644 --- a/src/education/me/assignments/item/submissions/item/submittedResources/count/index.ts +++ b/src/education/me/assignments/item/submissions/item/submittedResources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/submittedResources/index.ts b/src/education/me/assignments/item/submissions/item/submittedResources/index.ts index 02c849c3ab8..bc7c37ad347 100644 --- a/src/education/me/assignments/item/submissions/item/submittedResources/index.ts +++ b/src/education/me/assignments/item/submissions/item/submittedResources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../models/'; +import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../models'; import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../models/educationSubmissionResource'; import { createEducationSubmissionResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/educationSubmissionResourceCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubmittedResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/me/assignments/item/submissions/item/submittedResources/item/index.ts b/src/education/me/assignments/item/submissions/item/submittedResources/item/index.ts index 33e32ef5f1c..83f9dd4734b 100644 --- a/src/education/me/assignments/item/submissions/item/submittedResources/item/index.ts +++ b/src/education/me/assignments/item/submissions/item/submittedResources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../models/educationSubmissionResource'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/assignments/item/submissions/item/unsubmit/index.ts b/src/education/me/assignments/item/submissions/item/unsubmit/index.ts index 3d110826b70..2a2aacb67cc 100644 --- a/src/education/me/assignments/item/submissions/item/unsubmit/index.ts +++ b/src/education/me/assignments/item/submissions/item/unsubmit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/classes/count/index.ts b/src/education/me/classes/count/index.ts index 5bd3ec39047..7da7b8b6f6a 100644 --- a/src/education/me/classes/count/index.ts +++ b/src/education/me/classes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/classes/index.ts b/src/education/me/classes/index.ts index 48b6997d9e9..64a075bfd8d 100644 --- a/src/education/me/classes/index.ts +++ b/src/education/me/classes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClassCollectionResponse } from '../../../models/'; +import { type EducationClassCollectionResponse } from '../../../models'; import { createEducationClassCollectionResponseFromDiscriminatorValue } from '../../../models/educationClassCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationClassItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationClassItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ClassesRequestBuilderGetQueryParameters { diff --git a/src/education/me/classes/item/index.ts b/src/education/me/classes/item/index.ts index 1b3d7aa4609..bacf4d31bf2 100644 --- a/src/education/me/classes/item/index.ts +++ b/src/education/me/classes/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClass } from '../../../../models/'; +import { type EducationClass } from '../../../../models'; import { createEducationClassFromDiscriminatorValue } from '../../../../models/educationClass'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/index.ts b/src/education/me/index.ts index 45aae0f8579..3c56a02e0bc 100644 --- a/src/education/me/index.ts +++ b/src/education/me/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationUserFromDiscriminatorValue, deserializeIntoEducationUser, serializeEducationUser, type EducationUser } from '../../models/educationUser'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { ClassesRequestBuilder } from './classes/'; -import { RubricsRequestBuilder } from './rubrics/'; -import { SchoolsRequestBuilder } from './schools/'; -import { TaughtClassesRequestBuilder } from './taughtClasses/'; -import { UserRequestBuilder } from './user/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { ClassesRequestBuilder } from './classes'; +import { RubricsRequestBuilder } from './rubrics'; +import { SchoolsRequestBuilder } from './schools'; +import { TaughtClassesRequestBuilder } from './taughtClasses'; +import { UserRequestBuilder } from './user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MeRequestBuilderGetQueryParameters { diff --git a/src/education/me/rubrics/count/index.ts b/src/education/me/rubrics/count/index.ts index 5f757a9d36a..2867536aebd 100644 --- a/src/education/me/rubrics/count/index.ts +++ b/src/education/me/rubrics/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/rubrics/index.ts b/src/education/me/rubrics/index.ts index 30b12a54cd9..8985660c2de 100644 --- a/src/education/me/rubrics/index.ts +++ b/src/education/me/rubrics/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationRubricCollectionResponse } from '../../../models/'; +import { type EducationRubricCollectionResponse } from '../../../models'; import { createEducationRubricFromDiscriminatorValue, deserializeIntoEducationRubric, serializeEducationRubric, type EducationRubric } from '../../../models/educationRubric'; import { createEducationRubricCollectionResponseFromDiscriminatorValue } from '../../../models/educationRubricCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationRubricItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationRubricItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RubricsRequestBuilderGetQueryParameters { diff --git a/src/education/me/rubrics/item/index.ts b/src/education/me/rubrics/item/index.ts index 6b749618423..b5428f5125e 100644 --- a/src/education/me/rubrics/item/index.ts +++ b/src/education/me/rubrics/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationRubricFromDiscriminatorValue, deserializeIntoEducationRubric, serializeEducationRubric, type EducationRubric } from '../../../../models/educationRubric'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/schools/count/index.ts b/src/education/me/schools/count/index.ts index dee439ed9f7..8f63bb2d098 100644 --- a/src/education/me/schools/count/index.ts +++ b/src/education/me/schools/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/schools/index.ts b/src/education/me/schools/index.ts index 94b907941a4..5d46b94146a 100644 --- a/src/education/me/schools/index.ts +++ b/src/education/me/schools/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSchoolCollectionResponse } from '../../../models/'; +import { type EducationSchoolCollectionResponse } from '../../../models'; import { createEducationSchoolCollectionResponseFromDiscriminatorValue } from '../../../models/educationSchoolCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSchoolItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSchoolItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchoolsRequestBuilderGetQueryParameters { diff --git a/src/education/me/schools/item/index.ts b/src/education/me/schools/item/index.ts index 72b816d4cea..234c1d5ca57 100644 --- a/src/education/me/schools/item/index.ts +++ b/src/education/me/schools/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSchool } from '../../../../models/'; +import { type EducationSchool } from '../../../../models'; import { createEducationSchoolFromDiscriminatorValue } from '../../../../models/educationSchool'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/taughtClasses/count/index.ts b/src/education/me/taughtClasses/count/index.ts index a2fe3bcd089..791869b7eb9 100644 --- a/src/education/me/taughtClasses/count/index.ts +++ b/src/education/me/taughtClasses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/taughtClasses/index.ts b/src/education/me/taughtClasses/index.ts index 61927f49eae..14b108fbe4e 100644 --- a/src/education/me/taughtClasses/index.ts +++ b/src/education/me/taughtClasses/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClassCollectionResponse } from '../../../models/'; +import { type EducationClassCollectionResponse } from '../../../models'; import { createEducationClassCollectionResponseFromDiscriminatorValue } from '../../../models/educationClassCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationClassItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationClassItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaughtClassesRequestBuilderGetQueryParameters { diff --git a/src/education/me/taughtClasses/item/index.ts b/src/education/me/taughtClasses/item/index.ts index 784b5e2a1fd..c3f1e892110 100644 --- a/src/education/me/taughtClasses/item/index.ts +++ b/src/education/me/taughtClasses/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClass } from '../../../../models/'; +import { type EducationClass } from '../../../../models'; import { createEducationClassFromDiscriminatorValue } from '../../../../models/educationClass'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/user/index.ts b/src/education/me/user/index.ts index b1f165f1279..f86677b378f 100644 --- a/src/education/me/user/index.ts +++ b/src/education/me/user/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserRequestBuilderGetQueryParameters { diff --git a/src/education/me/user/mailboxSettings/index.ts b/src/education/me/user/mailboxSettings/index.ts index c771999da2f..6815a88cd8d 100644 --- a/src/education/me/user/mailboxSettings/index.ts +++ b/src/education/me/user/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/user/serviceProvisioningErrors/count/index.ts b/src/education/me/user/serviceProvisioningErrors/count/index.ts index 94ee758c0cf..35415402597 100644 --- a/src/education/me/user/serviceProvisioningErrors/count/index.ts +++ b/src/education/me/user/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/me/user/serviceProvisioningErrors/index.ts b/src/education/me/user/serviceProvisioningErrors/index.ts index 4673ce9f405..619ef1c4029 100644 --- a/src/education/me/user/serviceProvisioningErrors/index.ts +++ b/src/education/me/user/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/education/schools/count/index.ts b/src/education/schools/count/index.ts index 54c2d234135..9b603d34a10 100644 --- a/src/education/schools/count/index.ts +++ b/src/education/schools/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/schools/delta/index.ts b/src/education/schools/delta/index.ts index cd12a3cf595..d7323cef1c2 100644 --- a/src/education/schools/delta/index.ts +++ b/src/education/schools/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../models/baseDeltaFunctionResponse'; import { createEducationSchoolFromDiscriminatorValue, serializeEducationSchool, type EducationSchool } from '../../../models/educationSchool'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationSchool[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationSchool); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/schools/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/schools/index.ts b/src/education/schools/index.ts index e5c873af391..950084447f2 100644 --- a/src/education/schools/index.ts +++ b/src/education/schools/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSchoolCollectionResponse } from '../../models/'; +import { type EducationSchoolCollectionResponse } from '../../models'; import { createEducationSchoolFromDiscriminatorValue, deserializeIntoEducationSchool, serializeEducationSchool, type EducationSchool } from '../../models/educationSchool'; import { createEducationSchoolCollectionResponseFromDiscriminatorValue } from '../../models/educationSchoolCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationSchoolItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationSchoolItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchoolsRequestBuilderGetQueryParameters { diff --git a/src/education/schools/item/administrativeUnit/index.ts b/src/education/schools/item/administrativeUnit/index.ts index 97f31f607fa..604a2af6402 100644 --- a/src/education/schools/item/administrativeUnit/index.ts +++ b/src/education/schools/item/administrativeUnit/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAdministrativeUnitFromDiscriminatorValue, deserializeIntoAdministrativeUnit, serializeAdministrativeUnit, type AdministrativeUnit } from '../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/schools/item/classes/count/index.ts b/src/education/schools/item/classes/count/index.ts index de1ff4d812e..bab888418df 100644 --- a/src/education/schools/item/classes/count/index.ts +++ b/src/education/schools/item/classes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/schools/item/classes/index.ts b/src/education/schools/item/classes/index.ts index ad1c66bc9cb..dc805075d5a 100644 --- a/src/education/schools/item/classes/index.ts +++ b/src/education/schools/item/classes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClassCollectionResponse } from '../../../../models/'; +import { type EducationClassCollectionResponse } from '../../../../models'; import { createEducationClassCollectionResponseFromDiscriminatorValue } from '../../../../models/educationClassCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationClassItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { EducationClassItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ClassesRequestBuilderGetQueryParameters { diff --git a/src/education/schools/item/classes/item/index.ts b/src/education/schools/item/classes/item/index.ts index 7553266c5fe..1e7f04e265c 100644 --- a/src/education/schools/item/classes/item/index.ts +++ b/src/education/schools/item/classes/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/education/schools/item/classes/item/ref/index.ts b/src/education/schools/item/classes/item/ref/index.ts index 5f78a4671d5..c5fa496972d 100644 --- a/src/education/schools/item/classes/item/ref/index.ts +++ b/src/education/schools/item/classes/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/schools/item/classes/ref/index.ts b/src/education/schools/item/classes/ref/index.ts index b40985a8b31..77fb4d696e5 100644 --- a/src/education/schools/item/classes/ref/index.ts +++ b/src/education/schools/item/classes/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/education/schools/item/index.ts b/src/education/schools/item/index.ts index 21bb013415b..7290ca655e0 100644 --- a/src/education/schools/item/index.ts +++ b/src/education/schools/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSchoolFromDiscriminatorValue, deserializeIntoEducationSchool, serializeEducationSchool, type EducationSchool } from '../../../models/educationSchool'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AdministrativeUnitRequestBuilder } from './administrativeUnit/'; -import { ClassesRequestBuilder } from './classes/'; -import { UsersRequestBuilder } from './users/'; +import { AdministrativeUnitRequestBuilder } from './administrativeUnit'; +import { ClassesRequestBuilder } from './classes'; +import { UsersRequestBuilder } from './users'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationSchoolItemRequestBuilderGetQueryParameters { diff --git a/src/education/schools/item/users/count/index.ts b/src/education/schools/item/users/count/index.ts index 5e386f79e5c..d8b54db8a22 100644 --- a/src/education/schools/item/users/count/index.ts +++ b/src/education/schools/item/users/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/schools/item/users/index.ts b/src/education/schools/item/users/index.ts index e5f61eef2fb..2bbf2f6b4ee 100644 --- a/src/education/schools/item/users/index.ts +++ b/src/education/schools/item/users/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationUserCollectionResponse } from '../../../../models/'; +import { type EducationUserCollectionResponse } from '../../../../models'; import { createEducationUserCollectionResponseFromDiscriminatorValue } from '../../../../models/educationUserCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationUserItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { EducationUserItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UsersRequestBuilderGetQueryParameters { diff --git a/src/education/schools/item/users/item/index.ts b/src/education/schools/item/users/item/index.ts index 7c4e65164bc..b5d4ce1fe54 100644 --- a/src/education/schools/item/users/item/index.ts +++ b/src/education/schools/item/users/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/education/schools/item/users/item/ref/index.ts b/src/education/schools/item/users/item/ref/index.ts index 8389517f306..6faf585744f 100644 --- a/src/education/schools/item/users/item/ref/index.ts +++ b/src/education/schools/item/users/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/schools/item/users/ref/index.ts b/src/education/schools/item/users/ref/index.ts index 922088c69e1..f6e667fb25f 100644 --- a/src/education/schools/item/users/ref/index.ts +++ b/src/education/schools/item/users/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/education/users/count/index.ts b/src/education/users/count/index.ts index d896102effa..7d81a5bff71 100644 --- a/src/education/users/count/index.ts +++ b/src/education/users/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/delta/index.ts b/src/education/users/delta/index.ts index f0f061cda51..ed8c5a096d7 100644 --- a/src/education/users/delta/index.ts +++ b/src/education/users/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../models/baseDeltaFunctionResponse'; import { createEducationUserFromDiscriminatorValue, serializeEducationUser, type EducationUser } from '../../../models/educationUser'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationUser[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationUser); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/users/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/users/index.ts b/src/education/users/index.ts index f42b94fdd34..4f90bad69ac 100644 --- a/src/education/users/index.ts +++ b/src/education/users/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationUserCollectionResponse } from '../../models/'; +import { type EducationUserCollectionResponse } from '../../models'; import { createEducationUserFromDiscriminatorValue, deserializeIntoEducationUser, serializeEducationUser, type EducationUser } from '../../models/educationUser'; import { createEducationUserCollectionResponseFromDiscriminatorValue } from '../../models/educationUserCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationUserItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationUserItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UsersRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/count/index.ts b/src/education/users/item/assignments/count/index.ts index 372a3d66e97..5aa9fe73b21 100644 --- a/src/education/users/item/assignments/count/index.ts +++ b/src/education/users/item/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/delta/index.ts b/src/education/users/item/assignments/delta/index.ts index 8fd3b352ceb..ae9538d6dfc 100644 --- a/src/education/users/item/assignments/delta/index.ts +++ b/src/education/users/item/assignments/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createEducationAssignmentFromDiscriminatorValue, serializeEducationAssignment, type EducationAssignment } from '../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationAssignment[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationAssignment); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/users/item/assignments/index.ts b/src/education/users/item/assignments/index.ts index 4b5ea8bc3df..cba5de210fa 100644 --- a/src/education/users/item/assignments/index.ts +++ b/src/education/users/item/assignments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignmentCollectionResponse } from '../../../../models/'; +import { type EducationAssignmentCollectionResponse } from '../../../../models'; import { createEducationAssignmentFromDiscriminatorValue, deserializeIntoEducationAssignment, serializeEducationAssignment, type EducationAssignment } from '../../../../models/educationAssignment'; import { createEducationAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/educationAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/categories/count/index.ts b/src/education/users/item/assignments/item/categories/count/index.ts index 036ddaae01c..383aff6a214 100644 --- a/src/education/users/item/assignments/item/categories/count/index.ts +++ b/src/education/users/item/assignments/item/categories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/categories/delta/index.ts b/src/education/users/item/assignments/item/categories/delta/index.ts index 4267b9b9030..ea01116da94 100644 --- a/src/education/users/item/assignments/item/categories/delta/index.ts +++ b/src/education/users/item/assignments/item/categories/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createEducationCategoryFromDiscriminatorValue, serializeEducationCategory, type EducationCategory } from '../../../../../../../models/educationCategory'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: EducationCategory[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEducationCategory); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/education/users/item/assignments/item/categories/index.ts b/src/education/users/item/assignments/item/categories/index.ts index 818185ed4db..e747a186057 100644 --- a/src/education/users/item/assignments/item/categories/index.ts +++ b/src/education/users/item/assignments/item/categories/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationCategoryCollectionResponse } from '../../../../../../models/'; +import { type EducationCategoryCollectionResponse } from '../../../../../../models'; import { createEducationCategoryFromDiscriminatorValue, deserializeIntoEducationCategory, serializeEducationCategory, type EducationCategory } from '../../../../../../models/educationCategory'; import { createEducationCategoryCollectionResponseFromDiscriminatorValue } from '../../../../../../models/educationCategoryCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EducationCategoryItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EducationCategoryItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CategoriesRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/categories/item/index.ts b/src/education/users/item/assignments/item/categories/item/index.ts index 93e02f6e550..8cd7d4a9d2e 100644 --- a/src/education/users/item/assignments/item/categories/item/index.ts +++ b/src/education/users/item/assignments/item/categories/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/education/users/item/assignments/item/categories/item/ref/index.ts b/src/education/users/item/assignments/item/categories/item/ref/index.ts index 390bcbbb430..9a6f47a7249 100644 --- a/src/education/users/item/assignments/item/categories/item/ref/index.ts +++ b/src/education/users/item/assignments/item/categories/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/categories/ref/index.ts b/src/education/users/item/assignments/item/categories/ref/index.ts index 02a9102f7a7..4ffdf02eb2f 100644 --- a/src/education/users/item/assignments/item/categories/ref/index.ts +++ b/src/education/users/item/assignments/item/categories/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/stringCollectionResponse'; diff --git a/src/education/users/item/assignments/item/index.ts b/src/education/users/item/assignments/item/index.ts index 194973f0fc7..54617f97439 100644 --- a/src/education/users/item/assignments/item/index.ts +++ b/src/education/users/item/assignments/item/index.ts @@ -2,15 +2,15 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationAssignmentFromDiscriminatorValue, deserializeIntoEducationAssignment, serializeEducationAssignment, type EducationAssignment } from '../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CategoriesRequestBuilder } from './categories/'; -import { PublishRequestBuilder } from './publish/'; -import { ResourcesRequestBuilder } from './resources/'; -import { RubricRequestBuilder } from './rubric/'; -import { SetUpFeedbackResourcesFolderRequestBuilder } from './setUpFeedbackResourcesFolder/'; -import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder/'; -import { SubmissionsRequestBuilder } from './submissions/'; +import { CategoriesRequestBuilder } from './categories'; +import { PublishRequestBuilder } from './publish'; +import { ResourcesRequestBuilder } from './resources'; +import { RubricRequestBuilder } from './rubric'; +import { SetUpFeedbackResourcesFolderRequestBuilder } from './setUpFeedbackResourcesFolder'; +import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder'; +import { SubmissionsRequestBuilder } from './submissions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/publish/index.ts b/src/education/users/item/assignments/item/publish/index.ts index 8dfdcceaf7a..9d97136b9ee 100644 --- a/src/education/users/item/assignments/item/publish/index.ts +++ b/src/education/users/item/assignments/item/publish/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../../models/'; +import { type EducationAssignment } from '../../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/resources/count/index.ts b/src/education/users/item/assignments/item/resources/count/index.ts index a5eb76a22af..ce0c36249ac 100644 --- a/src/education/users/item/assignments/item/resources/count/index.ts +++ b/src/education/users/item/assignments/item/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/resources/index.ts b/src/education/users/item/assignments/item/resources/index.ts index d14122954ba..ebc82005965 100644 --- a/src/education/users/item/assignments/item/resources/index.ts +++ b/src/education/users/item/assignments/item/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignmentResourceCollectionResponse } from '../../../../../../models/'; +import { type EducationAssignmentResourceCollectionResponse } from '../../../../../../models'; import { createEducationAssignmentResourceFromDiscriminatorValue, deserializeIntoEducationAssignmentResource, serializeEducationAssignmentResource, type EducationAssignmentResource } from '../../../../../../models/educationAssignmentResource'; import { createEducationAssignmentResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../models/educationAssignmentResourceCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationAssignmentResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationAssignmentResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/resources/item/index.ts b/src/education/users/item/assignments/item/resources/item/index.ts index 57701a0f0bf..9266ada0807 100644 --- a/src/education/users/item/assignments/item/resources/item/index.ts +++ b/src/education/users/item/assignments/item/resources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationAssignmentResourceFromDiscriminatorValue, deserializeIntoEducationAssignmentResource, serializeEducationAssignmentResource, type EducationAssignmentResource } from '../../../../../../../models/educationAssignmentResource'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/rubric/index.ts b/src/education/users/item/assignments/item/rubric/index.ts index a5bcb81061e..c69da32ccfa 100644 --- a/src/education/users/item/assignments/item/rubric/index.ts +++ b/src/education/users/item/assignments/item/rubric/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationRubricFromDiscriminatorValue, deserializeIntoEducationRubric, serializeEducationRubric, type EducationRubric } from '../../../../../../models/educationRubric'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RubricRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/rubric/ref/index.ts b/src/education/users/item/assignments/item/rubric/ref/index.ts index a08fdeeb343..4c3d32dbf55 100644 --- a/src/education/users/item/assignments/item/rubric/ref/index.ts +++ b/src/education/users/item/assignments/item/rubric/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceUpdate, serializeReferenceUpdate, type ReferenceUpdate } from '../../../../../../../models/referenceUpdate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/setUpFeedbackResourcesFolder/index.ts b/src/education/users/item/assignments/item/setUpFeedbackResourcesFolder/index.ts index ba4d7f8a60d..e6ff10fcca6 100644 --- a/src/education/users/item/assignments/item/setUpFeedbackResourcesFolder/index.ts +++ b/src/education/users/item/assignments/item/setUpFeedbackResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../../models/'; +import { type EducationAssignment } from '../../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/setUpResourcesFolder/index.ts b/src/education/users/item/assignments/item/setUpResourcesFolder/index.ts index 0c6400417d6..d5171f76a36 100644 --- a/src/education/users/item/assignments/item/setUpResourcesFolder/index.ts +++ b/src/education/users/item/assignments/item/setUpResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationAssignment } from '../../../../../../models/'; +import { type EducationAssignment } from '../../../../../../models'; import { createEducationAssignmentFromDiscriminatorValue } from '../../../../../../models/educationAssignment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/count/index.ts b/src/education/users/item/assignments/item/submissions/count/index.ts index 62fc4300d2b..4d80ec0be33 100644 --- a/src/education/users/item/assignments/item/submissions/count/index.ts +++ b/src/education/users/item/assignments/item/submissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/index.ts b/src/education/users/item/assignments/item/submissions/index.ts index 7670790c261..911330ac497 100644 --- a/src/education/users/item/assignments/item/submissions/index.ts +++ b/src/education/users/item/assignments/item/submissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionCollectionResponse } from '../../../../../../models/'; +import { type EducationSubmissionCollectionResponse } from '../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue, deserializeIntoEducationSubmission, serializeEducationSubmission, type EducationSubmission } from '../../../../../../models/educationSubmission'; import { createEducationSubmissionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/educationSubmissionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubmissionsRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/submissions/item/index.ts b/src/education/users/item/assignments/item/submissions/item/index.ts index 87775d70424..b586750f0e7 100644 --- a/src/education/users/item/assignments/item/submissions/item/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionFromDiscriminatorValue, deserializeIntoEducationSubmission, serializeEducationSubmission, type EducationSubmission } from '../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { OutcomesRequestBuilder } from './outcomes/'; -import { ReassignRequestBuilder } from './reassign/'; -import { ResourcesRequestBuilder } from './resources/'; -import { ReturnRequestBuilder } from './returnEscaped/'; -import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder/'; -import { SubmitRequestBuilder } from './submit/'; -import { SubmittedResourcesRequestBuilder } from './submittedResources/'; -import { UnsubmitRequestBuilder } from './unsubmit/'; +import { OutcomesRequestBuilder } from './outcomes'; +import { ReassignRequestBuilder } from './reassign'; +import { ResourcesRequestBuilder } from './resources'; +import { ReturnRequestBuilder } from './returnEscaped'; +import { SetUpResourcesFolderRequestBuilder } from './setUpResourcesFolder'; +import { SubmitRequestBuilder } from './submit'; +import { SubmittedResourcesRequestBuilder } from './submittedResources'; +import { UnsubmitRequestBuilder } from './unsubmit'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationSubmissionItemRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/submissions/item/outcomes/count/index.ts b/src/education/users/item/assignments/item/submissions/item/outcomes/count/index.ts index cc9f2ceb4b1..c803b8a4202 100644 --- a/src/education/users/item/assignments/item/submissions/item/outcomes/count/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/outcomes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/outcomes/index.ts b/src/education/users/item/assignments/item/submissions/item/outcomes/index.ts index fc2288a4f0b..34e3a89893f 100644 --- a/src/education/users/item/assignments/item/submissions/item/outcomes/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/outcomes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationOutcomeCollectionResponse } from '../../../../../../../../models/'; +import { type EducationOutcomeCollectionResponse } from '../../../../../../../../models'; import { createEducationOutcomeFromDiscriminatorValue, deserializeIntoEducationOutcome, serializeEducationOutcome, type EducationOutcome } from '../../../../../../../../models/educationOutcome'; import { createEducationOutcomeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/educationOutcomeCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationOutcomeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationOutcomeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OutcomesRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/submissions/item/outcomes/item/index.ts b/src/education/users/item/assignments/item/submissions/item/outcomes/item/index.ts index 37d892683ac..451874f5e5c 100644 --- a/src/education/users/item/assignments/item/submissions/item/outcomes/item/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/outcomes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationOutcomeFromDiscriminatorValue, deserializeIntoEducationOutcome, serializeEducationOutcome, type EducationOutcome } from '../../../../../../../../../models/educationOutcome'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/reassign/index.ts b/src/education/users/item/assignments/item/submissions/item/reassign/index.ts index c23e7718a96..21e47dadc80 100644 --- a/src/education/users/item/assignments/item/submissions/item/reassign/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/reassign/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/resources/count/index.ts b/src/education/users/item/assignments/item/submissions/item/resources/count/index.ts index 8e1d11b4289..f1ab610801f 100644 --- a/src/education/users/item/assignments/item/submissions/item/resources/count/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/resources/index.ts b/src/education/users/item/assignments/item/submissions/item/resources/index.ts index 6fcbbcde4ef..61100970081 100644 --- a/src/education/users/item/assignments/item/submissions/item/resources/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../../models/'; +import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../../models'; import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../models/educationSubmissionResource'; import { createEducationSubmissionResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/educationSubmissionResourceCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/submissions/item/resources/item/index.ts b/src/education/users/item/assignments/item/submissions/item/resources/item/index.ts index f5d4601d9a4..da4786c8949 100644 --- a/src/education/users/item/assignments/item/submissions/item/resources/item/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/resources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../../models/educationSubmissionResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/returnEscaped/index.ts b/src/education/users/item/assignments/item/submissions/item/returnEscaped/index.ts index 5d2de01daab..a5d183c9d61 100644 --- a/src/education/users/item/assignments/item/submissions/item/returnEscaped/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/returnEscaped/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/setUpResourcesFolder/index.ts b/src/education/users/item/assignments/item/submissions/item/setUpResourcesFolder/index.ts index c8d0af1ba50..608d46d9049 100644 --- a/src/education/users/item/assignments/item/submissions/item/setUpResourcesFolder/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/setUpResourcesFolder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/submit/index.ts b/src/education/users/item/assignments/item/submissions/item/submit/index.ts index c23312f4897..987b5c2bd50 100644 --- a/src/education/users/item/assignments/item/submissions/item/submit/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/submit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/submittedResources/count/index.ts b/src/education/users/item/assignments/item/submissions/item/submittedResources/count/index.ts index 594a4d5f2bf..c7c76ee9bc6 100644 --- a/src/education/users/item/assignments/item/submissions/item/submittedResources/count/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/submittedResources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/submittedResources/index.ts b/src/education/users/item/assignments/item/submissions/item/submittedResources/index.ts index dce76ac90e5..e21d8013001 100644 --- a/src/education/users/item/assignments/item/submissions/item/submittedResources/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/submittedResources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../../models/'; +import { type EducationSubmissionResourceCollectionResponse } from '../../../../../../../../models'; import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../models/educationSubmissionResource'; import { createEducationSubmissionResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/educationSubmissionResourceCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSubmissionResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSubmissionResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubmittedResourcesRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/assignments/item/submissions/item/submittedResources/item/index.ts b/src/education/users/item/assignments/item/submissions/item/submittedResources/item/index.ts index c4636a9839e..988df371108 100644 --- a/src/education/users/item/assignments/item/submissions/item/submittedResources/item/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/submittedResources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationSubmissionResourceFromDiscriminatorValue, deserializeIntoEducationSubmissionResource, serializeEducationSubmissionResource, type EducationSubmissionResource } from '../../../../../../../../../models/educationSubmissionResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/assignments/item/submissions/item/unsubmit/index.ts b/src/education/users/item/assignments/item/submissions/item/unsubmit/index.ts index 4f7d3a7062b..3ea0a98df91 100644 --- a/src/education/users/item/assignments/item/submissions/item/unsubmit/index.ts +++ b/src/education/users/item/assignments/item/submissions/item/unsubmit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSubmission } from '../../../../../../../../models/'; +import { type EducationSubmission } from '../../../../../../../../models'; import { createEducationSubmissionFromDiscriminatorValue } from '../../../../../../../../models/educationSubmission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/classes/count/index.ts b/src/education/users/item/classes/count/index.ts index 2fc317ad4b4..24980780c4b 100644 --- a/src/education/users/item/classes/count/index.ts +++ b/src/education/users/item/classes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/classes/index.ts b/src/education/users/item/classes/index.ts index cf893fcd5d9..1b14ea4950e 100644 --- a/src/education/users/item/classes/index.ts +++ b/src/education/users/item/classes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClassCollectionResponse } from '../../../../models/'; +import { type EducationClassCollectionResponse } from '../../../../models'; import { createEducationClassCollectionResponseFromDiscriminatorValue } from '../../../../models/educationClassCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationClassItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationClassItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ClassesRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/classes/item/index.ts b/src/education/users/item/classes/item/index.ts index 5564d5732b2..6beb434d86f 100644 --- a/src/education/users/item/classes/item/index.ts +++ b/src/education/users/item/classes/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClass } from '../../../../../models/'; +import { type EducationClass } from '../../../../../models'; import { createEducationClassFromDiscriminatorValue } from '../../../../../models/educationClass'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/index.ts b/src/education/users/item/index.ts index 73a4dbfe9c8..842a236aa28 100644 --- a/src/education/users/item/index.ts +++ b/src/education/users/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationUserFromDiscriminatorValue, deserializeIntoEducationUser, serializeEducationUser, type EducationUser } from '../../../models/educationUser'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { ClassesRequestBuilder } from './classes/'; -import { RubricsRequestBuilder } from './rubrics/'; -import { SchoolsRequestBuilder } from './schools/'; -import { TaughtClassesRequestBuilder } from './taughtClasses/'; -import { UserRequestBuilder } from './user/'; +import { AssignmentsRequestBuilder } from './assignments'; +import { ClassesRequestBuilder } from './classes'; +import { RubricsRequestBuilder } from './rubrics'; +import { SchoolsRequestBuilder } from './schools'; +import { TaughtClassesRequestBuilder } from './taughtClasses'; +import { UserRequestBuilder } from './user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EducationUserItemRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/rubrics/count/index.ts b/src/education/users/item/rubrics/count/index.ts index ecaecc6f586..5a1b69156ee 100644 --- a/src/education/users/item/rubrics/count/index.ts +++ b/src/education/users/item/rubrics/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/rubrics/index.ts b/src/education/users/item/rubrics/index.ts index dd439f29246..d79e58a7664 100644 --- a/src/education/users/item/rubrics/index.ts +++ b/src/education/users/item/rubrics/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationRubricCollectionResponse } from '../../../../models/'; +import { type EducationRubricCollectionResponse } from '../../../../models'; import { createEducationRubricFromDiscriminatorValue, deserializeIntoEducationRubric, serializeEducationRubric, type EducationRubric } from '../../../../models/educationRubric'; import { createEducationRubricCollectionResponseFromDiscriminatorValue } from '../../../../models/educationRubricCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationRubricItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationRubricItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RubricsRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/rubrics/item/index.ts b/src/education/users/item/rubrics/item/index.ts index ffb575d670e..d627be05956 100644 --- a/src/education/users/item/rubrics/item/index.ts +++ b/src/education/users/item/rubrics/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEducationRubricFromDiscriminatorValue, deserializeIntoEducationRubric, serializeEducationRubric, type EducationRubric } from '../../../../../models/educationRubric'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/schools/count/index.ts b/src/education/users/item/schools/count/index.ts index 668ff6febe6..2adc49e1d76 100644 --- a/src/education/users/item/schools/count/index.ts +++ b/src/education/users/item/schools/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/schools/index.ts b/src/education/users/item/schools/index.ts index 643b6b8b2f0..11508ab541e 100644 --- a/src/education/users/item/schools/index.ts +++ b/src/education/users/item/schools/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSchoolCollectionResponse } from '../../../../models/'; +import { type EducationSchoolCollectionResponse } from '../../../../models'; import { createEducationSchoolCollectionResponseFromDiscriminatorValue } from '../../../../models/educationSchoolCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationSchoolItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationSchoolItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchoolsRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/schools/item/index.ts b/src/education/users/item/schools/item/index.ts index 27e548f9821..e7df4084673 100644 --- a/src/education/users/item/schools/item/index.ts +++ b/src/education/users/item/schools/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationSchool } from '../../../../../models/'; +import { type EducationSchool } from '../../../../../models'; import { createEducationSchoolFromDiscriminatorValue } from '../../../../../models/educationSchool'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/taughtClasses/count/index.ts b/src/education/users/item/taughtClasses/count/index.ts index ff7cd4cc220..4074ea735f3 100644 --- a/src/education/users/item/taughtClasses/count/index.ts +++ b/src/education/users/item/taughtClasses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/taughtClasses/index.ts b/src/education/users/item/taughtClasses/index.ts index d86b35a26ef..4cb0b93423c 100644 --- a/src/education/users/item/taughtClasses/index.ts +++ b/src/education/users/item/taughtClasses/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClassCollectionResponse } from '../../../../models/'; +import { type EducationClassCollectionResponse } from '../../../../models'; import { createEducationClassCollectionResponseFromDiscriminatorValue } from '../../../../models/educationClassCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EducationClassItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EducationClassItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaughtClassesRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/taughtClasses/item/index.ts b/src/education/users/item/taughtClasses/item/index.ts index d568a8b1b93..8a4825d9620 100644 --- a/src/education/users/item/taughtClasses/item/index.ts +++ b/src/education/users/item/taughtClasses/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EducationClass } from '../../../../../models/'; +import { type EducationClass } from '../../../../../models'; import { createEducationClassFromDiscriminatorValue } from '../../../../../models/educationClass'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/user/index.ts b/src/education/users/item/user/index.ts index 641817da8d4..f84ae100750 100644 --- a/src/education/users/item/user/index.ts +++ b/src/education/users/item/user/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type User } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserRequestBuilderGetQueryParameters { diff --git a/src/education/users/item/user/mailboxSettings/index.ts b/src/education/users/item/user/mailboxSettings/index.ts index c3d4bc8fc11..db7e7bc9b71 100644 --- a/src/education/users/item/user/mailboxSettings/index.ts +++ b/src/education/users/item/user/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/user/serviceProvisioningErrors/count/index.ts b/src/education/users/item/user/serviceProvisioningErrors/count/index.ts index 9ceab3dfe2b..c417704aa36 100644 --- a/src/education/users/item/user/serviceProvisioningErrors/count/index.ts +++ b/src/education/users/item/user/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/education/users/item/user/serviceProvisioningErrors/index.ts b/src/education/users/item/user/serviceProvisioningErrors/index.ts index df7d846e4a9..208ed1b852f 100644 --- a/src/education/users/item/user/serviceProvisioningErrors/index.ts +++ b/src/education/users/item/user/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/employeeExperience/index.ts b/src/employeeExperience/index.ts index 8b992acde5d..781aaa8e310 100644 --- a/src/employeeExperience/index.ts +++ b/src/employeeExperience/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createEmployeeExperienceFromDiscriminatorValue, deserializeIntoEmployeeExperience, serializeEmployeeExperience, type EmployeeExperience } from '../models/employeeExperience'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { LearningCourseActivitiesRequestBuilder } from './learningCourseActivities/'; -import { LearningProvidersRequestBuilder } from './learningProviders/'; +import { LearningCourseActivitiesRequestBuilder } from './learningCourseActivities'; +import { LearningProvidersRequestBuilder } from './learningProviders'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EmployeeExperienceRequestBuilderGetQueryParameters { diff --git a/src/employeeExperience/learningCourseActivities/count/index.ts b/src/employeeExperience/learningCourseActivities/count/index.ts index c8503be6cd0..0fa488db885 100644 --- a/src/employeeExperience/learningCourseActivities/count/index.ts +++ b/src/employeeExperience/learningCourseActivities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/employeeExperience/learningCourseActivities/index.ts b/src/employeeExperience/learningCourseActivities/index.ts index 44395656630..4b500f99e41 100644 --- a/src/employeeExperience/learningCourseActivities/index.ts +++ b/src/employeeExperience/learningCourseActivities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LearningCourseActivityCollectionResponse } from '../../models/'; +import { type LearningCourseActivityCollectionResponse } from '../../models'; import { createLearningCourseActivityFromDiscriminatorValue, deserializeIntoLearningCourseActivity, serializeLearningCourseActivity, type LearningCourseActivity } from '../../models/learningCourseActivity'; import { createLearningCourseActivityCollectionResponseFromDiscriminatorValue } from '../../models/learningCourseActivityCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LearningCourseActivityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LearningCourseActivityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LearningCourseActivitiesRequestBuilderGetQueryParameters { diff --git a/src/employeeExperience/learningCourseActivities/item/index.ts b/src/employeeExperience/learningCourseActivities/item/index.ts index 022e7b5b087..0444178be8c 100644 --- a/src/employeeExperience/learningCourseActivities/item/index.ts +++ b/src/employeeExperience/learningCourseActivities/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLearningCourseActivityFromDiscriminatorValue, deserializeIntoLearningCourseActivity, serializeLearningCourseActivity, type LearningCourseActivity } from '../../../models/learningCourseActivity'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/employeeExperience/learningProviders/count/index.ts b/src/employeeExperience/learningProviders/count/index.ts index b5e90103120..e8c70daea0e 100644 --- a/src/employeeExperience/learningProviders/count/index.ts +++ b/src/employeeExperience/learningProviders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/employeeExperience/learningProviders/index.ts b/src/employeeExperience/learningProviders/index.ts index ed7ac4bc5d0..4080f3145a3 100644 --- a/src/employeeExperience/learningProviders/index.ts +++ b/src/employeeExperience/learningProviders/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LearningProviderCollectionResponse } from '../../models/'; +import { type LearningProviderCollectionResponse } from '../../models'; import { createLearningProviderFromDiscriminatorValue, deserializeIntoLearningProvider, serializeLearningProvider, type LearningProvider } from '../../models/learningProvider'; import { createLearningProviderCollectionResponseFromDiscriminatorValue } from '../../models/learningProviderCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LearningProviderItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LearningProviderItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LearningProvidersRequestBuilderGetQueryParameters { diff --git a/src/employeeExperience/learningProviders/item/index.ts b/src/employeeExperience/learningProviders/item/index.ts index 62ec9ef9cba..b62382a8299 100644 --- a/src/employeeExperience/learningProviders/item/index.ts +++ b/src/employeeExperience/learningProviders/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createLearningProviderFromDiscriminatorValue, deserializeIntoLearningProvider, serializeLearningProvider, type LearningProvider } from '../../../models/learningProvider'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { LearningContentsRequestBuilder } from './learningContents/'; -import { LearningCourseActivitiesRequestBuilder } from './learningCourseActivities/'; +import { LearningContentsRequestBuilder } from './learningContents'; +import { LearningCourseActivitiesRequestBuilder } from './learningCourseActivities'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LearningProviderItemRequestBuilderGetQueryParameters { diff --git a/src/employeeExperience/learningProviders/item/learningContents/count/index.ts b/src/employeeExperience/learningProviders/item/learningContents/count/index.ts index 79ddca66ed3..cee9b818701 100644 --- a/src/employeeExperience/learningProviders/item/learningContents/count/index.ts +++ b/src/employeeExperience/learningProviders/item/learningContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/employeeExperience/learningProviders/item/learningContents/index.ts b/src/employeeExperience/learningProviders/item/learningContents/index.ts index 778b35b7825..3605de7c054 100644 --- a/src/employeeExperience/learningProviders/item/learningContents/index.ts +++ b/src/employeeExperience/learningProviders/item/learningContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LearningContentCollectionResponse } from '../../../../models/'; +import { type LearningContentCollectionResponse } from '../../../../models'; import { createLearningContentFromDiscriminatorValue, deserializeIntoLearningContent, serializeLearningContent, type LearningContent } from '../../../../models/learningContent'; import { createLearningContentCollectionResponseFromDiscriminatorValue } from '../../../../models/learningContentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LearningContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LearningContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LearningContentsRequestBuilderGetQueryParameters { diff --git a/src/employeeExperience/learningProviders/item/learningContents/item/index.ts b/src/employeeExperience/learningProviders/item/learningContents/item/index.ts index 6021fe73274..f351b3e5329 100644 --- a/src/employeeExperience/learningProviders/item/learningContents/item/index.ts +++ b/src/employeeExperience/learningProviders/item/learningContents/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLearningContentFromDiscriminatorValue, deserializeIntoLearningContent, serializeLearningContent, type LearningContent } from '../../../../../models/learningContent'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/employeeExperience/learningProviders/item/learningCourseActivities/count/index.ts b/src/employeeExperience/learningProviders/item/learningCourseActivities/count/index.ts index f231f6be3d1..8f126469c34 100644 --- a/src/employeeExperience/learningProviders/item/learningCourseActivities/count/index.ts +++ b/src/employeeExperience/learningProviders/item/learningCourseActivities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/employeeExperience/learningProviders/item/learningCourseActivities/index.ts b/src/employeeExperience/learningProviders/item/learningCourseActivities/index.ts index 48424aac05d..fd86bf712fa 100644 --- a/src/employeeExperience/learningProviders/item/learningCourseActivities/index.ts +++ b/src/employeeExperience/learningProviders/item/learningCourseActivities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LearningCourseActivityCollectionResponse } from '../../../../models/'; +import { type LearningCourseActivityCollectionResponse } from '../../../../models'; import { createLearningCourseActivityFromDiscriminatorValue, deserializeIntoLearningCourseActivity, serializeLearningCourseActivity, type LearningCourseActivity } from '../../../../models/learningCourseActivity'; import { createLearningCourseActivityCollectionResponseFromDiscriminatorValue } from '../../../../models/learningCourseActivityCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LearningCourseActivityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LearningCourseActivityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LearningCourseActivitiesRequestBuilderGetQueryParameters { diff --git a/src/employeeExperience/learningProviders/item/learningCourseActivities/item/index.ts b/src/employeeExperience/learningProviders/item/learningCourseActivities/item/index.ts index 78c331fd805..889bae93fb4 100644 --- a/src/employeeExperience/learningProviders/item/learningCourseActivities/item/index.ts +++ b/src/employeeExperience/learningProviders/item/learningCourseActivities/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLearningCourseActivityFromDiscriminatorValue, deserializeIntoLearningCourseActivity, serializeLearningCourseActivity, type LearningCourseActivity } from '../../../../../models/learningCourseActivity'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/count/index.ts b/src/external/connections/count/index.ts index dd866b96cea..dab0164374a 100644 --- a/src/external/connections/count/index.ts +++ b/src/external/connections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/index.ts b/src/external/connections/index.ts index b348e602c46..243e02d3967 100644 --- a/src/external/connections/index.ts +++ b/src/external/connections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExternalConnectionCollectionResponse } from '../../models/externalConnectors/'; +import { type ExternalConnectionCollectionResponse } from '../../models/externalConnectors'; import { createExternalConnectionFromDiscriminatorValue, deserializeIntoExternalConnection, serializeExternalConnection, type ExternalConnection } from '../../models/externalConnectors/externalConnection'; import { createExternalConnectionCollectionResponseFromDiscriminatorValue } from '../../models/externalConnectors/externalConnectionCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExternalConnectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExternalConnectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConnectionsRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/groups/count/index.ts b/src/external/connections/item/groups/count/index.ts index dfa780dcc44..baf518c5a8d 100644 --- a/src/external/connections/item/groups/count/index.ts +++ b/src/external/connections/item/groups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/item/groups/index.ts b/src/external/connections/item/groups/index.ts index da02002cd70..cfe9705e40e 100644 --- a/src/external/connections/item/groups/index.ts +++ b/src/external/connections/item/groups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExternalGroupCollectionResponse } from '../../../../models/externalConnectors/'; +import { type ExternalGroupCollectionResponse } from '../../../../models/externalConnectors'; import { createExternalGroupFromDiscriminatorValue, deserializeIntoExternalGroup, serializeExternalGroup, type ExternalGroup } from '../../../../models/externalConnectors/externalGroup'; import { createExternalGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/externalConnectors/externalGroupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExternalGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExternalGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupsRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/groups/item/index.ts b/src/external/connections/item/groups/item/index.ts index 4a5e9bc0559..8e0ae004257 100644 --- a/src/external/connections/item/groups/item/index.ts +++ b/src/external/connections/item/groups/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalGroupFromDiscriminatorValue, deserializeIntoExternalGroup, serializeExternalGroup, type ExternalGroup } from '../../../../../models/externalConnectors/externalGroup'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { MembersRequestBuilder } from './members/'; +import { MembersRequestBuilder } from './members'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalGroupItemRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/groups/item/members/count/index.ts b/src/external/connections/item/groups/item/members/count/index.ts index ea71fb9fbad..98d7192e7bb 100644 --- a/src/external/connections/item/groups/item/members/count/index.ts +++ b/src/external/connections/item/groups/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/item/groups/item/members/index.ts b/src/external/connections/item/groups/item/members/index.ts index 538dba25681..9e3f8eaf674 100644 --- a/src/external/connections/item/groups/item/members/index.ts +++ b/src/external/connections/item/groups/item/members/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityCollectionResponse } from '../../../../../../models/externalConnectors/'; +import { type IdentityCollectionResponse } from '../../../../../../models/externalConnectors'; import { createIdentityFromDiscriminatorValue, deserializeIntoIdentity, serializeIdentity, type Identity } from '../../../../../../models/externalConnectors/identity'; import { createIdentityCollectionResponseFromDiscriminatorValue } from '../../../../../../models/externalConnectors/identityCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { IdentityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IdentityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/groups/item/members/item/index.ts b/src/external/connections/item/groups/item/members/item/index.ts index d6f490b0cd2..6a09ce69ab8 100644 --- a/src/external/connections/item/groups/item/members/item/index.ts +++ b/src/external/connections/item/groups/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityFromDiscriminatorValue, deserializeIntoIdentity, serializeIdentity, type Identity } from '../../../../../../../models/externalConnectors/identity'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/item/index.ts b/src/external/connections/item/index.ts index dfbb9f65c46..6c3de60bf08 100644 --- a/src/external/connections/item/index.ts +++ b/src/external/connections/item/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalConnectionFromDiscriminatorValue, deserializeIntoExternalConnection, serializeExternalConnection, type ExternalConnection } from '../../../models/externalConnectors/externalConnection'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { GroupsRequestBuilder } from './groups/'; -import { ItemsRequestBuilder } from './items/'; -import { OperationsRequestBuilder } from './operations/'; -import { SchemaRequestBuilder } from './schema/'; +import { GroupsRequestBuilder } from './groups'; +import { ItemsRequestBuilder } from './items'; +import { OperationsRequestBuilder } from './operations'; +import { SchemaRequestBuilder } from './schema'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalConnectionItemRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/items/count/index.ts b/src/external/connections/item/items/count/index.ts index 1e2ca21cfa0..cb27d17881c 100644 --- a/src/external/connections/item/items/count/index.ts +++ b/src/external/connections/item/items/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/item/items/index.ts b/src/external/connections/item/items/index.ts index 0155781f1e5..224e1bd32cb 100644 --- a/src/external/connections/item/items/index.ts +++ b/src/external/connections/item/items/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExternalItemCollectionResponse } from '../../../../models/externalConnectors/'; +import { type ExternalItemCollectionResponse } from '../../../../models/externalConnectors'; import { createExternalItemFromDiscriminatorValue, deserializeIntoExternalItem, serializeExternalItem, type ExternalItem } from '../../../../models/externalConnectors/externalItem'; import { createExternalItemCollectionResponseFromDiscriminatorValue } from '../../../../models/externalConnectors/externalItemCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExternalItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExternalItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/items/item/activities/count/index.ts b/src/external/connections/item/items/item/activities/count/index.ts index 8779fbc0651..1567ba8187f 100644 --- a/src/external/connections/item/items/item/activities/count/index.ts +++ b/src/external/connections/item/items/item/activities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/item/items/item/activities/index.ts b/src/external/connections/item/items/item/activities/index.ts index 36ae0d29b06..65c0569b2fa 100644 --- a/src/external/connections/item/items/item/activities/index.ts +++ b/src/external/connections/item/items/item/activities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExternalActivityCollectionResponse } from '../../../../../../models/externalConnectors/'; +import { type ExternalActivityCollectionResponse } from '../../../../../../models/externalConnectors'; import { createExternalActivityFromDiscriminatorValue, deserializeIntoExternalActivity, serializeExternalActivity, type ExternalActivity } from '../../../../../../models/externalConnectors/externalActivity'; import { createExternalActivityCollectionResponseFromDiscriminatorValue } from '../../../../../../models/externalConnectors/externalActivityCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExternalActivityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExternalActivityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivitiesRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/items/item/activities/item/index.ts b/src/external/connections/item/items/item/activities/item/index.ts index 7be32977dd5..c044923d77a 100644 --- a/src/external/connections/item/items/item/activities/item/index.ts +++ b/src/external/connections/item/items/item/activities/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalActivityFromDiscriminatorValue, deserializeIntoExternalActivity, serializeExternalActivity, type ExternalActivity } from '../../../../../../../models/externalConnectors/externalActivity'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { PerformedByRequestBuilder } from './performedBy/'; +import { PerformedByRequestBuilder } from './performedBy'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalActivityItemRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/items/item/activities/item/performedBy/index.ts b/src/external/connections/item/items/item/activities/item/performedBy/index.ts index 744d507235c..26231476139 100644 --- a/src/external/connections/item/items/item/activities/item/performedBy/index.ts +++ b/src/external/connections/item/items/item/activities/item/performedBy/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Identity } from '../../../../../../../../models/externalConnectors/'; +import { type Identity } from '../../../../../../../../models/externalConnectors'; import { createIdentityFromDiscriminatorValue } from '../../../../../../../../models/externalConnectors/identity'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/item/items/item/index.ts b/src/external/connections/item/items/item/index.ts index fad38d64dc4..0dd6e962357 100644 --- a/src/external/connections/item/items/item/index.ts +++ b/src/external/connections/item/items/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalItemFromDiscriminatorValue, deserializeIntoExternalItem, serializeExternalItem, type ExternalItem } from '../../../../../models/externalConnectors/externalItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ActivitiesRequestBuilder } from './activities/'; -import { MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder } from './microsoftGraphExternalConnectorsAddActivities/'; +import { ActivitiesRequestBuilder } from './activities'; +import { MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder } from './microsoftGraphExternalConnectorsAddActivities'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalItemItemRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostRequestBody.ts b/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostRequestBody.ts deleted file mode 100644 index 7439ac68bf2..00000000000 --- a/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createExternalActivityFromDiscriminatorValue, serializeExternalActivity, type ExternalActivity } from '../../../../../../models/externalConnectors/externalActivity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddActivitiesPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activities property - */ - activities?: ExternalActivity[]; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; -} -export function createAddActivitiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddActivitiesPostRequestBody; -} -export function deserializeIntoAddActivitiesPostRequestBody(addActivitiesPostRequestBody: AddActivitiesPostRequestBody | undefined = {} as AddActivitiesPostRequestBody) : Record void> { - return { - "activities": n => { addActivitiesPostRequestBody.activities = n.getCollectionOfObjectValues(createExternalActivityFromDiscriminatorValue); }, - } -} -export function serializeAddActivitiesPostRequestBody(writer: SerializationWriter, addActivitiesPostRequestBody: AddActivitiesPostRequestBody | undefined = {} as AddActivitiesPostRequestBody) : void { - writer.writeCollectionOfObjectValues("activities", addActivitiesPostRequestBody.activities, serializeExternalActivity); - writer.writeAdditionalData(addActivitiesPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostResponse.ts b/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostResponse.ts deleted file mode 100644 index 9669b3e0a4b..00000000000 --- a/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/addActivitiesPostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createExternalActivityResultFromDiscriminatorValue, serializeExternalActivityResult, type ExternalActivityResult } from '../../../../../../models/externalConnectors/externalActivityResult'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddActivitiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExternalActivityResult[]; -} -export function createAddActivitiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddActivitiesPostResponse; -} -export function deserializeIntoAddActivitiesPostResponse(addActivitiesPostResponse: AddActivitiesPostResponse | undefined = {} as AddActivitiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(addActivitiesPostResponse), - "value": n => { addActivitiesPostResponse.value = n.getCollectionOfObjectValues(createExternalActivityResultFromDiscriminatorValue); }, - } -} -export function serializeAddActivitiesPostResponse(writer: SerializationWriter, addActivitiesPostResponse: AddActivitiesPostResponse | undefined = {} as AddActivitiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, addActivitiesPostResponse) - writer.writeCollectionOfObjectValues("value", addActivitiesPostResponse.value, serializeExternalActivityResult); -} -// tslint:enable -// eslint-enable diff --git a/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.ts b/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.ts index f94a70e5065..fc398e13402 100644 --- a/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.ts +++ b/src/external/connections/item/items/item/microsoftGraphExternalConnectorsAddActivities/index.ts @@ -1,11 +1,56 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; +import { createExternalActivityFromDiscriminatorValue, serializeExternalActivity, type ExternalActivity } from '../../../../../../models/externalConnectors/externalActivity'; +import { createExternalActivityResultFromDiscriminatorValue, serializeExternalActivityResult, type ExternalActivityResult } from '../../../../../../models/externalConnectors/externalActivityResult'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createAddActivitiesPostResponseFromDiscriminatorValue, deserializeIntoAddActivitiesPostRequestBody, deserializeIntoAddActivitiesPostResponse, serializeAddActivitiesPostRequestBody, serializeAddActivitiesPostResponse, type AddActivitiesPostRequestBody, type AddActivitiesPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AddActivitiesPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activities property + */ + activities?: ExternalActivity[]; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; +} +export interface AddActivitiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ExternalActivityResult[]; +} +export function createAddActivitiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddActivitiesPostRequestBody; +} +export function createAddActivitiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddActivitiesPostResponse; +} +export function deserializeIntoAddActivitiesPostRequestBody(addActivitiesPostRequestBody: AddActivitiesPostRequestBody | undefined = {} as AddActivitiesPostRequestBody) : Record void> { + return { + "activities": n => { addActivitiesPostRequestBody.activities = n.getCollectionOfObjectValues(createExternalActivityFromDiscriminatorValue); }, + } +} +export function deserializeIntoAddActivitiesPostResponse(addActivitiesPostResponse: AddActivitiesPostResponse | undefined = {} as AddActivitiesPostResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(addActivitiesPostResponse), + "value": n => { addActivitiesPostResponse.value = n.getCollectionOfObjectValues(createExternalActivityResultFromDiscriminatorValue); }, + } +} +export function serializeAddActivitiesPostRequestBody(writer: SerializationWriter, addActivitiesPostRequestBody: AddActivitiesPostRequestBody | undefined = {} as AddActivitiesPostRequestBody) : void { + writer.writeCollectionOfObjectValues("activities", addActivitiesPostRequestBody.activities, serializeExternalActivity); + writer.writeAdditionalData(addActivitiesPostRequestBody.additionalData); +} +export function serializeAddActivitiesPostResponse(writer: SerializationWriter, addActivitiesPostResponse: AddActivitiesPostResponse | undefined = {} as AddActivitiesPostResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, addActivitiesPostResponse) + writer.writeCollectionOfObjectValues("value", addActivitiesPostResponse.value, serializeExternalActivityResult); +} /** * Provides operations to call the addActivities method. */ diff --git a/src/external/connections/item/operations/count/index.ts b/src/external/connections/item/operations/count/index.ts index eee4c455217..de78ecb2273 100644 --- a/src/external/connections/item/operations/count/index.ts +++ b/src/external/connections/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/item/operations/index.ts b/src/external/connections/item/operations/index.ts index e0f8835a0d8..4c6872c58ce 100644 --- a/src/external/connections/item/operations/index.ts +++ b/src/external/connections/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConnectionOperationCollectionResponse } from '../../../../models/externalConnectors/'; +import { type ConnectionOperationCollectionResponse } from '../../../../models/externalConnectors'; import { createConnectionOperationFromDiscriminatorValue, deserializeIntoConnectionOperation, serializeConnectionOperation, type ConnectionOperation } from '../../../../models/externalConnectors/connectionOperation'; import { createConnectionOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/externalConnectors/connectionOperationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConnectionOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConnectionOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/external/connections/item/operations/item/index.ts b/src/external/connections/item/operations/item/index.ts index 3ca98ad6c09..449b7475d5f 100644 --- a/src/external/connections/item/operations/item/index.ts +++ b/src/external/connections/item/operations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConnectionOperationFromDiscriminatorValue, deserializeIntoConnectionOperation, serializeConnectionOperation, type ConnectionOperation } from '../../../../../models/externalConnectors/connectionOperation'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/connections/item/schema/index.ts b/src/external/connections/item/schema/index.ts index 73b8860e8e0..99a0f8c3391 100644 --- a/src/external/connections/item/schema/index.ts +++ b/src/external/connections/item/schema/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createSchemaFromDiscriminatorValue, deserializeIntoSchema, serializeSchema, type Schema } from '../../../../models/externalConnectors/schema'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/external/index.ts b/src/external/index.ts index d228ccf26ca..48168f550ea 100644 --- a/src/external/index.ts +++ b/src/external/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createExternalFromDiscriminatorValue, deserializeIntoExternal, serializeExternal, type External } from '../models/externalConnectors/external'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { ConnectionsRequestBuilder } from './connections/'; +import { ConnectionsRequestBuilder } from './connections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalRequestBuilderGetQueryParameters { diff --git a/src/filterOperators/count/index.ts b/src/filterOperators/count/index.ts index 7602ddd13e3..dddea8b6c6e 100644 --- a/src/filterOperators/count/index.ts +++ b/src/filterOperators/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/filterOperators/index.ts b/src/filterOperators/index.ts index 8a3b9a01869..c48f7070ecc 100644 --- a/src/filterOperators/index.ts +++ b/src/filterOperators/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type FilterOperatorSchemaCollectionResponse } from '../models/'; +import { type FilterOperatorSchemaCollectionResponse } from '../models'; import { createFilterOperatorSchemaFromDiscriminatorValue, deserializeIntoFilterOperatorSchema, serializeFilterOperatorSchema, type FilterOperatorSchema } from '../models/filterOperatorSchema'; import { createFilterOperatorSchemaCollectionResponseFromDiscriminatorValue } from '../models/filterOperatorSchemaCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterOperatorSchemaItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterOperatorSchemaItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilterOperatorsRequestBuilderGetQueryParameters { diff --git a/src/filterOperators/item/index.ts b/src/filterOperators/item/index.ts index 94f25e047b4..74697bc71a0 100644 --- a/src/filterOperators/item/index.ts +++ b/src/filterOperators/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFilterOperatorSchemaFromDiscriminatorValue, deserializeIntoFilterOperatorSchema, serializeFilterOperatorSchema, type FilterOperatorSchema } from '../../models/filterOperatorSchema'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/functions/count/index.ts b/src/functions/count/index.ts index 49926fa272c..8d9e04fae8b 100644 --- a/src/functions/count/index.ts +++ b/src/functions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/functions/index.ts b/src/functions/index.ts index 222821e4ffd..e608f3c9c31 100644 --- a/src/functions/index.ts +++ b/src/functions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttributeMappingFunctionSchemaCollectionResponse } from '../models/'; +import { type AttributeMappingFunctionSchemaCollectionResponse } from '../models'; import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, deserializeIntoAttributeMappingFunctionSchema, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../models/attributeMappingFunctionSchema'; import { createAttributeMappingFunctionSchemaCollectionResponseFromDiscriminatorValue } from '../models/attributeMappingFunctionSchemaCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AttributeMappingFunctionSchemaItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AttributeMappingFunctionSchemaItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FunctionsRequestBuilderGetQueryParameters { diff --git a/src/functions/item/index.ts b/src/functions/item/index.ts index 6aa95d2f2d5..bed1d44dfd1 100644 --- a/src/functions/item/index.ts +++ b/src/functions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, deserializeIntoAttributeMappingFunctionSchema, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../models/attributeMappingFunctionSchema'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groupLifecyclePolicies/count/index.ts b/src/groupLifecyclePolicies/count/index.ts index febe76f9df8..fbb319121fd 100644 --- a/src/groupLifecyclePolicies/count/index.ts +++ b/src/groupLifecyclePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groupLifecyclePolicies/index.ts b/src/groupLifecyclePolicies/index.ts index 37efb680436..441846aaae4 100644 --- a/src/groupLifecyclePolicies/index.ts +++ b/src/groupLifecyclePolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupLifecyclePolicyCollectionResponse } from '../models/'; +import { type GroupLifecyclePolicyCollectionResponse } from '../models'; import { createGroupLifecyclePolicyFromDiscriminatorValue, deserializeIntoGroupLifecyclePolicy, serializeGroupLifecyclePolicy, type GroupLifecyclePolicy } from '../models/groupLifecyclePolicy'; import { createGroupLifecyclePolicyCollectionResponseFromDiscriminatorValue } from '../models/groupLifecyclePolicyCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GroupLifecyclePolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GroupLifecyclePolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupLifecyclePoliciesRequestBuilderGetQueryParameters { diff --git a/src/groupLifecyclePolicies/item/addGroup/index.ts b/src/groupLifecyclePolicies/item/addGroup/index.ts index 2a9ae1695aa..aba6090af08 100644 --- a/src/groupLifecyclePolicies/item/addGroup/index.ts +++ b/src/groupLifecyclePolicies/item/addGroup/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -15,94 +13,18 @@ export interface AddGroupPostRequestBody extends AdditionalDataHolder, Parsable */ groupId?: string; } -export interface AddGroupPostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} export function createAddGroupPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddGroupPostRequestBody; } -export function createAddGroupPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddGroupPostResponse; -} export function deserializeIntoAddGroupPostRequestBody(addGroupPostRequestBody: AddGroupPostRequestBody | undefined = {} as AddGroupPostRequestBody) : Record void> { return { "groupId": n => { addGroupPostRequestBody.groupId = n.getStringValue(); }, } } -export function deserializeIntoAddGroupPostResponse(addGroupPostResponse: AddGroupPostResponse | undefined = {} as AddGroupPostResponse) : Record void> { - return { - "value": n => { addGroupPostResponse.value = n.getBooleanValue(); }, - } -} export function serializeAddGroupPostRequestBody(writer: SerializationWriter, addGroupPostRequestBody: AddGroupPostRequestBody | undefined = {} as AddGroupPostRequestBody) : void { writer.writeStringValue("groupId", addGroupPostRequestBody.groupId); writer.writeAdditionalData(addGroupPostRequestBody.additionalData); } -export function serializeAddGroupPostResponse(writer: SerializationWriter, addGroupPostResponse: AddGroupPostResponse | undefined = {} as AddGroupPostResponse) : void { - writer.writeBooleanValue("value", addGroupPostResponse.value); - writer.writeAdditionalData(addGroupPostResponse.additionalData); -} -/** - * Provides operations to call the addGroup method. - */ -export class AddGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup"); - }; - /** - * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddGroupPostResponse - * @see {@link https://learn.microsoft.com/graph/api/grouplifecyclepolicy-addgroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddGroupPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addGroupRequestBuilder - */ - public withUrl(rawUrl: string) : AddGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupLifecyclePolicies/item/index.ts b/src/groupLifecyclePolicies/item/index.ts index ed6f863a295..676cbdd79cd 100644 --- a/src/groupLifecyclePolicies/item/index.ts +++ b/src/groupLifecyclePolicies/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createGroupLifecyclePolicyFromDiscriminatorValue, deserializeIntoGroupLifecyclePolicy, serializeGroupLifecyclePolicy, type GroupLifecyclePolicy } from '../../models/groupLifecyclePolicy'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AddGroupRequestBuilder } from './addGroup/'; -import { RemoveGroupRequestBuilder } from './removeGroup/'; +import { AddGroupRequestBuilder } from './addGroup'; +import { RemoveGroupRequestBuilder } from './removeGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupLifecyclePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/groupLifecyclePolicies/item/removeGroup/index.ts b/src/groupLifecyclePolicies/item/removeGroup/index.ts index 8578bd33569..6c8b7ec48d8 100644 --- a/src/groupLifecyclePolicies/item/removeGroup/index.ts +++ b/src/groupLifecyclePolicies/item/removeGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createRemoveGroupPostResponseFromDiscriminatorValue, deserializeIntoRemoveGroupPostResponse, serializeRemoveGroupPostResponse, type RemoveGroupPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRemoveGroupPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeRemoveGroupPostRequestBody(writer: SerializationWriter, writer.writeStringValue("groupId", removeGroupPostRequestBody.groupId); writer.writeAdditionalData(removeGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the removeGroup method. - */ -export class RemoveGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RemoveGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/removeGroup"); - }; - /** - * Removes a group from a lifecycle policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of RemoveGroupPostResponse - * @see {@link https://learn.microsoft.com/graph/api/grouplifecyclepolicy-removegroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: RemoveGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createRemoveGroupPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Removes a group from a lifecycle policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RemoveGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRemoveGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a removeGroupRequestBuilder - */ - public withUrl(rawUrl: string) : RemoveGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RemoveGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupLifecyclePolicies/item/removeGroup/removeGroupPostResponse.ts b/src/groupLifecyclePolicies/item/removeGroup/removeGroupPostResponse.ts deleted file mode 100644 index 7ea8b6f4196..00000000000 --- a/src/groupLifecyclePolicies/item/removeGroup/removeGroupPostResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRemoveGroupPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemoveGroupPostResponse; -} -export function deserializeIntoRemoveGroupPostResponse(removeGroupPostResponse: RemoveGroupPostResponse | undefined = {} as RemoveGroupPostResponse) : Record void> { - return { - "value": n => { removeGroupPostResponse.value = n.getBooleanValue(); }, - } -} -export interface RemoveGroupPostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeRemoveGroupPostResponse(writer: SerializationWriter, removeGroupPostResponse: RemoveGroupPostResponse | undefined = {} as RemoveGroupPostResponse) : void { - writer.writeBooleanValue("value", removeGroupPostResponse.value); - writer.writeAdditionalData(removeGroupPostResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groupSettingTemplates/count/index.ts b/src/groupSettingTemplates/count/index.ts index 943d6290e85..d0e15177ef4 100644 --- a/src/groupSettingTemplates/count/index.ts +++ b/src/groupSettingTemplates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groupSettingTemplates/delta/index.ts b/src/groupSettingTemplates/delta/index.ts index fb20ad896f8..145d5b0230d 100644 --- a/src/groupSettingTemplates/delta/index.ts +++ b/src/groupSettingTemplates/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: DirectoryObject[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupSettingTemplates/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groupSettingTemplates/getAvailableExtensionProperties/index.ts b/src/groupSettingTemplates/getAvailableExtensionProperties/index.ts index 1e88adedaef..7800d3c8b0a 100644 --- a/src/groupSettingTemplates/getAvailableExtensionProperties/index.ts +++ b/src/groupSettingTemplates/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupSettingTemplates/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupSettingTemplates/getByIds/getByIdsPostRequestBody.ts b/src/groupSettingTemplates/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/groupSettingTemplates/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groupSettingTemplates/getByIds/index.ts b/src/groupSettingTemplates/getByIds/index.ts index c7911f5c32c..49172d3c7dd 100644 --- a/src/groupSettingTemplates/getByIds/index.ts +++ b/src/groupSettingTemplates/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupSettingTemplates/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupSettingTemplates/index.ts b/src/groupSettingTemplates/index.ts index 9950e0cf709..bca743f4b04 100644 --- a/src/groupSettingTemplates/index.ts +++ b/src/groupSettingTemplates/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupSettingTemplateCollectionResponse } from '../models/'; +import { type GroupSettingTemplateCollectionResponse } from '../models'; import { createGroupSettingTemplateFromDiscriminatorValue, deserializeIntoGroupSettingTemplate, serializeGroupSettingTemplate, type GroupSettingTemplate } from '../models/groupSettingTemplate'; import { createGroupSettingTemplateCollectionResponseFromDiscriminatorValue } from '../models/groupSettingTemplateCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { GroupSettingTemplateItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { GroupSettingTemplateItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupSettingTemplatesRequestBuilderGetQueryParameters { diff --git a/src/groupSettingTemplates/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/groupSettingTemplates/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/groupSettingTemplates/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groupSettingTemplates/item/checkMemberGroups/index.ts b/src/groupSettingTemplates/item/checkMemberGroups/index.ts index 2cf9ea8f25b..dcf9cd58809 100644 --- a/src/groupSettingTemplates/item/checkMemberGroups/index.ts +++ b/src/groupSettingTemplates/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupSettingTemplates/item/checkMemberObjects/index.ts b/src/groupSettingTemplates/item/checkMemberObjects/index.ts index 2dd908f6013..d53883127a7 100644 --- a/src/groupSettingTemplates/item/checkMemberObjects/index.ts +++ b/src/groupSettingTemplates/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupSettingTemplates/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/groupSettingTemplates/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/groupSettingTemplates/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/groupSettingTemplates/item/getMemberGroups/index.ts b/src/groupSettingTemplates/item/getMemberGroups/index.ts index 13db7e5fe60..e7344ba5741 100644 --- a/src/groupSettingTemplates/item/getMemberGroups/index.ts +++ b/src/groupSettingTemplates/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupSettingTemplates/item/getMemberObjects/index.ts b/src/groupSettingTemplates/item/getMemberObjects/index.ts index 0dc2f70edb8..1d90b3647dc 100644 --- a/src/groupSettingTemplates/item/getMemberObjects/index.ts +++ b/src/groupSettingTemplates/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupSettingTemplates/item/index.ts b/src/groupSettingTemplates/item/index.ts index fbb6ec53d38..0ae2d985e23 100644 --- a/src/groupSettingTemplates/item/index.ts +++ b/src/groupSettingTemplates/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createGroupSettingTemplateFromDiscriminatorValue, deserializeIntoGroupSettingTemplate, serializeGroupSettingTemplate, type GroupSettingTemplate } from '../../models/groupSettingTemplate'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { RestoreRequestBuilder } from './restore/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupSettingTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/groupSettingTemplates/item/restore/index.ts b/src/groupSettingTemplates/item/restore/index.ts index 675974c2875..fefa9f5c65c 100644 --- a/src/groupSettingTemplates/item/restore/index.ts +++ b/src/groupSettingTemplates/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groupSettingTemplates/validateProperties/index.ts b/src/groupSettingTemplates/validateProperties/index.ts index 75b2aacbd7f..3c9a114e085 100644 --- a/src/groupSettingTemplates/validateProperties/index.ts +++ b/src/groupSettingTemplates/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groupSettingTemplates/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groupSettings/count/index.ts b/src/groupSettings/count/index.ts index d5408e74907..b1c6aa0d451 100644 --- a/src/groupSettings/count/index.ts +++ b/src/groupSettings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groupSettings/index.ts b/src/groupSettings/index.ts index 13eeb112827..8158f9d4aee 100644 --- a/src/groupSettings/index.ts +++ b/src/groupSettings/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupSettingCollectionResponse } from '../models/'; +import { type GroupSettingCollectionResponse } from '../models'; import { createGroupSettingFromDiscriminatorValue, deserializeIntoGroupSetting, serializeGroupSetting, type GroupSetting } from '../models/groupSetting'; import { createGroupSettingCollectionResponseFromDiscriminatorValue } from '../models/groupSettingCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GroupSettingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GroupSettingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupSettingsRequestBuilderGetQueryParameters { diff --git a/src/groupSettings/item/index.ts b/src/groupSettings/item/index.ts index 44f6a8154e3..fdfb9bfdfec 100644 --- a/src/groupSettings/item/index.ts +++ b/src/groupSettings/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createGroupSettingFromDiscriminatorValue, deserializeIntoGroupSetting, serializeGroupSetting, type GroupSetting } from '../../models/groupSetting'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/count/index.ts b/src/groups/count/index.ts index 79f230970cd..d29aaafc61a 100644 --- a/src/groups/count/index.ts +++ b/src/groups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/delta/index.ts b/src/groups/delta/index.ts index d9ab1c1a3bf..2c0f2633b39 100644 --- a/src/groups/delta/index.ts +++ b/src/groups/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createGroupFromDiscriminatorValue, serializeGroup, type Group } from '../../models/group'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Group[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeGroup); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/getAvailableExtensionProperties/index.ts b/src/groups/getAvailableExtensionProperties/index.ts index 481c4170635..7800d3c8b0a 100644 --- a/src/groups/getAvailableExtensionProperties/index.ts +++ b/src/groups/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/getByIds/getByIdsPostRequestBody.ts b/src/groups/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/groups/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/getByIds/index.ts b/src/groups/getByIds/index.ts index 5112066f964..49172d3c7dd 100644 --- a/src/groups/getByIds/index.ts +++ b/src/groups/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/index.ts b/src/groups/index.ts index 30a759da267..2ea4102a32f 100644 --- a/src/groups/index.ts +++ b/src/groups/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../models/'; +import { type GroupCollectionResponse } from '../models'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../models/group'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../models/groupCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { GroupItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { GroupItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/acceptedSenders/count/index.ts b/src/groups/item/acceptedSenders/count/index.ts index bacae98f242..3b71130039e 100644 --- a/src/groups/item/acceptedSenders/count/index.ts +++ b/src/groups/item/acceptedSenders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/acceptedSenders/index.ts b/src/groups/item/acceptedSenders/index.ts index a3c4a475a8b..e21ba198be8 100644 --- a/src/groups/item/acceptedSenders/index.ts +++ b/src/groups/item/acceptedSenders/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AcceptedSendersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/acceptedSenders/item/index.ts b/src/groups/item/acceptedSenders/item/index.ts index 53b2d6bdc0b..a031a323df2 100644 --- a/src/groups/item/acceptedSenders/item/index.ts +++ b/src/groups/item/acceptedSenders/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/groups/item/acceptedSenders/item/ref/index.ts b/src/groups/item/acceptedSenders/item/ref/index.ts index 639bc332191..a0cbb5e01f2 100644 --- a/src/groups/item/acceptedSenders/item/ref/index.ts +++ b/src/groups/item/acceptedSenders/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/acceptedSenders/ref/index.ts b/src/groups/item/acceptedSenders/ref/index.ts index 7e32ce44a00..cd11d59627c 100644 --- a/src/groups/item/acceptedSenders/ref/index.ts +++ b/src/groups/item/acceptedSenders/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/groups/item/addFavorite/index.ts b/src/groups/item/addFavorite/index.ts index 0cd2c09af29..ab89afe9355 100644 --- a/src/groups/item/addFavorite/index.ts +++ b/src/groups/item/addFavorite/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/appRoleAssignments/count/index.ts b/src/groups/item/appRoleAssignments/count/index.ts index 8906e9cc4eb..a85f765af57 100644 --- a/src/groups/item/appRoleAssignments/count/index.ts +++ b/src/groups/item/appRoleAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/appRoleAssignments/index.ts b/src/groups/item/appRoleAssignments/index.ts index 85c093ad8be..8fd3f7d8042 100644 --- a/src/groups/item/appRoleAssignments/index.ts +++ b/src/groups/item/appRoleAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue, deserializeIntoAppRoleAssignment, serializeAppRoleAssignment, type AppRoleAssignment } from '../../../models/appRoleAssignment'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AppRoleAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AppRoleAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppRoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/appRoleAssignments/item/index.ts b/src/groups/item/appRoleAssignments/item/index.ts index 70349dff05c..34399f2211f 100644 --- a/src/groups/item/appRoleAssignments/item/index.ts +++ b/src/groups/item/appRoleAssignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppRoleAssignmentFromDiscriminatorValue, deserializeIntoAppRoleAssignment, serializeAppRoleAssignment, type AppRoleAssignment } from '../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/assignLicense/index.ts b/src/groups/item/assignLicense/index.ts index 4cd4e761d82..151303c6558 100644 --- a/src/groups/item/assignLicense/index.ts +++ b/src/groups/item/assignLicense/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAssignedLicenseFromDiscriminatorValue, serializeAssignedLicense, type AssignedLicense } from '../../../models/assignedLicense'; -import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../models/group'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export interface AssignLicensePostRequestBody extends AdditionalDataHolder, Parsable { @@ -37,58 +34,5 @@ export function serializeAssignLicensePostRequestBody(writer: SerializationWrite writer.writeCollectionOfPrimitiveValues("removeLicenses", assignLicensePostRequestBody.removeLicenses); writer.writeAdditionalData(assignLicensePostRequestBody.additionalData); } -/** - * Provides operations to call the assignLicense method. - */ -export class AssignLicenseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignLicenseRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/assignLicense"); - }; - /** - * Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Group - * @see {@link https://learn.microsoft.com/graph/api/group-assignlicense?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignLicensePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGroupFromDiscriminatorValue, errorMapping); - }; - /** - * Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssignLicensePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignLicensePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignLicenseRequestBuilder - */ - public withUrl(rawUrl: string) : AssignLicenseRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignLicenseRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/allowedCalendarSharingRolesWithUser/index.ts b/src/groups/item/calendar/allowedCalendarSharingRolesWithUser/index.ts index bcf3445ac21..f4613ac4c4c 100644 --- a/src/groups/item/calendar/allowedCalendarSharingRolesWithUser/index.ts +++ b/src/groups/item/calendar/allowedCalendarSharingRolesWithUser/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; import { CalendarRoleType } from '../../../../models/calendarRoleType'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AllowedCalendarSharingRolesWithUserGetResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -13,28 +11,6 @@ export interface AllowedCalendarSharingRolesWithUserGetResponse extends BaseColl */ value?: CalendarRoleType[]; } -export interface AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function createAllowedCalendarSharingRolesWithUserGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAllowedCalendarSharingRolesWithUserGetResponse; @@ -50,62 +26,5 @@ export function serializeAllowedCalendarSharingRolesWithUserGetResponse(writer: if(allowedCalendarSharingRolesWithUserGetResponse.value) writer.writeEnumValue("value", ...allowedCalendarSharingRolesWithUserGetResponse.value); } -/** - * Provides operations to call the allowedCalendarSharingRoles method. - */ -export class AllowedCalendarSharingRolesWithUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AllowedCalendarSharingRolesWithUserRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param User Usage: User='{User}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, user?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24top,%24skip,%24search,%24filter,%24count}"); - this.pathParameters["User"] = user - }; - /** - * Invoke function allowedCalendarSharingRoles - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AllowedCalendarSharingRolesWithUserGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAllowedCalendarSharingRolesWithUserGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function allowedCalendarSharingRoles - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, allowedCalendarSharingRolesWithUserRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a allowedCalendarSharingRolesWithUserRequestBuilder - */ - public withUrl(rawUrl: string) : AllowedCalendarSharingRolesWithUserRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const allowedCalendarSharingRolesWithUserRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarPermissions/count/index.ts b/src/groups/item/calendar/calendarPermissions/count/index.ts index 818a739e718..7fa2ca32cf4 100644 --- a/src/groups/item/calendar/calendarPermissions/count/index.ts +++ b/src/groups/item/calendar/calendarPermissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarPermissions/index.ts b/src/groups/item/calendar/calendarPermissions/index.ts index 4b8c792030a..a0b5aa135fb 100644 --- a/src/groups/item/calendar/calendarPermissions/index.ts +++ b/src/groups/item/calendar/calendarPermissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CalendarPermissionCollectionResponse } from '../../../../models/'; +import { type CalendarPermissionCollectionResponse } from '../../../../models'; import { createCalendarPermissionFromDiscriminatorValue, deserializeIntoCalendarPermission, serializeCalendarPermission, type CalendarPermission } from '../../../../models/calendarPermission'; import { createCalendarPermissionCollectionResponseFromDiscriminatorValue } from '../../../../models/calendarPermissionCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CalendarPermissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CalendarPermissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarPermissionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/calendarPermissions/item/index.ts b/src/groups/item/calendar/calendarPermissions/item/index.ts index c894407561a..3ef02d684d8 100644 --- a/src/groups/item/calendar/calendarPermissions/item/index.ts +++ b/src/groups/item/calendar/calendarPermissions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCalendarPermissionFromDiscriminatorValue, deserializeIntoCalendarPermission, serializeCalendarPermission, type CalendarPermission } from '../../../../../models/calendarPermission'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/count/index.ts b/src/groups/item/calendar/calendarView/count/index.ts index 52204f6064e..0e1ebe9ef40 100644 --- a/src/groups/item/calendar/calendarView/count/index.ts +++ b/src/groups/item/calendar/calendarView/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/delta/index.ts b/src/groups/item/calendar/calendarView/delta/index.ts index 6ccd2379146..4a82268c901 100644 --- a/src/groups/item/calendar/calendarView/delta/index.ts +++ b/src/groups/item/calendar/calendarView/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../models/event'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/index.ts b/src/groups/item/calendar/calendarView/index.ts index 2202d7860fc..e72451c799e 100644 --- a/src/groups/item/calendar/calendarView/index.ts +++ b/src/groups/item/calendar/calendarView/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../models/'; +import { type EventCollectionResponse } from '../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarViewRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/calendarView/item/accept/index.ts b/src/groups/item/calendar/calendarView/item/accept/index.ts index 05dc6078243..b5610d8248d 100644 --- a/src/groups/item/calendar/calendarView/item/accept/index.ts +++ b/src/groups/item/calendar/calendarView/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/attachments/count/index.ts b/src/groups/item/calendar/calendarView/item/attachments/count/index.ts index 251504504dd..bf39f61cec1 100644 --- a/src/groups/item/calendar/calendarView/item/attachments/count/index.ts +++ b/src/groups/item/calendar/calendarView/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/attachments/createUploadSession/index.ts b/src/groups/item/calendar/calendarView/item/attachments/createUploadSession/index.ts index 3fafeadd12c..54687d79c67 100644 --- a/src/groups/item/calendar/calendarView/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/calendar/calendarView/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/attachments/index.ts b/src/groups/item/calendar/calendarView/item/attachments/index.ts index bc49cf5ccfd..10606f4fb33 100644 --- a/src/groups/item/calendar/calendarView/item/attachments/index.ts +++ b/src/groups/item/calendar/calendarView/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/calendar/calendarView/item/attachments/item/index.ts b/src/groups/item/calendar/calendarView/item/attachments/item/index.ts index 1f6d83c45f7..090c4584eb7 100644 --- a/src/groups/item/calendar/calendarView/item/attachments/item/index.ts +++ b/src/groups/item/calendar/calendarView/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../models/'; +import { type Attachment } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/calendar/index.ts b/src/groups/item/calendar/calendarView/item/calendar/index.ts index aebc161d542..54b0cfd5301 100644 --- a/src/groups/item/calendar/calendarView/item/calendar/index.ts +++ b/src/groups/item/calendar/calendarView/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../models/'; +import { type Calendar } from '../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/cancel/cancelPostRequestBody.ts b/src/groups/item/calendar/calendarView/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/groups/item/calendar/calendarView/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/cancel/index.ts b/src/groups/item/calendar/calendarView/item/cancel/index.ts index 5bedfec8388..a8cac682852 100644 --- a/src/groups/item/calendar/calendarView/item/cancel/index.ts +++ b/src/groups/item/calendar/calendarView/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/groups/item/calendar/calendarView/item/decline/index.ts b/src/groups/item/calendar/calendarView/item/decline/index.ts index 38e4dfea5bd..8a136bdb1c3 100644 --- a/src/groups/item/calendar/calendarView/item/decline/index.ts +++ b/src/groups/item/calendar/calendarView/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/dismissReminder/index.ts b/src/groups/item/calendar/calendarView/item/dismissReminder/index.ts index a922952ec3a..2c4e79cff7b 100644 --- a/src/groups/item/calendar/calendarView/item/dismissReminder/index.ts +++ b/src/groups/item/calendar/calendarView/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/extensions/count/index.ts b/src/groups/item/calendar/calendarView/item/extensions/count/index.ts index 507d685b96f..274c015236a 100644 --- a/src/groups/item/calendar/calendarView/item/extensions/count/index.ts +++ b/src/groups/item/calendar/calendarView/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/extensions/index.ts b/src/groups/item/calendar/calendarView/item/extensions/index.ts index 373420d31b0..a4006e24894 100644 --- a/src/groups/item/calendar/calendarView/item/extensions/index.ts +++ b/src/groups/item/calendar/calendarView/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/calendarView/item/extensions/item/index.ts b/src/groups/item/calendar/calendarView/item/extensions/item/index.ts index ae824a4ad6e..06072cf9f75 100644 --- a/src/groups/item/calendar/calendarView/item/extensions/item/index.ts +++ b/src/groups/item/calendar/calendarView/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/forward/forwardPostRequestBody.ts b/src/groups/item/calendar/calendarView/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index c67b323605d..00000000000 --- a/src/groups/item/calendar/calendarView/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/forward/index.ts b/src/groups/item/calendar/calendarView/item/forward/index.ts index f6d9e4b20ae..68b064009b3 100644 --- a/src/groups/item/calendar/calendarView/item/forward/index.ts +++ b/src/groups/item/calendar/calendarView/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/calendar/calendarView/item/index.ts b/src/groups/item/calendar/calendarView/item/index.ts index c073879e2b9..c902fa9035c 100644 --- a/src/groups/item/calendar/calendarView/item/index.ts +++ b/src/groups/item/calendar/calendarView/item/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../models/'; +import { type Event } from '../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../models/event'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/calendarView/item/instances/count/index.ts b/src/groups/item/calendar/calendarView/item/instances/count/index.ts index 51f77743aa5..02e2d4ff8b1 100644 --- a/src/groups/item/calendar/calendarView/item/instances/count/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/instances/delta/index.ts b/src/groups/item/calendar/calendarView/item/instances/delta/index.ts index 3edfeeb74f0..345a57a2320 100644 --- a/src/groups/item/calendar/calendarView/item/instances/delta/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/instances/index.ts b/src/groups/item/calendar/calendarView/item/instances/index.ts index 7f80254d46a..aa8f0b50377 100644 --- a/src/groups/item/calendar/calendarView/item/instances/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/calendarView/item/instances/item/accept/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/accept/index.ts index 12a816786e9..b5610d8248d 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/accept/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/instances/item/attachments/count/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/attachments/count/index.ts index 5ef3a70fc21..f42f6bec873 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/attachments/count/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/instances/item/attachments/createUploadSession/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/attachments/createUploadSession/index.ts index 19b7ed4535d..52f5fca1468 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/instances/item/attachments/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/attachments/index.ts index 54be67c2be2..193e13debae 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/attachments/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/calendar/calendarView/item/instances/item/attachments/item/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/attachments/item/index.ts index d3d76a94be3..8338ba33b69 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/attachments/item/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/instances/item/calendar/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/calendar/index.ts index b8148e1a145..4bbbb368c33 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/calendar/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts b/src/groups/item/calendar/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/groups/item/calendar/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/instances/item/cancel/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/cancel/index.ts index a9fb765383c..cbc74cae443 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/cancel/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/groups/item/calendar/calendarView/item/instances/item/decline/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/decline/index.ts index 42f16bdc2d6..910f84649c0 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/decline/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/instances/item/dismissReminder/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/dismissReminder/index.ts index e5e8ba3bdf2..a6150f02d04 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/dismissReminder/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/instances/item/extensions/count/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/extensions/count/index.ts index 633085813c1..cd7e27b250e 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/extensions/count/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/instances/item/extensions/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/extensions/index.ts index b2d89ca40bf..a54d253e9f0 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/extensions/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/calendarView/item/instances/item/extensions/item/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/extensions/item/index.ts index b5cb8f165ec..6998a43345e 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/extensions/item/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/calendarView/item/instances/item/forward/forwardPostRequestBody.ts b/src/groups/item/calendar/calendarView/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 37dde22b05f..00000000000 --- a/src/groups/item/calendar/calendarView/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/instances/item/forward/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/forward/index.ts index d5189f81116..35b7a8970b9 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/forward/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/calendar/calendarView/item/instances/item/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/index.ts index 99f611840d2..0d3978fdca4 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../models/'; +import { type Event } from '../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/calendarView/item/instances/item/snoozeReminder/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/snoozeReminder/index.ts index 53d35c26ebb..d3a440b7f2c 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/snoozeReminder/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/instances/item/tentativelyAccept/index.ts b/src/groups/item/calendar/calendarView/item/instances/item/tentativelyAccept/index.ts index 84166113df4..923af51d576 100644 --- a/src/groups/item/calendar/calendarView/item/instances/item/tentativelyAccept/index.ts +++ b/src/groups/item/calendar/calendarView/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/snoozeReminder/index.ts b/src/groups/item/calendar/calendarView/item/snoozeReminder/index.ts index aa3060d95cd..5497b6947e1 100644 --- a/src/groups/item/calendar/calendarView/item/snoozeReminder/index.ts +++ b/src/groups/item/calendar/calendarView/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/calendarView/item/tentativelyAccept/index.ts b/src/groups/item/calendar/calendarView/item/tentativelyAccept/index.ts index 7591d204e56..48001c4a2e2 100644 --- a/src/groups/item/calendar/calendarView/item/tentativelyAccept/index.ts +++ b/src/groups/item/calendar/calendarView/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/count/index.ts b/src/groups/item/calendar/events/count/index.ts index b438836d786..cef84ddaaae 100644 --- a/src/groups/item/calendar/events/count/index.ts +++ b/src/groups/item/calendar/events/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/delta/index.ts b/src/groups/item/calendar/events/delta/index.ts index 37eb130eff4..4a82268c901 100644 --- a/src/groups/item/calendar/events/delta/index.ts +++ b/src/groups/item/calendar/events/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../models/event'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/index.ts b/src/groups/item/calendar/events/index.ts index feb08b54009..12c85e3647b 100644 --- a/src/groups/item/calendar/events/index.ts +++ b/src/groups/item/calendar/events/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../models/'; +import { type EventCollectionResponse } from '../../../../models'; import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../models/event'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/events/item/accept/index.ts b/src/groups/item/calendar/events/item/accept/index.ts index ac67446b877..b5610d8248d 100644 --- a/src/groups/item/calendar/events/item/accept/index.ts +++ b/src/groups/item/calendar/events/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/attachments/count/index.ts b/src/groups/item/calendar/events/item/attachments/count/index.ts index f940a817edf..d94ae230754 100644 --- a/src/groups/item/calendar/events/item/attachments/count/index.ts +++ b/src/groups/item/calendar/events/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/attachments/createUploadSession/index.ts b/src/groups/item/calendar/events/item/attachments/createUploadSession/index.ts index 07f4269fe52..54687d79c67 100644 --- a/src/groups/item/calendar/events/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/calendar/events/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/attachments/index.ts b/src/groups/item/calendar/events/item/attachments/index.ts index c43f2a755db..3dd49f93c05 100644 --- a/src/groups/item/calendar/events/item/attachments/index.ts +++ b/src/groups/item/calendar/events/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/calendar/events/item/attachments/item/index.ts b/src/groups/item/calendar/events/item/attachments/item/index.ts index dbb6176b895..646d52f0a53 100644 --- a/src/groups/item/calendar/events/item/attachments/item/index.ts +++ b/src/groups/item/calendar/events/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../models/'; +import { type Attachment } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/calendar/index.ts b/src/groups/item/calendar/events/item/calendar/index.ts index 24983fd3bdf..6a3fda68bc4 100644 --- a/src/groups/item/calendar/events/item/calendar/index.ts +++ b/src/groups/item/calendar/events/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../models/'; +import { type Calendar } from '../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/cancel/cancelPostRequestBody.ts b/src/groups/item/calendar/events/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/groups/item/calendar/events/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/events/item/cancel/index.ts b/src/groups/item/calendar/events/item/cancel/index.ts index 152c806861d..454203ad25f 100644 --- a/src/groups/item/calendar/events/item/cancel/index.ts +++ b/src/groups/item/calendar/events/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/groups/item/calendar/events/item/decline/index.ts b/src/groups/item/calendar/events/item/decline/index.ts index 60aabafde38..8a136bdb1c3 100644 --- a/src/groups/item/calendar/events/item/decline/index.ts +++ b/src/groups/item/calendar/events/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/dismissReminder/index.ts b/src/groups/item/calendar/events/item/dismissReminder/index.ts index d54fd313ac3..e0f15987d04 100644 --- a/src/groups/item/calendar/events/item/dismissReminder/index.ts +++ b/src/groups/item/calendar/events/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/extensions/count/index.ts b/src/groups/item/calendar/events/item/extensions/count/index.ts index 4380009673f..4ac70ae7329 100644 --- a/src/groups/item/calendar/events/item/extensions/count/index.ts +++ b/src/groups/item/calendar/events/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/extensions/index.ts b/src/groups/item/calendar/events/item/extensions/index.ts index 1696f665a47..10f0a1e3403 100644 --- a/src/groups/item/calendar/events/item/extensions/index.ts +++ b/src/groups/item/calendar/events/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/events/item/extensions/item/index.ts b/src/groups/item/calendar/events/item/extensions/item/index.ts index b3461ea07a7..1d170fd6964 100644 --- a/src/groups/item/calendar/events/item/extensions/item/index.ts +++ b/src/groups/item/calendar/events/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/forward/forwardPostRequestBody.ts b/src/groups/item/calendar/events/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index c67b323605d..00000000000 --- a/src/groups/item/calendar/events/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/events/item/forward/index.ts b/src/groups/item/calendar/events/item/forward/index.ts index 84c1473b60d..e04e9845e61 100644 --- a/src/groups/item/calendar/events/item/forward/index.ts +++ b/src/groups/item/calendar/events/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/calendar/events/item/index.ts b/src/groups/item/calendar/events/item/index.ts index 4ef83c14eeb..64ad6801169 100644 --- a/src/groups/item/calendar/events/item/index.ts +++ b/src/groups/item/calendar/events/item/index.ts @@ -2,19 +2,19 @@ // eslint-disable // Generated by Microsoft Kiota import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../../models/event'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/events/item/instances/count/index.ts b/src/groups/item/calendar/events/item/instances/count/index.ts index 9bb89f17626..a1e00cd6f09 100644 --- a/src/groups/item/calendar/events/item/instances/count/index.ts +++ b/src/groups/item/calendar/events/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/instances/delta/index.ts b/src/groups/item/calendar/events/item/instances/delta/index.ts index 8d2f61dc9eb..345a57a2320 100644 --- a/src/groups/item/calendar/events/item/instances/delta/index.ts +++ b/src/groups/item/calendar/events/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/instances/index.ts b/src/groups/item/calendar/events/item/instances/index.ts index 88f7498ae24..20762d6e014 100644 --- a/src/groups/item/calendar/events/item/instances/index.ts +++ b/src/groups/item/calendar/events/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/events/item/instances/item/accept/index.ts b/src/groups/item/calendar/events/item/instances/item/accept/index.ts index 8e3c9667232..b5610d8248d 100644 --- a/src/groups/item/calendar/events/item/instances/item/accept/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/instances/item/attachments/count/index.ts b/src/groups/item/calendar/events/item/instances/item/attachments/count/index.ts index 80e2003dc8d..d9cd7b380e6 100644 --- a/src/groups/item/calendar/events/item/instances/item/attachments/count/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/instances/item/attachments/createUploadSession/index.ts b/src/groups/item/calendar/events/item/instances/item/attachments/createUploadSession/index.ts index 554d0ba73a5..52f5fca1468 100644 --- a/src/groups/item/calendar/events/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/instances/item/attachments/index.ts b/src/groups/item/calendar/events/item/instances/item/attachments/index.ts index 74769e83fb8..9e89f70dc27 100644 --- a/src/groups/item/calendar/events/item/instances/item/attachments/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/calendar/events/item/instances/item/attachments/item/index.ts b/src/groups/item/calendar/events/item/instances/item/attachments/item/index.ts index 477b911f924..98a918b4c16 100644 --- a/src/groups/item/calendar/events/item/instances/item/attachments/item/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/instances/item/calendar/index.ts b/src/groups/item/calendar/events/item/instances/item/calendar/index.ts index c87b916db98..45896cafa76 100644 --- a/src/groups/item/calendar/events/item/instances/item/calendar/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/instances/item/cancel/cancelPostRequestBody.ts b/src/groups/item/calendar/events/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/groups/item/calendar/events/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/events/item/instances/item/cancel/index.ts b/src/groups/item/calendar/events/item/instances/item/cancel/index.ts index ab1dd9c3d94..4ae4aa3033e 100644 --- a/src/groups/item/calendar/events/item/instances/item/cancel/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/groups/item/calendar/events/item/instances/item/decline/index.ts b/src/groups/item/calendar/events/item/instances/item/decline/index.ts index 235fbb2500d..910f84649c0 100644 --- a/src/groups/item/calendar/events/item/instances/item/decline/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/instances/item/dismissReminder/index.ts b/src/groups/item/calendar/events/item/instances/item/dismissReminder/index.ts index 8e02faf1d95..09f0b0a844d 100644 --- a/src/groups/item/calendar/events/item/instances/item/dismissReminder/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/instances/item/extensions/count/index.ts b/src/groups/item/calendar/events/item/instances/item/extensions/count/index.ts index cd5e56f2ca1..e7fd9878164 100644 --- a/src/groups/item/calendar/events/item/instances/item/extensions/count/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/instances/item/extensions/index.ts b/src/groups/item/calendar/events/item/instances/item/extensions/index.ts index 805d9579de5..c9b334489b0 100644 --- a/src/groups/item/calendar/events/item/instances/item/extensions/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/events/item/instances/item/extensions/item/index.ts b/src/groups/item/calendar/events/item/instances/item/extensions/item/index.ts index 5113a92f0d1..037a7af4881 100644 --- a/src/groups/item/calendar/events/item/instances/item/extensions/item/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendar/events/item/instances/item/forward/forwardPostRequestBody.ts b/src/groups/item/calendar/events/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 37dde22b05f..00000000000 --- a/src/groups/item/calendar/events/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/events/item/instances/item/forward/index.ts b/src/groups/item/calendar/events/item/instances/item/forward/index.ts index f959e310c7d..61149a6d0e2 100644 --- a/src/groups/item/calendar/events/item/instances/item/forward/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/calendar/events/item/instances/item/index.ts b/src/groups/item/calendar/events/item/instances/item/index.ts index 4cb9a14fe8a..d9df6f6eb61 100644 --- a/src/groups/item/calendar/events/item/instances/item/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../models/'; +import { type Event } from '../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendar/events/item/instances/item/snoozeReminder/index.ts b/src/groups/item/calendar/events/item/instances/item/snoozeReminder/index.ts index 23b539197f9..d3a440b7f2c 100644 --- a/src/groups/item/calendar/events/item/instances/item/snoozeReminder/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/instances/item/tentativelyAccept/index.ts b/src/groups/item/calendar/events/item/instances/item/tentativelyAccept/index.ts index eea0da823ab..923af51d576 100644 --- a/src/groups/item/calendar/events/item/instances/item/tentativelyAccept/index.ts +++ b/src/groups/item/calendar/events/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/snoozeReminder/index.ts b/src/groups/item/calendar/events/item/snoozeReminder/index.ts index 9d3e24945e0..5497b6947e1 100644 --- a/src/groups/item/calendar/events/item/snoozeReminder/index.ts +++ b/src/groups/item/calendar/events/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/events/item/tentativelyAccept/index.ts b/src/groups/item/calendar/events/item/tentativelyAccept/index.ts index 5b3508ee983..48001c4a2e2 100644 --- a/src/groups/item/calendar/events/item/tentativelyAccept/index.ts +++ b/src/groups/item/calendar/events/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/getSchedule/getSchedulePostResponse.ts b/src/groups/item/calendar/getSchedule/getSchedulePostResponse.ts deleted file mode 100644 index 805879805a0..00000000000 --- a/src/groups/item/calendar/getSchedule/getSchedulePostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createScheduleInformationFromDiscriminatorValue, serializeScheduleInformation, type ScheduleInformation } from '../../../../models/scheduleInformation'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetSchedulePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetSchedulePostResponse; -} -export function deserializeIntoGetSchedulePostResponse(getSchedulePostResponse: GetSchedulePostResponse | undefined = {} as GetSchedulePostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getSchedulePostResponse), - "value": n => { getSchedulePostResponse.value = n.getCollectionOfObjectValues(createScheduleInformationFromDiscriminatorValue); }, - } -} -export interface GetSchedulePostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ScheduleInformation[]; -} -export function serializeGetSchedulePostResponse(writer: SerializationWriter, getSchedulePostResponse: GetSchedulePostResponse | undefined = {} as GetSchedulePostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getSchedulePostResponse) - writer.writeCollectionOfObjectValues("value", getSchedulePostResponse.value, serializeScheduleInformation); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendar/getSchedule/index.ts b/src/groups/item/calendar/getSchedule/index.ts index c1413386e08..0535387fedc 100644 --- a/src/groups/item/calendar/getSchedule/index.ts +++ b/src/groups/item/calendar/getSchedule/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createGetSchedulePostResponseFromDiscriminatorValue, deserializeIntoGetSchedulePostResponse, serializeGetSchedulePostResponse, type GetSchedulePostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetSchedulePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,58 +45,5 @@ export function serializeGetSchedulePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("StartTime", getSchedulePostRequestBody.startTime, serializeDateTimeTimeZone); writer.writeAdditionalData(getSchedulePostRequestBody.additionalData); } -/** - * Provides operations to call the getSchedule method. - */ -export class GetScheduleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetScheduleRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/getSchedule"); - }; - /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetSchedulePostResponse - * @see {@link https://learn.microsoft.com/graph/api/calendar-getschedule?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetSchedulePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetSchedulePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetSchedulePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetSchedulePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getScheduleRequestBuilder - */ - public withUrl(rawUrl: string) : GetScheduleRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetScheduleRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendar/index.ts b/src/groups/item/calendar/index.ts index b69cdaf8c3c..551827fbb74 100644 --- a/src/groups/item/calendar/index.ts +++ b/src/groups/item/calendar/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../models/'; +import { type Calendar } from '../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../models/calendar'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AllowedCalendarSharingRolesWithUserRequestBuilder } from './allowedCalendarSharingRolesWithUser/'; -import { CalendarPermissionsRequestBuilder } from './calendarPermissions/'; -import { CalendarViewRequestBuilder } from './calendarView/'; -import { EventsRequestBuilder } from './events/'; -import { GetScheduleRequestBuilder } from './getSchedule/'; +import { AllowedCalendarSharingRolesWithUserRequestBuilder } from './allowedCalendarSharingRolesWithUser'; +import { CalendarPermissionsRequestBuilder } from './calendarPermissions'; +import { CalendarViewRequestBuilder } from './calendarView'; +import { EventsRequestBuilder } from './events'; +import { GetScheduleRequestBuilder } from './getSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendarView/count/index.ts b/src/groups/item/calendarView/count/index.ts index b3dbb427e36..641a6265c60 100644 --- a/src/groups/item/calendarView/count/index.ts +++ b/src/groups/item/calendarView/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/delta/index.ts b/src/groups/item/calendarView/delta/index.ts index 024370c0311..214a77abb5c 100644 --- a/src/groups/item/calendarView/delta/index.ts +++ b/src/groups/item/calendarView/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../models/event'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/index.ts b/src/groups/item/calendarView/index.ts index c26d0e215f3..274719afab2 100644 --- a/src/groups/item/calendarView/index.ts +++ b/src/groups/item/calendarView/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../models/'; +import { type EventCollectionResponse } from '../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarViewRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendarView/item/accept/index.ts b/src/groups/item/calendarView/item/accept/index.ts index 97c42d66a59..b5610d8248d 100644 --- a/src/groups/item/calendarView/item/accept/index.ts +++ b/src/groups/item/calendarView/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/attachments/count/index.ts b/src/groups/item/calendarView/item/attachments/count/index.ts index da4fc39080e..a8c5665fd66 100644 --- a/src/groups/item/calendarView/item/attachments/count/index.ts +++ b/src/groups/item/calendarView/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/attachments/createUploadSession/index.ts b/src/groups/item/calendarView/item/attachments/createUploadSession/index.ts index 4c82fa9f335..c88e1410394 100644 --- a/src/groups/item/calendarView/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/calendarView/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/attachments/index.ts b/src/groups/item/calendarView/item/attachments/index.ts index 16a37459bb3..db5b3268285 100644 --- a/src/groups/item/calendarView/item/attachments/index.ts +++ b/src/groups/item/calendarView/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/calendarView/item/attachments/item/index.ts b/src/groups/item/calendarView/item/attachments/item/index.ts index 8df10be68a3..1a9ed853f41 100644 --- a/src/groups/item/calendarView/item/attachments/item/index.ts +++ b/src/groups/item/calendarView/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../models/'; +import { type Attachment } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/calendar/index.ts b/src/groups/item/calendarView/item/calendar/index.ts index 701dc241d70..ec2ae04df05 100644 --- a/src/groups/item/calendarView/item/calendar/index.ts +++ b/src/groups/item/calendarView/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../models/'; +import { type Calendar } from '../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../models/calendar'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/cancel/cancelPostRequestBody.ts b/src/groups/item/calendarView/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/groups/item/calendarView/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendarView/item/cancel/index.ts b/src/groups/item/calendarView/item/cancel/index.ts index 4ab28b5b4ad..e0b49f8b30e 100644 --- a/src/groups/item/calendarView/item/cancel/index.ts +++ b/src/groups/item/calendarView/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/groups/item/calendarView/item/decline/index.ts b/src/groups/item/calendarView/item/decline/index.ts index 6b41d6e5c78..b720cc715fa 100644 --- a/src/groups/item/calendarView/item/decline/index.ts +++ b/src/groups/item/calendarView/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/dismissReminder/index.ts b/src/groups/item/calendarView/item/dismissReminder/index.ts index de7f3888003..7fd4efc9b30 100644 --- a/src/groups/item/calendarView/item/dismissReminder/index.ts +++ b/src/groups/item/calendarView/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/extensions/count/index.ts b/src/groups/item/calendarView/item/extensions/count/index.ts index 85558402d3f..89622969f64 100644 --- a/src/groups/item/calendarView/item/extensions/count/index.ts +++ b/src/groups/item/calendarView/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/extensions/index.ts b/src/groups/item/calendarView/item/extensions/index.ts index d76d319a6f9..384726633c1 100644 --- a/src/groups/item/calendarView/item/extensions/index.ts +++ b/src/groups/item/calendarView/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendarView/item/extensions/item/index.ts b/src/groups/item/calendarView/item/extensions/item/index.ts index 7f3989a8010..b2175a777b4 100644 --- a/src/groups/item/calendarView/item/extensions/item/index.ts +++ b/src/groups/item/calendarView/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/forward/forwardPostRequestBody.ts b/src/groups/item/calendarView/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 5b7e40ebb5d..00000000000 --- a/src/groups/item/calendarView/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendarView/item/forward/index.ts b/src/groups/item/calendarView/item/forward/index.ts index e69d096221c..eb6116f5a73 100644 --- a/src/groups/item/calendarView/item/forward/index.ts +++ b/src/groups/item/calendarView/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/calendarView/item/index.ts b/src/groups/item/calendarView/item/index.ts index 9880019ba81..1c7006e29d4 100644 --- a/src/groups/item/calendarView/item/index.ts +++ b/src/groups/item/calendarView/item/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../models/'; +import { type Event } from '../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../models/event'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendarView/item/instances/count/index.ts b/src/groups/item/calendarView/item/instances/count/index.ts index 4c673d84390..5cabe08d388 100644 --- a/src/groups/item/calendarView/item/instances/count/index.ts +++ b/src/groups/item/calendarView/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/instances/delta/index.ts b/src/groups/item/calendarView/item/instances/delta/index.ts index b311cabd3f4..66550219c49 100644 --- a/src/groups/item/calendarView/item/instances/delta/index.ts +++ b/src/groups/item/calendarView/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/instances/index.ts b/src/groups/item/calendarView/item/instances/index.ts index 057ba4b2f9c..d55cbb7b8dd 100644 --- a/src/groups/item/calendarView/item/instances/index.ts +++ b/src/groups/item/calendarView/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendarView/item/instances/item/accept/index.ts b/src/groups/item/calendarView/item/instances/item/accept/index.ts index 3321f763b5e..b5610d8248d 100644 --- a/src/groups/item/calendarView/item/instances/item/accept/index.ts +++ b/src/groups/item/calendarView/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/instances/item/attachments/count/index.ts b/src/groups/item/calendarView/item/instances/item/attachments/count/index.ts index 22ca35d402e..1ff7536ad95 100644 --- a/src/groups/item/calendarView/item/instances/item/attachments/count/index.ts +++ b/src/groups/item/calendarView/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts b/src/groups/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts index 37709f7c8da..a5ffe1180dc 100644 --- a/src/groups/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/instances/item/attachments/index.ts b/src/groups/item/calendarView/item/instances/item/attachments/index.ts index d96b5d0ef7e..4fac183e8a1 100644 --- a/src/groups/item/calendarView/item/instances/item/attachments/index.ts +++ b/src/groups/item/calendarView/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/calendarView/item/instances/item/attachments/item/index.ts b/src/groups/item/calendarView/item/instances/item/attachments/item/index.ts index c5d578717a4..e4b5981b94f 100644 --- a/src/groups/item/calendarView/item/instances/item/attachments/item/index.ts +++ b/src/groups/item/calendarView/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/instances/item/calendar/index.ts b/src/groups/item/calendarView/item/instances/item/calendar/index.ts index 029ac011dd4..c75178b606b 100644 --- a/src/groups/item/calendarView/item/instances/item/calendar/index.ts +++ b/src/groups/item/calendarView/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../models/'; +import { type Calendar } from '../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts b/src/groups/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/groups/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendarView/item/instances/item/cancel/index.ts b/src/groups/item/calendarView/item/instances/item/cancel/index.ts index 7573e285359..3bdf65793e1 100644 --- a/src/groups/item/calendarView/item/instances/item/cancel/index.ts +++ b/src/groups/item/calendarView/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/groups/item/calendarView/item/instances/item/decline/index.ts b/src/groups/item/calendarView/item/instances/item/decline/index.ts index 20aa259f4c8..c72ae82357a 100644 --- a/src/groups/item/calendarView/item/instances/item/decline/index.ts +++ b/src/groups/item/calendarView/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/instances/item/dismissReminder/index.ts b/src/groups/item/calendarView/item/instances/item/dismissReminder/index.ts index dc1f4797f00..ef5b05a6655 100644 --- a/src/groups/item/calendarView/item/instances/item/dismissReminder/index.ts +++ b/src/groups/item/calendarView/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/instances/item/extensions/count/index.ts b/src/groups/item/calendarView/item/instances/item/extensions/count/index.ts index d91f4a89bb9..03de6e93a1b 100644 --- a/src/groups/item/calendarView/item/instances/item/extensions/count/index.ts +++ b/src/groups/item/calendarView/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/instances/item/extensions/index.ts b/src/groups/item/calendarView/item/instances/item/extensions/index.ts index e6a0e0ab37f..14b019451a5 100644 --- a/src/groups/item/calendarView/item/instances/item/extensions/index.ts +++ b/src/groups/item/calendarView/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendarView/item/instances/item/extensions/item/index.ts b/src/groups/item/calendarView/item/instances/item/extensions/item/index.ts index b08d939a240..2be51cacd85 100644 --- a/src/groups/item/calendarView/item/instances/item/extensions/item/index.ts +++ b/src/groups/item/calendarView/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts b/src/groups/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 1fd7eb4c631..00000000000 --- a/src/groups/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/calendarView/item/instances/item/forward/index.ts b/src/groups/item/calendarView/item/instances/item/forward/index.ts index 03e364e3586..dfca9fbda81 100644 --- a/src/groups/item/calendarView/item/instances/item/forward/index.ts +++ b/src/groups/item/calendarView/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/calendarView/item/instances/item/index.ts b/src/groups/item/calendarView/item/instances/item/index.ts index 6f8418190e0..a5eb5545059 100644 --- a/src/groups/item/calendarView/item/instances/item/index.ts +++ b/src/groups/item/calendarView/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../models/'; +import { type Event } from '../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/calendarView/item/instances/item/snoozeReminder/index.ts b/src/groups/item/calendarView/item/instances/item/snoozeReminder/index.ts index 05fcafa8627..b1b074b9a13 100644 --- a/src/groups/item/calendarView/item/instances/item/snoozeReminder/index.ts +++ b/src/groups/item/calendarView/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/instances/item/tentativelyAccept/index.ts b/src/groups/item/calendarView/item/instances/item/tentativelyAccept/index.ts index 65837ea104f..6acaf0967b7 100644 --- a/src/groups/item/calendarView/item/instances/item/tentativelyAccept/index.ts +++ b/src/groups/item/calendarView/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/snoozeReminder/index.ts b/src/groups/item/calendarView/item/snoozeReminder/index.ts index be12be2db48..8564e8fef21 100644 --- a/src/groups/item/calendarView/item/snoozeReminder/index.ts +++ b/src/groups/item/calendarView/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/calendarView/item/tentativelyAccept/index.ts b/src/groups/item/calendarView/item/tentativelyAccept/index.ts index 22e821d9fdf..4f019247951 100644 --- a/src/groups/item/calendarView/item/tentativelyAccept/index.ts +++ b/src/groups/item/calendarView/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/checkGrantedPermissionsForApp/index.ts b/src/groups/item/checkGrantedPermissionsForApp/index.ts index 168a31a425e..9fe933c7e5f 100644 --- a/src/groups/item/checkGrantedPermissionsForApp/index.ts +++ b/src/groups/item/checkGrantedPermissionsForApp/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../models/resourceSpecificPermissionGrant'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckGrantedPermissionsForAppPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,53 +25,5 @@ export function serializeCheckGrantedPermissionsForAppPostResponse(writer: Seria serializeBaseCollectionPaginationCountResponse(writer, checkGrantedPermissionsForAppPostResponse) writer.writeCollectionOfObjectValues("value", checkGrantedPermissionsForAppPostResponse.value, serializeResourceSpecificPermissionGrant); } -/** - * Provides operations to call the checkGrantedPermissionsForApp method. - */ -export class CheckGrantedPermissionsForAppRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckGrantedPermissionsForAppRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/checkGrantedPermissionsForApp"); - }; - /** - * Invoke action checkGrantedPermissionsForApp - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckGrantedPermissionsForAppPostResponse - */ - public post(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckGrantedPermissionsForAppPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkGrantedPermissionsForApp - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkGrantedPermissionsForAppRequestBuilder - */ - public withUrl(rawUrl: string) : CheckGrantedPermissionsForAppRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckGrantedPermissionsForAppRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/groups/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/groups/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/checkMemberGroups/index.ts b/src/groups/item/checkMemberGroups/index.ts index ef419ab2403..dcf9cd58809 100644 --- a/src/groups/item/checkMemberGroups/index.ts +++ b/src/groups/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/checkMemberObjects/index.ts b/src/groups/item/checkMemberObjects/index.ts index f7afc03a303..d53883127a7 100644 --- a/src/groups/item/checkMemberObjects/index.ts +++ b/src/groups/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/conversations/count/index.ts b/src/groups/item/conversations/count/index.ts index 083c59f3344..c3f398495f4 100644 --- a/src/groups/item/conversations/count/index.ts +++ b/src/groups/item/conversations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/index.ts b/src/groups/item/conversations/index.ts index d380e09bca5..df7f26f2850 100644 --- a/src/groups/item/conversations/index.ts +++ b/src/groups/item/conversations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationCollectionResponse } from '../../../models/'; +import { type ConversationCollectionResponse } from '../../../models'; import { createConversationFromDiscriminatorValue, deserializeIntoConversation, serializeConversation, type Conversation } from '../../../models/conversation'; import { createConversationCollectionResponseFromDiscriminatorValue } from '../../../models/conversationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConversationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/index.ts b/src/groups/item/conversations/item/index.ts index 678e1b92d7f..87a8e407e30 100644 --- a/src/groups/item/conversations/item/index.ts +++ b/src/groups/item/conversations/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Conversation } from '../../../../models/'; +import { type Conversation } from '../../../../models'; import { createConversationFromDiscriminatorValue } from '../../../../models/conversation'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ThreadsRequestBuilder } from './threads/'; +import { ThreadsRequestBuilder } from './threads'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConversationItemRequestBuilderGetQueryParameters { @@ -35,7 +35,7 @@ export class ConversationItemRequestBuilder extends BaseRequestBuilder { /** * Delete conversation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -48,10 +48,10 @@ export class ConversationItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * 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 a Promise of Conversation - * @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} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -75,7 +75,7 @@ export class ConversationItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * 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 a RequestInformation */ diff --git a/src/groups/item/conversations/item/threads/count/index.ts b/src/groups/item/conversations/item/threads/count/index.ts index d625e7ce249..1f00bfa522e 100644 --- a/src/groups/item/conversations/item/threads/count/index.ts +++ b/src/groups/item/conversations/item/threads/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/index.ts b/src/groups/item/conversations/item/threads/index.ts index 0fd58bb175c..04eaba2df2e 100644 --- a/src/groups/item/conversations/item/threads/index.ts +++ b/src/groups/item/conversations/item/threads/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationThreadCollectionResponse } from '../../../../../models/'; +import { type ConversationThreadCollectionResponse } from '../../../../../models'; import { createConversationThreadFromDiscriminatorValue, deserializeIntoConversationThread, serializeConversationThread, type ConversationThread } from '../../../../../models/conversationThread'; import { createConversationThreadCollectionResponseFromDiscriminatorValue } from '../../../../../models/conversationThreadCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationThreadItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationThreadItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ThreadsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/index.ts b/src/groups/item/conversations/item/threads/item/index.ts index 8e0066bf4e5..4761c58a9b8 100644 --- a/src/groups/item/conversations/item/threads/item/index.ts +++ b/src/groups/item/conversations/item/threads/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationThreadFromDiscriminatorValue, deserializeIntoConversationThread, serializeConversationThread, type ConversationThread } from '../../../../../../models/conversationThread'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { PostsRequestBuilder } from './posts/'; -import { ReplyRequestBuilder } from './reply/'; +import { PostsRequestBuilder } from './posts'; +import { ReplyRequestBuilder } from './reply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConversationThreadItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/posts/count/index.ts b/src/groups/item/conversations/item/threads/item/posts/count/index.ts index 646608a1f1a..fc14544bd5e 100644 --- a/src/groups/item/conversations/item/threads/item/posts/count/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/index.ts b/src/groups/item/conversations/item/threads/item/posts/index.ts index 14e7599b855..16223073009 100644 --- a/src/groups/item/conversations/item/threads/item/posts/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PostCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type PostCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPostCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/postCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PostItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PostItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PostsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/posts/item/attachments/count/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/attachments/count/index.ts index 4dca3fcdfb9..a4361cab0fe 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/attachments/count/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/item/attachments/createUploadSession/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/attachments/createUploadSession/index.ts index fdcd49c13b2..3b5d23832da 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/conversations/item/threads/item/posts/item/attachments/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/attachments/index.ts index 176822672de..214db217aa2 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/attachments/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/posts/item/attachments/item/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/attachments/item/index.ts index ad296742efc..e14ff8faba8 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/attachments/item/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/item/extensions/count/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/extensions/count/index.ts index a781227e6b4..023d5c0c15f 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/extensions/count/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/item/extensions/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/extensions/index.ts index 77a732ed120..a8134be3fc7 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/extensions/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/posts/item/extensions/item/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/extensions/item/index.ts index 42f3324aea1..1822fc84d96 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/extensions/item/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/item/forward/forwardPostRequestBody.ts b/src/groups/item/conversations/item/threads/item/posts/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 2876b9f2774..00000000000 --- a/src/groups/item/conversations/item/threads/item/posts/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/conversations/item/threads/item/posts/item/forward/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/forward/index.ts index 9d652df29e3..8919e69b7f1 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/forward/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/count/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/count/index.ts index 2323a028fe1..a8dffa6dd74 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/count/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/createUploadSession/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/createUploadSession/index.ts index ef0d610b7b2..5c4f93884f0 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/createUploadSession/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/index.ts index af94b1fcc60..ebd73d4399b 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/item/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/item/index.ts index a187b9db074..60bfe25bb86 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/item/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/count/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/count/index.ts index 80fcf7c73ca..2f158f7664b 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/count/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/index.ts index 3c708fb3488..5cbc3270666 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/item/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/item/index.ts index bdf55230688..e8a018e3008 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/item/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/forward/forwardPostRequestBody.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/forward/forwardPostRequestBody.ts deleted file mode 100644 index 3a184fe91e9..00000000000 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/forward/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/forward/index.ts index fd44053abb1..700a99325fa 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/forward/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/index.ts index 4f5872d973d..4d90fa99d60 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Post } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type Post } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createPostFromDiscriminatorValue } from '../../../../../../../../../models/post'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { ReplyRequestBuilder } from './reply/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { ReplyRequestBuilder } from './reply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InReplyToRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/index.ts index 6f181bba449..098f193bbe1 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../../../../models/post'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Post property + */ + post?: Post; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ @@ -19,10 +42,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply"); }; /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent 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. - * @see {@link https://learn.microsoft.com/graph/api/post-reply?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} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -35,7 +58,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent 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 a RequestInformation diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/replyPostRequestBody.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/replyPostRequestBody.ts deleted file mode 100644 index 469a875c9ed..00000000000 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../../../../models/post'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Post property - */ - post?: Post; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/conversations/item/threads/item/posts/item/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/index.ts index c4071debfa2..8d6288ec5bc 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Post } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type Post } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPostFromDiscriminatorValue } from '../../../../../../../../models/post'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InReplyToRequestBuilder } from './inReplyTo/'; -import { ReplyRequestBuilder } from './reply/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InReplyToRequestBuilder } from './inReplyTo'; +import { ReplyRequestBuilder } from './reply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PostItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts index 3c2a088a9a0..99220bba68a 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../../../models/post'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Post property + */ + post?: Post; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ @@ -19,10 +42,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply"); }; /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent 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. - * @see {@link https://learn.microsoft.com/graph/api/post-reply?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} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -35,7 +58,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent 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 a RequestInformation diff --git a/src/groups/item/conversations/item/threads/item/posts/item/reply/replyPostRequestBody.ts b/src/groups/item/conversations/item/threads/item/posts/item/reply/replyPostRequestBody.ts deleted file mode 100644 index 366fb9296a6..00000000000 --- a/src/groups/item/conversations/item/threads/item/posts/item/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../../../models/post'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Post property - */ - post?: Post; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/conversations/item/threads/item/reply/index.ts b/src/groups/item/conversations/item/threads/item/reply/index.ts index ecffb1ba1e5..0d9d543826b 100644 --- a/src/groups/item/conversations/item/threads/item/reply/index.ts +++ b/src/groups/item/conversations/item/threads/item/reply/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../models/post'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Post property + */ + post?: Post; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ @@ -19,10 +42,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply"); }; /** - * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -35,7 +58,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/conversations/item/threads/item/reply/replyPostRequestBody.ts b/src/groups/item/conversations/item/threads/item/reply/replyPostRequestBody.ts deleted file mode 100644 index 3a668df8372..00000000000 --- a/src/groups/item/conversations/item/threads/item/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../models/post'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Post property - */ - post?: Post; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/createdOnBehalfOf/index.ts b/src/groups/item/createdOnBehalfOf/index.ts index 3c98a0640a5..17ccd33e360 100644 --- a/src/groups/item/createdOnBehalfOf/index.ts +++ b/src/groups/item/createdOnBehalfOf/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/drive/index.ts b/src/groups/item/drive/index.ts index 20d37a2e6af..628634def12 100644 --- a/src/groups/item/drive/index.ts +++ b/src/groups/item/drive/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../models/'; +import { type Drive } from '../../../models'; import { createDriveFromDiscriminatorValue } from '../../../models/drive'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/drives/count/index.ts b/src/groups/item/drives/count/index.ts index 688d020863b..d70137fee33 100644 --- a/src/groups/item/drives/count/index.ts +++ b/src/groups/item/drives/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/drives/index.ts b/src/groups/item/drives/index.ts index c6535d45fcb..ba0c25908d3 100644 --- a/src/groups/item/drives/index.ts +++ b/src/groups/item/drives/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveCollectionResponse } from '../../../models/'; +import { type DriveCollectionResponse } from '../../../models'; import { createDriveCollectionResponseFromDiscriminatorValue } from '../../../models/driveCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DrivesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/drives/item/index.ts b/src/groups/item/drives/item/index.ts index 69bf3524bce..5694e1c40f0 100644 --- a/src/groups/item/drives/item/index.ts +++ b/src/groups/item/drives/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../models/'; +import { type Drive } from '../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../models/drive'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/count/index.ts b/src/groups/item/events/count/index.ts index f7b019eefcd..48c17a28dd4 100644 --- a/src/groups/item/events/count/index.ts +++ b/src/groups/item/events/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/delta/index.ts b/src/groups/item/events/delta/index.ts index 844e5f12a5b..214a77abb5c 100644 --- a/src/groups/item/events/delta/index.ts +++ b/src/groups/item/events/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../models/event'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/events/index.ts b/src/groups/item/events/index.ts index 59fed81438e..4bab70c63b8 100644 --- a/src/groups/item/events/index.ts +++ b/src/groups/item/events/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../models/'; +import { type EventCollectionResponse } from '../../../models'; import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../models/event'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/events/item/accept/index.ts b/src/groups/item/events/item/accept/index.ts index 18c14e26254..b5610d8248d 100644 --- a/src/groups/item/events/item/accept/index.ts +++ b/src/groups/item/events/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/attachments/count/index.ts b/src/groups/item/events/item/attachments/count/index.ts index 4b34f50ec93..b8248408417 100644 --- a/src/groups/item/events/item/attachments/count/index.ts +++ b/src/groups/item/events/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/attachments/createUploadSession/index.ts b/src/groups/item/events/item/attachments/createUploadSession/index.ts index 231a2ec815e..c88e1410394 100644 --- a/src/groups/item/events/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/events/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/attachments/index.ts b/src/groups/item/events/item/attachments/index.ts index 2b32073ce8a..2930df61c03 100644 --- a/src/groups/item/events/item/attachments/index.ts +++ b/src/groups/item/events/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/events/item/attachments/item/index.ts b/src/groups/item/events/item/attachments/item/index.ts index a69eee3f532..ae73037c064 100644 --- a/src/groups/item/events/item/attachments/item/index.ts +++ b/src/groups/item/events/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../models/'; +import { type Attachment } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/calendar/index.ts b/src/groups/item/events/item/calendar/index.ts index 552dd21be9b..c7cde80855a 100644 --- a/src/groups/item/events/item/calendar/index.ts +++ b/src/groups/item/events/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../models/'; +import { type Calendar } from '../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../models/calendar'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/cancel/cancelPostRequestBody.ts b/src/groups/item/events/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/groups/item/events/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/events/item/cancel/index.ts b/src/groups/item/events/item/cancel/index.ts index d59b35977f2..bf8f12a16c5 100644 --- a/src/groups/item/events/item/cancel/index.ts +++ b/src/groups/item/events/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/groups/item/events/item/decline/index.ts b/src/groups/item/events/item/decline/index.ts index d3d1f046223..b720cc715fa 100644 --- a/src/groups/item/events/item/decline/index.ts +++ b/src/groups/item/events/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/dismissReminder/index.ts b/src/groups/item/events/item/dismissReminder/index.ts index c04013706ea..eba785dd16e 100644 --- a/src/groups/item/events/item/dismissReminder/index.ts +++ b/src/groups/item/events/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/extensions/count/index.ts b/src/groups/item/events/item/extensions/count/index.ts index c95a2542e0d..bb6e1ae0218 100644 --- a/src/groups/item/events/item/extensions/count/index.ts +++ b/src/groups/item/events/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/extensions/index.ts b/src/groups/item/events/item/extensions/index.ts index c4ae75400e9..0a7896e69f6 100644 --- a/src/groups/item/events/item/extensions/index.ts +++ b/src/groups/item/events/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/events/item/extensions/item/index.ts b/src/groups/item/events/item/extensions/item/index.ts index 7373736d822..b6c4278c748 100644 --- a/src/groups/item/events/item/extensions/item/index.ts +++ b/src/groups/item/events/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/forward/forwardPostRequestBody.ts b/src/groups/item/events/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 5b7e40ebb5d..00000000000 --- a/src/groups/item/events/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/events/item/forward/index.ts b/src/groups/item/events/item/forward/index.ts index a0468b07024..1d4a224de97 100644 --- a/src/groups/item/events/item/forward/index.ts +++ b/src/groups/item/events/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/events/item/index.ts b/src/groups/item/events/item/index.ts index cb219c5f45a..5a970f0659e 100644 --- a/src/groups/item/events/item/index.ts +++ b/src/groups/item/events/item/index.ts @@ -2,19 +2,19 @@ // eslint-disable // Generated by Microsoft Kiota import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../models/event'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/events/item/instances/count/index.ts b/src/groups/item/events/item/instances/count/index.ts index 88d2f1b262c..18f36cf61d7 100644 --- a/src/groups/item/events/item/instances/count/index.ts +++ b/src/groups/item/events/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/instances/delta/index.ts b/src/groups/item/events/item/instances/delta/index.ts index 5a937c50342..66550219c49 100644 --- a/src/groups/item/events/item/instances/delta/index.ts +++ b/src/groups/item/events/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/instances/index.ts b/src/groups/item/events/item/instances/index.ts index c0c8c4caab2..f4c6ccc409a 100644 --- a/src/groups/item/events/item/instances/index.ts +++ b/src/groups/item/events/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/events/item/instances/item/accept/index.ts b/src/groups/item/events/item/instances/item/accept/index.ts index 983847bf3f0..b5610d8248d 100644 --- a/src/groups/item/events/item/instances/item/accept/index.ts +++ b/src/groups/item/events/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/instances/item/attachments/count/index.ts b/src/groups/item/events/item/instances/item/attachments/count/index.ts index 83d54214764..6d833ab67d3 100644 --- a/src/groups/item/events/item/instances/item/attachments/count/index.ts +++ b/src/groups/item/events/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/instances/item/attachments/createUploadSession/index.ts b/src/groups/item/events/item/instances/item/attachments/createUploadSession/index.ts index 5b0d289000d..a5ffe1180dc 100644 --- a/src/groups/item/events/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/events/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/instances/item/attachments/index.ts b/src/groups/item/events/item/instances/item/attachments/index.ts index 5153246657d..113ce296de6 100644 --- a/src/groups/item/events/item/instances/item/attachments/index.ts +++ b/src/groups/item/events/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/events/item/instances/item/attachments/item/index.ts b/src/groups/item/events/item/instances/item/attachments/item/index.ts index cf72cb23cd4..1b36997000e 100644 --- a/src/groups/item/events/item/instances/item/attachments/item/index.ts +++ b/src/groups/item/events/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/instances/item/calendar/index.ts b/src/groups/item/events/item/instances/item/calendar/index.ts index 1651a0977cb..2a1ce2208c5 100644 --- a/src/groups/item/events/item/instances/item/calendar/index.ts +++ b/src/groups/item/events/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../models/'; +import { type Calendar } from '../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/instances/item/cancel/cancelPostRequestBody.ts b/src/groups/item/events/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/groups/item/events/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/events/item/instances/item/cancel/index.ts b/src/groups/item/events/item/instances/item/cancel/index.ts index c098ee4bac6..783c2848de2 100644 --- a/src/groups/item/events/item/instances/item/cancel/index.ts +++ b/src/groups/item/events/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/groups/item/events/item/instances/item/decline/index.ts b/src/groups/item/events/item/instances/item/decline/index.ts index 8f42381cd23..c72ae82357a 100644 --- a/src/groups/item/events/item/instances/item/decline/index.ts +++ b/src/groups/item/events/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/instances/item/dismissReminder/index.ts b/src/groups/item/events/item/instances/item/dismissReminder/index.ts index 214e8cf4bfc..b1909795fa7 100644 --- a/src/groups/item/events/item/instances/item/dismissReminder/index.ts +++ b/src/groups/item/events/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/instances/item/extensions/count/index.ts b/src/groups/item/events/item/instances/item/extensions/count/index.ts index 5b5423f5733..37f55b367dd 100644 --- a/src/groups/item/events/item/instances/item/extensions/count/index.ts +++ b/src/groups/item/events/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/instances/item/extensions/index.ts b/src/groups/item/events/item/instances/item/extensions/index.ts index 817671e61fa..e68de333b3c 100644 --- a/src/groups/item/events/item/instances/item/extensions/index.ts +++ b/src/groups/item/events/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/events/item/instances/item/extensions/item/index.ts b/src/groups/item/events/item/instances/item/extensions/item/index.ts index d23d8df5383..827bd747b34 100644 --- a/src/groups/item/events/item/instances/item/extensions/item/index.ts +++ b/src/groups/item/events/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/events/item/instances/item/forward/forwardPostRequestBody.ts b/src/groups/item/events/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 1fd7eb4c631..00000000000 --- a/src/groups/item/events/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/events/item/instances/item/forward/index.ts b/src/groups/item/events/item/instances/item/forward/index.ts index 74eec11b160..0de64caf6ab 100644 --- a/src/groups/item/events/item/instances/item/forward/index.ts +++ b/src/groups/item/events/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/events/item/instances/item/index.ts b/src/groups/item/events/item/instances/item/index.ts index 0cb40f7170f..e159e3aeb72 100644 --- a/src/groups/item/events/item/instances/item/index.ts +++ b/src/groups/item/events/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../models/'; +import { type Event } from '../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/events/item/instances/item/snoozeReminder/index.ts b/src/groups/item/events/item/instances/item/snoozeReminder/index.ts index 3156420ef83..b1b074b9a13 100644 --- a/src/groups/item/events/item/instances/item/snoozeReminder/index.ts +++ b/src/groups/item/events/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/instances/item/tentativelyAccept/index.ts b/src/groups/item/events/item/instances/item/tentativelyAccept/index.ts index ca2278ce1f8..6acaf0967b7 100644 --- a/src/groups/item/events/item/instances/item/tentativelyAccept/index.ts +++ b/src/groups/item/events/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/snoozeReminder/index.ts b/src/groups/item/events/item/snoozeReminder/index.ts index 8b9efb8ec2a..8564e8fef21 100644 --- a/src/groups/item/events/item/snoozeReminder/index.ts +++ b/src/groups/item/events/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/events/item/tentativelyAccept/index.ts b/src/groups/item/events/item/tentativelyAccept/index.ts index 18aaaccf2c2..4f019247951 100644 --- a/src/groups/item/events/item/tentativelyAccept/index.ts +++ b/src/groups/item/events/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/extensions/count/index.ts b/src/groups/item/extensions/count/index.ts index 3d483960b5e..793181fcec5 100644 --- a/src/groups/item/extensions/count/index.ts +++ b/src/groups/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/extensions/index.ts b/src/groups/item/extensions/index.ts index 48c0ee41d99..b002f082802 100644 --- a/src/groups/item/extensions/index.ts +++ b/src/groups/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../models/'; +import { type ExtensionCollectionResponse } from '../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/extensions/item/index.ts b/src/groups/item/extensions/item/index.ts index 19fe28d565c..d078e195cfd 100644 --- a/src/groups/item/extensions/item/index.ts +++ b/src/groups/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../models/extension'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/groups/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/groups/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/getMemberGroups/index.ts b/src/groups/item/getMemberGroups/index.ts index fbe596299d5..e7344ba5741 100644 --- a/src/groups/item/getMemberGroups/index.ts +++ b/src/groups/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/getMemberObjects/index.ts b/src/groups/item/getMemberObjects/index.ts index 041962992c2..1d90b3647dc 100644 --- a/src/groups/item/getMemberObjects/index.ts +++ b/src/groups/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/groupLifecyclePolicies/count/index.ts b/src/groups/item/groupLifecyclePolicies/count/index.ts index 1aeecfd7380..2690fe69468 100644 --- a/src/groups/item/groupLifecyclePolicies/count/index.ts +++ b/src/groups/item/groupLifecyclePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/groupLifecyclePolicies/index.ts b/src/groups/item/groupLifecyclePolicies/index.ts index 56d7a62a491..cb860827b97 100644 --- a/src/groups/item/groupLifecyclePolicies/index.ts +++ b/src/groups/item/groupLifecyclePolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupLifecyclePolicyCollectionResponse } from '../../../models/'; +import { type GroupLifecyclePolicyCollectionResponse } from '../../../models'; import { createGroupLifecyclePolicyFromDiscriminatorValue, deserializeIntoGroupLifecyclePolicy, serializeGroupLifecyclePolicy, type GroupLifecyclePolicy } from '../../../models/groupLifecyclePolicy'; import { createGroupLifecyclePolicyCollectionResponseFromDiscriminatorValue } from '../../../models/groupLifecyclePolicyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GroupLifecyclePolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GroupLifecyclePolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupLifecyclePoliciesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/groupLifecyclePolicies/item/addGroup/index.ts b/src/groups/item/groupLifecyclePolicies/item/addGroup/index.ts index 8f488f3aa64..aba6090af08 100644 --- a/src/groups/item/groupLifecyclePolicies/item/addGroup/index.ts +++ b/src/groups/item/groupLifecyclePolicies/item/addGroup/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -15,94 +13,18 @@ export interface AddGroupPostRequestBody extends AdditionalDataHolder, Parsable */ groupId?: string; } -export interface AddGroupPostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} export function createAddGroupPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddGroupPostRequestBody; } -export function createAddGroupPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddGroupPostResponse; -} export function deserializeIntoAddGroupPostRequestBody(addGroupPostRequestBody: AddGroupPostRequestBody | undefined = {} as AddGroupPostRequestBody) : Record void> { return { "groupId": n => { addGroupPostRequestBody.groupId = n.getStringValue(); }, } } -export function deserializeIntoAddGroupPostResponse(addGroupPostResponse: AddGroupPostResponse | undefined = {} as AddGroupPostResponse) : Record void> { - return { - "value": n => { addGroupPostResponse.value = n.getBooleanValue(); }, - } -} export function serializeAddGroupPostRequestBody(writer: SerializationWriter, addGroupPostRequestBody: AddGroupPostRequestBody | undefined = {} as AddGroupPostRequestBody) : void { writer.writeStringValue("groupId", addGroupPostRequestBody.groupId); writer.writeAdditionalData(addGroupPostRequestBody.additionalData); } -export function serializeAddGroupPostResponse(writer: SerializationWriter, addGroupPostResponse: AddGroupPostResponse | undefined = {} as AddGroupPostResponse) : void { - writer.writeBooleanValue("value", addGroupPostResponse.value); - writer.writeAdditionalData(addGroupPostResponse.additionalData); -} -/** - * Provides operations to call the addGroup method. - */ -export class AddGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup"); - }; - /** - * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddGroupPostResponse - * @see {@link https://learn.microsoft.com/graph/api/grouplifecyclepolicy-addgroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddGroupPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addGroupRequestBuilder - */ - public withUrl(rawUrl: string) : AddGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/groupLifecyclePolicies/item/index.ts b/src/groups/item/groupLifecyclePolicies/item/index.ts index 1abdab15ac1..54781c05cb7 100644 --- a/src/groups/item/groupLifecyclePolicies/item/index.ts +++ b/src/groups/item/groupLifecyclePolicies/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createGroupLifecyclePolicyFromDiscriminatorValue, deserializeIntoGroupLifecyclePolicy, serializeGroupLifecyclePolicy, type GroupLifecyclePolicy } from '../../../../models/groupLifecyclePolicy'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AddGroupRequestBuilder } from './addGroup/'; -import { RemoveGroupRequestBuilder } from './removeGroup/'; +import { AddGroupRequestBuilder } from './addGroup'; +import { RemoveGroupRequestBuilder } from './removeGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupLifecyclePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/groupLifecyclePolicies/item/removeGroup/index.ts b/src/groups/item/groupLifecyclePolicies/item/removeGroup/index.ts index 30c763e78ec..6c8b7ec48d8 100644 --- a/src/groups/item/groupLifecyclePolicies/item/removeGroup/index.ts +++ b/src/groups/item/groupLifecyclePolicies/item/removeGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createRemoveGroupPostResponseFromDiscriminatorValue, deserializeIntoRemoveGroupPostResponse, serializeRemoveGroupPostResponse, type RemoveGroupPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRemoveGroupPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeRemoveGroupPostRequestBody(writer: SerializationWriter, writer.writeStringValue("groupId", removeGroupPostRequestBody.groupId); writer.writeAdditionalData(removeGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the removeGroup method. - */ -export class RemoveGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RemoveGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/removeGroup"); - }; - /** - * Removes a group from a lifecycle policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of RemoveGroupPostResponse - * @see {@link https://learn.microsoft.com/graph/api/grouplifecyclepolicy-removegroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: RemoveGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createRemoveGroupPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Removes a group from a lifecycle policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: RemoveGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRemoveGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a removeGroupRequestBuilder - */ - public withUrl(rawUrl: string) : RemoveGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RemoveGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/groupLifecyclePolicies/item/removeGroup/removeGroupPostResponse.ts b/src/groups/item/groupLifecyclePolicies/item/removeGroup/removeGroupPostResponse.ts deleted file mode 100644 index 7ea8b6f4196..00000000000 --- a/src/groups/item/groupLifecyclePolicies/item/removeGroup/removeGroupPostResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRemoveGroupPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemoveGroupPostResponse; -} -export function deserializeIntoRemoveGroupPostResponse(removeGroupPostResponse: RemoveGroupPostResponse | undefined = {} as RemoveGroupPostResponse) : Record void> { - return { - "value": n => { removeGroupPostResponse.value = n.getBooleanValue(); }, - } -} -export interface RemoveGroupPostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeRemoveGroupPostResponse(writer: SerializationWriter, removeGroupPostResponse: RemoveGroupPostResponse | undefined = {} as RemoveGroupPostResponse) : void { - writer.writeBooleanValue("value", removeGroupPostResponse.value); - writer.writeAdditionalData(removeGroupPostResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/index.ts b/src/groups/item/index.ts index 62f727c26bf..0344e5e13a9 100644 --- a/src/groups/item/index.ts +++ b/src/groups/item/index.ts @@ -2,51 +2,51 @@ // eslint-disable // Generated by Microsoft Kiota import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../models/group'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AcceptedSendersRequestBuilder } from './acceptedSenders/'; -import { AddFavoriteRequestBuilder } from './addFavorite/'; -import { AppRoleAssignmentsRequestBuilder } from './appRoleAssignments/'; -import { AssignLicenseRequestBuilder } from './assignLicense/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CalendarViewRequestBuilder } from './calendarView/'; -import { CheckGrantedPermissionsForAppRequestBuilder } from './checkGrantedPermissionsForApp/'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { ConversationsRequestBuilder } from './conversations/'; -import { CreatedOnBehalfOfRequestBuilder } from './createdOnBehalfOf/'; -import { DriveRequestBuilder } from './drive/'; -import { DrivesRequestBuilder } from './drives/'; -import { EventsRequestBuilder } from './events/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { GroupLifecyclePoliciesRequestBuilder } from './groupLifecyclePolicies/'; -import { MemberOfRequestBuilder } from './memberOf/'; -import { MembersRequestBuilder } from './members/'; -import { MembersWithLicenseErrorsRequestBuilder } from './membersWithLicenseErrors/'; -import { OnenoteRequestBuilder } from './onenote/'; -import { OwnersRequestBuilder } from './owners/'; -import { PermissionGrantsRequestBuilder } from './permissionGrants/'; -import { PhotoRequestBuilder } from './photo/'; -import { PhotosRequestBuilder } from './photos/'; -import { PlannerRequestBuilder } from './planner/'; -import { RejectedSendersRequestBuilder } from './rejectedSenders/'; -import { RemoveFavoriteRequestBuilder } from './removeFavorite/'; -import { RenewRequestBuilder } from './renew/'; -import { ResetUnseenCountRequestBuilder } from './resetUnseenCount/'; -import { RestoreRequestBuilder } from './restore/'; -import { RetryServiceProvisioningRequestBuilder } from './retryServiceProvisioning/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; -import { SettingsRequestBuilder } from './settings/'; -import { SitesRequestBuilder } from './sites/'; -import { SubscribeByMailRequestBuilder } from './subscribeByMail/'; -import { TeamRequestBuilder } from './team/'; -import { ThreadsRequestBuilder } from './threads/'; -import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf/'; -import { TransitiveMembersRequestBuilder } from './transitiveMembers/'; -import { UnsubscribeByMailRequestBuilder } from './unsubscribeByMail/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { AcceptedSendersRequestBuilder } from './acceptedSenders'; +import { AddFavoriteRequestBuilder } from './addFavorite'; +import { AppRoleAssignmentsRequestBuilder } from './appRoleAssignments'; +import { AssignLicenseRequestBuilder } from './assignLicense'; +import { CalendarRequestBuilder } from './calendar'; +import { CalendarViewRequestBuilder } from './calendarView'; +import { CheckGrantedPermissionsForAppRequestBuilder } from './checkGrantedPermissionsForApp'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { ConversationsRequestBuilder } from './conversations'; +import { CreatedOnBehalfOfRequestBuilder } from './createdOnBehalfOf'; +import { DriveRequestBuilder } from './drive'; +import { DrivesRequestBuilder } from './drives'; +import { EventsRequestBuilder } from './events'; +import { ExtensionsRequestBuilder } from './extensions'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { GroupLifecyclePoliciesRequestBuilder } from './groupLifecyclePolicies'; +import { MemberOfRequestBuilder } from './memberOf'; +import { MembersRequestBuilder } from './members'; +import { MembersWithLicenseErrorsRequestBuilder } from './membersWithLicenseErrors'; +import { OnenoteRequestBuilder } from './onenote'; +import { OwnersRequestBuilder } from './owners'; +import { PermissionGrantsRequestBuilder } from './permissionGrants'; +import { PhotoRequestBuilder } from './photo'; +import { PhotosRequestBuilder } from './photos'; +import { PlannerRequestBuilder } from './planner'; +import { RejectedSendersRequestBuilder } from './rejectedSenders'; +import { RemoveFavoriteRequestBuilder } from './removeFavorite'; +import { RenewRequestBuilder } from './renew'; +import { ResetUnseenCountRequestBuilder } from './resetUnseenCount'; +import { RestoreRequestBuilder } from './restore'; +import { RetryServiceProvisioningRequestBuilder } from './retryServiceProvisioning'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; +import { SettingsRequestBuilder } from './settings'; +import { SitesRequestBuilder } from './sites'; +import { SubscribeByMailRequestBuilder } from './subscribeByMail'; +import { TeamRequestBuilder } from './team'; +import { ThreadsRequestBuilder } from './threads'; +import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf'; +import { TransitiveMembersRequestBuilder } from './transitiveMembers'; +import { UnsubscribeByMailRequestBuilder } from './unsubscribeByMail'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupItemRequestBuilderGetQueryParameters { @@ -361,11 +361,11 @@ export class GroupItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createGroupFromDiscriminatorValue, errorMapping); }; /** - * Update the properties of a group object. + * Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Group - * @see {@link https://learn.microsoft.com/graph/api/group-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/group-post-members?view=graph-rest-1.0|Find more info here} */ public patch(body: Group, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -400,7 +400,7 @@ export class GroupItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the properties of a group object. + * Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/memberOf/count/index.ts b/src/groups/item/memberOf/count/index.ts index f9285530326..1677b42898d 100644 --- a/src/groups/item/memberOf/count/index.ts +++ b/src/groups/item/memberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/memberOf/graphAdministrativeUnit/count/index.ts b/src/groups/item/memberOf/graphAdministrativeUnit/count/index.ts index 031f7c0faf2..248c60227a2 100644 --- a/src/groups/item/memberOf/graphAdministrativeUnit/count/index.ts +++ b/src/groups/item/memberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/memberOf/graphAdministrativeUnit/index.ts b/src/groups/item/memberOf/graphAdministrativeUnit/index.ts index 994c6b2521c..45875b9ee7d 100644 --- a/src/groups/item/memberOf/graphAdministrativeUnit/index.ts +++ b/src/groups/item/memberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/groups/item/memberOf/graphGroup/count/index.ts b/src/groups/item/memberOf/graphGroup/count/index.ts index bc64957ac08..a6a7d31924d 100644 --- a/src/groups/item/memberOf/graphGroup/count/index.ts +++ b/src/groups/item/memberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/memberOf/graphGroup/index.ts b/src/groups/item/memberOf/graphGroup/index.ts index 7d75833ce5f..a0a54027be5 100644 --- a/src/groups/item/memberOf/graphGroup/index.ts +++ b/src/groups/item/memberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/memberOf/index.ts b/src/groups/item/memberOf/index.ts index 02d64ab13a9..94ea3844c97 100644 --- a/src/groups/item/memberOf/index.ts +++ b/src/groups/item/memberOf/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MemberOfRequestBuilderGetQueryParameters { diff --git a/src/groups/item/memberOf/item/graphAdministrativeUnit/index.ts b/src/groups/item/memberOf/item/graphAdministrativeUnit/index.ts index 7e3c06f8569..364b084636f 100644 --- a/src/groups/item/memberOf/item/graphAdministrativeUnit/index.ts +++ b/src/groups/item/memberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/memberOf/item/graphGroup/index.ts b/src/groups/item/memberOf/item/graphGroup/index.ts index 614a9505f55..6b36ad2420f 100644 --- a/src/groups/item/memberOf/item/graphGroup/index.ts +++ b/src/groups/item/memberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/memberOf/item/index.ts b/src/groups/item/memberOf/item/index.ts index 845bafac34f..1b78f92fa31 100644 --- a/src/groups/item/memberOf/item/index.ts +++ b/src/groups/item/memberOf/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/members/count/index.ts b/src/groups/item/members/count/index.ts index e0935c3b6ae..24ffdcb1acf 100644 --- a/src/groups/item/members/count/index.ts +++ b/src/groups/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/graphApplication/count/index.ts b/src/groups/item/members/graphApplication/count/index.ts index a514d6780a8..b9c03d0fd7d 100644 --- a/src/groups/item/members/graphApplication/count/index.ts +++ b/src/groups/item/members/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/graphApplication/index.ts b/src/groups/item/members/graphApplication/index.ts index a6505c8af60..4f0f08c0186 100644 --- a/src/groups/item/members/graphApplication/index.ts +++ b/src/groups/item/members/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../../models/'; +import { type ApplicationCollectionResponse } from '../../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/groups/item/members/graphDevice/count/index.ts b/src/groups/item/members/graphDevice/count/index.ts index 9655bf5d998..5dd7d4e7280 100644 --- a/src/groups/item/members/graphDevice/count/index.ts +++ b/src/groups/item/members/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/graphDevice/index.ts b/src/groups/item/members/graphDevice/index.ts index 1fdf9ad7bbf..2d618bb65d2 100644 --- a/src/groups/item/members/graphDevice/index.ts +++ b/src/groups/item/members/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../../models/'; +import { type DeviceCollectionResponse } from '../../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/groups/item/members/graphGroup/count/index.ts b/src/groups/item/members/graphGroup/count/index.ts index 36129f19660..07bcd37d1d4 100644 --- a/src/groups/item/members/graphGroup/count/index.ts +++ b/src/groups/item/members/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/graphGroup/index.ts b/src/groups/item/members/graphGroup/index.ts index 5d4948a2f02..6d2926f423e 100644 --- a/src/groups/item/members/graphGroup/index.ts +++ b/src/groups/item/members/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/members/graphOrgContact/count/index.ts b/src/groups/item/members/graphOrgContact/count/index.ts index 8183053a896..cea8e9c736e 100644 --- a/src/groups/item/members/graphOrgContact/count/index.ts +++ b/src/groups/item/members/graphOrgContact/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/graphOrgContact/index.ts b/src/groups/item/members/graphOrgContact/index.ts index f7604f3e59a..51d321a089d 100644 --- a/src/groups/item/members/graphOrgContact/index.ts +++ b/src/groups/item/members/graphOrgContact/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../../../../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphOrgContactRequestBuilderGetQueryParameters { diff --git a/src/groups/item/members/graphServicePrincipal/count/index.ts b/src/groups/item/members/graphServicePrincipal/count/index.ts index c1fe65ab30a..346b1e6d56e 100644 --- a/src/groups/item/members/graphServicePrincipal/count/index.ts +++ b/src/groups/item/members/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/graphServicePrincipal/index.ts b/src/groups/item/members/graphServicePrincipal/index.ts index 148f2911e3e..1b8cb542805 100644 --- a/src/groups/item/members/graphServicePrincipal/index.ts +++ b/src/groups/item/members/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/groups/item/members/graphUser/count/index.ts b/src/groups/item/members/graphUser/count/index.ts index 5714fc2b24f..81df2a387ce 100644 --- a/src/groups/item/members/graphUser/count/index.ts +++ b/src/groups/item/members/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/graphUser/index.ts b/src/groups/item/members/graphUser/index.ts index a847917e00f..ee7252b4841 100644 --- a/src/groups/item/members/graphUser/index.ts +++ b/src/groups/item/members/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/members/index.ts b/src/groups/item/members/index.ts index 8c7e077c9cd..c48f07638f6 100644 --- a/src/groups/item/members/index.ts +++ b/src/groups/item/members/index.ts @@ -1,19 +1,19 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/members/item/graphApplication/index.ts b/src/groups/item/members/item/graphApplication/index.ts index 760025e0400..02a89181354 100644 --- a/src/groups/item/members/item/graphApplication/index.ts +++ b/src/groups/item/members/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../../models/'; +import { type Application } from '../../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../../models/application'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/item/graphDevice/index.ts b/src/groups/item/members/item/graphDevice/index.ts index e14f825d153..c78880c5f0b 100644 --- a/src/groups/item/members/item/graphDevice/index.ts +++ b/src/groups/item/members/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../models/'; +import { type Device } from '../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../models/device'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/item/graphGroup/index.ts b/src/groups/item/members/item/graphGroup/index.ts index 0b051cb7d76..13e2581d593 100644 --- a/src/groups/item/members/item/graphGroup/index.ts +++ b/src/groups/item/members/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/item/graphOrgContact/index.ts b/src/groups/item/members/item/graphOrgContact/index.ts index 5383b07fcd8..d6b1c35964a 100644 --- a/src/groups/item/members/item/graphOrgContact/index.ts +++ b/src/groups/item/members/item/graphOrgContact/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContact } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OrgContact } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue } from '../../../../../models/orgContact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/item/graphServicePrincipal/index.ts b/src/groups/item/members/item/graphServicePrincipal/index.ts index 2c6b7ec74a0..bdbbd6b2c91 100644 --- a/src/groups/item/members/item/graphServicePrincipal/index.ts +++ b/src/groups/item/members/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/item/graphUser/index.ts b/src/groups/item/members/item/graphUser/index.ts index 7e0a60446af..78caf464579 100644 --- a/src/groups/item/members/item/graphUser/index.ts +++ b/src/groups/item/members/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/item/index.ts b/src/groups/item/members/item/index.ts index 8c377c92cb2..748aeb6f1e0 100644 --- a/src/groups/item/members/item/index.ts +++ b/src/groups/item/members/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RefRequestBuilder } from './ref/'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/groups/item/members/item/ref/index.ts b/src/groups/item/members/item/ref/index.ts index 95246fb2bae..416f1916c2a 100644 --- a/src/groups/item/members/item/ref/index.ts +++ b/src/groups/item/members/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/members/ref/index.ts b/src/groups/item/members/ref/index.ts index 9deebcf205c..9aa9f89f46a 100644 --- a/src/groups/item/members/ref/index.ts +++ b/src/groups/item/members/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/groups/item/membersWithLicenseErrors/count/index.ts b/src/groups/item/membersWithLicenseErrors/count/index.ts index 5dcef3dd7a1..88661df78de 100644 --- a/src/groups/item/membersWithLicenseErrors/count/index.ts +++ b/src/groups/item/membersWithLicenseErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/graphApplication/count/index.ts b/src/groups/item/membersWithLicenseErrors/graphApplication/count/index.ts index 7dd6c7d4ef8..eb081d19068 100644 --- a/src/groups/item/membersWithLicenseErrors/graphApplication/count/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/graphApplication/index.ts b/src/groups/item/membersWithLicenseErrors/graphApplication/index.ts index fb4d76f75f8..aa75d1fd9cd 100644 --- a/src/groups/item/membersWithLicenseErrors/graphApplication/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../../models/'; +import { type ApplicationCollectionResponse } from '../../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/groups/item/membersWithLicenseErrors/graphDevice/count/index.ts b/src/groups/item/membersWithLicenseErrors/graphDevice/count/index.ts index 4b8eb2ccc22..b05865251c2 100644 --- a/src/groups/item/membersWithLicenseErrors/graphDevice/count/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/graphDevice/index.ts b/src/groups/item/membersWithLicenseErrors/graphDevice/index.ts index 338175f9dd0..73064ef5420 100644 --- a/src/groups/item/membersWithLicenseErrors/graphDevice/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../../models/'; +import { type DeviceCollectionResponse } from '../../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/groups/item/membersWithLicenseErrors/graphGroup/count/index.ts b/src/groups/item/membersWithLicenseErrors/graphGroup/count/index.ts index 755cc79ef07..bba0f69a426 100644 --- a/src/groups/item/membersWithLicenseErrors/graphGroup/count/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/graphGroup/index.ts b/src/groups/item/membersWithLicenseErrors/graphGroup/index.ts index 02953b21283..3b2575ba8b4 100644 --- a/src/groups/item/membersWithLicenseErrors/graphGroup/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/membersWithLicenseErrors/graphOrgContact/count/index.ts b/src/groups/item/membersWithLicenseErrors/graphOrgContact/count/index.ts index f6670622f9a..8cf130dcdad 100644 --- a/src/groups/item/membersWithLicenseErrors/graphOrgContact/count/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphOrgContact/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/graphOrgContact/index.ts b/src/groups/item/membersWithLicenseErrors/graphOrgContact/index.ts index 75349c174cb..7365660aa71 100644 --- a/src/groups/item/membersWithLicenseErrors/graphOrgContact/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphOrgContact/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../../../../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphOrgContactRequestBuilderGetQueryParameters { diff --git a/src/groups/item/membersWithLicenseErrors/graphServicePrincipal/count/index.ts b/src/groups/item/membersWithLicenseErrors/graphServicePrincipal/count/index.ts index 2fd85ab827a..753cc2284fa 100644 --- a/src/groups/item/membersWithLicenseErrors/graphServicePrincipal/count/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/graphServicePrincipal/index.ts b/src/groups/item/membersWithLicenseErrors/graphServicePrincipal/index.ts index f19ccf098eb..e324fba7052 100644 --- a/src/groups/item/membersWithLicenseErrors/graphServicePrincipal/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/groups/item/membersWithLicenseErrors/graphUser/count/index.ts b/src/groups/item/membersWithLicenseErrors/graphUser/count/index.ts index a10ec6ca4e7..0f52e95457a 100644 --- a/src/groups/item/membersWithLicenseErrors/graphUser/count/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/graphUser/index.ts b/src/groups/item/membersWithLicenseErrors/graphUser/index.ts index fa386827436..b98779b2e8a 100644 --- a/src/groups/item/membersWithLicenseErrors/graphUser/index.ts +++ b/src/groups/item/membersWithLicenseErrors/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/membersWithLicenseErrors/index.ts b/src/groups/item/membersWithLicenseErrors/index.ts index 539435dca7c..3bfd509638f 100644 --- a/src/groups/item/membersWithLicenseErrors/index.ts +++ b/src/groups/item/membersWithLicenseErrors/index.ts @@ -1,18 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersWithLicenseErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/membersWithLicenseErrors/item/graphApplication/index.ts b/src/groups/item/membersWithLicenseErrors/item/graphApplication/index.ts index 4c46df04ef3..d2851c73511 100644 --- a/src/groups/item/membersWithLicenseErrors/item/graphApplication/index.ts +++ b/src/groups/item/membersWithLicenseErrors/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../../models/'; +import { type Application } from '../../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../../models/application'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/item/graphDevice/index.ts b/src/groups/item/membersWithLicenseErrors/item/graphDevice/index.ts index f14a61bb50f..810cfec63a3 100644 --- a/src/groups/item/membersWithLicenseErrors/item/graphDevice/index.ts +++ b/src/groups/item/membersWithLicenseErrors/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../models/'; +import { type Device } from '../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../models/device'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/item/graphGroup/index.ts b/src/groups/item/membersWithLicenseErrors/item/graphGroup/index.ts index 888cb7c61ff..823d9687690 100644 --- a/src/groups/item/membersWithLicenseErrors/item/graphGroup/index.ts +++ b/src/groups/item/membersWithLicenseErrors/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/item/graphOrgContact/index.ts b/src/groups/item/membersWithLicenseErrors/item/graphOrgContact/index.ts index a183b544d8b..7178f3641f8 100644 --- a/src/groups/item/membersWithLicenseErrors/item/graphOrgContact/index.ts +++ b/src/groups/item/membersWithLicenseErrors/item/graphOrgContact/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContact } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OrgContact } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue } from '../../../../../models/orgContact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/item/graphServicePrincipal/index.ts b/src/groups/item/membersWithLicenseErrors/item/graphServicePrincipal/index.ts index 2261ffad5a6..3028d06738e 100644 --- a/src/groups/item/membersWithLicenseErrors/item/graphServicePrincipal/index.ts +++ b/src/groups/item/membersWithLicenseErrors/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/item/graphUser/index.ts b/src/groups/item/membersWithLicenseErrors/item/graphUser/index.ts index 8fb24784f23..67d66c03205 100644 --- a/src/groups/item/membersWithLicenseErrors/item/graphUser/index.ts +++ b/src/groups/item/membersWithLicenseErrors/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/membersWithLicenseErrors/item/index.ts b/src/groups/item/membersWithLicenseErrors/item/index.ts index eeae95358ee..4717c3f9ec1 100644 --- a/src/groups/item/membersWithLicenseErrors/item/index.ts +++ b/src/groups/item/membersWithLicenseErrors/item/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/index.ts b/src/groups/item/onenote/index.ts index 0725523029f..a49351c0861 100644 --- a/src/groups/item/onenote/index.ts +++ b/src/groups/item/onenote/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOnenoteFromDiscriminatorValue, deserializeIntoOnenote, serializeOnenote, type Onenote } from '../../../models/onenote'; -import { NotebooksRequestBuilder } from './notebooks/'; -import { OperationsRequestBuilder } from './operations/'; -import { PagesRequestBuilder } from './pages/'; -import { ResourcesRequestBuilder } from './resources/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { NotebooksRequestBuilder } from './notebooks'; +import { OperationsRequestBuilder } from './operations'; +import { PagesRequestBuilder } from './pages'; +import { ResourcesRequestBuilder } from './resources'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/count/index.ts b/src/groups/item/onenote/notebooks/count/index.ts index 42056f87e65..8a097537211 100644 --- a/src/groups/item/onenote/notebooks/count/index.ts +++ b/src/groups/item/onenote/notebooks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts b/src/groups/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts deleted file mode 100644 index 5de000d11c3..00000000000 --- a/src/groups/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetNotebookFromWebUrlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetNotebookFromWebUrlPostRequestBody; -} -export function deserializeIntoGetNotebookFromWebUrlPostRequestBody(getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : Record void> { - return { - "webUrl": n => { getNotebookFromWebUrlPostRequestBody.webUrl = n.getStringValue(); }, - } -} -export interface GetNotebookFromWebUrlPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The webUrl property - */ - webUrl?: string; -} -export function serializeGetNotebookFromWebUrlPostRequestBody(writer: SerializationWriter, getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : void { - writer.writeStringValue("webUrl", getNotebookFromWebUrlPostRequestBody.webUrl); - writer.writeAdditionalData(getNotebookFromWebUrlPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/notebooks/getNotebookFromWebUrl/index.ts b/src/groups/item/onenote/notebooks/getNotebookFromWebUrl/index.ts index eb69a079930..280833d5723 100644 --- a/src/groups/item/onenote/notebooks/getNotebookFromWebUrl/index.ts +++ b/src/groups/item/onenote/notebooks/getNotebookFromWebUrl/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createCopyNotebookModelFromDiscriminatorValue, deserializeIntoCopyNotebookModel, serializeCopyNotebookModel, type CopyNotebookModel } from '../../../../../models/copyNotebookModel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetNotebookFromWebUrlPostRequestBody, serializeGetNotebookFromWebUrlPostRequestBody, type GetNotebookFromWebUrlPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetNotebookFromWebUrlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetNotebookFromWebUrlPostRequestBody; +} +export function deserializeIntoGetNotebookFromWebUrlPostRequestBody(getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : Record void> { + return { + "webUrl": n => { getNotebookFromWebUrlPostRequestBody.webUrl = n.getStringValue(); }, + } +} +export interface GetNotebookFromWebUrlPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The webUrl property + */ + webUrl?: string; +} +export function serializeGetNotebookFromWebUrlPostRequestBody(writer: SerializationWriter, getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : void { + writer.writeStringValue("webUrl", getNotebookFromWebUrlPostRequestBody.webUrl); + writer.writeAdditionalData(getNotebookFromWebUrlPostRequestBody.additionalData); +} /** * Provides operations to call the getNotebookFromWebUrl method. */ diff --git a/src/groups/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts b/src/groups/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts deleted file mode 100644 index 9e139d24770..00000000000 --- a/src/groups/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createRecentNotebookFromDiscriminatorValue, serializeRecentNotebook, type RecentNotebook } from '../../../../../models/recentNotebook'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse; -} -export function deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse), - "value": n => { getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value = n.getCollectionOfObjectValues(createRecentNotebookFromDiscriminatorValue); }, - } -} -export interface GetRecentNotebooksWithIncludePersonalNotebooksGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: RecentNotebook[]; -} -export function serializeGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(writer: SerializationWriter, getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getRecentNotebooksWithIncludePersonalNotebooksGetResponse) - writer.writeCollectionOfObjectValues("value", getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value, serializeRecentNotebook); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts b/src/groups/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts index 1c64269e813..1c4f772fe9b 100644 --- a/src/groups/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts +++ b/src/groups/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue } from './'; -import { type GetRecentNotebooksWithIncludePersonalNotebooksGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecentNotebookFromDiscriminatorValue, serializeRecentNotebook, type RecentNotebook } from '../../../../../models/recentNotebook'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse; +} +export function deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse), + "value": n => { getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value = n.getCollectionOfObjectValues(createRecentNotebookFromDiscriminatorValue); }, + } +} +export interface GetRecentNotebooksWithIncludePersonalNotebooksGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: RecentNotebook[]; +} export interface GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGet */ top?: number; } +export function serializeGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(writer: SerializationWriter, getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getRecentNotebooksWithIncludePersonalNotebooksGetResponse) + writer.writeCollectionOfObjectValues("value", getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value, serializeRecentNotebook); +} /** * Provides operations to call the getRecentNotebooks method. */ diff --git a/src/groups/item/onenote/notebooks/index.ts b/src/groups/item/onenote/notebooks/index.ts index 1d4ed0a3ccf..ccf997a780c 100644 --- a/src/groups/item/onenote/notebooks/index.ts +++ b/src/groups/item/onenote/notebooks/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type NotebookCollectionResponse } from '../../../../models/'; +import { type NotebookCollectionResponse } from '../../../../models'; import { createNotebookFromDiscriminatorValue, deserializeIntoNotebook, serializeNotebook, type Notebook } from '../../../../models/notebook'; import { createNotebookCollectionResponseFromDiscriminatorValue } from '../../../../models/notebookCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetNotebookFromWebUrlRequestBuilder } from './getNotebookFromWebUrl/'; -import { GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder } from './getRecentNotebooksWithIncludePersonalNotebooks/'; -import { NotebookItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetNotebookFromWebUrlRequestBuilder } from './getNotebookFromWebUrl'; +import { GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder } from './getRecentNotebooksWithIncludePersonalNotebooks'; +import { NotebookItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotebooksRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/copyNotebook/index.ts b/src/groups/item/onenote/notebooks/item/copyNotebook/index.ts index 298d72ac4e6..27e2125b125 100644 --- a/src/groups/item/onenote/notebooks/item/copyNotebook/index.ts +++ b/src/groups/item/onenote/notebooks/item/copyNotebook/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyNotebookPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyNotebookPostRequestBody(writer: SerializationWriter writer.writeStringValue("siteId", copyNotebookPostRequestBody.siteId); writer.writeAdditionalData(copyNotebookPostRequestBody.additionalData); } -/** - * Provides operations to call the copyNotebook method. - */ -export class CopyNotebookRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyNotebookRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/notebook-copynotebook?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyNotebookPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyNotebookPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyNotebookPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyNotebookRequestBuilder - */ - public withUrl(rawUrl: string) : CopyNotebookRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyNotebookRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/index.ts b/src/groups/item/onenote/notebooks/item/index.ts index 9e86bff2db7..348c19c3636 100644 --- a/src/groups/item/onenote/notebooks/item/index.ts +++ b/src/groups/item/onenote/notebooks/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createNotebookFromDiscriminatorValue, deserializeIntoNotebook, serializeNotebook, type Notebook } from '../../../../../models/notebook'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CopyNotebookRequestBuilder } from './copyNotebook/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { CopyNotebookRequestBuilder } from './copyNotebook'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotebookItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/count/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/count/index.ts index 28cdebe4449..e39f7b1091b 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/count/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/index.ts index 72f4ed12232..6e33ea7114f 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../models/sectionGroup'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/index.ts index ec7eaad421c..0eb7d97dbeb 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../../models/sectionGroup'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts index ef83812fd53..60c1a8c0f20 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts index 36f6185bb7f..25e6db0c856 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts index f6472447df1..4e51055b6aa 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts index b42e65f3d4e..035c135c799 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts index 36457e30e1b..93a485b96b2 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts index 0cc5c6485bb..8f943c4bacc 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts index d6117315aa4..8d962e0c0ae 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts index 8ff0c8aa75b..ef2f729393a 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts index 3cd7b3139fd..f36d6e18262 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts index 4e4078f457c..8dae467c711 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts index 76853ad0d0a..b0913e652f7 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts index 483045eb068..e19657e94b1 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts index fd5ffeae115..e15a673e06a 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts index 3c367b07d76..46eaf42b106 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts index b77a3490443..79d551b6ed4 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts index 7bfddee3810..6cbdd793485 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index dd586b162a1..00000000000 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts index 9754584b080..880c994e9ac 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts index 107e9bf508a..06b83d53086 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts index 228bb6056ae..1d939c44896 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts index 12cc5e32545..a9a6f402c6c 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts index c970660bd75..2002031c26d 100644 --- a/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts +++ b/src/groups/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sections/count/index.ts b/src/groups/item/onenote/notebooks/item/sections/count/index.ts index 561bb561150..59193e50577 100644 --- a/src/groups/item/onenote/notebooks/item/sections/count/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sections/index.ts b/src/groups/item/onenote/notebooks/item/sections/index.ts index c431d2a6bf0..69724e34cf6 100644 --- a/src/groups/item/onenote/notebooks/item/sections/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/groups/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/groups/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts index e0cb1c1d55b..9e3d9c340c4 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/groups/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts index b8c5ba1ea30..f36d6e18262 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/sections/item/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/index.ts index 90dcad24959..44dac61ca57 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/count/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/count/index.ts index d10f2a14dbd..1134c489663 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/count/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/index.ts index 22490c69281..dbf22728a42 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts index 8e617dea320..7730872c61c 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts index a10a18b1cbc..38ffe5a0378 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/index.ts index c667a4326b8..1afd0e72d50 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts index efb9c019657..4c2e31b80cb 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 880ee726f2b..00000000000 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts index ec5abb8afe8..f05dab5df31 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts index c2315ecb2c2..0165da13e18 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts index 4fd21fbe8ba..6113343b297 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts index 91fcf2a367d..43eedf124cb 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts b/src/groups/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts index 56865d278fb..a4b0b8f2a75 100644 --- a/src/groups/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts +++ b/src/groups/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/operations/count/index.ts b/src/groups/item/onenote/operations/count/index.ts index 2911c96c7f7..977e170dbe0 100644 --- a/src/groups/item/onenote/operations/count/index.ts +++ b/src/groups/item/onenote/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/operations/index.ts b/src/groups/item/onenote/operations/index.ts index 106249a0baa..c81b1a329b9 100644 --- a/src/groups/item/onenote/operations/index.ts +++ b/src/groups/item/onenote/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteOperationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteOperationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../models/onenoteOperation'; import { createOnenoteOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/operations/item/index.ts b/src/groups/item/onenote/operations/item/index.ts index 28b56baf67b..e1a06069cbe 100644 --- a/src/groups/item/onenote/operations/item/index.ts +++ b/src/groups/item/onenote/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../models/onenoteOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/pages/count/index.ts b/src/groups/item/onenote/pages/count/index.ts index d974cdbc5ad..0068b8f1dce 100644 --- a/src/groups/item/onenote/pages/count/index.ts +++ b/src/groups/item/onenote/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/pages/index.ts b/src/groups/item/onenote/pages/index.ts index 19a69249a13..c5ee9e20cd3 100644 --- a/src/groups/item/onenote/pages/index.ts +++ b/src/groups/item/onenote/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/pages/item/content/index.ts b/src/groups/item/onenote/pages/item/content/index.ts index d90f079b278..c69db7f7e9b 100644 --- a/src/groups/item/onenote/pages/item/content/index.ts +++ b/src/groups/item/onenote/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/pages/item/copyToSection/index.ts b/src/groups/item/onenote/pages/item/copyToSection/index.ts index cdc01c9b8e9..37200efe9b4 100644 --- a/src/groups/item/onenote/pages/item/copyToSection/index.ts +++ b/src/groups/item/onenote/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/onenote/pages/item/index.ts b/src/groups/item/onenote/pages/item/index.ts index 6d218c6a048..52f70552364 100644 --- a/src/groups/item/onenote/pages/item/index.ts +++ b/src/groups/item/onenote/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/pages/item/onenotePatchContent/index.ts b/src/groups/item/onenote/pages/item/onenotePatchContent/index.ts index d08a72a73f3..363e688b61a 100644 --- a/src/groups/item/onenote/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/onenote/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index c24c48eedf2..00000000000 --- a/src/groups/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/pages/item/parentNotebook/index.ts b/src/groups/item/onenote/pages/item/parentNotebook/index.ts index f598d9bf2aa..605f0a8df1c 100644 --- a/src/groups/item/onenote/pages/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/pages/item/parentSection/index.ts b/src/groups/item/onenote/pages/item/parentSection/index.ts index a3546957374..2760b5ccd55 100644 --- a/src/groups/item/onenote/pages/item/parentSection/index.ts +++ b/src/groups/item/onenote/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/pages/item/preview/index.ts b/src/groups/item/onenote/pages/item/preview/index.ts index c77b2f1005b..f288c711da1 100644 --- a/src/groups/item/onenote/pages/item/preview/index.ts +++ b/src/groups/item/onenote/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/resources/count/index.ts b/src/groups/item/onenote/resources/count/index.ts index a1140c2138c..b3e55173705 100644 --- a/src/groups/item/onenote/resources/count/index.ts +++ b/src/groups/item/onenote/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/resources/index.ts b/src/groups/item/onenote/resources/index.ts index 43bbc91f6d4..0413f303d50 100644 --- a/src/groups/item/onenote/resources/index.ts +++ b/src/groups/item/onenote/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteResourceCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteResourceCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue, deserializeIntoOnenoteResource, serializeOnenoteResource, type OnenoteResource } from '../../../../models/onenoteResource'; import { createOnenoteResourceCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteResourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/resources/item/content/index.ts b/src/groups/item/onenote/resources/item/content/index.ts index b6ef16a58f9..8735dc17515 100644 --- a/src/groups/item/onenote/resources/item/content/index.ts +++ b/src/groups/item/onenote/resources/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteResource } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteResource } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue } from '../../../../../../models/onenoteResource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/resources/item/index.ts b/src/groups/item/onenote/resources/item/index.ts index de3f5bd60bb..8a267cda130 100644 --- a/src/groups/item/onenote/resources/item/index.ts +++ b/src/groups/item/onenote/resources/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue, deserializeIntoOnenoteResource, serializeOnenoteResource, type OnenoteResource } from '../../../../../models/onenoteResource'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteResourceItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sectionGroups/count/index.ts b/src/groups/item/onenote/sectionGroups/count/index.ts index 0ec126e354c..2af821fadc2 100644 --- a/src/groups/item/onenote/sectionGroups/count/index.ts +++ b/src/groups/item/onenote/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/index.ts b/src/groups/item/onenote/sectionGroups/index.ts index c3bb5d625b0..721ef5e3e9c 100644 --- a/src/groups/item/onenote/sectionGroups/index.ts +++ b/src/groups/item/onenote/sectionGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../models/sectionGroup'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sectionGroups/item/index.ts b/src/groups/item/onenote/sectionGroups/item/index.ts index 4d934204658..13bc255cbab 100644 --- a/src/groups/item/onenote/sectionGroups/item/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../models/sectionGroup'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sectionGroups/item/parentNotebook/index.ts b/src/groups/item/onenote/sectionGroups/item/parentNotebook/index.ts index 1c3b52dfdda..e5b9eff82ea 100644 --- a/src/groups/item/onenote/sectionGroups/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/parentSectionGroup/index.ts b/src/groups/item/onenote/sectionGroups/item/parentSectionGroup/index.ts index 91ab7cc7a9f..522665322d9 100644 --- a/src/groups/item/onenote/sectionGroups/item/parentSectionGroup/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sectionGroups/count/index.ts b/src/groups/item/onenote/sectionGroups/item/sectionGroups/count/index.ts index a533b47838f..5beadea8f34 100644 --- a/src/groups/item/onenote/sectionGroups/item/sectionGroups/count/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sectionGroups/index.ts b/src/groups/item/onenote/sectionGroups/item/sectionGroups/index.ts index 2cf80b325f0..3f0b80ee12d 100644 --- a/src/groups/item/onenote/sectionGroups/item/sectionGroups/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sectionGroups/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sectionGroups/item/sectionGroups/item/index.ts b/src/groups/item/onenote/sectionGroups/item/sectionGroups/item/index.ts index 8c99edb9b3f..c7f9ccda226 100644 --- a/src/groups/item/onenote/sectionGroups/item/sectionGroups/item/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sectionGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sections/count/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/count/index.ts index f72c7a6df15..97ba01268bf 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/count/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sections/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/index.ts index e0e12012229..8135d42314e 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts index a3e520f0f49..a180286f258 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts index 9c4a0e200ca..f36d6e18262 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/index.ts index a5315a7c47f..e56f0d35ed4 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts index 1a2caa636be..6d3dd1d39e8 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/index.ts index 594eea9fadb..d5bde29e2e8 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts index aa3187c8f41..4288c869197 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts index b22d5fa1045..854ed0692c5 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts index 504848cb4db..404381be22c 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts index f4ebbd53cc6..0b72225b943 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 880ee726f2b..00000000000 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts index f67a1230874..ecfcdf0c23c 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts index 8b665475b3a..6da0071680b 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts index f890af6f0bc..bb7401328bd 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts index e7497df6f33..951dea7cc79 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts b/src/groups/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts index fad2a5bc918..123c97656ee 100644 --- a/src/groups/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts +++ b/src/groups/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sections/count/index.ts b/src/groups/item/onenote/sections/count/index.ts index bc34f9d472b..435f8ce36d8 100644 --- a/src/groups/item/onenote/sections/count/index.ts +++ b/src/groups/item/onenote/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sections/index.ts b/src/groups/item/onenote/sections/index.ts index 6ade91f048c..f92106a9318 100644 --- a/src/groups/item/onenote/sections/index.ts +++ b/src/groups/item/onenote/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/groups/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/groups/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/sections/item/copyToNotebook/index.ts b/src/groups/item/onenote/sections/item/copyToNotebook/index.ts index db5ae40aad9..5241542917f 100644 --- a/src/groups/item/onenote/sections/item/copyToNotebook/index.ts +++ b/src/groups/item/onenote/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/groups/item/onenote/sections/item/copyToSectionGroup/index.ts b/src/groups/item/onenote/sections/item/copyToSectionGroup/index.ts index b76820932a4..f36d6e18262 100644 --- a/src/groups/item/onenote/sections/item/copyToSectionGroup/index.ts +++ b/src/groups/item/onenote/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/onenote/sections/item/index.ts b/src/groups/item/onenote/sections/item/index.ts index e02cde85712..448311df993 100644 --- a/src/groups/item/onenote/sections/item/index.ts +++ b/src/groups/item/onenote/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sections/item/pages/count/index.ts b/src/groups/item/onenote/sections/item/pages/count/index.ts index 20b915527e9..a4e6f78904b 100644 --- a/src/groups/item/onenote/sections/item/pages/count/index.ts +++ b/src/groups/item/onenote/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sections/item/pages/index.ts b/src/groups/item/onenote/sections/item/pages/index.ts index 6e8c2efd49f..14ad9908607 100644 --- a/src/groups/item/onenote/sections/item/pages/index.ts +++ b/src/groups/item/onenote/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sections/item/pages/item/content/index.ts b/src/groups/item/onenote/sections/item/pages/item/content/index.ts index d0f8b196193..491320f15f1 100644 --- a/src/groups/item/onenote/sections/item/pages/item/content/index.ts +++ b/src/groups/item/onenote/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/sections/item/pages/item/copyToSection/index.ts b/src/groups/item/onenote/sections/item/pages/item/copyToSection/index.ts index a4c5563328d..29ea03d843d 100644 --- a/src/groups/item/onenote/sections/item/pages/item/copyToSection/index.ts +++ b/src/groups/item/onenote/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/onenote/sections/item/pages/item/index.ts b/src/groups/item/onenote/sections/item/pages/item/index.ts index 503fba51dba..9105239fddb 100644 --- a/src/groups/item/onenote/sections/item/pages/item/index.ts +++ b/src/groups/item/onenote/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts b/src/groups/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts index a4ce157e1a8..ca15ffd344f 100644 --- a/src/groups/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 88f8cace3bc..00000000000 --- a/src/groups/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/onenote/sections/item/pages/item/parentNotebook/index.ts b/src/groups/item/onenote/sections/item/pages/item/parentNotebook/index.ts index dda2e58622d..e3144373f0a 100644 --- a/src/groups/item/onenote/sections/item/pages/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sections/item/pages/item/parentSection/index.ts b/src/groups/item/onenote/sections/item/pages/item/parentSection/index.ts index e2b28db4e78..c65229dce11 100644 --- a/src/groups/item/onenote/sections/item/pages/item/parentSection/index.ts +++ b/src/groups/item/onenote/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sections/item/pages/item/preview/index.ts b/src/groups/item/onenote/sections/item/pages/item/preview/index.ts index 3229bea0042..14576d2a6ed 100644 --- a/src/groups/item/onenote/sections/item/pages/item/preview/index.ts +++ b/src/groups/item/onenote/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sections/item/parentNotebook/index.ts b/src/groups/item/onenote/sections/item/parentNotebook/index.ts index 21b0a269fab..0a0506db245 100644 --- a/src/groups/item/onenote/sections/item/parentNotebook/index.ts +++ b/src/groups/item/onenote/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/onenote/sections/item/parentSectionGroup/index.ts b/src/groups/item/onenote/sections/item/parentSectionGroup/index.ts index 1d03ee7832c..59982bfda8e 100644 --- a/src/groups/item/onenote/sections/item/parentSectionGroup/index.ts +++ b/src/groups/item/onenote/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/count/index.ts b/src/groups/item/owners/count/index.ts index f4df2ec9e59..d1b01a1eca2 100644 --- a/src/groups/item/owners/count/index.ts +++ b/src/groups/item/owners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/graphApplication/count/index.ts b/src/groups/item/owners/graphApplication/count/index.ts index 9f1b443a819..a6e02694819 100644 --- a/src/groups/item/owners/graphApplication/count/index.ts +++ b/src/groups/item/owners/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/graphApplication/index.ts b/src/groups/item/owners/graphApplication/index.ts index 8f2acd4e74f..4b25c2f3355 100644 --- a/src/groups/item/owners/graphApplication/index.ts +++ b/src/groups/item/owners/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../../models/'; +import { type ApplicationCollectionResponse } from '../../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/groups/item/owners/graphDevice/count/index.ts b/src/groups/item/owners/graphDevice/count/index.ts index eb4970e1b53..f1cfd865896 100644 --- a/src/groups/item/owners/graphDevice/count/index.ts +++ b/src/groups/item/owners/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/graphDevice/index.ts b/src/groups/item/owners/graphDevice/index.ts index a3b30a23128..9251b57b655 100644 --- a/src/groups/item/owners/graphDevice/index.ts +++ b/src/groups/item/owners/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../../models/'; +import { type DeviceCollectionResponse } from '../../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/groups/item/owners/graphGroup/count/index.ts b/src/groups/item/owners/graphGroup/count/index.ts index 0d1f9ce2130..8f45741ce9f 100644 --- a/src/groups/item/owners/graphGroup/count/index.ts +++ b/src/groups/item/owners/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/graphGroup/index.ts b/src/groups/item/owners/graphGroup/index.ts index f565cb0e44b..62536ad8c22 100644 --- a/src/groups/item/owners/graphGroup/index.ts +++ b/src/groups/item/owners/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/owners/graphOrgContact/count/index.ts b/src/groups/item/owners/graphOrgContact/count/index.ts index 1f7e9d7c4e2..750889431f5 100644 --- a/src/groups/item/owners/graphOrgContact/count/index.ts +++ b/src/groups/item/owners/graphOrgContact/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/graphOrgContact/index.ts b/src/groups/item/owners/graphOrgContact/index.ts index 711b9d844b5..1af5d40028e 100644 --- a/src/groups/item/owners/graphOrgContact/index.ts +++ b/src/groups/item/owners/graphOrgContact/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../../../../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphOrgContactRequestBuilderGetQueryParameters { diff --git a/src/groups/item/owners/graphServicePrincipal/count/index.ts b/src/groups/item/owners/graphServicePrincipal/count/index.ts index 630fcfa17fa..485d7c9c369 100644 --- a/src/groups/item/owners/graphServicePrincipal/count/index.ts +++ b/src/groups/item/owners/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/graphServicePrincipal/index.ts b/src/groups/item/owners/graphServicePrincipal/index.ts index 24336d0e116..6d58ddba4a1 100644 --- a/src/groups/item/owners/graphServicePrincipal/index.ts +++ b/src/groups/item/owners/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/groups/item/owners/graphUser/count/index.ts b/src/groups/item/owners/graphUser/count/index.ts index 9fe656a1f5e..e5beda987a3 100644 --- a/src/groups/item/owners/graphUser/count/index.ts +++ b/src/groups/item/owners/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/graphUser/index.ts b/src/groups/item/owners/graphUser/index.ts index beda0e88a46..9454ebe0ee7 100644 --- a/src/groups/item/owners/graphUser/index.ts +++ b/src/groups/item/owners/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/owners/index.ts b/src/groups/item/owners/index.ts index 773d24bd0f5..22b525055e8 100644 --- a/src/groups/item/owners/index.ts +++ b/src/groups/item/owners/index.ts @@ -1,19 +1,19 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OwnersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/owners/item/graphApplication/index.ts b/src/groups/item/owners/item/graphApplication/index.ts index cce50a07994..fcffb3c1cf4 100644 --- a/src/groups/item/owners/item/graphApplication/index.ts +++ b/src/groups/item/owners/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../../models/'; +import { type Application } from '../../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../../models/application'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/item/graphDevice/index.ts b/src/groups/item/owners/item/graphDevice/index.ts index 79fdb8b4052..7db786df4ba 100644 --- a/src/groups/item/owners/item/graphDevice/index.ts +++ b/src/groups/item/owners/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../models/'; +import { type Device } from '../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../models/device'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/item/graphGroup/index.ts b/src/groups/item/owners/item/graphGroup/index.ts index 406f0800074..f97168ed73d 100644 --- a/src/groups/item/owners/item/graphGroup/index.ts +++ b/src/groups/item/owners/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/item/graphOrgContact/index.ts b/src/groups/item/owners/item/graphOrgContact/index.ts index 5f40775fc1a..683d9ca6d67 100644 --- a/src/groups/item/owners/item/graphOrgContact/index.ts +++ b/src/groups/item/owners/item/graphOrgContact/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContact } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OrgContact } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue } from '../../../../../models/orgContact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/item/graphServicePrincipal/index.ts b/src/groups/item/owners/item/graphServicePrincipal/index.ts index d7e0c3004f1..8441b06f403 100644 --- a/src/groups/item/owners/item/graphServicePrincipal/index.ts +++ b/src/groups/item/owners/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/item/graphUser/index.ts b/src/groups/item/owners/item/graphUser/index.ts index 9027bda2b80..3c5729e612e 100644 --- a/src/groups/item/owners/item/graphUser/index.ts +++ b/src/groups/item/owners/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/item/index.ts b/src/groups/item/owners/item/index.ts index 811eb6b6671..52239c25c98 100644 --- a/src/groups/item/owners/item/index.ts +++ b/src/groups/item/owners/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RefRequestBuilder } from './ref/'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/groups/item/owners/item/ref/index.ts b/src/groups/item/owners/item/ref/index.ts index b96035c8305..f24024592a6 100644 --- a/src/groups/item/owners/item/ref/index.ts +++ b/src/groups/item/owners/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/owners/ref/index.ts b/src/groups/item/owners/ref/index.ts index 493e080d4ee..edf96ae98b8 100644 --- a/src/groups/item/owners/ref/index.ts +++ b/src/groups/item/owners/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/groups/item/permissionGrants/count/index.ts b/src/groups/item/permissionGrants/count/index.ts index d174e0df231..7c63a22f177 100644 --- a/src/groups/item/permissionGrants/count/index.ts +++ b/src/groups/item/permissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/permissionGrants/index.ts b/src/groups/item/permissionGrants/index.ts index eb69d82bfc7..515d60094a5 100644 --- a/src/groups/item/permissionGrants/index.ts +++ b/src/groups/item/permissionGrants/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../models/resourceSpecificPermissionGrant'; import { createResourceSpecificPermissionGrantCollectionResponseFromDiscriminatorValue } from '../../../models/resourceSpecificPermissionGrantCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/permissionGrants/item/index.ts b/src/groups/item/permissionGrants/item/index.ts index a130f8448f9..e844ad17b62 100644 --- a/src/groups/item/permissionGrants/item/index.ts +++ b/src/groups/item/permissionGrants/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../models/resourceSpecificPermissionGrant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/photo/index.ts b/src/groups/item/photo/index.ts index 99feb557bab..d3f40e52e01 100644 --- a/src/groups/item/photo/index.ts +++ b/src/groups/item/photo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue, deserializeIntoProfilePhoto, serializeProfilePhoto, type ProfilePhoto } from '../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotoRequestBuilderGetQueryParameters { diff --git a/src/groups/item/photo/value/index.ts b/src/groups/item/photo/value/index.ts index 6736dab2310..d32ad725cf7 100644 --- a/src/groups/item/photo/value/index.ts +++ b/src/groups/item/photo/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/photos/index.ts b/src/groups/item/photos/index.ts index 06830672c81..8ff8dc81cbd 100644 --- a/src/groups/item/photos/index.ts +++ b/src/groups/item/photos/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProfilePhotoCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ProfilePhotoCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createProfilePhotoCollectionResponseFromDiscriminatorValue } from '../../../models/profilePhotoCollectionResponse'; -import { ProfilePhotoItemRequestBuilder } from './item/'; +import { ProfilePhotoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotosRequestBuilderGetQueryParameters { diff --git a/src/groups/item/photos/item/index.ts b/src/groups/item/photos/item/index.ts index 0dffe006ec8..40a6336f23e 100644 --- a/src/groups/item/photos/item/index.ts +++ b/src/groups/item/photos/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProfilePhoto } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ProfilePhoto } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue } from '../../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ProfilePhotoItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/photos/item/value/index.ts b/src/groups/item/photos/item/value/index.ts index 6b846323ee5..ad417316702 100644 --- a/src/groups/item/photos/item/value/index.ts +++ b/src/groups/item/photos/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/index.ts b/src/groups/item/planner/index.ts index 671cfb00205..29ab5302290 100644 --- a/src/groups/item/planner/index.ts +++ b/src/groups/item/planner/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPlannerGroupFromDiscriminatorValue, deserializeIntoPlannerGroup, serializePlannerGroup, type PlannerGroup } from '../../../models/plannerGroup'; -import { PlansRequestBuilder } from './plans/'; +import { PlansRequestBuilder } from './plans'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/count/index.ts b/src/groups/item/planner/plans/count/index.ts index 6920d7093c2..e014f7a39fb 100644 --- a/src/groups/item/planner/plans/count/index.ts +++ b/src/groups/item/planner/plans/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/index.ts b/src/groups/item/planner/plans/index.ts index 1b9d23cc110..af119abbec6 100644 --- a/src/groups/item/planner/plans/index.ts +++ b/src/groups/item/planner/plans/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerPlanCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PlannerPlanCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerPlanFromDiscriminatorValue, deserializeIntoPlannerPlan, serializePlannerPlan, type PlannerPlan } from '../../../../models/plannerPlan'; import { createPlannerPlanCollectionResponseFromDiscriminatorValue } from '../../../../models/plannerPlanCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerPlanItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerPlanItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlansRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/item/buckets/count/index.ts b/src/groups/item/planner/plans/item/buckets/count/index.ts index de9e326a5ad..c382ed43ddd 100644 --- a/src/groups/item/planner/plans/item/buckets/count/index.ts +++ b/src/groups/item/planner/plans/item/buckets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/buckets/index.ts b/src/groups/item/planner/plans/item/buckets/index.ts index e3a6bcbb10e..88d80e7dab7 100644 --- a/src/groups/item/planner/plans/item/buckets/index.ts +++ b/src/groups/item/planner/plans/item/buckets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerBucketCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PlannerBucketCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketFromDiscriminatorValue, deserializeIntoPlannerBucket, serializePlannerBucket, type PlannerBucket } from '../../../../../../models/plannerBucket'; import { createPlannerBucketCollectionResponseFromDiscriminatorValue } from '../../../../../../models/plannerBucketCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerBucketItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerBucketItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BucketsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/item/buckets/item/index.ts b/src/groups/item/planner/plans/item/buckets/item/index.ts index c8a9cc97a48..7c12309c3f5 100644 --- a/src/groups/item/planner/plans/item/buckets/item/index.ts +++ b/src/groups/item/planner/plans/item/buckets/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketFromDiscriminatorValue, deserializeIntoPlannerBucket, serializePlannerBucket, type PlannerBucket } from '../../../../../../../models/plannerBucket'; -import { TasksRequestBuilder } from './tasks/'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerBucketItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/item/buckets/item/tasks/count/index.ts b/src/groups/item/planner/plans/item/buckets/item/tasks/count/index.ts index 8d51f642af1..49e80bb8af9 100644 --- a/src/groups/item/planner/plans/item/buckets/item/tasks/count/index.ts +++ b/src/groups/item/planner/plans/item/buckets/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/buckets/item/tasks/index.ts b/src/groups/item/planner/plans/item/buckets/item/tasks/index.ts index b2a37639c38..d36c3d8f562 100644 --- a/src/groups/item/planner/plans/item/buckets/item/tasks/index.ts +++ b/src/groups/item/planner/plans/item/buckets/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts b/src/groups/item/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts index 574eb4b50bf..cf96292b587 100644 --- a/src/groups/item/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/groups/item/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../../../../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts b/src/groups/item/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts index 266e1d812d2..f56f029c2f1 100644 --- a/src/groups/item/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/groups/item/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../../../../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/buckets/item/tasks/item/details/index.ts b/src/groups/item/planner/plans/item/buckets/item/tasks/item/details/index.ts index b69663503ff..520ac336866 100644 --- a/src/groups/item/planner/plans/item/buckets/item/tasks/item/details/index.ts +++ b/src/groups/item/planner/plans/item/buckets/item/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../../../../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/buckets/item/tasks/item/index.ts b/src/groups/item/planner/plans/item/buckets/item/tasks/item/index.ts index 77a8c5af9ad..9f415ff6be4 100644 --- a/src/groups/item/planner/plans/item/buckets/item/tasks/item/index.ts +++ b/src/groups/item/planner/plans/item/buckets/item/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts b/src/groups/item/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts index c9e5d2bf00b..0fc627c0ff5 100644 --- a/src/groups/item/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/groups/item/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../../../../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/details/index.ts b/src/groups/item/planner/plans/item/details/index.ts index 37d63a42c2f..0dcf1ce2463 100644 --- a/src/groups/item/planner/plans/item/details/index.ts +++ b/src/groups/item/planner/plans/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerPlanDetailsFromDiscriminatorValue, deserializeIntoPlannerPlanDetails, serializePlannerPlanDetails, type PlannerPlanDetails } from '../../../../../../models/plannerPlanDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/index.ts b/src/groups/item/planner/plans/item/index.ts index 2e23a03e497..730d6d6769c 100644 --- a/src/groups/item/planner/plans/item/index.ts +++ b/src/groups/item/planner/plans/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPlannerPlanFromDiscriminatorValue, deserializeIntoPlannerPlan, serializePlannerPlan, type PlannerPlan } from '../../../../../models/plannerPlan'; -import { BucketsRequestBuilder } from './buckets/'; -import { DetailsRequestBuilder } from './details/'; -import { TasksRequestBuilder } from './tasks/'; +import { BucketsRequestBuilder } from './buckets'; +import { DetailsRequestBuilder } from './details'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerPlanItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/item/tasks/count/index.ts b/src/groups/item/planner/plans/item/tasks/count/index.ts index 5633811336f..9cd788aa8cd 100644 --- a/src/groups/item/planner/plans/item/tasks/count/index.ts +++ b/src/groups/item/planner/plans/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/tasks/index.ts b/src/groups/item/planner/plans/item/tasks/index.ts index 1d0f0d8b06f..ba0de1a9d3e 100644 --- a/src/groups/item/planner/plans/item/tasks/index.ts +++ b/src/groups/item/planner/plans/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts b/src/groups/item/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts index 5b8d8de4ff2..47ab49fb9bd 100644 --- a/src/groups/item/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/groups/item/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts b/src/groups/item/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts index 41bc20d3520..1567f2b4c6a 100644 --- a/src/groups/item/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/groups/item/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/tasks/item/details/index.ts b/src/groups/item/planner/plans/item/tasks/item/details/index.ts index 2629f942c63..3332bd145b2 100644 --- a/src/groups/item/planner/plans/item/tasks/item/details/index.ts +++ b/src/groups/item/planner/plans/item/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/planner/plans/item/tasks/item/index.ts b/src/groups/item/planner/plans/item/tasks/item/index.ts index 86959d48a4e..23880d4aebe 100644 --- a/src/groups/item/planner/plans/item/tasks/item/index.ts +++ b/src/groups/item/planner/plans/item/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts b/src/groups/item/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts index 0a84d8e1101..52a96c5f050 100644 --- a/src/groups/item/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/groups/item/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/rejectedSenders/count/index.ts b/src/groups/item/rejectedSenders/count/index.ts index 6d8c6ca0b17..193c9c1db84 100644 --- a/src/groups/item/rejectedSenders/count/index.ts +++ b/src/groups/item/rejectedSenders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/rejectedSenders/index.ts b/src/groups/item/rejectedSenders/index.ts index 1f69a53db84..eb518e13aef 100644 --- a/src/groups/item/rejectedSenders/index.ts +++ b/src/groups/item/rejectedSenders/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RejectedSendersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/rejectedSenders/item/index.ts b/src/groups/item/rejectedSenders/item/index.ts index fd3f253f5f8..65118b49088 100644 --- a/src/groups/item/rejectedSenders/item/index.ts +++ b/src/groups/item/rejectedSenders/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/groups/item/rejectedSenders/item/ref/index.ts b/src/groups/item/rejectedSenders/item/ref/index.ts index 7125771bd55..a02e9f83884 100644 --- a/src/groups/item/rejectedSenders/item/ref/index.ts +++ b/src/groups/item/rejectedSenders/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/rejectedSenders/ref/index.ts b/src/groups/item/rejectedSenders/ref/index.ts index 97aa5914118..b3005c7263d 100644 --- a/src/groups/item/rejectedSenders/ref/index.ts +++ b/src/groups/item/rejectedSenders/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/groups/item/removeFavorite/index.ts b/src/groups/item/removeFavorite/index.ts index 7be63e13baa..0e10d310f60 100644 --- a/src/groups/item/removeFavorite/index.ts +++ b/src/groups/item/removeFavorite/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/renew/index.ts b/src/groups/item/renew/index.ts index cc2b0518f51..7c0a8ad01a6 100644 --- a/src/groups/item/renew/index.ts +++ b/src/groups/item/renew/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/resetUnseenCount/index.ts b/src/groups/item/resetUnseenCount/index.ts index 413d41bc10c..33301a490aa 100644 --- a/src/groups/item/resetUnseenCount/index.ts +++ b/src/groups/item/resetUnseenCount/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/restore/index.ts b/src/groups/item/restore/index.ts index 8a974ff3be3..09cfb4d9a74 100644 --- a/src/groups/item/restore/index.ts +++ b/src/groups/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/retryServiceProvisioning/index.ts b/src/groups/item/retryServiceProvisioning/index.ts index 9324fd21f67..9c2fc9bc57f 100644 --- a/src/groups/item/retryServiceProvisioning/index.ts +++ b/src/groups/item/retryServiceProvisioning/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/serviceProvisioningErrors/count/index.ts b/src/groups/item/serviceProvisioningErrors/count/index.ts index aa8a97ad143..974a5bd0dc2 100644 --- a/src/groups/item/serviceProvisioningErrors/count/index.ts +++ b/src/groups/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/serviceProvisioningErrors/index.ts b/src/groups/item/serviceProvisioningErrors/index.ts index 311f9f4241a..dcd323fb60e 100644 --- a/src/groups/item/serviceProvisioningErrors/index.ts +++ b/src/groups/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/settings/count/index.ts b/src/groups/item/settings/count/index.ts index af4e81311c6..d17765a49d7 100644 --- a/src/groups/item/settings/count/index.ts +++ b/src/groups/item/settings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/settings/index.ts b/src/groups/item/settings/index.ts index 3907d108387..30fcd3cb1a4 100644 --- a/src/groups/item/settings/index.ts +++ b/src/groups/item/settings/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupSettingCollectionResponse } from '../../../models/'; +import { type GroupSettingCollectionResponse } from '../../../models'; import { createGroupSettingFromDiscriminatorValue, deserializeIntoGroupSetting, serializeGroupSetting, type GroupSetting } from '../../../models/groupSetting'; import { createGroupSettingCollectionResponseFromDiscriminatorValue } from '../../../models/groupSettingCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GroupSettingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GroupSettingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SettingsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/settings/item/index.ts b/src/groups/item/settings/item/index.ts index 74b4b689b4e..beea35e4dce 100644 --- a/src/groups/item/settings/item/index.ts +++ b/src/groups/item/settings/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createGroupSettingFromDiscriminatorValue, deserializeIntoGroupSetting, serializeGroupSetting, type GroupSetting } from '../../../../models/groupSetting'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/add/index.ts b/src/groups/item/sites/add/index.ts index 6b1cc345009..ed6ccf31b74 100644 --- a/src/groups/item/sites/add/index.ts +++ b/src/groups/item/sites/add/index.ts @@ -2,106 +2,28 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../../../models/site'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: Site[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: Site[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "value": n => { addPostRequestBody.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("value", addPostRequestBody.value, serializeSite); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeSite); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/add"); - }; - /** - * Follow a user's site or multiple sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Follow a user's site or multiple sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/count/index.ts b/src/groups/item/sites/count/index.ts index 3f431397551..bd29c203806 100644 --- a/src/groups/item/sites/count/index.ts +++ b/src/groups/item/sites/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/delta/index.ts b/src/groups/item/sites/delta/index.ts index 4c2200be348..abcc62b48ff 100644 --- a/src/groups/item/sites/delta/index.ts +++ b/src/groups/item/sites/delta/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../../../models/site'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Site[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeSite); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/getAllSites/index.ts b/src/groups/item/sites/getAllSites/index.ts index bafc581b729..5356f4e2611 100644 --- a/src/groups/item/sites/getAllSites/index.ts +++ b/src/groups/item/sites/getAllSites/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../../../models/site'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllSitesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,96 +21,9 @@ export interface GetAllSitesGetResponse extends BaseCollectionPaginationCountRes */ value?: Site[]; } -export interface GetAllSitesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetAllSitesGetResponse(writer: SerializationWriter, getAllSitesGetResponse: GetAllSitesGetResponse | undefined = {} as GetAllSitesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllSitesGetResponse) writer.writeCollectionOfObjectValues("value", getAllSitesGetResponse.value, serializeSite); } -/** - * Provides operations to call the getAllSites method. - */ -export class GetAllSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllSitesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/getAllSites(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllSites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllSitesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllSitesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllSites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllSitesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllSitesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllSitesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllSitesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllSitesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/index.ts b/src/groups/item/sites/index.ts index fb1eaeb2b69..12681faa222 100644 --- a/src/groups/item/sites/index.ts +++ b/src/groups/item/sites/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SiteCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type SiteCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSiteCollectionResponseFromDiscriminatorValue } from '../../../models/siteCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAllSitesRequestBuilder } from './getAllSites/'; -import { SiteItemRequestBuilder } from './item/'; -import { RemoveRequestBuilder } from './remove/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAllSitesRequestBuilder } from './getAllSites'; +import { SiteItemRequestBuilder } from './item'; +import { RemoveRequestBuilder } from './remove'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SitesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/analytics/allTime/index.ts b/src/groups/item/sites/item/analytics/allTime/index.ts index ad30bd5a0e4..af68852d7ef 100644 --- a/src/groups/item/sites/item/analytics/allTime/index.ts +++ b/src/groups/item/sites/item/analytics/allTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStat } from '../../../../../../models/'; +import { type ItemActivityStat } from '../../../../../../models'; import { createItemActivityStatFromDiscriminatorValue } from '../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/analytics/index.ts b/src/groups/item/sites/item/analytics/index.ts index fd2a95faf1d..76eee9d4ac9 100644 --- a/src/groups/item/sites/item/analytics/index.ts +++ b/src/groups/item/sites/item/analytics/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemAnalyticsFromDiscriminatorValue, deserializeIntoItemAnalytics, serializeItemAnalytics, type ItemAnalytics } from '../../../../../models/itemAnalytics'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AllTimeRequestBuilder } from './allTime/'; -import { ItemActivityStatsRequestBuilder } from './itemActivityStats/'; -import { LastSevenDaysRequestBuilder } from './lastSevenDays/'; +import { AllTimeRequestBuilder } from './allTime'; +import { ItemActivityStatsRequestBuilder } from './itemActivityStats'; +import { LastSevenDaysRequestBuilder } from './lastSevenDays'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AnalyticsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/analytics/itemActivityStats/count/index.ts b/src/groups/item/sites/item/analytics/itemActivityStats/count/index.ts index 8ede5ab24b9..e6aeeecbc6e 100644 --- a/src/groups/item/sites/item/analytics/itemActivityStats/count/index.ts +++ b/src/groups/item/sites/item/analytics/itemActivityStats/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/analytics/itemActivityStats/index.ts b/src/groups/item/sites/item/analytics/itemActivityStats/index.ts index a770b4abfca..23269727c2a 100644 --- a/src/groups/item/sites/item/analytics/itemActivityStats/index.ts +++ b/src/groups/item/sites/item/analytics/itemActivityStats/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStatCollectionResponse } from '../../../../../../models/'; +import { type ItemActivityStatCollectionResponse } from '../../../../../../models'; import { createItemActivityStatFromDiscriminatorValue, deserializeIntoItemActivityStat, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../models/itemActivityStat'; import { createItemActivityStatCollectionResponseFromDiscriminatorValue } from '../../../../../../models/itemActivityStatCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ItemActivityStatItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ItemActivityStatItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityStatsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/count/index.ts b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/count/index.ts index c7ccf0b9785..99e1596c9ac 100644 --- a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/count/index.ts +++ b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/index.ts b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/index.ts index 097886fbba0..3fe668ffe5f 100644 --- a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/index.ts +++ b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityCollectionResponse } from '../../../../../../../../models/'; +import { type ItemActivityCollectionResponse } from '../../../../../../../../models'; import { createItemActivityFromDiscriminatorValue, deserializeIntoItemActivity, serializeItemActivity, type ItemActivity } from '../../../../../../../../models/itemActivity'; import { createItemActivityCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/itemActivityCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ItemActivityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ItemActivityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivitiesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts index d385208208e..4123beaa051 100644 --- a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts +++ b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts index fe967e6debc..55324850c1a 100644 --- a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts +++ b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/index.ts b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/index.ts index e0a612b4a97..c3d283b86e8 100644 --- a/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/index.ts +++ b/src/groups/item/sites/item/analytics/itemActivityStats/item/activities/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemActivityFromDiscriminatorValue, deserializeIntoItemActivity, serializeItemActivity, type ItemActivity } from '../../../../../../../../../models/itemActivity'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { DriveItemRequestBuilder } from './driveItem/'; +import { DriveItemRequestBuilder } from './driveItem'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/analytics/itemActivityStats/item/index.ts b/src/groups/item/sites/item/analytics/itemActivityStats/item/index.ts index 56f34485ce2..8fc26f53b17 100644 --- a/src/groups/item/sites/item/analytics/itemActivityStats/item/index.ts +++ b/src/groups/item/sites/item/analytics/itemActivityStats/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemActivityStatFromDiscriminatorValue, deserializeIntoItemActivityStat, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ActivitiesRequestBuilder } from './activities/'; +import { ActivitiesRequestBuilder } from './activities'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityStatItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/analytics/lastSevenDays/index.ts b/src/groups/item/sites/item/analytics/lastSevenDays/index.ts index a08fd7b8c0d..536acd1a7fb 100644 --- a/src/groups/item/sites/item/analytics/lastSevenDays/index.ts +++ b/src/groups/item/sites/item/analytics/lastSevenDays/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStat } from '../../../../../../models/'; +import { type ItemActivityStat } from '../../../../../../models'; import { createItemActivityStatFromDiscriminatorValue } from '../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/columns/count/index.ts b/src/groups/item/sites/item/columns/count/index.ts index 9165f57a88e..bf99e2b59be 100644 --- a/src/groups/item/sites/item/columns/count/index.ts +++ b/src/groups/item/sites/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/columns/index.ts b/src/groups/item/sites/item/columns/index.ts index f69b2db5875..d6b42ca94d9 100644 --- a/src/groups/item/sites/item/columns/index.ts +++ b/src/groups/item/sites/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/columns/item/index.ts b/src/groups/item/sites/item/columns/item/index.ts index 22d1ac7c5d6..60d89cd08e2 100644 --- a/src/groups/item/sites/item/columns/item/index.ts +++ b/src/groups/item/sites/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/columns/item/sourceColumn/index.ts b/src/groups/item/sites/item/columns/item/sourceColumn/index.ts index 699297c9421..3dbfac34dc7 100644 --- a/src/groups/item/sites/item/columns/item/sourceColumn/index.ts +++ b/src/groups/item/sites/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/addCopy/addCopyPostRequestBody.ts b/src/groups/item/sites/item/contentTypes/addCopy/addCopyPostRequestBody.ts deleted file mode 100644 index 85058f03a64..00000000000 --- a/src/groups/item/sites/item/contentTypes/addCopy/addCopyPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The contentType property - */ - contentType?: string; -} -export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddCopyPostRequestBody; -} -export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { - return { - "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, - } -} -export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { - writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); - writer.writeAdditionalData(addCopyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/contentTypes/addCopy/index.ts b/src/groups/item/sites/item/contentTypes/addCopy/index.ts index 09e26c5a927..5035cc9e4e9 100644 --- a/src/groups/item/sites/item/contentTypes/addCopy/index.ts +++ b/src/groups/item/sites/item/contentTypes/addCopy/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAddCopyPostRequestBody, serializeAddCopyPostRequestBody, type AddCopyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The contentType property + */ + contentType?: string; +} +export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddCopyPostRequestBody; +} +export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { + return { + "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, + } +} +export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { + writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); + writer.writeAdditionalData(addCopyPostRequestBody.additionalData); +} /** * Provides operations to call the addCopy method. */ diff --git a/src/groups/item/sites/item/contentTypes/addCopyFromContentTypeHub/index.ts b/src/groups/item/sites/item/contentTypes/addCopyFromContentTypeHub/index.ts index 157a5d09600..b3a25387260 100644 --- a/src/groups/item/sites/item/contentTypes/addCopyFromContentTypeHub/index.ts +++ b/src/groups/item/sites/item/contentTypes/addCopyFromContentTypeHub/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddCopyFromContentTypeHubPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeAddCopyFromContentTypeHubPostRequestBody(writer: Serial writer.writeStringValue("contentTypeId", addCopyFromContentTypeHubPostRequestBody.contentTypeId); writer.writeAdditionalData(addCopyFromContentTypeHubPostRequestBody.additionalData); } -/** - * Provides operations to call the addCopyFromContentTypeHub method. - */ -export class AddCopyFromContentTypeHubRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddCopyFromContentTypeHubRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/addCopyFromContentTypeHub"); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ContentType - * @see {@link https://learn.microsoft.com/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createContentTypeFromDiscriminatorValue, errorMapping); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddCopyFromContentTypeHubPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addCopyFromContentTypeHubRequestBuilder - */ - public withUrl(rawUrl: string) : AddCopyFromContentTypeHubRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddCopyFromContentTypeHubRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/contentTypes/count/index.ts b/src/groups/item/sites/item/contentTypes/count/index.ts index da097b9cc53..9bfe0a9ea14 100644 --- a/src/groups/item/sites/item/contentTypes/count/index.ts +++ b/src/groups/item/sites/item/contentTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts b/src/groups/item/sites/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts deleted file mode 100644 index 3aab799089c..00000000000 --- a/src/groups/item/sites/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../../models/contentType'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetCompatibleHubContentTypesGetResponse; -} -export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), - "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, - } -} -export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ContentType[]; -} -export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) - writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/contentTypes/getCompatibleHubContentTypes/index.ts b/src/groups/item/sites/item/contentTypes/getCompatibleHubContentTypes/index.ts index 36f46c86762..91401ce7c80 100644 --- a/src/groups/item/sites/item/contentTypes/getCompatibleHubContentTypes/index.ts +++ b/src/groups/item/sites/item/contentTypes/getCompatibleHubContentTypes/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; +import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../../models/contentType'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue } from './'; -import { type GetCompatibleHubContentTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetCompatibleHubContentTypesGetResponse; +} +export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), + "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, + } +} +export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ContentType[]; +} export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) + writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); +} /** * Provides operations to call the getCompatibleHubContentTypes method. */ diff --git a/src/groups/item/sites/item/contentTypes/index.ts b/src/groups/item/sites/item/contentTypes/index.ts index c9bf92dda4b..054e6e2fd1d 100644 --- a/src/groups/item/sites/item/contentTypes/index.ts +++ b/src/groups/item/sites/item/contentTypes/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../models'; import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../models/contentType'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AddCopyRequestBuilder } from './addCopy/'; -import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub/'; -import { CountRequestBuilder } from './count/'; -import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { AddCopyRequestBuilder } from './addCopy'; +import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub'; +import { CountRequestBuilder } from './count'; +import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/contentTypes/item/associateWithHubSites/index.ts b/src/groups/item/sites/item/contentTypes/item/associateWithHubSites/index.ts index f79c922c794..1c75d048bb8 100644 --- a/src/groups/item/sites/item/contentTypes/item/associateWithHubSites/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/associateWithHubSites/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssociateWithHubSitesPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAssociateWithHubSitesPostRequestBody(writer: Serializat writer.writeBooleanValue("propagateToExistingLists", associateWithHubSitesPostRequestBody.propagateToExistingLists); writer.writeAdditionalData(associateWithHubSitesPostRequestBody.additionalData); } -/** - * Provides operations to call the associateWithHubSites method. - */ -export class AssociateWithHubSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssociateWithHubSitesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites"); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-associatewithhubsites?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssociateWithHubSitesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a associateWithHubSitesRequestBuilder - */ - public withUrl(rawUrl: string) : AssociateWithHubSitesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssociateWithHubSitesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/contentTypes/item/base/index.ts b/src/groups/item/sites/item/contentTypes/item/base/index.ts index 69912123780..cfb729d8da0 100644 --- a/src/groups/item/sites/item/contentTypes/item/base/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/base/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../../models/'; +import { type ContentType } from '../../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/baseTypes/count/index.ts b/src/groups/item/sites/item/contentTypes/item/baseTypes/count/index.ts index 0ae9344d1c1..eb063eac0c3 100644 --- a/src/groups/item/sites/item/contentTypes/item/baseTypes/count/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/baseTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/baseTypes/index.ts b/src/groups/item/sites/item/contentTypes/item/baseTypes/index.ts index 377f73de3e6..9657cc3341e 100644 --- a/src/groups/item/sites/item/contentTypes/item/baseTypes/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/baseTypes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../../../models'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BaseTypesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/contentTypes/item/baseTypes/item/index.ts b/src/groups/item/sites/item/contentTypes/item/baseTypes/item/index.ts index 7dbba90cee3..87d40040dc2 100644 --- a/src/groups/item/sites/item/contentTypes/item/baseTypes/item/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/baseTypes/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../../../models/'; +import { type ContentType } from '../../../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/columnLinks/count/index.ts b/src/groups/item/sites/item/contentTypes/item/columnLinks/count/index.ts index 276850fc0b7..72f2075765f 100644 --- a/src/groups/item/sites/item/contentTypes/item/columnLinks/count/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columnLinks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/columnLinks/index.ts b/src/groups/item/sites/item/contentTypes/item/columnLinks/index.ts index a657b6d118c..cd8a6d65f51 100644 --- a/src/groups/item/sites/item/contentTypes/item/columnLinks/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columnLinks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnLinkCollectionResponse } from '../../../../../../../models/'; +import { type ColumnLinkCollectionResponse } from '../../../../../../../models'; import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../../models/columnLink'; import { createColumnLinkCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/columnLinkCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnLinkItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnLinkItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnLinksRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/contentTypes/item/columnLinks/item/index.ts b/src/groups/item/sites/item/contentTypes/item/columnLinks/item/index.ts index 24ccb1db7ff..e5ff607f714 100644 --- a/src/groups/item/sites/item/contentTypes/item/columnLinks/item/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columnLinks/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../../../models/columnLink'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/columnPositions/count/index.ts b/src/groups/item/sites/item/contentTypes/item/columnPositions/count/index.ts index af941e3f329..92835fd7368 100644 --- a/src/groups/item/sites/item/contentTypes/item/columnPositions/count/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columnPositions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/columnPositions/index.ts b/src/groups/item/sites/item/contentTypes/item/columnPositions/index.ts index 894358fb9e3..1bb9f1b9e1e 100644 --- a/src/groups/item/sites/item/contentTypes/item/columnPositions/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columnPositions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnPositionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/contentTypes/item/columnPositions/item/index.ts b/src/groups/item/sites/item/contentTypes/item/columnPositions/item/index.ts index c7f376793d2..d5889529885 100644 --- a/src/groups/item/sites/item/contentTypes/item/columnPositions/item/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columnPositions/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/columns/count/index.ts b/src/groups/item/sites/item/contentTypes/item/columns/count/index.ts index 919d531f0a2..81689db3d6d 100644 --- a/src/groups/item/sites/item/contentTypes/item/columns/count/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/columns/index.ts b/src/groups/item/sites/item/contentTypes/item/columns/index.ts index 623e15d6e59..54fcea8505a 100644 --- a/src/groups/item/sites/item/contentTypes/item/columns/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/contentTypes/item/columns/item/index.ts b/src/groups/item/sites/item/contentTypes/item/columns/item/index.ts index f8ddaddb895..6b6b88227c9 100644 --- a/src/groups/item/sites/item/contentTypes/item/columns/item/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/contentTypes/item/columns/item/sourceColumn/index.ts b/src/groups/item/sites/item/contentTypes/item/columns/item/sourceColumn/index.ts index 33a47ef0b62..20b2b9f56c2 100644 --- a/src/groups/item/sites/item/contentTypes/item/columns/item/sourceColumn/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/copyToDefaultContentLocation/index.ts b/src/groups/item/sites/item/contentTypes/item/copyToDefaultContentLocation/index.ts index 3c5178fa727..879d439482a 100644 --- a/src/groups/item/sites/item/contentTypes/item/copyToDefaultContentLocation/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/copyToDefaultContentLocation/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../../../models/itemReference'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToDefaultContentLocationPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,57 +33,5 @@ export function serializeCopyToDefaultContentLocationPostRequestBody(writer: Ser writer.writeObjectValue("sourceFile", copyToDefaultContentLocationPostRequestBody.sourceFile, serializeItemReference); writer.writeAdditionalData(copyToDefaultContentLocationPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToDefaultContentLocation method. - */ -export class CopyToDefaultContentLocationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToDefaultContentLocationRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation"); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-copytodefaultcontentlocation?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToDefaultContentLocationPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToDefaultContentLocationRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToDefaultContentLocationRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToDefaultContentLocationRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/contentTypes/item/index.ts b/src/groups/item/sites/item/contentTypes/item/index.ts index 9fdff7655f7..3a9551c0a6c 100644 --- a/src/groups/item/sites/item/contentTypes/item/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/index.ts @@ -2,18 +2,18 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites/'; -import { BaseRequestBuilderEscaped } from './base/'; -import { BaseTypesRequestBuilder } from './baseTypes/'; -import { ColumnLinksRequestBuilder } from './columnLinks/'; -import { ColumnPositionsRequestBuilder } from './columnPositions/'; -import { ColumnsRequestBuilder } from './columns/'; -import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation/'; -import { IsPublishedRequestBuilder } from './isPublished/'; -import { PublishRequestBuilder } from './publish/'; -import { UnpublishRequestBuilder } from './unpublish/'; +import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites'; +import { BaseRequestBuilderEscaped } from './base'; +import { BaseTypesRequestBuilder } from './baseTypes'; +import { ColumnLinksRequestBuilder } from './columnLinks'; +import { ColumnPositionsRequestBuilder } from './columnPositions'; +import { ColumnsRequestBuilder } from './columns'; +import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation'; +import { IsPublishedRequestBuilder } from './isPublished'; +import { PublishRequestBuilder } from './publish'; +import { UnpublishRequestBuilder } from './unpublish'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypeItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/contentTypes/item/isPublished/index.ts b/src/groups/item/sites/item/contentTypes/item/isPublished/index.ts index c4300aeb9ae..5681829c501 100644 --- a/src/groups/item/sites/item/contentTypes/item/isPublished/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/isPublished/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createIsPublishedGetResponseFromDiscriminatorValue } from './'; -import { type IsPublishedGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsPublishedGetResponse; +} +export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { + return { + "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, + } +} +export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} +export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { + writer.writeBooleanValue("value", isPublishedGetResponse.value); + writer.writeAdditionalData(isPublishedGetResponse.additionalData); +} /** * Provides operations to call the isPublished method. */ diff --git a/src/groups/item/sites/item/contentTypes/item/isPublished/isPublishedGetResponse.ts b/src/groups/item/sites/item/contentTypes/item/isPublished/isPublishedGetResponse.ts deleted file mode 100644 index e6621aa5f27..00000000000 --- a/src/groups/item/sites/item/contentTypes/item/isPublished/isPublishedGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsPublishedGetResponse; -} -export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { - return { - "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, - } -} -export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { - writer.writeBooleanValue("value", isPublishedGetResponse.value); - writer.writeAdditionalData(isPublishedGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/contentTypes/item/publish/index.ts b/src/groups/item/sites/item/contentTypes/item/publish/index.ts index 40aabb29d6a..823891cad90 100644 --- a/src/groups/item/sites/item/contentTypes/item/publish/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/publish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/contentTypes/item/unpublish/index.ts b/src/groups/item/sites/item/contentTypes/item/unpublish/index.ts index b3df93054f1..e8de22bd76e 100644 --- a/src/groups/item/sites/item/contentTypes/item/unpublish/index.ts +++ b/src/groups/item/sites/item/contentTypes/item/unpublish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/createdByUser/index.ts b/src/groups/item/sites/item/createdByUser/index.ts index c597c5d9dce..29c5e1b40fc 100644 --- a/src/groups/item/sites/item/createdByUser/index.ts +++ b/src/groups/item/sites/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/createdByUser/mailboxSettings/index.ts b/src/groups/item/sites/item/createdByUser/mailboxSettings/index.ts index 7df95e1e236..60c6a6a7004 100644 --- a/src/groups/item/sites/item/createdByUser/mailboxSettings/index.ts +++ b/src/groups/item/sites/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/groups/item/sites/item/createdByUser/serviceProvisioningErrors/count/index.ts index 2c3929c02e9..882f64a85be 100644 --- a/src/groups/item/sites/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/groups/item/sites/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/createdByUser/serviceProvisioningErrors/index.ts b/src/groups/item/sites/item/createdByUser/serviceProvisioningErrors/index.ts index 2e4d60c6fd3..9d557eff262 100644 --- a/src/groups/item/sites/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/groups/item/sites/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/drive/index.ts b/src/groups/item/sites/item/drive/index.ts index 5aad9cf8bb9..a0074362fa5 100644 --- a/src/groups/item/sites/item/drive/index.ts +++ b/src/groups/item/sites/item/drive/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../../models/'; +import { type Drive } from '../../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../../models/drive'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/drives/count/index.ts b/src/groups/item/sites/item/drives/count/index.ts index 5390a89372a..5e3eeeeb2ea 100644 --- a/src/groups/item/sites/item/drives/count/index.ts +++ b/src/groups/item/sites/item/drives/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/drives/index.ts b/src/groups/item/sites/item/drives/index.ts index 3a4e0248df1..fe88906895a 100644 --- a/src/groups/item/sites/item/drives/index.ts +++ b/src/groups/item/sites/item/drives/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveCollectionResponse } from '../../../../../models/'; +import { type DriveCollectionResponse } from '../../../../../models'; import { createDriveCollectionResponseFromDiscriminatorValue } from '../../../../../models/driveCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DrivesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/drives/item/index.ts b/src/groups/item/sites/item/drives/item/index.ts index b62386674f9..51b652b4381 100644 --- a/src/groups/item/sites/item/drives/item/index.ts +++ b/src/groups/item/sites/item/drives/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../../../models/'; +import { type Drive } from '../../../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../../../models/drive'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/externalColumns/count/index.ts b/src/groups/item/sites/item/externalColumns/count/index.ts index aa292ffb1f3..42dcfb0ada3 100644 --- a/src/groups/item/sites/item/externalColumns/count/index.ts +++ b/src/groups/item/sites/item/externalColumns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/externalColumns/index.ts b/src/groups/item/sites/item/externalColumns/index.ts index 737919128a2..3ff42412158 100644 --- a/src/groups/item/sites/item/externalColumns/index.ts +++ b/src/groups/item/sites/item/externalColumns/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../models'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalColumnsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/externalColumns/item/index.ts b/src/groups/item/sites/item/externalColumns/item/index.ts index 991f9f28cd7..a8c1611f281 100644 --- a/src/groups/item/sites/item/externalColumns/item/index.ts +++ b/src/groups/item/sites/item/externalColumns/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts b/src/groups/item/sites/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts deleted file mode 100644 index 7d1a17014e2..00000000000 --- a/src/groups/item/sites/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../models/itemActivityStat'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetActivitiesByIntervalGetResponse; -} -export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), - "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, - } -} -export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ItemActivityStat[]; -} -export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) - writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/getActivitiesByInterval/index.ts b/src/groups/item/sites/item/getActivitiesByInterval/index.ts index 0dcabc36fe8..a310e69c122 100644 --- a/src/groups/item/sites/item/getActivitiesByInterval/index.ts +++ b/src/groups/item/sites/item/getActivitiesByInterval/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../models/itemActivityStat'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetActivitiesByIntervalGetResponseFromDiscriminatorValue } from './'; -import { type GetActivitiesByIntervalGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetActivitiesByIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), + "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ItemActivityStat[]; +} export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) + writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); +} /** * Provides operations to call the getActivitiesByInterval method. */ diff --git a/src/groups/item/sites/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/groups/item/sites/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts index 4fb81adcb89..951587e3c2d 100644 --- a/src/groups/item/sites/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts +++ b/src/groups/item/sites/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,102 +21,9 @@ export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInte */ value?: ItemActivityStat[]; } -export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value, serializeItemActivityStat); } -/** - * Provides operations to call the getActivitiesByInterval method. - */ -export class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: string | undefined, interval?: string | undefined, startDateTime?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["interval"] = interval - this.pathParameters["startDateTime"] = startDateTime - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder - */ - public withUrl(rawUrl: string) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/getApplicableContentTypesForListWithListId/getApplicableContentTypesForListWithListIdGetResponse.ts b/src/groups/item/sites/item/getApplicableContentTypesForListWithListId/getApplicableContentTypesForListWithListIdGetResponse.ts deleted file mode 100644 index fdeced2cd6c..00000000000 --- a/src/groups/item/sites/item/getApplicableContentTypesForListWithListId/getApplicableContentTypesForListWithListIdGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetApplicableContentTypesForListWithListIdGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetApplicableContentTypesForListWithListIdGetResponse; -} -export function deserializeIntoGetApplicableContentTypesForListWithListIdGetResponse(getApplicableContentTypesForListWithListIdGetResponse: GetApplicableContentTypesForListWithListIdGetResponse | undefined = {} as GetApplicableContentTypesForListWithListIdGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getApplicableContentTypesForListWithListIdGetResponse), - "value": n => { getApplicableContentTypesForListWithListIdGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, - } -} -export interface GetApplicableContentTypesForListWithListIdGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ContentType[]; -} -export function serializeGetApplicableContentTypesForListWithListIdGetResponse(writer: SerializationWriter, getApplicableContentTypesForListWithListIdGetResponse: GetApplicableContentTypesForListWithListIdGetResponse | undefined = {} as GetApplicableContentTypesForListWithListIdGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getApplicableContentTypesForListWithListIdGetResponse) - writer.writeCollectionOfObjectValues("value", getApplicableContentTypesForListWithListIdGetResponse.value, serializeContentType); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/getApplicableContentTypesForListWithListId/index.ts b/src/groups/item/sites/item/getApplicableContentTypesForListWithListId/index.ts index fe75e5ccdf0..fc1a3c85a68 100644 --- a/src/groups/item/sites/item/getApplicableContentTypesForListWithListId/index.ts +++ b/src/groups/item/sites/item/getApplicableContentTypesForListWithListId/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../models/contentType'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetApplicableContentTypesForListWithListIdGetResponseFromDiscriminatorValue } from './'; -import { type GetApplicableContentTypesForListWithListIdGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetApplicableContentTypesForListWithListIdGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetApplicableContentTypesForListWithListIdGetResponse; +} +export function deserializeIntoGetApplicableContentTypesForListWithListIdGetResponse(getApplicableContentTypesForListWithListIdGetResponse: GetApplicableContentTypesForListWithListIdGetResponse | undefined = {} as GetApplicableContentTypesForListWithListIdGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getApplicableContentTypesForListWithListIdGetResponse), + "value": n => { getApplicableContentTypesForListWithListIdGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, + } +} +export interface GetApplicableContentTypesForListWithListIdGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ContentType[]; +} export interface GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetApplicableContentTypesForListWithListIdRequestBuilderGetQuer */ top?: number; } +export function serializeGetApplicableContentTypesForListWithListIdGetResponse(writer: SerializationWriter, getApplicableContentTypesForListWithListIdGetResponse: GetApplicableContentTypesForListWithListIdGetResponse | undefined = {} as GetApplicableContentTypesForListWithListIdGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getApplicableContentTypesForListWithListIdGetResponse) + writer.writeCollectionOfObjectValues("value", getApplicableContentTypesForListWithListIdGetResponse.value, serializeContentType); +} /** * Provides operations to call the getApplicableContentTypesForList method. */ diff --git a/src/groups/item/sites/item/getByPathWithPath/index.ts b/src/groups/item/sites/item/getByPathWithPath/index.ts index 8a1bf24cfc3..10d51503718 100644 --- a/src/groups/item/sites/item/getByPathWithPath/index.ts +++ b/src/groups/item/sites/item/getByPathWithPath/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Site } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type Site } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue } from '../../../../../models/site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/index.ts b/src/groups/item/sites/item/index.ts index d40aad16601..540cd9071ed 100644 --- a/src/groups/item/sites/item/index.ts +++ b/src/groups/item/sites/item/index.ts @@ -1,29 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue, deserializeIntoSite, serializeSite, type Site } from '../../../../models/site'; -import { AnalyticsRequestBuilder } from './analytics/'; -import { ColumnsRequestBuilder } from './columns/'; -import { ContentTypesRequestBuilder } from './contentTypes/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DriveRequestBuilder } from './drive/'; -import { DrivesRequestBuilder } from './drives/'; -import { ExternalColumnsRequestBuilder } from './externalColumns/'; -import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval/'; -import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/'; -import { GetApplicableContentTypesForListWithListIdRequestBuilder } from './getApplicableContentTypesForListWithListId/'; -import { GetByPathWithPathRequestBuilder } from './getByPathWithPath/'; -import { ItemsRequestBuilder } from './items/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { ListsRequestBuilder } from './lists/'; -import { OnenoteRequestBuilder } from './onenote/'; -import { OperationsRequestBuilder } from './operations/'; -import { PermissionsRequestBuilder } from './permissions/'; -import { SitesRequestBuilder } from './sites/'; -import { TermStoreRequestBuilder } from './termStore/'; -import { TermStoresRequestBuilder } from './termStores/'; +import { AnalyticsRequestBuilder } from './analytics'; +import { ColumnsRequestBuilder } from './columns'; +import { ContentTypesRequestBuilder } from './contentTypes'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DriveRequestBuilder } from './drive'; +import { DrivesRequestBuilder } from './drives'; +import { ExternalColumnsRequestBuilder } from './externalColumns'; +import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval'; +import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval'; +import { GetApplicableContentTypesForListWithListIdRequestBuilder } from './getApplicableContentTypesForListWithListId'; +import { GetByPathWithPathRequestBuilder } from './getByPathWithPath'; +import { ItemsRequestBuilder } from './items'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { ListsRequestBuilder } from './lists'; +import { OnenoteRequestBuilder } from './onenote'; +import { OperationsRequestBuilder } from './operations'; +import { PermissionsRequestBuilder } from './permissions'; +import { SitesRequestBuilder } from './sites'; +import { TermStoreRequestBuilder } from './termStore'; +import { TermStoresRequestBuilder } from './termStores'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SiteItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/items/count/index.ts b/src/groups/item/sites/item/items/count/index.ts index 5454d8fc5df..d6b49ceb7ae 100644 --- a/src/groups/item/sites/item/items/count/index.ts +++ b/src/groups/item/sites/item/items/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/items/index.ts b/src/groups/item/sites/item/items/index.ts index d3780133648..5bbe7b392e3 100644 --- a/src/groups/item/sites/item/items/index.ts +++ b/src/groups/item/sites/item/items/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BaseItemCollectionResponse } from '../../../../../models/'; +import { type BaseItemCollectionResponse } from '../../../../../models'; import { createBaseItemCollectionResponseFromDiscriminatorValue } from '../../../../../models/baseItemCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BaseItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BaseItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/items/item/index.ts b/src/groups/item/sites/item/items/item/index.ts index 2eff5b62d13..819d3d47061 100644 --- a/src/groups/item/sites/item/items/item/index.ts +++ b/src/groups/item/sites/item/items/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BaseItem } from '../../../../../../models/'; +import { type BaseItem } from '../../../../../../models'; import { createBaseItemFromDiscriminatorValue } from '../../../../../../models/baseItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lastModifiedByUser/index.ts b/src/groups/item/sites/item/lastModifiedByUser/index.ts index f462d7310f5..d465b729307 100644 --- a/src/groups/item/sites/item/lastModifiedByUser/index.ts +++ b/src/groups/item/sites/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lastModifiedByUser/mailboxSettings/index.ts b/src/groups/item/sites/item/lastModifiedByUser/mailboxSettings/index.ts index c71eb82e8fb..86403cb8857 100644 --- a/src/groups/item/sites/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/groups/item/sites/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/groups/item/sites/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 45ca76b7774..653b86ff820 100644 --- a/src/groups/item/sites/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/groups/item/sites/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/groups/item/sites/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index 633ba055315..089892b65c1 100644 --- a/src/groups/item/sites/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/groups/item/sites/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/count/index.ts b/src/groups/item/sites/item/lists/count/index.ts index e392342b73b..6ad1f13cc29 100644 --- a/src/groups/item/sites/item/lists/count/index.ts +++ b/src/groups/item/sites/item/lists/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/index.ts b/src/groups/item/sites/item/lists/index.ts index 70af85f010f..d837ccda70e 100644 --- a/src/groups/item/sites/item/lists/index.ts +++ b/src/groups/item/sites/item/lists/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListCollectionResponse } from '../../../../../models/'; +import { type ListCollectionResponse } from '../../../../../models'; import { createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List } from '../../../../../models/list'; import { createListCollectionResponseFromDiscriminatorValue } from '../../../../../models/listCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ListItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ListItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/columns/count/index.ts b/src/groups/item/sites/item/lists/item/columns/count/index.ts index 9a44085b037..3b53b4be57a 100644 --- a/src/groups/item/sites/item/lists/item/columns/count/index.ts +++ b/src/groups/item/sites/item/lists/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/columns/index.ts b/src/groups/item/sites/item/lists/item/columns/index.ts index 219883c9430..b402c6dfe30 100644 --- a/src/groups/item/sites/item/lists/item/columns/index.ts +++ b/src/groups/item/sites/item/lists/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/columns/item/index.ts b/src/groups/item/sites/item/lists/item/columns/item/index.ts index 744e73b8f62..9c6178ff3d7 100644 --- a/src/groups/item/sites/item/lists/item/columns/item/index.ts +++ b/src/groups/item/sites/item/lists/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/columns/item/sourceColumn/index.ts b/src/groups/item/sites/item/lists/item/columns/item/sourceColumn/index.ts index 9a82bad6066..90ee5215112 100644 --- a/src/groups/item/sites/item/lists/item/columns/item/sourceColumn/index.ts +++ b/src/groups/item/sites/item/lists/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/addCopy/addCopyPostRequestBody.ts b/src/groups/item/sites/item/lists/item/contentTypes/addCopy/addCopyPostRequestBody.ts deleted file mode 100644 index 85058f03a64..00000000000 --- a/src/groups/item/sites/item/lists/item/contentTypes/addCopy/addCopyPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The contentType property - */ - contentType?: string; -} -export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddCopyPostRequestBody; -} -export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { - return { - "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, - } -} -export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { - writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); - writer.writeAdditionalData(addCopyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/lists/item/contentTypes/addCopy/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/addCopy/index.ts index 8bc3e2a5c53..c917f1cb109 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/addCopy/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/addCopy/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAddCopyPostRequestBody, serializeAddCopyPostRequestBody, type AddCopyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The contentType property + */ + contentType?: string; +} +export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddCopyPostRequestBody; +} +export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { + return { + "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, + } +} +export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { + writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); + writer.writeAdditionalData(addCopyPostRequestBody.additionalData); +} /** * Provides operations to call the addCopy method. */ diff --git a/src/groups/item/sites/item/lists/item/contentTypes/addCopyFromContentTypeHub/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/addCopyFromContentTypeHub/index.ts index b347bd9e58d..b3a25387260 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/addCopyFromContentTypeHub/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/addCopyFromContentTypeHub/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddCopyFromContentTypeHubPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeAddCopyFromContentTypeHubPostRequestBody(writer: Serial writer.writeStringValue("contentTypeId", addCopyFromContentTypeHubPostRequestBody.contentTypeId); writer.writeAdditionalData(addCopyFromContentTypeHubPostRequestBody.additionalData); } -/** - * Provides operations to call the addCopyFromContentTypeHub method. - */ -export class AddCopyFromContentTypeHubRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddCopyFromContentTypeHubRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopyFromContentTypeHub"); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ContentType - * @see {@link https://learn.microsoft.com/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createContentTypeFromDiscriminatorValue, errorMapping); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddCopyFromContentTypeHubPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addCopyFromContentTypeHubRequestBuilder - */ - public withUrl(rawUrl: string) : AddCopyFromContentTypeHubRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddCopyFromContentTypeHubRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/lists/item/contentTypes/count/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/count/index.ts index b367a23733f..099e58b0ab6 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/count/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts b/src/groups/item/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts deleted file mode 100644 index f38a5d6dc78..00000000000 --- a/src/groups/item/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../../../../models/contentType'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetCompatibleHubContentTypesGetResponse; -} -export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), - "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, - } -} -export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ContentType[]; -} -export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) - writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/index.ts index 64b710f9970..501b7c9a0fd 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../models/baseCollectionPaginationCountResponse'; +import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../../../../models/contentType'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue } from './'; -import { type GetCompatibleHubContentTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetCompatibleHubContentTypesGetResponse; +} +export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), + "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, + } +} +export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ContentType[]; +} export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) + writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); +} /** * Provides operations to call the getCompatibleHubContentTypes method. */ diff --git a/src/groups/item/sites/item/lists/item/contentTypes/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/index.ts index ff7b60d3ce9..9a5dbf17a9e 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../../../models'; import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../../models/contentType'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { AddCopyRequestBuilder } from './addCopy/'; -import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub/'; -import { CountRequestBuilder } from './count/'; -import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { AddCopyRequestBuilder } from './addCopy'; +import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub'; +import { CountRequestBuilder } from './count'; +import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/associateWithHubSites/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/associateWithHubSites/index.ts index fa7da158995..1c75d048bb8 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/associateWithHubSites/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/associateWithHubSites/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssociateWithHubSitesPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAssociateWithHubSitesPostRequestBody(writer: Serializat writer.writeBooleanValue("propagateToExistingLists", associateWithHubSitesPostRequestBody.propagateToExistingLists); writer.writeAdditionalData(associateWithHubSitesPostRequestBody.additionalData); } -/** - * Provides operations to call the associateWithHubSites method. - */ -export class AssociateWithHubSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssociateWithHubSitesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites"); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-associatewithhubsites?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssociateWithHubSitesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a associateWithHubSitesRequestBuilder - */ - public withUrl(rawUrl: string) : AssociateWithHubSitesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssociateWithHubSitesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/base/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/base/index.ts index a1330c9e006..3767bf166e4 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/base/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/base/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../../../../models/'; +import { type ContentType } from '../../../../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/count/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/count/index.ts index c9dc6d6724c..4bcc7cbad0f 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/count/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/index.ts index 2b258b548ce..f41bf33223d 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../../../../../models'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BaseTypesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/item/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/item/index.ts index 09ea8405ec0..b54141db549 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/item/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/baseTypes/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../../../../../models/'; +import { type ContentType } from '../../../../../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/count/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/count/index.ts index b04bfe49498..d69f92f0767 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/count/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/index.ts index 42e4adae0be..d8c3e7576d6 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnLinkCollectionResponse } from '../../../../../../../../../models/'; +import { type ColumnLinkCollectionResponse } from '../../../../../../../../../models'; import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../../../../models/columnLink'; import { createColumnLinkCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/columnLinkCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnLinkItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnLinkItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnLinksRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/item/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/item/index.ts index 3a0125b38f9..736f9c7fe31 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/item/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columnLinks/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../../../../../models/columnLink'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/count/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/count/index.ts index 0fe1f1b40c8..226c3998638 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/count/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/index.ts index b6dd0fea90a..5453edd1103 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../../../../models'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnPositionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/item/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/item/index.ts index 5c3d47b23c4..e122b16e6e3 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/item/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columnPositions/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columns/count/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columns/count/index.ts index fe7de84b6d1..f922d2484e1 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columns/count/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columns/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columns/index.ts index 9e20b83a094..4360d8f7ce2 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columns/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columns/item/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columns/item/index.ts index fb9b0cf2aed..50358a84977 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columns/item/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/columns/item/sourceColumn/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/columns/item/sourceColumn/index.ts index 52982b8eb34..af0e161c2b2 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/columns/item/sourceColumn/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/copyToDefaultContentLocation/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/copyToDefaultContentLocation/index.ts index fb42cd67a6c..c0a60e87557 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/copyToDefaultContentLocation/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/copyToDefaultContentLocation/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../../../../../models/itemReference'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToDefaultContentLocationPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,57 +33,5 @@ export function serializeCopyToDefaultContentLocationPostRequestBody(writer: Ser writer.writeObjectValue("sourceFile", copyToDefaultContentLocationPostRequestBody.sourceFile, serializeItemReference); writer.writeAdditionalData(copyToDefaultContentLocationPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToDefaultContentLocation method. - */ -export class CopyToDefaultContentLocationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToDefaultContentLocationRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation"); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-copytodefaultcontentlocation?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToDefaultContentLocationPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToDefaultContentLocationRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToDefaultContentLocationRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToDefaultContentLocationRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/index.ts index 348a8c5cf87..8b23086d505 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/index.ts @@ -2,18 +2,18 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites/'; -import { BaseRequestBuilderEscaped } from './base/'; -import { BaseTypesRequestBuilder } from './baseTypes/'; -import { ColumnLinksRequestBuilder } from './columnLinks/'; -import { ColumnPositionsRequestBuilder } from './columnPositions/'; -import { ColumnsRequestBuilder } from './columns/'; -import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation/'; -import { IsPublishedRequestBuilder } from './isPublished/'; -import { PublishRequestBuilder } from './publish/'; -import { UnpublishRequestBuilder } from './unpublish/'; +import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites'; +import { BaseRequestBuilderEscaped } from './base'; +import { BaseTypesRequestBuilder } from './baseTypes'; +import { ColumnLinksRequestBuilder } from './columnLinks'; +import { ColumnPositionsRequestBuilder } from './columnPositions'; +import { ColumnsRequestBuilder } from './columns'; +import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation'; +import { IsPublishedRequestBuilder } from './isPublished'; +import { PublishRequestBuilder } from './publish'; +import { UnpublishRequestBuilder } from './unpublish'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypeItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/isPublished/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/isPublished/index.ts index 9a728d60ffd..4c6b6bdaec3 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/isPublished/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/isPublished/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createIsPublishedGetResponseFromDiscriminatorValue } from './'; -import { type IsPublishedGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsPublishedGetResponse; +} +export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { + return { + "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, + } +} +export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} +export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { + writer.writeBooleanValue("value", isPublishedGetResponse.value); + writer.writeAdditionalData(isPublishedGetResponse.additionalData); +} /** * Provides operations to call the isPublished method. */ diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/isPublished/isPublishedGetResponse.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/isPublished/isPublishedGetResponse.ts deleted file mode 100644 index e6621aa5f27..00000000000 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/isPublished/isPublishedGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsPublishedGetResponse; -} -export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { - return { - "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, - } -} -export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { - writer.writeBooleanValue("value", isPublishedGetResponse.value); - writer.writeAdditionalData(isPublishedGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/publish/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/publish/index.ts index 62758c4db72..79e529ea1ac 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/publish/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/publish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/contentTypes/item/unpublish/index.ts b/src/groups/item/sites/item/lists/item/contentTypes/item/unpublish/index.ts index 15d8eea939e..ac79c3cd75c 100644 --- a/src/groups/item/sites/item/lists/item/contentTypes/item/unpublish/index.ts +++ b/src/groups/item/sites/item/lists/item/contentTypes/item/unpublish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/createdByUser/index.ts b/src/groups/item/sites/item/lists/item/createdByUser/index.ts index 994ccdac54b..870d422cea7 100644 --- a/src/groups/item/sites/item/lists/item/createdByUser/index.ts +++ b/src/groups/item/sites/item/lists/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/createdByUser/mailboxSettings/index.ts b/src/groups/item/sites/item/lists/item/createdByUser/mailboxSettings/index.ts index 1cfe62257c0..3896fb1e3fd 100644 --- a/src/groups/item/sites/item/lists/item/createdByUser/mailboxSettings/index.ts +++ b/src/groups/item/sites/item/lists/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/groups/item/sites/item/lists/item/createdByUser/serviceProvisioningErrors/count/index.ts index 21b42e1d7ce..a776ee53ac6 100644 --- a/src/groups/item/sites/item/lists/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/groups/item/sites/item/lists/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/createdByUser/serviceProvisioningErrors/index.ts b/src/groups/item/sites/item/lists/item/createdByUser/serviceProvisioningErrors/index.ts index 003d009d54d..add8b73d38e 100644 --- a/src/groups/item/sites/item/lists/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/groups/item/sites/item/lists/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/drive/index.ts b/src/groups/item/sites/item/lists/item/drive/index.ts index fb16d362c24..71e072dfbfc 100644 --- a/src/groups/item/sites/item/lists/item/drive/index.ts +++ b/src/groups/item/sites/item/lists/item/drive/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../../../../models/'; +import { type Drive } from '../../../../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../../../../models/drive'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/index.ts b/src/groups/item/sites/item/lists/item/index.ts index 75031ff94e6..df1e2ec7930 100644 --- a/src/groups/item/sites/item/lists/item/index.ts +++ b/src/groups/item/sites/item/lists/item/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List } from '../../../../../../models/list'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ColumnsRequestBuilder } from './columns/'; -import { ContentTypesRequestBuilder } from './contentTypes/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DriveRequestBuilder } from './drive/'; -import { ItemsRequestBuilder } from './items/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { OperationsRequestBuilder } from './operations/'; -import { SubscriptionsRequestBuilder } from './subscriptions/'; +import { ColumnsRequestBuilder } from './columns'; +import { ContentTypesRequestBuilder } from './contentTypes'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DriveRequestBuilder } from './drive'; +import { ItemsRequestBuilder } from './items'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { OperationsRequestBuilder } from './operations'; +import { SubscriptionsRequestBuilder } from './subscriptions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemRequestBuilderGetQueryParameters { @@ -99,10 +99,10 @@ export class ListItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Returns the metadata for a [list][]. + * Get a list of rich long-running operations associated with a list. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of List - * @see {@link https://learn.microsoft.com/graph/api/list-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -142,7 +142,7 @@ export class ListItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Returns the metadata for a [list][]. + * Get a list of rich long-running operations associated with a list. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/groups/item/sites/item/lists/item/items/index.ts b/src/groups/item/sites/item/lists/item/items/index.ts index 4f1b5292a37..499ceb83677 100644 --- a/src/groups/item/sites/item/lists/item/items/index.ts +++ b/src/groups/item/sites/item/lists/item/items/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItemCollectionResponse } from '../../../../../../../models/'; +import { type ListItemCollectionResponse } from '../../../../../../../models'; import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializeListItem, type ListItem } from '../../../../../../../models/listItem'; import { createListItemCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/listItemCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ListItemItemRequestBuilder } from './item/'; +import { ListItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/analytics/index.ts b/src/groups/item/sites/item/lists/item/items/item/analytics/index.ts index 7585f4c1b74..35f151b596d 100644 --- a/src/groups/item/sites/item/lists/item/items/item/analytics/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/analytics/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemAnalytics } from '../../../../../../../../../models/'; +import { type ItemAnalytics } from '../../../../../../../../../models'; import { createItemAnalyticsFromDiscriminatorValue } from '../../../../../../../../../models/itemAnalytics'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/createdByUser/index.ts b/src/groups/item/sites/item/lists/item/items/item/createdByUser/index.ts index d012d18ebd7..27ffe3be36d 100644 --- a/src/groups/item/sites/item/lists/item/items/item/createdByUser/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/createdByUser/mailboxSettings/index.ts b/src/groups/item/sites/item/lists/item/items/item/createdByUser/mailboxSettings/index.ts index 54b130dcacd..c66f130fdaa 100644 --- a/src/groups/item/sites/item/lists/item/items/item/createdByUser/mailboxSettings/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/groups/item/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts index 5d0db37be24..04ed6e1a232 100644 --- a/src/groups/item/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/index.ts b/src/groups/item/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/index.ts index b54a8612657..05703ec2463 100644 --- a/src/groups/item/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/count/index.ts b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/count/index.ts index 54daafd8707..e4943329ddb 100644 --- a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/count/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/index.ts b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/index.ts index c9ef74d73ef..c39c9b0fb8a 100644 --- a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DocumentSetVersionCollectionResponse } from '../../../../../../../../../models/'; +import { type DocumentSetVersionCollectionResponse } from '../../../../../../../../../models'; import { createDocumentSetVersionFromDiscriminatorValue, deserializeIntoDocumentSetVersion, serializeDocumentSetVersion, type DocumentSetVersion } from '../../../../../../../../../models/documentSetVersion'; import { createDocumentSetVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/documentSetVersionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DocumentSetVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DocumentSetVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentSetVersionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/fields/index.ts b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/fields/index.ts index 2e456ad6fa1..6f0e003c473 100644 --- a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/fields/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/index.ts b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/index.ts index 18a374e479a..032a3db05a8 100644 --- a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createDocumentSetVersionFromDiscriminatorValue, deserializeIntoDocumentSetVersion, serializeDocumentSetVersion, type DocumentSetVersion } from '../../../../../../../../../../models/documentSetVersion'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { FieldsRequestBuilder } from './fields/'; -import { RestoreRequestBuilder } from './restore/'; +import { FieldsRequestBuilder } from './fields'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentSetVersionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/restore/index.ts b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/restore/index.ts index 574b2fbae6f..f1e89561f4b 100644 --- a/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/restore/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/documentSetVersions/item/restore/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/driveItem/content/index.ts b/src/groups/item/sites/item/lists/item/items/item/driveItem/content/index.ts index 71130d2ca87..e32b6a2091e 100644 --- a/src/groups/item/sites/item/lists/item/items/item/driveItem/content/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/driveItem/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/driveItem/index.ts b/src/groups/item/sites/item/lists/item/items/item/driveItem/index.ts index 10cc40ea388..329ed8bb4cf 100644 --- a/src/groups/item/sites/item/lists/item/items/item/driveItem/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/driveItem/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/fields/index.ts b/src/groups/item/sites/item/lists/item/items/item/fields/index.ts index bf89b072888..07334a57e33 100644 --- a/src/groups/item/sites/item/lists/item/items/item/fields/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts b/src/groups/item/sites/item/lists/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts deleted file mode 100644 index 4a6de0be8b4..00000000000 --- a/src/groups/item/sites/item/lists/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../../../../models/itemActivityStat'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetActivitiesByIntervalGetResponse; -} -export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), - "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, - } -} -export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ItemActivityStat[]; -} -export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) - writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/lists/item/items/item/getActivitiesByInterval/index.ts b/src/groups/item/sites/item/lists/item/items/item/getActivitiesByInterval/index.ts index 35d38ae7cf6..5edaa20f1d4 100644 --- a/src/groups/item/sites/item/lists/item/items/item/getActivitiesByInterval/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/getActivitiesByInterval/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../../models/baseCollectionPaginationCountResponse'; +import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../../../../models/itemActivityStat'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createGetActivitiesByIntervalGetResponseFromDiscriminatorValue } from './'; -import { type GetActivitiesByIntervalGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetActivitiesByIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), + "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ItemActivityStat[]; +} export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) + writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); +} /** * Provides operations to call the getActivitiesByInterval method. */ diff --git a/src/groups/item/sites/item/lists/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/groups/item/sites/item/lists/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts index 2e17e354547..a2dcb48f8ee 100644 --- a/src/groups/item/sites/item/lists/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../../models/baseCollectionPaginationCountResponse'; import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,102 +21,9 @@ export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInte */ value?: ItemActivityStat[]; } -export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value, serializeItemActivityStat); } -/** - * Provides operations to call the getActivitiesByInterval method. - */ -export class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: string | undefined, interval?: string | undefined, startDateTime?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["interval"] = interval - this.pathParameters["startDateTime"] = startDateTime - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder - */ - public withUrl(rawUrl: string) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/lists/item/items/item/index.ts b/src/groups/item/sites/item/lists/item/items/item/index.ts index 6c42b9ab087..797415c917c 100644 --- a/src/groups/item/sites/item/lists/item/items/item/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializeListItem, type ListItem } from '../../../../../../../../models/listItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AnalyticsRequestBuilder } from './analytics/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DocumentSetVersionsRequestBuilder } from './documentSetVersions/'; -import { DriveItemRequestBuilder } from './driveItem/'; -import { FieldsRequestBuilder } from './fields/'; -import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval/'; -import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { VersionsRequestBuilder } from './versions/'; +import { AnalyticsRequestBuilder } from './analytics'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DocumentSetVersionsRequestBuilder } from './documentSetVersions'; +import { DriveItemRequestBuilder } from './driveItem'; +import { FieldsRequestBuilder } from './fields'; +import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval'; +import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/index.ts b/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/index.ts index cba22235919..e18ea085af8 100644 --- a/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/mailboxSettings/index.ts b/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/mailboxSettings/index.ts index 36f80da0557..2fd4c84bff6 100644 --- a/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 0d6bd69219a..c931aabb63f 100644 --- a/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index 621f16f2542..d830613d048 100644 --- a/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/versions/count/index.ts b/src/groups/item/sites/item/lists/item/items/item/versions/count/index.ts index 550195e5376..d880e45f3e8 100644 --- a/src/groups/item/sites/item/lists/item/items/item/versions/count/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/versions/index.ts b/src/groups/item/sites/item/lists/item/items/item/versions/index.ts index 473c539cf5d..49566b43839 100644 --- a/src/groups/item/sites/item/lists/item/items/item/versions/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItemVersionCollectionResponse } from '../../../../../../../../../models/'; +import { type ListItemVersionCollectionResponse } from '../../../../../../../../../models'; import { createListItemVersionFromDiscriminatorValue, deserializeIntoListItemVersion, serializeListItemVersion, type ListItemVersion } from '../../../../../../../../../models/listItemVersion'; import { createListItemVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/listItemVersionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ListItemVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ListItemVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/versions/item/fields/index.ts b/src/groups/item/sites/item/lists/item/items/item/versions/item/fields/index.ts index 4c73c458358..47fe7edfbbb 100644 --- a/src/groups/item/sites/item/lists/item/items/item/versions/item/fields/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/versions/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/items/item/versions/item/index.ts b/src/groups/item/sites/item/lists/item/items/item/versions/item/index.ts index 2e48fbe947f..8a869cbf751 100644 --- a/src/groups/item/sites/item/lists/item/items/item/versions/item/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/versions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createListItemVersionFromDiscriminatorValue, deserializeIntoListItemVersion, serializeListItemVersion, type ListItemVersion } from '../../../../../../../../../../models/listItemVersion'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { FieldsRequestBuilder } from './fields/'; -import { RestoreVersionRequestBuilder } from './restoreVersion/'; +import { FieldsRequestBuilder } from './fields'; +import { RestoreVersionRequestBuilder } from './restoreVersion'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemVersionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/items/item/versions/item/restoreVersion/index.ts b/src/groups/item/sites/item/lists/item/items/item/versions/item/restoreVersion/index.ts index bf72c17777c..320900612c9 100644 --- a/src/groups/item/sites/item/lists/item/items/item/versions/item/restoreVersion/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/versions/item/restoreVersion/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/lastModifiedByUser/index.ts b/src/groups/item/sites/item/lists/item/lastModifiedByUser/index.ts index 05fe225da50..4ea06f68f0b 100644 --- a/src/groups/item/sites/item/lists/item/lastModifiedByUser/index.ts +++ b/src/groups/item/sites/item/lists/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/lastModifiedByUser/mailboxSettings/index.ts b/src/groups/item/sites/item/lists/item/lastModifiedByUser/mailboxSettings/index.ts index b99d040bbf6..36e37c2a1bd 100644 --- a/src/groups/item/sites/item/lists/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/groups/item/sites/item/lists/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/groups/item/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 018c668e68f..564186d1414 100644 --- a/src/groups/item/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/groups/item/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/groups/item/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index 0be7f87abd8..da8066cae9c 100644 --- a/src/groups/item/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/groups/item/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/operations/count/index.ts b/src/groups/item/sites/item/lists/item/operations/count/index.ts index a28b7bd9212..1f023b9d5a2 100644 --- a/src/groups/item/sites/item/lists/item/operations/count/index.ts +++ b/src/groups/item/sites/item/lists/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/operations/index.ts b/src/groups/item/sites/item/lists/item/operations/index.ts index 69ccb74fe7f..8b1d335f14a 100644 --- a/src/groups/item/sites/item/lists/item/operations/index.ts +++ b/src/groups/item/sites/item/lists/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RichLongRunningOperationCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type RichLongRunningOperationCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../../../../models/richLongRunningOperation'; import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/richLongRunningOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RichLongRunningOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RichLongRunningOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/operations/item/index.ts b/src/groups/item/sites/item/lists/item/operations/item/index.ts index 1c106545a6e..d347f39a530 100644 --- a/src/groups/item/sites/item/lists/item/operations/item/index.ts +++ b/src/groups/item/sites/item/lists/item/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../../../../../models/richLongRunningOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/subscriptions/count/index.ts b/src/groups/item/sites/item/lists/item/subscriptions/count/index.ts index d8f24ec76e4..323bdc3842c 100644 --- a/src/groups/item/sites/item/lists/item/subscriptions/count/index.ts +++ b/src/groups/item/sites/item/lists/item/subscriptions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/lists/item/subscriptions/index.ts b/src/groups/item/sites/item/lists/item/subscriptions/index.ts index cf7f374df4f..6ba646cb556 100644 --- a/src/groups/item/sites/item/lists/item/subscriptions/index.ts +++ b/src/groups/item/sites/item/lists/item/subscriptions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubscriptionCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type SubscriptionCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../../../../models/subscription'; import { createSubscriptionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/subscriptionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubscriptionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubscriptionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/subscriptions/item/index.ts b/src/groups/item/sites/item/lists/item/subscriptions/item/index.ts index ab1ab291d5e..5fe21e6bc27 100644 --- a/src/groups/item/sites/item/lists/item/subscriptions/item/index.ts +++ b/src/groups/item/sites/item/lists/item/subscriptions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../../../../../models/subscription'; -import { ReauthorizeRequestBuilder } from './reauthorize/'; +import { ReauthorizeRequestBuilder } from './reauthorize'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/lists/item/subscriptions/item/reauthorize/index.ts b/src/groups/item/sites/item/lists/item/subscriptions/item/reauthorize/index.ts index aaa2b5baf35..0bd48fee336 100644 --- a/src/groups/item/sites/item/lists/item/subscriptions/item/reauthorize/index.ts +++ b/src/groups/item/sites/item/lists/item/subscriptions/item/reauthorize/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/index.ts b/src/groups/item/sites/item/onenote/index.ts index bd54ae7b734..23f1e0922cb 100644 --- a/src/groups/item/sites/item/onenote/index.ts +++ b/src/groups/item/sites/item/onenote/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteFromDiscriminatorValue, deserializeIntoOnenote, serializeOnenote, type Onenote } from '../../../../../models/onenote'; -import { NotebooksRequestBuilder } from './notebooks/'; -import { OperationsRequestBuilder } from './operations/'; -import { PagesRequestBuilder } from './pages/'; -import { ResourcesRequestBuilder } from './resources/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { NotebooksRequestBuilder } from './notebooks'; +import { OperationsRequestBuilder } from './operations'; +import { PagesRequestBuilder } from './pages'; +import { ResourcesRequestBuilder } from './resources'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/count/index.ts b/src/groups/item/sites/item/onenote/notebooks/count/index.ts index f8d5f4e400c..2f84af9e4b2 100644 --- a/src/groups/item/sites/item/onenote/notebooks/count/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts b/src/groups/item/sites/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts deleted file mode 100644 index 5de000d11c3..00000000000 --- a/src/groups/item/sites/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetNotebookFromWebUrlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetNotebookFromWebUrlPostRequestBody; -} -export function deserializeIntoGetNotebookFromWebUrlPostRequestBody(getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : Record void> { - return { - "webUrl": n => { getNotebookFromWebUrlPostRequestBody.webUrl = n.getStringValue(); }, - } -} -export interface GetNotebookFromWebUrlPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The webUrl property - */ - webUrl?: string; -} -export function serializeGetNotebookFromWebUrlPostRequestBody(writer: SerializationWriter, getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : void { - writer.writeStringValue("webUrl", getNotebookFromWebUrlPostRequestBody.webUrl); - writer.writeAdditionalData(getNotebookFromWebUrlPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/getNotebookFromWebUrl/index.ts b/src/groups/item/sites/item/onenote/notebooks/getNotebookFromWebUrl/index.ts index 89871229a4a..a26f01e3aa7 100644 --- a/src/groups/item/sites/item/onenote/notebooks/getNotebookFromWebUrl/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/getNotebookFromWebUrl/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createCopyNotebookModelFromDiscriminatorValue, deserializeIntoCopyNotebookModel, serializeCopyNotebookModel, type CopyNotebookModel } from '../../../../../../../models/copyNotebookModel'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetNotebookFromWebUrlPostRequestBody, serializeGetNotebookFromWebUrlPostRequestBody, type GetNotebookFromWebUrlPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetNotebookFromWebUrlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetNotebookFromWebUrlPostRequestBody; +} +export function deserializeIntoGetNotebookFromWebUrlPostRequestBody(getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : Record void> { + return { + "webUrl": n => { getNotebookFromWebUrlPostRequestBody.webUrl = n.getStringValue(); }, + } +} +export interface GetNotebookFromWebUrlPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The webUrl property + */ + webUrl?: string; +} +export function serializeGetNotebookFromWebUrlPostRequestBody(writer: SerializationWriter, getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : void { + writer.writeStringValue("webUrl", getNotebookFromWebUrlPostRequestBody.webUrl); + writer.writeAdditionalData(getNotebookFromWebUrlPostRequestBody.additionalData); +} /** * Provides operations to call the getNotebookFromWebUrl method. */ diff --git a/src/groups/item/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts b/src/groups/item/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts deleted file mode 100644 index f7da4c495c3..00000000000 --- a/src/groups/item/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createRecentNotebookFromDiscriminatorValue, serializeRecentNotebook, type RecentNotebook } from '../../../../../../../models/recentNotebook'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse; -} -export function deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse), - "value": n => { getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value = n.getCollectionOfObjectValues(createRecentNotebookFromDiscriminatorValue); }, - } -} -export interface GetRecentNotebooksWithIncludePersonalNotebooksGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: RecentNotebook[]; -} -export function serializeGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(writer: SerializationWriter, getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getRecentNotebooksWithIncludePersonalNotebooksGetResponse) - writer.writeCollectionOfObjectValues("value", getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value, serializeRecentNotebook); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts b/src/groups/item/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts index 6b19b35fe46..c9590b9b088 100644 --- a/src/groups/item/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue } from './'; -import { type GetRecentNotebooksWithIncludePersonalNotebooksGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecentNotebookFromDiscriminatorValue, serializeRecentNotebook, type RecentNotebook } from '../../../../../../../models/recentNotebook'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse; +} +export function deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse), + "value": n => { getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value = n.getCollectionOfObjectValues(createRecentNotebookFromDiscriminatorValue); }, + } +} +export interface GetRecentNotebooksWithIncludePersonalNotebooksGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: RecentNotebook[]; +} export interface GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGet */ top?: number; } +export function serializeGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(writer: SerializationWriter, getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getRecentNotebooksWithIncludePersonalNotebooksGetResponse) + writer.writeCollectionOfObjectValues("value", getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value, serializeRecentNotebook); +} /** * Provides operations to call the getRecentNotebooks method. */ diff --git a/src/groups/item/sites/item/onenote/notebooks/index.ts b/src/groups/item/sites/item/onenote/notebooks/index.ts index a3e1cf31578..64dacae2176 100644 --- a/src/groups/item/sites/item/onenote/notebooks/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type NotebookCollectionResponse } from '../../../../../../models/'; +import { type NotebookCollectionResponse } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue, deserializeIntoNotebook, serializeNotebook, type Notebook } from '../../../../../../models/notebook'; import { createNotebookCollectionResponseFromDiscriminatorValue } from '../../../../../../models/notebookCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetNotebookFromWebUrlRequestBuilder } from './getNotebookFromWebUrl/'; -import { GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder } from './getRecentNotebooksWithIncludePersonalNotebooks/'; -import { NotebookItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetNotebookFromWebUrlRequestBuilder } from './getNotebookFromWebUrl'; +import { GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder } from './getRecentNotebooksWithIncludePersonalNotebooks'; +import { NotebookItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotebooksRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/copyNotebook/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/copyNotebook/index.ts index 63c8dfe530f..27e2125b125 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/copyNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/copyNotebook/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyNotebookPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyNotebookPostRequestBody(writer: SerializationWriter writer.writeStringValue("siteId", copyNotebookPostRequestBody.siteId); writer.writeAdditionalData(copyNotebookPostRequestBody.additionalData); } -/** - * Provides operations to call the copyNotebook method. - */ -export class CopyNotebookRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyNotebookRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/notebook-copynotebook?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyNotebookPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyNotebookPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyNotebookPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyNotebookRequestBuilder - */ - public withUrl(rawUrl: string) : CopyNotebookRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyNotebookRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/index.ts index 535f04bd378..adcc5d2fe49 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createNotebookFromDiscriminatorValue, deserializeIntoNotebook, serializeNotebook, type Notebook } from '../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CopyNotebookRequestBuilder } from './copyNotebook/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { CopyNotebookRequestBuilder } from './copyNotebook'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotebookItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/count/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/count/index.ts index 4ad7c644673..c3458901bf4 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/count/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/index.ts index 182d3218db8..d791ee2e109 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../../../models/sectionGroup'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/index.ts index cd888c2f340..15853c50fa4 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../../../../models/sectionGroup'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts index a065c0688a4..116410c30dc 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts index 523d28f1259..89c9044e288 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts index 54f8d8ebd9b..d0c63eccc4e 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts index 3e5172a841d..9915c34d496 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts index 9e24882e0e9..a799f10c717 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts index 1815556548b..1dcef6a3c9a 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts index d060ad59606..1ff6e81da84 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts index 4cb83ae6f3d..e526252a658 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts index 431317ef489..f36d6e18262 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts index 49fc0479227..2ef92a4dea6 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts index 8e47c5ff31b..542451b3dfe 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts index cbb8ae09bc0..98d7b739776 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts index a2f5c64a626..af0f88604fe 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts index a46e88eb56e..ef71999ba94 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts index 5ffb6b9edd4..d281cb8229b 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts index e316b0ed22a..2ad32892ff9 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 9ccde4d6c48..00000000000 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts index 888fa22efed..26b1bd6eaf3 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts index 7ad0c9afcea..b34ebcbaa6d 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts index d6d2e14a67d..ab5afcd33d7 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts index 734254105d8..e75b8e78c93 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts index 7ce04c4649c..54566660c0a 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/count/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/count/index.ts index 731bca8adbd..59328317846 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/count/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/index.ts index 9f8c990e92b..ae181f4c7f1 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts index 2aba99a406e..d32de6ef680 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts index 57176de06b8..f36d6e18262 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/index.ts index e9ef4569901..d8eb6f0fdf2 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/count/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/count/index.ts index b7fe1d993f5..1770bc0c718 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/count/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/index.ts index 40ae51a0717..86a6d9eb83c 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts index abeca66ad8b..2d7a8d525b4 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts index ae5c194ec13..2c95a32fb40 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/index.ts index 94096f5bba9..4192ad441cc 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts index 1addd780563..0b3e294af00 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index dd586b162a1..00000000000 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts index dbdd2cfb2b8..37309b54f3d 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts index f28b61e05fa..d99a9e222d0 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts index c3ca1144a4b..3a5c06c58bf 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts index a7a6a06f24f..dfa0df1fbea 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts index a92879cea19..1494cc26823 100644 --- a/src/groups/item/sites/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/operations/count/index.ts b/src/groups/item/sites/item/onenote/operations/count/index.ts index e701c76d41f..d380d4137da 100644 --- a/src/groups/item/sites/item/onenote/operations/count/index.ts +++ b/src/groups/item/sites/item/onenote/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/operations/index.ts b/src/groups/item/sites/item/onenote/operations/index.ts index 4a06697d093..68735b1e93b 100644 --- a/src/groups/item/sites/item/onenote/operations/index.ts +++ b/src/groups/item/sites/item/onenote/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteOperationCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteOperationCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; import { createOnenoteOperationCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/operations/item/index.ts b/src/groups/item/sites/item/onenote/operations/item/index.ts index 0f395a8bc37..5edaa06910d 100644 --- a/src/groups/item/sites/item/onenote/operations/item/index.ts +++ b/src/groups/item/sites/item/onenote/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../models/onenoteOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/pages/count/index.ts b/src/groups/item/sites/item/onenote/pages/count/index.ts index 67e192d59a3..62a6de452b3 100644 --- a/src/groups/item/sites/item/onenote/pages/count/index.ts +++ b/src/groups/item/sites/item/onenote/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/pages/index.ts b/src/groups/item/sites/item/onenote/pages/index.ts index 7e6ea447e93..3c821dff96e 100644 --- a/src/groups/item/sites/item/onenote/pages/index.ts +++ b/src/groups/item/sites/item/onenote/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/pages/item/content/index.ts b/src/groups/item/sites/item/onenote/pages/item/content/index.ts index 8e415c1e4fd..836a366ed7b 100644 --- a/src/groups/item/sites/item/onenote/pages/item/content/index.ts +++ b/src/groups/item/sites/item/onenote/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/sites/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/sites/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/pages/item/copyToSection/index.ts b/src/groups/item/sites/item/onenote/pages/item/copyToSection/index.ts index 43136caad93..74465fd4431 100644 --- a/src/groups/item/sites/item/onenote/pages/item/copyToSection/index.ts +++ b/src/groups/item/sites/item/onenote/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/sites/item/onenote/pages/item/index.ts b/src/groups/item/sites/item/onenote/pages/item/index.ts index aa304150c07..766672a8f17 100644 --- a/src/groups/item/sites/item/onenote/pages/item/index.ts +++ b/src/groups/item/sites/item/onenote/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/pages/item/onenotePatchContent/index.ts b/src/groups/item/sites/item/onenote/pages/item/onenotePatchContent/index.ts index 4ded0c2ca2e..3e3a3ec6429 100644 --- a/src/groups/item/sites/item/onenote/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/sites/item/onenote/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/sites/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/sites/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 88f8cace3bc..00000000000 --- a/src/groups/item/sites/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/pages/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/pages/item/parentNotebook/index.ts index d94b6534715..93f0d45c90a 100644 --- a/src/groups/item/sites/item/onenote/pages/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/pages/item/parentSection/index.ts b/src/groups/item/sites/item/onenote/pages/item/parentSection/index.ts index 8c69fa27be2..d4cee5e3b02 100644 --- a/src/groups/item/sites/item/onenote/pages/item/parentSection/index.ts +++ b/src/groups/item/sites/item/onenote/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/pages/item/preview/index.ts b/src/groups/item/sites/item/onenote/pages/item/preview/index.ts index aaf8089acc7..7524e1e8f59 100644 --- a/src/groups/item/sites/item/onenote/pages/item/preview/index.ts +++ b/src/groups/item/sites/item/onenote/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/resources/count/index.ts b/src/groups/item/sites/item/onenote/resources/count/index.ts index 379d268803f..f3369a089b3 100644 --- a/src/groups/item/sites/item/onenote/resources/count/index.ts +++ b/src/groups/item/sites/item/onenote/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/resources/index.ts b/src/groups/item/sites/item/onenote/resources/index.ts index 9e47ba94780..e77125ecec5 100644 --- a/src/groups/item/sites/item/onenote/resources/index.ts +++ b/src/groups/item/sites/item/onenote/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteResourceCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteResourceCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue, deserializeIntoOnenoteResource, serializeOnenoteResource, type OnenoteResource } from '../../../../../../models/onenoteResource'; import { createOnenoteResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteResourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/resources/item/content/index.ts b/src/groups/item/sites/item/onenote/resources/item/content/index.ts index e5c2dfdee0b..908932a783f 100644 --- a/src/groups/item/sites/item/onenote/resources/item/content/index.ts +++ b/src/groups/item/sites/item/onenote/resources/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteResource } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteResource } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue } from '../../../../../../../../models/onenoteResource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/resources/item/index.ts b/src/groups/item/sites/item/onenote/resources/item/index.ts index abddbd7b135..fd884da10d7 100644 --- a/src/groups/item/sites/item/onenote/resources/item/index.ts +++ b/src/groups/item/sites/item/onenote/resources/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue, deserializeIntoOnenoteResource, serializeOnenoteResource, type OnenoteResource } from '../../../../../../../models/onenoteResource'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteResourceItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sectionGroups/count/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/count/index.ts index 317d38d930c..f3eb4efe6af 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/count/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/index.ts index a5fb3c37a58..5505f30e0a9 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../models/sectionGroup'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/index.ts index bb84c666704..871da4f540c 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../../models/sectionGroup'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/parentNotebook/index.ts index 493c1ba0b35..2c4ad768bf0 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/parentSectionGroup/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/parentSectionGroup/index.ts index 2a3f357686a..03bb50ea212 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/parentSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/count/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/count/index.ts index b6e62917963..e8f27fc6f5c 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/count/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/index.ts index 2a68c0290af..b9ae04c9d57 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/item/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/item/index.ts index ad2bdea237e..fc26b4f17ca 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/item/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sectionGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/count/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/count/index.ts index bf9a2d03e1e..0384b38c0c2 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/count/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/index.ts index 00dfb097e13..fc369ce909e 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts index a3b3685f571..4d3b08c1bc8 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts index 23b2fa0f3a1..f36d6e18262 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/index.ts index d518ed33faf..7a410727505 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts index 48ed6c53e27..09df7b9a374 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/index.ts index ef7bf726b84..09a87e0881f 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts index 6b8c546783a..d49643c5074 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts index 194a036d3ee..494fa5bc4bb 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts index d1a076796c6..815b305cf1d 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts index 05249c0889e..339ecd36c77 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index dd586b162a1..00000000000 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts index c83ad0dff36..4639dd23225 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts index 48b809c9ea1..3a83d13eb63 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts index 0fecff68db7..97728712809 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts index 5ec01a5e43b..27744df3fc7 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts index 09ec46fba16..8a7403a36d3 100644 --- a/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sections/count/index.ts b/src/groups/item/sites/item/onenote/sections/count/index.ts index 28f7cf3e658..67b983ef836 100644 --- a/src/groups/item/sites/item/onenote/sections/count/index.ts +++ b/src/groups/item/sites/item/onenote/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sections/index.ts b/src/groups/item/sites/item/onenote/sections/index.ts index b83edd1d2da..548795173f4 100644 --- a/src/groups/item/sites/item/onenote/sections/index.ts +++ b/src/groups/item/sites/item/onenote/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/groups/item/sites/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/groups/item/sites/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/sections/item/copyToNotebook/index.ts b/src/groups/item/sites/item/onenote/sections/item/copyToNotebook/index.ts index 4b7e69e2123..176e557298d 100644 --- a/src/groups/item/sites/item/onenote/sections/item/copyToNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/groups/item/sites/item/onenote/sections/item/copyToSectionGroup/index.ts b/src/groups/item/sites/item/onenote/sections/item/copyToSectionGroup/index.ts index d6693dbb747..f36d6e18262 100644 --- a/src/groups/item/sites/item/onenote/sections/item/copyToSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/onenote/sections/item/index.ts b/src/groups/item/sites/item/onenote/sections/item/index.ts index e6eefecf17c..845584e4a62 100644 --- a/src/groups/item/sites/item/onenote/sections/item/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/count/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/count/index.ts index ddc68e1e8d9..82f19e3dd1a 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/count/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/index.ts index 329dd8493b8..d2c60611c77 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/content/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/content/index.ts index 517af307f47..91295d7064f 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/content/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/copyToSection/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/copyToSection/index.ts index c274eed92f2..16cd3257e7f 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/copyToSection/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/index.ts index 765159feca9..585dcc60161 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts index d9e6bea18f8..c524b18a6bf 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 880ee726f2b..00000000000 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/parentNotebook/index.ts index f77ef75d3de..ab05ea5d4bd 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/parentSection/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/parentSection/index.ts index c974c82c826..4373bd8e0e7 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/parentSection/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sections/item/pages/item/preview/index.ts b/src/groups/item/sites/item/onenote/sections/item/pages/item/preview/index.ts index 94dd26695fc..2a8d3c75cfe 100644 --- a/src/groups/item/sites/item/onenote/sections/item/pages/item/preview/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sections/item/parentNotebook/index.ts b/src/groups/item/sites/item/onenote/sections/item/parentNotebook/index.ts index 7b0fd8792eb..4d6b095b2ad 100644 --- a/src/groups/item/sites/item/onenote/sections/item/parentNotebook/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/onenote/sections/item/parentSectionGroup/index.ts b/src/groups/item/sites/item/onenote/sections/item/parentSectionGroup/index.ts index c354503613b..a2a438861f6 100644 --- a/src/groups/item/sites/item/onenote/sections/item/parentSectionGroup/index.ts +++ b/src/groups/item/sites/item/onenote/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/operations/count/index.ts b/src/groups/item/sites/item/operations/count/index.ts index dece685c995..5c02cec54ed 100644 --- a/src/groups/item/sites/item/operations/count/index.ts +++ b/src/groups/item/sites/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/operations/index.ts b/src/groups/item/sites/item/operations/index.ts index c6252c3377b..f838493fd0a 100644 --- a/src/groups/item/sites/item/operations/index.ts +++ b/src/groups/item/sites/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RichLongRunningOperationCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type RichLongRunningOperationCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../../models/richLongRunningOperation'; import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue } from '../../../../../models/richLongRunningOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RichLongRunningOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RichLongRunningOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/operations/item/index.ts b/src/groups/item/sites/item/operations/item/index.ts index 99467c06a44..afa99b50d88 100644 --- a/src/groups/item/sites/item/operations/item/index.ts +++ b/src/groups/item/sites/item/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../../../models/richLongRunningOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/permissions/count/index.ts b/src/groups/item/sites/item/permissions/count/index.ts index b461105b055..3e8acd27fee 100644 --- a/src/groups/item/sites/item/permissions/count/index.ts +++ b/src/groups/item/sites/item/permissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/permissions/index.ts b/src/groups/item/sites/item/permissions/index.ts index 7ac085c690f..81354e71edd 100644 --- a/src/groups/item/sites/item/permissions/index.ts +++ b/src/groups/item/sites/item/permissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PermissionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type PermissionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../../../models/permission'; import { createPermissionCollectionResponseFromDiscriminatorValue } from '../../../../../models/permissionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PermissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PermissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/permissions/item/grant/index.ts b/src/groups/item/sites/item/permissions/item/grant/index.ts index fff8a166808..4d4fc270da0 100644 --- a/src/groups/item/sites/item/permissions/item/grant/index.ts +++ b/src/groups/item/sites/item/permissions/item/grant/index.ts @@ -2,113 +2,28 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createDriveRecipientFromDiscriminatorValue, serializeDriveRecipient, type DriveRecipient } from '../../../../../../../models/driveRecipient'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, serializePermission, type Permission } from '../../../../../../../models/permission'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export function createGrantPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGrantPostRequestBody; -} export function createGrantPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGrantPostResponse; } -export function deserializeIntoGrantPostRequestBody(grantPostRequestBody: GrantPostRequestBody | undefined = {} as GrantPostRequestBody) : Record void> { - return { - "recipients": n => { grantPostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); }, - "roles": n => { grantPostRequestBody.roles = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoGrantPostResponse(grantPostResponse: GrantPostResponse | undefined = {} as GrantPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(grantPostResponse), "value": n => { grantPostResponse.value = n.getCollectionOfObjectValues(createPermissionFromDiscriminatorValue); }, } } -export interface GrantPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The recipients property - */ - recipients?: DriveRecipient[]; - /** - * The roles property - */ - roles?: string[]; -} export interface GrantPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: Permission[]; } -export function serializeGrantPostRequestBody(writer: SerializationWriter, grantPostRequestBody: GrantPostRequestBody | undefined = {} as GrantPostRequestBody) : void { - writer.writeCollectionOfObjectValues("recipients", grantPostRequestBody.recipients, serializeDriveRecipient); - writer.writeCollectionOfPrimitiveValues("roles", grantPostRequestBody.roles); - writer.writeAdditionalData(grantPostRequestBody.additionalData); -} export function serializeGrantPostResponse(writer: SerializationWriter, grantPostResponse: GrantPostResponse | undefined = {} as GrantPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, grantPostResponse) writer.writeCollectionOfObjectValues("value", grantPostResponse.value, serializePermission); } -/** - * Provides operations to call the grant method. - */ -export class GrantRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GrantRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}/grant"); - }; - /** - * Grant users access to a link represented by a [permission][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GrantPostResponse - * @see {@link https://learn.microsoft.com/graph/api/permission-grant?view=graph-rest-1.0|Find more info here} - */ - public post(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGrantPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Grant users access to a link represented by a [permission][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGrantPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a grantRequestBuilder - */ - public withUrl(rawUrl: string) : GrantRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GrantRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/sites/item/permissions/item/index.ts b/src/groups/item/sites/item/permissions/item/index.ts index 9873fb03c4c..fd68f12b6b2 100644 --- a/src/groups/item/sites/item/permissions/item/index.ts +++ b/src/groups/item/sites/item/permissions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../../../../models/permission'; -import { GrantRequestBuilder } from './grant/'; +import { GrantRequestBuilder } from './grant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/sites/count/index.ts b/src/groups/item/sites/item/sites/count/index.ts index 4aa59e91d87..35da7222c0f 100644 --- a/src/groups/item/sites/item/sites/count/index.ts +++ b/src/groups/item/sites/item/sites/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/sites/index.ts b/src/groups/item/sites/item/sites/index.ts index df8e41358c7..b5dd710e4d4 100644 --- a/src/groups/item/sites/item/sites/index.ts +++ b/src/groups/item/sites/item/sites/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SiteCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SiteCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSiteCollectionResponseFromDiscriminatorValue } from '../../../../../models/siteCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SiteItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SiteItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SitesRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/sites/item/index.ts b/src/groups/item/sites/item/sites/item/index.ts index 6dd7c1c22dc..b0ad2ba4ff7 100644 --- a/src/groups/item/sites/item/sites/item/index.ts +++ b/src/groups/item/sites/item/sites/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Site } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type Site } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue } from '../../../../../../models/site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/count/index.ts b/src/groups/item/sites/item/termStore/groups/count/index.ts index ef2f989a79a..964877c7c2a 100644 --- a/src/groups/item/sites/item/termStore/groups/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/index.ts b/src/groups/item/sites/item/termStore/groups/index.ts index 46745e16886..11daf05743e 100644 --- a/src/groups/item/sites/item/termStore/groups/index.ts +++ b/src/groups/item/sites/item/termStore/groups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type GroupCollectionResponse } from '../../../../../../models/termStore/'; +import { type GroupCollectionResponse } from '../../../../../../models/termStore'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../models/termStore/group'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/termStore/groupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { GroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/index.ts index 041ce49e37e..cab955b91b6 100644 --- a/src/groups/item/sites/item/termStore/groups/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../models/termStore/group'; -import { SetsRequestBuilder } from './sets/'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/count/index.ts index e0dae0fa055..6920c1ae8be 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/index.ts index da8357c1c1e..1aa6b1287a6 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/count/index.ts index e7f714a8747..f3d6debaabb 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/index.ts index 4744c8faba8..ed06b30aaf6 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/count/index.ts index c5daab30687..82a4fdf3d77 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/index.ts index 34db20607af..f2711c49f8b 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/index.ts index fc2dc7c2894..57f57706408 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/count/index.ts index 03c2135d094..211f6c82179 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/index.ts index edf7ec3f11a..b35d4e62c66 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 26f495a9944..b563aad3ed8 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/index.ts index f7a5ed9bb56..2bb44a9ab00 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts index 224b83d77db..7bd6b9e121b 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts index c3cf7d85858..22e9097504f 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/set/index.ts index 78fd8598b7c..884c17bc67d 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/index.ts index 9af78553868..ecc12a12caf 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/count/index.ts index a53cce7ad20..7dd7cda0919 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/index.ts index e8cf15e15b0..c4ddab4e90f 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts index bca31a467c8..f13a370e076 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/index.ts index 5f4367c6231..c856431e59c 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/set/index.ts index e4b91fa4679..10930f70946 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/toTerm/index.ts index 245992ea3a2..506ebf87ff9 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/set/index.ts index a499d6128e7..0a4e71138bf 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/index.ts index 5aa221ba140..16a9a9388e2 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { ParentGroupRequestBuilder } from './parentGroup/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { ParentGroupRequestBuilder } from './parentGroup'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/parentGroup/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/parentGroup/index.ts index 614868f6b76..0354fc55ba0 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/parentGroup/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/parentGroup/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../../../../models/termStore/group'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/count/index.ts index 1cebb37a096..483a87343bb 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/index.ts index 6a9e81162c4..a04a5bffb03 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/fromTerm/index.ts index b11c2db1354..3c0437f2ec1 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/index.ts index f4b77d10574..d8a21a34ba6 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/set/index.ts index 3bc7809f0d9..2bf64b55687 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/toTerm/index.ts index 20482b1ccc7..4e24a91cb72 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/count/index.ts index 79418406bdc..ea8d7d28dbb 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/index.ts index 948ef52a150..d6ac850b9d5 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/count/index.ts index 39ac21dda23..553264766b9 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/index.ts index 7db6ea22294..2a3875e198c 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/index.ts index 41666d45c5c..d1c0ec2d86c 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/count/index.ts index 050ee362764..cb3a0f01531 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/index.ts index 710da5a93a2..1f483a340fd 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 74957bae1f9..ba98b093dbc 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/index.ts index 2d56e783087..325ae1b2e2c 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts index fa25729b60a..9be105e48e1 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index d1b6d62d4c5..9490f4d2e9c 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/set/index.ts index 53ac612deb4..a3e313ce439 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/index.ts index 9beac2e175f..d4877455085 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/count/index.ts index 8613a464f0b..88be4499cf0 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/index.ts index 8a1eab236d1..4c856a6824a 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts index 05a2bd335dc..4087b4cf877 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/index.ts index 2e2347ba438..a44f475e54d 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/set/index.ts index b230379c8e5..91552c3283a 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts index a187ba3570a..f70117cb5ec 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/set/index.ts b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/set/index.ts index 10ef00401ee..db00187d945 100644 --- a/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/groups/item/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/index.ts b/src/groups/item/sites/item/termStore/index.ts index 9baee144ac4..66478bac6cb 100644 --- a/src/groups/item/sites/item/termStore/index.ts +++ b/src/groups/item/sites/item/termStore/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../../../models/termStore/store'; -import { GroupsRequestBuilder } from './groups/'; -import { SetsRequestBuilder } from './sets/'; +import { GroupsRequestBuilder } from './groups'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermStoreRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/count/index.ts b/src/groups/item/sites/item/termStore/sets/count/index.ts index f599d2f1597..fab245095ad 100644 --- a/src/groups/item/sites/item/termStore/sets/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/index.ts b/src/groups/item/sites/item/termStore/sets/index.ts index 88265481623..d10e4c9cd8e 100644 --- a/src/groups/item/sites/item/termStore/sets/index.ts +++ b/src/groups/item/sites/item/termStore/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/count/index.ts index 0c09c6ef722..52861ca0902 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/index.ts index c38fb923f19..26ca3c0ff66 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/count/index.ts index 099bd6a4276..028d1e69f56 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/index.ts index bd499b00219..1110df69a92 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/index.ts index 3129dfa1656..88a0314d9c3 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/count/index.ts index 17c6c95159f..7bb6650ae5e 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/index.ts index c98eaa06820..d719eca1f76 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 32f0fc02ccd..e4ce29afad3 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/index.ts index 5d550a16385..aebb6a7579a 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/set/index.ts index 7fd867858d2..ad6bcd85a6d 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/toTerm/index.ts index b2f18b7ee4b..12394b67e68 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/set/index.ts index 95e67a6028c..527a30bd9c6 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/index.ts index be5ff9cf958..20a398e6d09 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/count/index.ts index ac6dc4f5bb8..43c658acac9 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/index.ts index 646964d0329..7ccfa9d21f8 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/fromTerm/index.ts index 893014fc120..94fbb1a4eda 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/index.ts index 88f01cc1f54..d082c4951ae 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/set/index.ts index 27bfe68e44a..556cfa97c51 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/toTerm/index.ts index 49a76c85af1..d03fc21c3a1 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/children/item/set/index.ts index 2853fae1a77..85fe07a12a1 100644 --- a/src/groups/item/sites/item/termStore/sets/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/index.ts index 8721b8572e7..ef0a8697b4f 100644 --- a/src/groups/item/sites/item/termStore/sets/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { ParentGroupRequestBuilder } from './parentGroup/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { ParentGroupRequestBuilder } from './parentGroup'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/index.ts index 791787c1a13..a6d210f3d78 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../../models/termStore/group'; -import { SetsRequestBuilder } from './sets/'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ParentGroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/count/index.ts index d4e5faa4354..3c75e3d1f45 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/index.ts index d8a2e3d28b5..9194f61bf48 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/count/index.ts index b36cf56c6a7..781f5bd7b8c 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/index.ts index de4d8eb188d..9803af0e3b8 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/count/index.ts index 2e9507b0b2f..d896a4f69c9 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/index.ts index 5b7e82ba87b..98d461c2173 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/index.ts index df07605f35e..9cfdb41b808 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts index 599d24c4b02..fd0045ca719 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts index 0cfdfad18a1..a74a9e61a18 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 0a796bbcdf4..ce54ff60fa7 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts index 4f87d5614b5..ee6d8dc0a01 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts index a20817d28fd..24dbe09f5de 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts index 2e46d956dee..e303fd5b2d8 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts index fbbdef73bdc..a0da0ca51ba 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/index.ts index 5dd3ea810cc..5c810634755 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts index 9629200741e..0ad52e589d9 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/index.ts index fbf5b00fdba..72d3880c9cc 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts index 216cb534b52..3a38a453915 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts index d30d81baafd..a80386a0d46 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts index 968a016a2ce..5aea250d58f 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts index b93e3c208a4..2b198f70cf0 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/set/index.ts index b1c981bec3e..3e455d3386a 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/index.ts index 75108590b39..5d9a870101d 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/count/index.ts index b9dee4147f1..d4852289508 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/index.ts index ff472895723..18eecdbe1aa 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts index 2424a9f215c..1dfb4bba872 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/index.ts index 819e10bbc71..4d1293dbd2f 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/set/index.ts index bdadd32eb70..1c600e85829 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts index d05422256ec..14ae73992a0 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/count/index.ts index 78e618b298d..63f4cc56211 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/index.ts index b7652072d1f..5d955286fa7 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts index 3581e9be8ef..82c6c1444a4 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/index.ts index 7c426e9a401..f91cd506ca9 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts index 9d84f88303c..0a2004bd7db 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts index 49096b7aac7..37f17e98b08 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts index 373b2c3c8f4..8c3b5ac7b6f 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 92ee0a2cd25..b28aa82e114 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts index 5d8fdce3142..d274bd714d0 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts index a8e6878b0a4..14c333b2c3c 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index f712a08a19b..9515c0ba96c 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts index 56461e12eea..95c88119fa1 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/index.ts index 2464a1e3170..00968ea05a3 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts index 27a395d03f2..946c14b07f8 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/index.ts index 90efda8691b..952335bdbfa 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts index 16455c1a638..1abd9b00dc7 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts index 5a960eda572..be3bc52c1ad 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts index 6c883124fa0..98268c49b1e 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts index 3fbd887e0b5..48bf7446e39 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/set/index.ts index 88a8b57bed4..8d8e1325af5 100644 --- a/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/relations/count/index.ts index 0d1f51490da..a2ed05eef03 100644 --- a/src/groups/item/sites/item/termStore/sets/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/relations/index.ts index 4403a431454..ee2a670bb46 100644 --- a/src/groups/item/sites/item/termStore/sets/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/relations/item/fromTerm/index.ts index a4f79ea8493..e1050b8c28d 100644 --- a/src/groups/item/sites/item/termStore/sets/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/relations/item/index.ts index 8ec90a07f2f..cf7b204d6e3 100644 --- a/src/groups/item/sites/item/termStore/sets/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/relations/item/set/index.ts index dceaad8075a..78a3a7223d1 100644 --- a/src/groups/item/sites/item/termStore/sets/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/relations/item/toTerm/index.ts index d0dbef6c61e..eb14ae2ea0c 100644 --- a/src/groups/item/sites/item/termStore/sets/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/count/index.ts index ff07cdd4f7a..f2097399e02 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/index.ts index cf0b57e3f90..8f47b66e8e6 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/count/index.ts index 03daca44f38..96110816cfd 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/index.ts index 1e35313d202..6c609697af6 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/index.ts index 32e3eb32a4e..207d854e55a 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/count/index.ts index 8f6ce1ab408..2168ed05d8d 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/index.ts index 07db29aa600..eb8b14ee929 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 9137f706f52..5e9aa672019 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/index.ts index 48077f07a45..a9269cd39d2 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/set/index.ts index 6ba723a5615..114e6780904 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index 5eaeb55c3e3..76cbfc2f5e6 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/set/index.ts index 580124ef4a4..3e703309ad3 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/index.ts index f57ed442c58..a4a5a859cbd 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/count/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/count/index.ts index 1a02edccb34..e3e16737af7 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/index.ts index c5b51ca34f2..7f4d2c4b838 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/fromTerm/index.ts index f3442a07e6e..c7ab16515a8 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/index.ts index 94aea37c4b5..6d6b747fb8d 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/set/index.ts index 38828e38d6e..50afc697363 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/toTerm/index.ts index 1fdc734835b..b973e049bb4 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStore/sets/item/terms/item/set/index.ts b/src/groups/item/sites/item/termStore/sets/item/terms/item/set/index.ts index 02026fb515d..f1ed4a6c579 100644 --- a/src/groups/item/sites/item/termStore/sets/item/terms/item/set/index.ts +++ b/src/groups/item/sites/item/termStore/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/count/index.ts b/src/groups/item/sites/item/termStores/count/index.ts index a2b831df6d6..7137b41e5ad 100644 --- a/src/groups/item/sites/item/termStores/count/index.ts +++ b/src/groups/item/sites/item/termStores/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/index.ts b/src/groups/item/sites/item/termStores/index.ts index 2a3ecaae2b9..3e15b1455c6 100644 --- a/src/groups/item/sites/item/termStores/index.ts +++ b/src/groups/item/sites/item/termStores/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type StoreCollectionResponse } from '../../../../../models/termStore/'; +import { type StoreCollectionResponse } from '../../../../../models/termStore'; import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../../../models/termStore/store'; import { createStoreCollectionResponseFromDiscriminatorValue } from '../../../../../models/termStore/storeCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { StoreItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { StoreItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermStoresRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/count/index.ts index a201f46f660..b4e67054350 100644 --- a/src/groups/item/sites/item/termStores/item/groups/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/index.ts b/src/groups/item/sites/item/termStores/item/groups/index.ts index 63ddaa1be22..09ad9d97c6d 100644 --- a/src/groups/item/sites/item/termStores/item/groups/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type GroupCollectionResponse } from '../../../../../../../models/termStore/'; +import { type GroupCollectionResponse } from '../../../../../../../models/termStore'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../models/termStore/group'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/termStore/groupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { GroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/index.ts index aeeb7d444de..63c76cca5de 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../../models/termStore/group'; -import { SetsRequestBuilder } from './sets/'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/count/index.ts index be9fc81e1f2..3a91685b0e4 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/index.ts index e4c2de5004c..63367895d09 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/count/index.ts index db44f76feb7..5d4f48560bd 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/index.ts index 869a15ccf54..d72402bba26 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/count/index.ts index 6c0c07a1f42..94427360728 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/index.ts index c1dfeafba4e..7708451e349 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/index.ts index 8ccbeb950d1..461fe5a8941 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/count/index.ts index 859b1a16bdb..f89a5beb07e 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/index.ts index 2bee8ee952d..c08d42d83ec 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 87f4aac44e3..6f741848aa0 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/index.ts index eaf5a25a48a..2ffd0094a82 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts index 256b33d079f..9514c2fec59 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts index bd4e440f6ed..682a976958a 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/set/index.ts index 7ad687147ae..fe5485245d8 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/index.ts index 53b5cea515e..43bdea62f62 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/count/index.ts index c845ab4b265..4a53a6d2e02 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/index.ts index b110ece5cbc..feeedad8889 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts index 59486b71bfd..cc89ede5662 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/index.ts index 55ef5d1c181..61873fe65ac 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/set/index.ts index 77978463f58..020807c707e 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/toTerm/index.ts index 151c2b9a897..1daac77600d 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/set/index.ts index 6c852ae6904..6485983d05a 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/index.ts index a4265a8950b..a46bf0a18ff 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { ParentGroupRequestBuilder } from './parentGroup/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { ParentGroupRequestBuilder } from './parentGroup'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/parentGroup/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/parentGroup/index.ts index dd45de08a97..9cae8eed698 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/parentGroup/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/parentGroup/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../../../../../models/termStore/group'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/count/index.ts index e89b9b7e360..d0fd82b6bb4 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/index.ts index afcd7e00fc0..bc5aa8a7d68 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/fromTerm/index.ts index f353bf9c623..6bcdd7640e7 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/index.ts index fa6e2bd95c9..993be10f72f 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/set/index.ts index 46ece0cf650..06ae7728c4c 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/toTerm/index.ts index 6a8aec39695..734f2005c53 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/count/index.ts index e4bcee34459..d8c45848de6 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/index.ts index 7818c278fd8..0eb0925582e 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/count/index.ts index 9b958770299..bdb53a3e6b9 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/index.ts index cdef168988a..f44fa4781e8 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/index.ts index 7020c298e2f..8dd973bf0b0 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/count/index.ts index 50b2f2fe207..ac551741c2b 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/index.ts index e0c63f6f97e..3f14b89a2cf 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 67638edd483..8c8a3ac8bc7 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/index.ts index d68d73d034a..52db867c79b 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts index 4fb1f08d7c3..e3d8db39d57 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index e8e9e6f19ac..e53234b55ce 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/set/index.ts index 3a21968632e..00a97aa5189 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/index.ts index 4f56ed217dc..693f0832987 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/count/index.ts index da4daa0200b..b1c6da247b7 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/index.ts index 3bc6113462a..54deb10aaca 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts index 32a45c9b538..bb8ec07a96a 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/index.ts index 2c429e5fd54..c4fb97debd5 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/set/index.ts index cafbf5579d1..bbbbd66a3f0 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts index edf28ead7ef..1363523a411 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/set/index.ts b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/set/index.ts index 941b5c88cf9..fd9b059a6c8 100644 --- a/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/groups/item/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/index.ts b/src/groups/item/sites/item/termStores/item/index.ts index 8dd97979792..8c52d4072af 100644 --- a/src/groups/item/sites/item/termStores/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../../../../models/termStore/store'; -import { GroupsRequestBuilder } from './groups/'; -import { SetsRequestBuilder } from './sets/'; +import { GroupsRequestBuilder } from './groups'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface StoreItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/count/index.ts index d59a356f54b..b341d95649f 100644 --- a/src/groups/item/sites/item/termStores/item/sets/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/index.ts b/src/groups/item/sites/item/termStores/item/sets/index.ts index 993be69439e..902b0774ad7 100644 --- a/src/groups/item/sites/item/termStores/item/sets/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/count/index.ts index a9ce0aef411..4b6bb4dbccf 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/index.ts index 1168232e52c..fa6ae8304ab 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/count/index.ts index 02fa5c9ed78..8993ce98563 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/index.ts index 38c74465c6e..34f4d991c69 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/index.ts index 8c8f95b85fc..4ebda5d873b 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/count/index.ts index 1cad5bf18fa..57e20ef5526 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/index.ts index 2fecb50137a..f4762b0ebc0 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index ee70b13fb0b..420111ab9f0 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/index.ts index 2f1865f6bad..95aa86203dc 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/set/index.ts index c9fde896c58..7dcb47fae5b 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts index 55b43cb0d01..0690d852751 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/set/index.ts index 06aa85475e4..0d0393e3365 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/index.ts index 070a0cf9d2c..cf89bb6c73c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/count/index.ts index bf18b9a4752..eb6f0fac361 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/index.ts index 96cb3a88f5e..1b38a17ce5b 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/fromTerm/index.ts index 4bb44e7c7c0..e3a2809985f 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/index.ts index a41f60c16d1..26cb2257266 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/set/index.ts index f246efedd35..89c75665d58 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/toTerm/index.ts index 5c916f7d75b..1d88f9af0a0 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/children/item/set/index.ts index b09610d5837..656fc9c191f 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/index.ts index 7ee155c6bd8..9ef00fb8572 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { ParentGroupRequestBuilder } from './parentGroup/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { ParentGroupRequestBuilder } from './parentGroup'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/index.ts index 7ebba368510..b131566799e 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../../../models/termStore/group'; -import { SetsRequestBuilder } from './sets/'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ParentGroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/count/index.ts index ef1940fc2da..43fe7efb229 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/index.ts index 6783951aaf2..19c6d8e496d 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/count/index.ts index 8dc37412ea9..69ef1e306a0 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/index.ts index f59fc997dd8..d5b7c4282c5 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/count/index.ts index 39114246235..d2c6f5f6a80 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/index.ts index 7d018ed1444..e761809f558 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/index.ts index 0d16ff9dffd..9110c337daa 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts index 548c4952e2a..5f8ed0b852a 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts index 30234803353..a6135eb1f24 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 70a69993957..63619571341 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts index ecde9b394b1..a880437b30c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts index 0958c876450..3ea55147f65 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts index 8ce36264b78..012326551b2 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts index 9cd06dce828..432ec5ba91c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/index.ts index 5bf59b236d7..af99e411a3c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts index 7cb8558406c..ea5fbfc3d1c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/index.ts index c62ab98522a..f1b14232a8d 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts index 228b1a528ab..3f7bab46e32 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts index d17044c47df..60f691cc2c1 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts index 1712ed96d78..2d2a58ac4f4 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts index 1c744776fe5..a9e5fa95ae4 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/set/index.ts index 1b9f71d3085..c0a618866df 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/index.ts index c6aaa588a4e..e3b619ab0cc 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/count/index.ts index 60f943f2ca2..d43e935efe3 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/index.ts index c461e11ecca..a4f2f6a9e04 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts index 7ac909c04b7..f3bcb4bf679 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/index.ts index c2af339c42d..b0714aa2905 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/set/index.ts index ec862f6f5a8..1d968148958 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts index 010c7824388..8e35f344e9f 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/count/index.ts index 6642c039f1c..b407884f74a 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/index.ts index 388eedd02aa..a3102e9049c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts index 18452ed4626..ea6b4e6f21e 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/index.ts index 89773c3ea34..dbf8d84447d 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts index be76659376b..c64651464ea 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts index 9927db63d4e..934a7cf948a 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts index 908cb6faf66..80a84663d32 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index e9cb84e8eb8..f6377680e5d 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts index 44ff043655c..edbbe639f28 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts index e43513b3fbc..3ebd5d358e3 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index 50edcb3a989..23719ae08c7 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts index fd6c81bce88..5b464065042 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/index.ts index 1a827e9aca3..d76b92afb95 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts index 26e3b34c191..e0db2a3d2d9 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/index.ts index 46618f27241..f0392c25c6c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts index 55e7193a07d..14e4de99d4c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts index f6bd9d515f9..9d996c67aff 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts index 145a8ebea93..3f8f355af71 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts index 712cb9a42f9..79cdf250ca9 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/set/index.ts index 374bf6c8284..925740537ae 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/relations/count/index.ts index f64bf4cd5ed..02003799f6c 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/relations/index.ts index 45e25a36305..75d0c46edd5 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/relations/item/fromTerm/index.ts index 69e3ec71322..2c5bb763914 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/relations/item/index.ts index a28556b8894..609504fcf04 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/relations/item/set/index.ts index a40819b209e..6a1997136ac 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/relations/item/toTerm/index.ts index 8e17ab38e29..afd8f108d07 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/count/index.ts index 430e82396af..6fde74dba24 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/index.ts index 43085b7c977..944f2ce2f0e 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/count/index.ts index a465d1e5999..079f239dd2d 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/index.ts index 6a005002a67..d136f6a83bd 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/index.ts index e7889f21109..57f49d9872d 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/count/index.ts index 3ecf88db2af..91bd523606f 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/index.ts index 966c53a09f8..650f4ffc8b5 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 2214f1a43fb..837f5d1ac07 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/index.ts index 277fda48980..560944570d2 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/set/index.ts index dba10f152a9..eac31527365 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index 75cd22027f2..9ad0caa4f46 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/set/index.ts index ac5389f60dd..6a98639185b 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/index.ts index 7dcb9d81217..f958afd23b2 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/count/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/count/index.ts index 5161e8f90ee..d832f73e356 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/count/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/index.ts index 8f14339958a..f21c43fa3e5 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/fromTerm/index.ts index 9ff08ae54f2..3f9faa3dc84 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/index.ts index 0cb8ded353a..8aefa29a78f 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/set/index.ts index d5ceb3d2b0a..bb07b297f7e 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/toTerm/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/toTerm/index.ts index 43117e431c1..8e8ac735e1e 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/set/index.ts b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/set/index.ts index 08c1b5a264b..7b8b4f3db93 100644 --- a/src/groups/item/sites/item/termStores/item/sets/item/terms/item/set/index.ts +++ b/src/groups/item/sites/item/termStores/item/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/sites/remove/index.ts b/src/groups/item/sites/remove/index.ts index ce38bca7909..1bb506b7753 100644 --- a/src/groups/item/sites/remove/index.ts +++ b/src/groups/item/sites/remove/index.ts @@ -1,11 +1,55 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createRemovePostResponseFromDiscriminatorValue, deserializeIntoRemovePostRequestBody, deserializeIntoRemovePostResponse, serializeRemovePostRequestBody, serializeRemovePostResponse, type RemovePostRequestBody, type RemovePostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../../../models/site'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRemovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemovePostRequestBody; +} +export function createRemovePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemovePostResponse; +} +export function deserializeIntoRemovePostRequestBody(removePostRequestBody: RemovePostRequestBody | undefined = {} as RemovePostRequestBody) : Record void> { + return { + "value": n => { removePostRequestBody.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, + } +} +export function deserializeIntoRemovePostResponse(removePostResponse: RemovePostResponse | undefined = {} as RemovePostResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(removePostResponse), + "value": n => { removePostResponse.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, + } +} +export interface RemovePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: Site[]; +} +export interface RemovePostResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: Site[]; +} +export function serializeRemovePostRequestBody(writer: SerializationWriter, removePostRequestBody: RemovePostRequestBody | undefined = {} as RemovePostRequestBody) : void { + writer.writeCollectionOfObjectValues("value", removePostRequestBody.value, serializeSite); + writer.writeAdditionalData(removePostRequestBody.additionalData); +} +export function serializeRemovePostResponse(writer: SerializationWriter, removePostResponse: RemovePostResponse | undefined = {} as RemovePostResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, removePostResponse) + writer.writeCollectionOfObjectValues("value", removePostResponse.value, serializeSite); +} /** * Provides operations to call the remove method. */ diff --git a/src/groups/item/sites/remove/removePostRequestBody.ts b/src/groups/item/sites/remove/removePostRequestBody.ts deleted file mode 100644 index 94a0f26b62d..00000000000 --- a/src/groups/item/sites/remove/removePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../../../models/site'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRemovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemovePostRequestBody; -} -export function deserializeIntoRemovePostRequestBody(removePostRequestBody: RemovePostRequestBody | undefined = {} as RemovePostRequestBody) : Record void> { - return { - "value": n => { removePostRequestBody.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, - } -} -export interface RemovePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: Site[]; -} -export function serializeRemovePostRequestBody(writer: SerializationWriter, removePostRequestBody: RemovePostRequestBody | undefined = {} as RemovePostRequestBody) : void { - writer.writeCollectionOfObjectValues("value", removePostRequestBody.value, serializeSite); - writer.writeAdditionalData(removePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/sites/remove/removePostResponse.ts b/src/groups/item/sites/remove/removePostResponse.ts deleted file mode 100644 index 7776a8694ca..00000000000 --- a/src/groups/item/sites/remove/removePostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../../../models/site'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRemovePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemovePostResponse; -} -export function deserializeIntoRemovePostResponse(removePostResponse: RemovePostResponse | undefined = {} as RemovePostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(removePostResponse), - "value": n => { removePostResponse.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, - } -} -export interface RemovePostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: Site[]; -} -export function serializeRemovePostResponse(writer: SerializationWriter, removePostResponse: RemovePostResponse | undefined = {} as RemovePostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, removePostResponse) - writer.writeCollectionOfObjectValues("value", removePostResponse.value, serializeSite); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/subscribeByMail/index.ts b/src/groups/item/subscribeByMail/index.ts index 729256dc2bd..334cb541d15 100644 --- a/src/groups/item/subscribeByMail/index.ts +++ b/src/groups/item/subscribeByMail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/allChannels/count/index.ts b/src/groups/item/team/allChannels/count/index.ts index e21b31a1ec4..a9a99d0c21e 100644 --- a/src/groups/item/team/allChannels/count/index.ts +++ b/src/groups/item/team/allChannels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/allChannels/index.ts b/src/groups/item/team/allChannels/index.ts index 44d00211eb0..72d39f7aa01 100644 --- a/src/groups/item/team/allChannels/index.ts +++ b/src/groups/item/team/allChannels/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../../models/'; +import { type ChannelCollectionResponse } from '../../../../models'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllChannelsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/allChannels/item/index.ts b/src/groups/item/team/allChannels/item/index.ts index bbf43f538e2..36edd0ce664 100644 --- a/src/groups/item/team/allChannels/item/index.ts +++ b/src/groups/item/team/allChannels/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Channel } from '../../../../../models/'; +import { type Channel } from '../../../../../models'; import { createChannelFromDiscriminatorValue } from '../../../../../models/channel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/archive/index.ts b/src/groups/item/team/archive/index.ts index 458dddea7e6..f8f55f0ca30 100644 --- a/src/groups/item/team/archive/index.ts +++ b/src/groups/item/team/archive/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ArchivePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,57 +26,5 @@ export function serializeArchivePostRequestBody(writer: SerializationWriter, arc writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); writer.writeAdditionalData(archivePostRequestBody.additionalData); } -/** - * Provides operations to call the archive method. - */ -export class ArchiveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ArchiveRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/archive"); - }; - /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/team-archive?view=graph-rest-1.0|Find more info here} - */ - public post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeArchivePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a archiveRequestBuilder - */ - public withUrl(rawUrl: string) : ArchiveRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ArchiveRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/team/channels/count/index.ts b/src/groups/item/team/channels/count/index.ts index 9ec858b1da0..65bcb6410ac 100644 --- a/src/groups/item/team/channels/count/index.ts +++ b/src/groups/item/team/channels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/getAllMessages/index.ts b/src/groups/item/team/channels/getAllMessages/index.ts index 09da3002e23..b0177f2e281 100644 --- a/src/groups/item/team/channels/getAllMessages/index.ts +++ b/src/groups/item/team/channels/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/team/channels/index.ts b/src/groups/item/team/channels/index.ts index b48c1234ea7..79d5a85351f 100644 --- a/src/groups/item/team/channels/index.ts +++ b/src/groups/item/team/channels/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../../models/'; +import { type ChannelCollectionResponse } from '../../../../models'; import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../models/channel'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChannelsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/completeMigration/index.ts b/src/groups/item/team/channels/item/completeMigration/index.ts index d0f7d749f80..6f6d4f56c4c 100644 --- a/src/groups/item/team/channels/item/completeMigration/index.ts +++ b/src/groups/item/team/channels/item/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts b/src/groups/item/team/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts deleted file mode 100644 index 1de9a049b82..00000000000 --- a/src/groups/item/team/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; -} -export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { - return { - "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, - } -} -export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { - writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); - writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts b/src/groups/item/team/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts index cda508e6821..4d8dbd1d7e4 100644 --- a/src/groups/item/team/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts +++ b/src/groups/item/team/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts @@ -1,12 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue } from './'; -import { type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; +} +export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { + return { + "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, + } +} +export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /** * Usage: tenantId='@tenantId' @@ -21,6 +38,10 @@ export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalName */ userPrincipalName?: string; } +export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { + writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); + writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); +} /** * Provides operations to call the doesUserHaveAccess method. */ diff --git a/src/groups/item/team/channels/item/filesFolder/content/index.ts b/src/groups/item/team/channels/item/filesFolder/content/index.ts index 1b8f0aa371c..5da960a62fd 100644 --- a/src/groups/item/team/channels/item/filesFolder/content/index.ts +++ b/src/groups/item/team/channels/item/filesFolder/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/filesFolder/index.ts b/src/groups/item/team/channels/item/filesFolder/index.ts index f832cfd291d..788c7ec55fc 100644 --- a/src/groups/item/team/channels/item/filesFolder/index.ts +++ b/src/groups/item/team/channels/item/filesFolder/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../models/'; +import { type DriveItem } from '../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/index.ts b/src/groups/item/team/channels/item/index.ts index 6cdce175be0..17405bf0794 100644 --- a/src/groups/item/team/channels/item/index.ts +++ b/src/groups/item/team/channels/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../../models/channel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/'; -import { FilesFolderRequestBuilder } from './filesFolder/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { ProvisionEmailRequestBuilder } from './provisionEmail/'; -import { RemoveEmailRequestBuilder } from './removeEmail/'; -import { SharedWithTeamsRequestBuilder } from './sharedWithTeams/'; -import { TabsRequestBuilder } from './tabs/'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName'; +import { FilesFolderRequestBuilder } from './filesFolder'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { ProvisionEmailRequestBuilder } from './provisionEmail'; +import { RemoveEmailRequestBuilder } from './removeEmail'; +import { SharedWithTeamsRequestBuilder } from './sharedWithTeams'; +import { TabsRequestBuilder } from './tabs'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChannelItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/members/add/index.ts b/src/groups/item/team/channels/item/members/add/index.ts index fec22fcc3b6..77f485d5a9d 100644 --- a/src/groups/item/team/channels/item/members/add/index.ts +++ b/src/groups/item/team/channels/item/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/team/channels/item/members/count/index.ts b/src/groups/item/team/channels/item/members/count/index.ts index e2b4af47579..1720261722e 100644 --- a/src/groups/item/team/channels/item/members/count/index.ts +++ b/src/groups/item/team/channels/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/members/index.ts b/src/groups/item/team/channels/item/members/index.ts index 8acdbbc5bbc..97d762b63b1 100644 --- a/src/groups/item/team/channels/item/members/index.ts +++ b/src/groups/item/team/channels/item/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0|Find more info here} */ public post(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/channels/item/members/item/index.ts b/src/groups/item/team/channels/item/members/item/index.ts index b09ed3b3ace..e74683e6625 100644 --- a/src/groups/item/team/channels/item/members/item/index.ts +++ b/src/groups/item/team/channels/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -29,9 +29,9 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}"); }; /** - * 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. - * @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} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -60,11 +60,11 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -77,7 +77,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation */ @@ -99,7 +99,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/channels/item/messages/count/index.ts b/src/groups/item/team/channels/item/messages/count/index.ts index a9ae8eadcde..6bc2e1fce03 100644 --- a/src/groups/item/team/channels/item/messages/count/index.ts +++ b/src/groups/item/team/channels/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/delta/index.ts b/src/groups/item/team/channels/item/messages/delta/index.ts index b4c2795ba3b..59d96a1d51a 100644 --- a/src/groups/item/team/channels/item/messages/delta/index.ts +++ b/src/groups/item/team/channels/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/team/channels/item/messages/index.ts b/src/groups/item/team/channels/item/messages/index.ts index 93fa2acd57b..b6395f663d6 100644 --- a/src/groups/item/team/channels/item/messages/index.ts +++ b/src/groups/item/team/channels/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/channels/item/messages/item/hostedContents/count/index.ts b/src/groups/item/team/channels/item/messages/item/hostedContents/count/index.ts index 04d4d6c4ce0..039d76ce160 100644 --- a/src/groups/item/team/channels/item/messages/item/hostedContents/count/index.ts +++ b/src/groups/item/team/channels/item/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/hostedContents/index.ts b/src/groups/item/team/channels/item/messages/item/hostedContents/index.ts index 34891bcd830..af1f7da0417 100644 --- a/src/groups/item/team/channels/item/messages/item/hostedContents/index.ts +++ b/src/groups/item/team/channels/item/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/messages/item/hostedContents/item/index.ts b/src/groups/item/team/channels/item/messages/item/hostedContents/item/index.ts index 6d7200c57a5..988f155bc99 100644 --- a/src/groups/item/team/channels/item/messages/item/hostedContents/item/index.ts +++ b/src/groups/item/team/channels/item/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/messages/item/hostedContents/item/value/index.ts b/src/groups/item/team/channels/item/messages/item/hostedContents/item/value/index.ts index 4868ed2d06f..89b408f83f7 100644 --- a/src/groups/item/team/channels/item/messages/item/hostedContents/item/value/index.ts +++ b/src/groups/item/team/channels/item/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/index.ts b/src/groups/item/team/channels/item/messages/item/index.ts index af92f5f509a..9129cec2b19 100644 --- a/src/groups/item/team/channels/item/messages/item/index.ts +++ b/src/groups/item/team/channels/item/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/messages/item/replies/count/index.ts b/src/groups/item/team/channels/item/messages/item/replies/count/index.ts index 83733accd1d..c1fc81e8ff7 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/count/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/replies/delta/index.ts b/src/groups/item/team/channels/item/messages/item/replies/delta/index.ts index f14dc1a1b3d..293a6fdf13a 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/delta/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/team/channels/item/messages/item/replies/index.ts b/src/groups/item/team/channels/item/messages/item/replies/index.ts index a02c67acd19..783d797c907 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/count/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/count/index.ts index 5164f3f51a4..66d8314d7dd 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/index.ts index 1133a4662c7..265d8748262 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/item/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/item/index.ts index 6779e0e64c5..c057abf6919 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts index 6bb8d93442d..6cb04739946 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/index.ts index a2ea2bd8b7a..843943ae2fb 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/setReaction/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/setReaction/index.ts index d84537a4036..bd28c682d29 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/setReaction/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/groups/item/team/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/groups/item/team/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/softDelete/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/softDelete/index.ts index ee1346af2c4..b3f392c09d3 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/softDelete/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/undoSoftDelete/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/undoSoftDelete/index.ts index 40d9c1a9cd3..840dc3aaa58 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/unsetReaction/index.ts b/src/groups/item/team/channels/item/messages/item/replies/item/unsetReaction/index.ts index d65ab07c237..41956289d86 100644 --- a/src/groups/item/team/channels/item/messages/item/replies/item/unsetReaction/index.ts +++ b/src/groups/item/team/channels/item/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/groups/item/team/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/groups/item/team/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/groups/item/team/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/channels/item/messages/item/setReaction/index.ts b/src/groups/item/team/channels/item/messages/item/setReaction/index.ts index e22455a8a29..a80c1e3bea9 100644 --- a/src/groups/item/team/channels/item/messages/item/setReaction/index.ts +++ b/src/groups/item/team/channels/item/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/groups/item/team/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts b/src/groups/item/team/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/groups/item/team/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/channels/item/messages/item/softDelete/index.ts b/src/groups/item/team/channels/item/messages/item/softDelete/index.ts index 1c5784bac76..0be7bb04f6c 100644 --- a/src/groups/item/team/channels/item/messages/item/softDelete/index.ts +++ b/src/groups/item/team/channels/item/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/undoSoftDelete/index.ts b/src/groups/item/team/channels/item/messages/item/undoSoftDelete/index.ts index 5d89bf9d924..c81fbc4d996 100644 --- a/src/groups/item/team/channels/item/messages/item/undoSoftDelete/index.ts +++ b/src/groups/item/team/channels/item/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/messages/item/unsetReaction/index.ts b/src/groups/item/team/channels/item/messages/item/unsetReaction/index.ts index 7a903bcefb4..0c54367a12e 100644 --- a/src/groups/item/team/channels/item/messages/item/unsetReaction/index.ts +++ b/src/groups/item/team/channels/item/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/groups/item/team/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/groups/item/team/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/groups/item/team/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/channels/item/provisionEmail/index.ts b/src/groups/item/team/channels/item/provisionEmail/index.ts index 40803c95da1..c1bc5a9de94 100644 --- a/src/groups/item/team/channels/item/provisionEmail/index.ts +++ b/src/groups/item/team/channels/item/provisionEmail/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProvisionChannelEmailResult } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ProvisionChannelEmailResult } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createProvisionChannelEmailResultFromDiscriminatorValue } from '../../../../../../models/provisionChannelEmailResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/removeEmail/index.ts b/src/groups/item/team/channels/item/removeEmail/index.ts index 505e9bf86e1..a953ec8ab70 100644 --- a/src/groups/item/team/channels/item/removeEmail/index.ts +++ b/src/groups/item/team/channels/item/removeEmail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/sharedWithTeams/count/index.ts b/src/groups/item/team/channels/item/sharedWithTeams/count/index.ts index b16fd53a441..461a58bb42e 100644 --- a/src/groups/item/team/channels/item/sharedWithTeams/count/index.ts +++ b/src/groups/item/team/channels/item/sharedWithTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/sharedWithTeams/index.ts b/src/groups/item/team/channels/item/sharedWithTeams/index.ts index 9443de3d318..5d148a1ef3b 100644 --- a/src/groups/item/team/channels/item/sharedWithTeams/index.ts +++ b/src/groups/item/team/channels/item/sharedWithTeams/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../models/sharedWithChannelTeamInfo'; import { createSharedWithChannelTeamInfoCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sharedWithChannelTeamInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedWithChannelTeamInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedWithChannelTeamInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts b/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts index ff88146b1c6..43b3c54dd18 100644 --- a/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts +++ b/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/index.ts b/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/index.ts index 3059014d926..f5166546ecc 100644 --- a/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/index.ts +++ b/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../../../models'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts b/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts index d4013911e4d..e89ef56e1de 100644 --- a/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts +++ b/src/groups/item/team/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMember } from '../../../../../../../../../models/'; +import { type ConversationMember } from '../../../../../../../../../models'; import { createConversationMemberFromDiscriminatorValue } from '../../../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/sharedWithTeams/item/index.ts b/src/groups/item/team/channels/item/sharedWithTeams/item/index.ts index 2c6fee0c0db..cc242b0a94c 100644 --- a/src/groups/item/team/channels/item/sharedWithTeams/item/index.ts +++ b/src/groups/item/team/channels/item/sharedWithTeams/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../../models/sharedWithChannelTeamInfo'; -import { AllowedMembersRequestBuilder } from './allowedMembers/'; -import { TeamRequestBuilder } from './team/'; +import { AllowedMembersRequestBuilder } from './allowedMembers'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/sharedWithTeams/item/team/index.ts b/src/groups/item/team/channels/item/sharedWithTeams/item/team/index.ts index 20a3d19ad35..52a8cee4bbb 100644 --- a/src/groups/item/team/channels/item/sharedWithTeams/item/team/index.ts +++ b/src/groups/item/team/channels/item/sharedWithTeams/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type Team } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/tabs/count/index.ts b/src/groups/item/team/channels/item/tabs/count/index.ts index ac139ca7cf0..74b28110abd 100644 --- a/src/groups/item/team/channels/item/tabs/count/index.ts +++ b/src/groups/item/team/channels/item/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/channels/item/tabs/index.ts b/src/groups/item/team/channels/item/tabs/index.ts index 61acd85cc44..ee8885a10ca 100644 --- a/src/groups/item/team/channels/item/tabs/index.ts +++ b/src/groups/item/team/channels/item/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { @@ -90,7 +90,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createTeamsTabCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of TeamsTab @@ -118,7 +118,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/channels/item/tabs/item/index.ts b/src/groups/item/team/channels/item/tabs/item/index.ts index 7f86cb521c4..230de9a79f2 100644 --- a/src/groups/item/team/channels/item/tabs/item/index.ts +++ b/src/groups/item/team/channels/item/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/channels/item/tabs/item/teamsApp/index.ts b/src/groups/item/team/channels/item/tabs/item/teamsApp/index.ts index 948e076a257..6110f347b80 100644 --- a/src/groups/item/team/channels/item/tabs/item/teamsApp/index.ts +++ b/src/groups/item/team/channels/item/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/clone/clonePostRequestBody.ts b/src/groups/item/team/clone/clonePostRequestBody.ts deleted file mode 100644 index 5a12a0ae555..00000000000 --- a/src/groups/item/team/clone/clonePostRequestBody.ts +++ /dev/null @@ -1,62 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { ClonableTeamParts } from '../../../../models/clonableTeamParts'; -import { TeamVisibilityType } from '../../../../models/teamVisibilityType'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ClonePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The classification property - */ - classification?: string; - /** - * The description property - */ - description?: string; - /** - * The displayName property - */ - displayName?: string; - /** - * The mailNickname property - */ - mailNickname?: string; - /** - * The partsToClone property - */ - partsToClone?: ClonableTeamParts[]; - /** - * The visibility property - */ - visibility?: TeamVisibilityType; -} -export function createClonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoClonePostRequestBody; -} -export function deserializeIntoClonePostRequestBody(clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : Record void> { - return { - "classification": n => { clonePostRequestBody.classification = n.getStringValue(); }, - "description": n => { clonePostRequestBody.description = n.getStringValue(); }, - "displayName": n => { clonePostRequestBody.displayName = n.getStringValue(); }, - "mailNickname": n => { clonePostRequestBody.mailNickname = n.getStringValue(); }, - "partsToClone": n => { clonePostRequestBody.partsToClone = n.getCollectionOfEnumValues(ClonableTeamParts); }, - "visibility": n => { clonePostRequestBody.visibility = n.getEnumValue(TeamVisibilityType); }, - } -} -export function serializeClonePostRequestBody(writer: SerializationWriter, clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : void { - writer.writeStringValue("classification", clonePostRequestBody.classification); - writer.writeStringValue("description", clonePostRequestBody.description); - writer.writeStringValue("displayName", clonePostRequestBody.displayName); - writer.writeStringValue("mailNickname", clonePostRequestBody.mailNickname); - writer.writeEnumValue("partsToClone", clonePostRequestBody.partsToClone); - writer.writeEnumValue("visibility", clonePostRequestBody.visibility); - writer.writeAdditionalData(clonePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/clone/index.ts b/src/groups/item/team/clone/index.ts index 557f0c70950..508be94f16a 100644 --- a/src/groups/item/team/clone/index.ts +++ b/src/groups/item/team/clone/index.ts @@ -1,11 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { ClonableTeamParts } from '../../../../models/clonableTeamParts'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoClonePostRequestBody, serializeClonePostRequestBody, type ClonePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { TeamVisibilityType } from '../../../../models/teamVisibilityType'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ClonePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The classification property + */ + classification?: string; + /** + * The description property + */ + description?: string; + /** + * The displayName property + */ + displayName?: string; + /** + * The mailNickname property + */ + mailNickname?: string; + /** + * The partsToClone property + */ + partsToClone?: ClonableTeamParts[]; + /** + * The visibility property + */ + visibility?: TeamVisibilityType; +} +export function createClonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoClonePostRequestBody; +} +export function deserializeIntoClonePostRequestBody(clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : Record void> { + return { + "classification": n => { clonePostRequestBody.classification = n.getStringValue(); }, + "description": n => { clonePostRequestBody.description = n.getStringValue(); }, + "displayName": n => { clonePostRequestBody.displayName = n.getStringValue(); }, + "mailNickname": n => { clonePostRequestBody.mailNickname = n.getStringValue(); }, + "partsToClone": n => { clonePostRequestBody.partsToClone = n.getCollectionOfEnumValues(ClonableTeamParts); }, + "visibility": n => { clonePostRequestBody.visibility = n.getEnumValue(TeamVisibilityType); }, + } +} +export function serializeClonePostRequestBody(writer: SerializationWriter, clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : void { + writer.writeStringValue("classification", clonePostRequestBody.classification); + writer.writeStringValue("description", clonePostRequestBody.description); + writer.writeStringValue("displayName", clonePostRequestBody.displayName); + writer.writeStringValue("mailNickname", clonePostRequestBody.mailNickname); + writer.writeEnumValue("partsToClone", clonePostRequestBody.partsToClone); + writer.writeEnumValue("visibility", clonePostRequestBody.visibility); + writer.writeAdditionalData(clonePostRequestBody.additionalData); +} /** * Provides operations to call the clone method. */ diff --git a/src/groups/item/team/completeMigration/index.ts b/src/groups/item/team/completeMigration/index.ts index 6ce47f21939..65e7bc7ecf2 100644 --- a/src/groups/item/team/completeMigration/index.ts +++ b/src/groups/item/team/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/group/index.ts b/src/groups/item/team/group/index.ts index 1a6980f50fc..4f66ae84adf 100644 --- a/src/groups/item/team/group/index.ts +++ b/src/groups/item/team/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../models/'; +import { type Group } from '../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../models/group'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/group/serviceProvisioningErrors/count/index.ts b/src/groups/item/team/group/serviceProvisioningErrors/count/index.ts index 3da35cabe06..9875e2c0f43 100644 --- a/src/groups/item/team/group/serviceProvisioningErrors/count/index.ts +++ b/src/groups/item/team/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/group/serviceProvisioningErrors/index.ts b/src/groups/item/team/group/serviceProvisioningErrors/index.ts index adc0a1f8b08..717721898f9 100644 --- a/src/groups/item/team/group/serviceProvisioningErrors/index.ts +++ b/src/groups/item/team/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/incomingChannels/count/index.ts b/src/groups/item/team/incomingChannels/count/index.ts index 10b0fc4221c..edec7d9029b 100644 --- a/src/groups/item/team/incomingChannels/count/index.ts +++ b/src/groups/item/team/incomingChannels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/incomingChannels/index.ts b/src/groups/item/team/incomingChannels/index.ts index cf907872c35..94d6a21d65f 100644 --- a/src/groups/item/team/incomingChannels/index.ts +++ b/src/groups/item/team/incomingChannels/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../../models/'; +import { type ChannelCollectionResponse } from '../../../../models'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IncomingChannelsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/incomingChannels/item/index.ts b/src/groups/item/team/incomingChannels/item/index.ts index 3d32d1537b0..984bbfb9598 100644 --- a/src/groups/item/team/incomingChannels/item/index.ts +++ b/src/groups/item/team/incomingChannels/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Channel } from '../../../../../models/'; +import { type Channel } from '../../../../../models'; import { createChannelFromDiscriminatorValue } from '../../../../../models/channel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/index.ts b/src/groups/item/team/index.ts index d3be9bc7890..51fd675843c 100644 --- a/src/groups/item/team/index.ts +++ b/src/groups/item/team/index.ts @@ -1,27 +1,27 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue, deserializeIntoTeam, serializeTeam, type Team } from '../../../models/team'; -import { AllChannelsRequestBuilder } from './allChannels/'; -import { ArchiveRequestBuilder } from './archive/'; -import { ChannelsRequestBuilder } from './channels/'; -import { CloneRequestBuilder } from './clone/'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { GroupRequestBuilder } from './group/'; -import { IncomingChannelsRequestBuilder } from './incomingChannels/'; -import { InstalledAppsRequestBuilder } from './installedApps/'; -import { MembersRequestBuilder } from './members/'; -import { OperationsRequestBuilder } from './operations/'; -import { PermissionGrantsRequestBuilder } from './permissionGrants/'; -import { PhotoRequestBuilder } from './photo/'; -import { PrimaryChannelRequestBuilder } from './primaryChannel/'; -import { ScheduleRequestBuilder } from './schedule/'; -import { SendActivityNotificationRequestBuilder } from './sendActivityNotification/'; -import { TagsRequestBuilder } from './tags/'; -import { TemplateRequestBuilder } from './template/'; -import { UnarchiveRequestBuilder } from './unarchive/'; +import { AllChannelsRequestBuilder } from './allChannels'; +import { ArchiveRequestBuilder } from './archive'; +import { ChannelsRequestBuilder } from './channels'; +import { CloneRequestBuilder } from './clone'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { GroupRequestBuilder } from './group'; +import { IncomingChannelsRequestBuilder } from './incomingChannels'; +import { InstalledAppsRequestBuilder } from './installedApps'; +import { MembersRequestBuilder } from './members'; +import { OperationsRequestBuilder } from './operations'; +import { PermissionGrantsRequestBuilder } from './permissionGrants'; +import { PhotoRequestBuilder } from './photo'; +import { PrimaryChannelRequestBuilder } from './primaryChannel'; +import { ScheduleRequestBuilder } from './schedule'; +import { SendActivityNotificationRequestBuilder } from './sendActivityNotification'; +import { TagsRequestBuilder } from './tags'; +import { TemplateRequestBuilder } from './template'; +import { UnarchiveRequestBuilder } from './unarchive'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/installedApps/count/index.ts b/src/groups/item/team/installedApps/count/index.ts index d38487dbad4..06abfe7a6c6 100644 --- a/src/groups/item/team/installedApps/count/index.ts +++ b/src/groups/item/team/installedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/installedApps/index.ts b/src/groups/item/team/installedApps/index.ts index ce1c5274228..47f484f2627 100644 --- a/src/groups/item/team/installedApps/index.ts +++ b/src/groups/item/team/installedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppInstallationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TeamsAppInstallationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../../models/teamsAppInstallation'; import { createTeamsAppInstallationCollectionResponseFromDiscriminatorValue } from '../../../../models/teamsAppInstallationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAppInstallationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAppInstallationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstalledAppsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/installedApps/item/index.ts b/src/groups/item/team/installedApps/item/index.ts index 22e2714cfbc..10b9f27a48c 100644 --- a/src/groups/item/team/installedApps/item/index.ts +++ b/src/groups/item/team/installedApps/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../../../models/teamsAppInstallation'; -import { TeamsAppRequestBuilder } from './teamsApp/'; -import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition/'; -import { UpgradeRequestBuilder } from './upgrade/'; +import { TeamsAppRequestBuilder } from './teamsApp'; +import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition'; +import { UpgradeRequestBuilder } from './upgrade'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsAppInstallationItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/installedApps/item/teamsApp/index.ts b/src/groups/item/team/installedApps/item/teamsApp/index.ts index ce974e393d0..130f986f622 100644 --- a/src/groups/item/team/installedApps/item/teamsApp/index.ts +++ b/src/groups/item/team/installedApps/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/installedApps/item/teamsAppDefinition/index.ts b/src/groups/item/team/installedApps/item/teamsAppDefinition/index.ts index 220639534cd..ac6b2999927 100644 --- a/src/groups/item/team/installedApps/item/teamsAppDefinition/index.ts +++ b/src/groups/item/team/installedApps/item/teamsAppDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppDefinition } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamsAppDefinition } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppDefinitionFromDiscriminatorValue } from '../../../../../../models/teamsAppDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/installedApps/item/upgrade/index.ts b/src/groups/item/team/installedApps/item/upgrade/index.ts index 363654798ee..88a476edda8 100644 --- a/src/groups/item/team/installedApps/item/upgrade/index.ts +++ b/src/groups/item/team/installedApps/item/upgrade/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUpgradePostRequestBody, serializeUpgradePostRequestBody, type UpgradePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../../models/teamsAppPermissionSet'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpgradePostRequestBody; +} +export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { + return { + "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, + } +} +export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { + writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); + writer.writeAdditionalData(upgradePostRequestBody.additionalData); +} +export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The consentedPermissionSet property + */ + consentedPermissionSet?: TeamsAppPermissionSet; +} /** * Provides operations to call the upgrade method. */ diff --git a/src/groups/item/team/installedApps/item/upgrade/upgradePostRequestBody.ts b/src/groups/item/team/installedApps/item/upgrade/upgradePostRequestBody.ts deleted file mode 100644 index c7bcfddd556..00000000000 --- a/src/groups/item/team/installedApps/item/upgrade/upgradePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../../models/teamsAppPermissionSet'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpgradePostRequestBody; -} -export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { - return { - "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, - } -} -export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { - writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); - writer.writeAdditionalData(upgradePostRequestBody.additionalData); -} -export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The consentedPermissionSet property - */ - consentedPermissionSet?: TeamsAppPermissionSet; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/members/add/index.ts b/src/groups/item/team/members/add/index.ts index 015baf79bd9..65617dc7c5c 100644 --- a/src/groups/item/team/members/add/index.ts +++ b/src/groups/item/team/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/team/members/count/index.ts b/src/groups/item/team/members/count/index.ts index 07166045e04..68a3d0d4460 100644 --- a/src/groups/item/team/members/count/index.ts +++ b/src/groups/item/team/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/members/index.ts b/src/groups/item/team/members/index.ts index c6d244275c5..fd77d3c087c 100644 --- a/src/groups/item/team/members/index.ts +++ b/src/groups/item/team/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/members/item/index.ts b/src/groups/item/team/members/item/index.ts index f9721e1613d..59cc606b5b3 100644 --- a/src/groups/item/team/members/item/index.ts +++ b/src/groups/item/team/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/operations/count/index.ts b/src/groups/item/team/operations/count/index.ts index 76c2793398e..275f604a5a2 100644 --- a/src/groups/item/team/operations/count/index.ts +++ b/src/groups/item/team/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/operations/index.ts b/src/groups/item/team/operations/index.ts index 2d39607f865..75c4796f05a 100644 --- a/src/groups/item/team/operations/index.ts +++ b/src/groups/item/team/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAsyncOperationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TeamsAsyncOperationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsAsyncOperationFromDiscriminatorValue, deserializeIntoTeamsAsyncOperation, serializeTeamsAsyncOperation, type TeamsAsyncOperation } from '../../../../models/teamsAsyncOperation'; import { createTeamsAsyncOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/teamsAsyncOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAsyncOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAsyncOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/operations/item/index.ts b/src/groups/item/team/operations/item/index.ts index a774ccdb192..6426da52954 100644 --- a/src/groups/item/team/operations/item/index.ts +++ b/src/groups/item/team/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAsyncOperationFromDiscriminatorValue, deserializeIntoTeamsAsyncOperation, serializeTeamsAsyncOperation, type TeamsAsyncOperation } from '../../../../../models/teamsAsyncOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/permissionGrants/count/index.ts b/src/groups/item/team/permissionGrants/count/index.ts index 756b8b54976..1d079d5fefc 100644 --- a/src/groups/item/team/permissionGrants/count/index.ts +++ b/src/groups/item/team/permissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/permissionGrants/index.ts b/src/groups/item/team/permissionGrants/index.ts index 011691b24f2..48fa6c4d5e1 100644 --- a/src/groups/item/team/permissionGrants/index.ts +++ b/src/groups/item/team/permissionGrants/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../models/resourceSpecificPermissionGrant'; import { createResourceSpecificPermissionGrantCollectionResponseFromDiscriminatorValue } from '../../../../models/resourceSpecificPermissionGrantCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/permissionGrants/item/index.ts b/src/groups/item/team/permissionGrants/item/index.ts index 69f0693fe95..1ae5d058e1a 100644 --- a/src/groups/item/team/permissionGrants/item/index.ts +++ b/src/groups/item/team/permissionGrants/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../../models/resourceSpecificPermissionGrant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/photo/index.ts b/src/groups/item/team/photo/index.ts index f4acb89c93f..b4edad6e1bf 100644 --- a/src/groups/item/team/photo/index.ts +++ b/src/groups/item/team/photo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue, deserializeIntoProfilePhoto, serializeProfilePhoto, type ProfilePhoto } from '../../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotoRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/photo/value/index.ts b/src/groups/item/team/photo/value/index.ts index 95bc365d481..026c16665e5 100644 --- a/src/groups/item/team/photo/value/index.ts +++ b/src/groups/item/team/photo/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/completeMigration/index.ts b/src/groups/item/team/primaryChannel/completeMigration/index.ts index 97f3c9b1e23..573c540b162 100644 --- a/src/groups/item/team/primaryChannel/completeMigration/index.ts +++ b/src/groups/item/team/primaryChannel/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts b/src/groups/item/team/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts deleted file mode 100644 index 1de9a049b82..00000000000 --- a/src/groups/item/team/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; -} -export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { - return { - "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, - } -} -export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { - writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); - writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts b/src/groups/item/team/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts index c930c57d237..8ec8f33a749 100644 --- a/src/groups/item/team/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts +++ b/src/groups/item/team/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts @@ -1,12 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue } from './'; -import { type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; +} +export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { + return { + "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, + } +} +export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /** * Usage: tenantId='@tenantId' @@ -21,6 +38,10 @@ export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalName */ userPrincipalName?: string; } +export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { + writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); + writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); +} /** * Provides operations to call the doesUserHaveAccess method. */ diff --git a/src/groups/item/team/primaryChannel/filesFolder/content/index.ts b/src/groups/item/team/primaryChannel/filesFolder/content/index.ts index d38e5b2ffe8..9bcab477382 100644 --- a/src/groups/item/team/primaryChannel/filesFolder/content/index.ts +++ b/src/groups/item/team/primaryChannel/filesFolder/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../models/'; +import { type DriveItem } from '../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/filesFolder/index.ts b/src/groups/item/team/primaryChannel/filesFolder/index.ts index 729d37a99c9..d8b33d003f0 100644 --- a/src/groups/item/team/primaryChannel/filesFolder/index.ts +++ b/src/groups/item/team/primaryChannel/filesFolder/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/index.ts b/src/groups/item/team/primaryChannel/index.ts index 58ec185d5cb..454887e1c4f 100644 --- a/src/groups/item/team/primaryChannel/index.ts +++ b/src/groups/item/team/primaryChannel/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../models/channel'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/'; -import { FilesFolderRequestBuilder } from './filesFolder/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { ProvisionEmailRequestBuilder } from './provisionEmail/'; -import { RemoveEmailRequestBuilder } from './removeEmail/'; -import { SharedWithTeamsRequestBuilder } from './sharedWithTeams/'; -import { TabsRequestBuilder } from './tabs/'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName'; +import { FilesFolderRequestBuilder } from './filesFolder'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { ProvisionEmailRequestBuilder } from './provisionEmail'; +import { RemoveEmailRequestBuilder } from './removeEmail'; +import { SharedWithTeamsRequestBuilder } from './sharedWithTeams'; +import { TabsRequestBuilder } from './tabs'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrimaryChannelRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/members/add/index.ts b/src/groups/item/team/primaryChannel/members/add/index.ts index 5b14e3eb928..5f556cb66c2 100644 --- a/src/groups/item/team/primaryChannel/members/add/index.ts +++ b/src/groups/item/team/primaryChannel/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/team/primaryChannel/members/count/index.ts b/src/groups/item/team/primaryChannel/members/count/index.ts index 9ac98ad0208..1a55609f852 100644 --- a/src/groups/item/team/primaryChannel/members/count/index.ts +++ b/src/groups/item/team/primaryChannel/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/members/index.ts b/src/groups/item/team/primaryChannel/members/index.ts index 76375007e03..2e6ccd281ed 100644 --- a/src/groups/item/team/primaryChannel/members/index.ts +++ b/src/groups/item/team/primaryChannel/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0|Find more info here} */ public post(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/primaryChannel/members/item/index.ts b/src/groups/item/team/primaryChannel/members/item/index.ts index b2005dd54d9..cedd81e6278 100644 --- a/src/groups/item/team/primaryChannel/members/item/index.ts +++ b/src/groups/item/team/primaryChannel/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -29,9 +29,9 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}"); }; /** - * 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. - * @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} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -60,11 +60,11 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -77,7 +77,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation */ @@ -99,7 +99,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/primaryChannel/messages/count/index.ts b/src/groups/item/team/primaryChannel/messages/count/index.ts index a6eef6724a1..a1f78ab709b 100644 --- a/src/groups/item/team/primaryChannel/messages/count/index.ts +++ b/src/groups/item/team/primaryChannel/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/delta/index.ts b/src/groups/item/team/primaryChannel/messages/delta/index.ts index 7b8cf966575..2583531097d 100644 --- a/src/groups/item/team/primaryChannel/messages/delta/index.ts +++ b/src/groups/item/team/primaryChannel/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/team/primaryChannel/messages/index.ts b/src/groups/item/team/primaryChannel/messages/index.ts index 153dd13e718..3cf095dc96c 100644 --- a/src/groups/item/team/primaryChannel/messages/index.ts +++ b/src/groups/item/team/primaryChannel/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/primaryChannel/messages/item/hostedContents/count/index.ts b/src/groups/item/team/primaryChannel/messages/item/hostedContents/count/index.ts index 906debe49b0..56e170b145c 100644 --- a/src/groups/item/team/primaryChannel/messages/item/hostedContents/count/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/hostedContents/index.ts b/src/groups/item/team/primaryChannel/messages/item/hostedContents/index.ts index 9b2b28ef574..1b93527825e 100644 --- a/src/groups/item/team/primaryChannel/messages/item/hostedContents/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/messages/item/hostedContents/item/index.ts b/src/groups/item/team/primaryChannel/messages/item/hostedContents/item/index.ts index 41565c4d894..1d114cb869f 100644 --- a/src/groups/item/team/primaryChannel/messages/item/hostedContents/item/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/messages/item/hostedContents/item/value/index.ts b/src/groups/item/team/primaryChannel/messages/item/hostedContents/item/value/index.ts index 73dbda95cee..7f7ea6ec012 100644 --- a/src/groups/item/team/primaryChannel/messages/item/hostedContents/item/value/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/index.ts b/src/groups/item/team/primaryChannel/messages/item/index.ts index c1832ec064c..29d337999b0 100644 --- a/src/groups/item/team/primaryChannel/messages/item/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/count/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/count/index.ts index 04846ee65b9..148ede7e63d 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/count/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/delta/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/delta/index.ts index 254e93114e3..90e4229bb0c 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/delta/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/index.ts index 8108a53d9e0..f084bf32a89 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts index 391fc613c17..b86b7ae9a7b 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/index.ts index b77acd6f3a7..e515cc33e66 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts index 3179f23e849..e497512b02d 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts index 85dd73208b5..8b752fef5fa 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/index.ts index d56460dcd4b..620d19a0c75 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/setReaction/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/setReaction/index.ts index 7cf385a6078..2e83736eac4 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/setReaction/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/softDelete/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/softDelete/index.ts index 88f0ef5d460..650d9070ae2 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/softDelete/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts index 2daa534819b..acd9560aa55 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/unsetReaction/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/unsetReaction/index.ts index 4d8afc1d253..5d3e4019950 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/unsetReaction/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/groups/item/team/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/groups/item/team/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/primaryChannel/messages/item/setReaction/index.ts b/src/groups/item/team/primaryChannel/messages/item/setReaction/index.ts index 368df7838c6..e5d7302c57a 100644 --- a/src/groups/item/team/primaryChannel/messages/item/setReaction/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/groups/item/team/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts b/src/groups/item/team/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/groups/item/team/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/primaryChannel/messages/item/softDelete/index.ts b/src/groups/item/team/primaryChannel/messages/item/softDelete/index.ts index b5120f79216..e229ebe0098 100644 --- a/src/groups/item/team/primaryChannel/messages/item/softDelete/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/undoSoftDelete/index.ts b/src/groups/item/team/primaryChannel/messages/item/undoSoftDelete/index.ts index 54fdaecf75a..1fb079b00c9 100644 --- a/src/groups/item/team/primaryChannel/messages/item/undoSoftDelete/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/messages/item/unsetReaction/index.ts b/src/groups/item/team/primaryChannel/messages/item/unsetReaction/index.ts index 416268cb5dc..e8d756e6208 100644 --- a/src/groups/item/team/primaryChannel/messages/item/unsetReaction/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/groups/item/team/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/groups/item/team/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/groups/item/team/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/primaryChannel/provisionEmail/index.ts b/src/groups/item/team/primaryChannel/provisionEmail/index.ts index 915d3ac1f39..f34c946c130 100644 --- a/src/groups/item/team/primaryChannel/provisionEmail/index.ts +++ b/src/groups/item/team/primaryChannel/provisionEmail/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProvisionChannelEmailResult } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ProvisionChannelEmailResult } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createProvisionChannelEmailResultFromDiscriminatorValue } from '../../../../../models/provisionChannelEmailResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/removeEmail/index.ts b/src/groups/item/team/primaryChannel/removeEmail/index.ts index 15d60044c1a..82ba1c5823e 100644 --- a/src/groups/item/team/primaryChannel/removeEmail/index.ts +++ b/src/groups/item/team/primaryChannel/removeEmail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/sharedWithTeams/count/index.ts b/src/groups/item/team/primaryChannel/sharedWithTeams/count/index.ts index 3612e08515a..ed1e0f1be25 100644 --- a/src/groups/item/team/primaryChannel/sharedWithTeams/count/index.ts +++ b/src/groups/item/team/primaryChannel/sharedWithTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/sharedWithTeams/index.ts b/src/groups/item/team/primaryChannel/sharedWithTeams/index.ts index ba542323f10..211adb386f9 100644 --- a/src/groups/item/team/primaryChannel/sharedWithTeams/index.ts +++ b/src/groups/item/team/primaryChannel/sharedWithTeams/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../models/sharedWithChannelTeamInfo'; import { createSharedWithChannelTeamInfoCollectionResponseFromDiscriminatorValue } from '../../../../../models/sharedWithChannelTeamInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedWithChannelTeamInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedWithChannelTeamInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts b/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts index df7c7e61677..4e8d7154894 100644 --- a/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts +++ b/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts b/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts index 149071fe075..686407c9100 100644 --- a/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts +++ b/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../../models'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts b/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts index eae7974e910..ccb4c1d264a 100644 --- a/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts +++ b/src/groups/item/team/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMember } from '../../../../../../../../models/'; +import { type ConversationMember } from '../../../../../../../../models'; import { createConversationMemberFromDiscriminatorValue } from '../../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/sharedWithTeams/item/index.ts b/src/groups/item/team/primaryChannel/sharedWithTeams/item/index.ts index 3e217e82951..48995348a1a 100644 --- a/src/groups/item/team/primaryChannel/sharedWithTeams/item/index.ts +++ b/src/groups/item/team/primaryChannel/sharedWithTeams/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../models/sharedWithChannelTeamInfo'; -import { AllowedMembersRequestBuilder } from './allowedMembers/'; -import { TeamRequestBuilder } from './team/'; +import { AllowedMembersRequestBuilder } from './allowedMembers'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/sharedWithTeams/item/team/index.ts b/src/groups/item/team/primaryChannel/sharedWithTeams/item/team/index.ts index 98e11e35814..1ac93ed9c9f 100644 --- a/src/groups/item/team/primaryChannel/sharedWithTeams/item/team/index.ts +++ b/src/groups/item/team/primaryChannel/sharedWithTeams/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type Team } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/tabs/count/index.ts b/src/groups/item/team/primaryChannel/tabs/count/index.ts index 5b4b053aa3c..6046bf6437a 100644 --- a/src/groups/item/team/primaryChannel/tabs/count/index.ts +++ b/src/groups/item/team/primaryChannel/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/primaryChannel/tabs/index.ts b/src/groups/item/team/primaryChannel/tabs/index.ts index cc62f2aeaf9..198a335e1be 100644 --- a/src/groups/item/team/primaryChannel/tabs/index.ts +++ b/src/groups/item/team/primaryChannel/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { @@ -90,7 +90,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createTeamsTabCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of TeamsTab @@ -118,7 +118,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/team/primaryChannel/tabs/item/index.ts b/src/groups/item/team/primaryChannel/tabs/item/index.ts index 8bfed2af409..68c3fcd94f3 100644 --- a/src/groups/item/team/primaryChannel/tabs/item/index.ts +++ b/src/groups/item/team/primaryChannel/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/primaryChannel/tabs/item/teamsApp/index.ts b/src/groups/item/team/primaryChannel/tabs/item/teamsApp/index.ts index a6f2e3bd01b..a80ccd7f5ba 100644 --- a/src/groups/item/team/primaryChannel/tabs/item/teamsApp/index.ts +++ b/src/groups/item/team/primaryChannel/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/index.ts b/src/groups/item/team/schedule/index.ts index e45f9815f26..8ec85150377 100644 --- a/src/groups/item/team/schedule/index.ts +++ b/src/groups/item/team/schedule/index.ts @@ -1,19 +1,19 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createScheduleFromDiscriminatorValue, deserializeIntoSchedule, serializeSchedule, type Schedule } from '../../../../models/schedule'; -import { OfferShiftRequestsRequestBuilder } from './offerShiftRequests/'; -import { OpenShiftChangeRequestsRequestBuilder } from './openShiftChangeRequests/'; -import { OpenShiftsRequestBuilder } from './openShifts/'; -import { SchedulingGroupsRequestBuilder } from './schedulingGroups/'; -import { ShareRequestBuilder } from './share/'; -import { ShiftsRequestBuilder } from './shifts/'; -import { SwapShiftsChangeRequestsRequestBuilder } from './swapShiftsChangeRequests/'; -import { TimeOffReasonsRequestBuilder } from './timeOffReasons/'; -import { TimeOffRequestsRequestBuilder } from './timeOffRequests/'; -import { TimesOffRequestBuilder } from './timesOff/'; +import { OfferShiftRequestsRequestBuilder } from './offerShiftRequests'; +import { OpenShiftChangeRequestsRequestBuilder } from './openShiftChangeRequests'; +import { OpenShiftsRequestBuilder } from './openShifts'; +import { SchedulingGroupsRequestBuilder } from './schedulingGroups'; +import { ShareRequestBuilder } from './share'; +import { ShiftsRequestBuilder } from './shifts'; +import { SwapShiftsChangeRequestsRequestBuilder } from './swapShiftsChangeRequests'; +import { TimeOffReasonsRequestBuilder } from './timeOffReasons'; +import { TimeOffRequestsRequestBuilder } from './timeOffRequests'; +import { TimesOffRequestBuilder } from './timesOff'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScheduleRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/offerShiftRequests/count/index.ts b/src/groups/item/team/schedule/offerShiftRequests/count/index.ts index 741105ae673..ae4f8806ed8 100644 --- a/src/groups/item/team/schedule/offerShiftRequests/count/index.ts +++ b/src/groups/item/team/schedule/offerShiftRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/offerShiftRequests/index.ts b/src/groups/item/team/schedule/offerShiftRequests/index.ts index 8f01c12b942..1c23d8a9bb4 100644 --- a/src/groups/item/team/schedule/offerShiftRequests/index.ts +++ b/src/groups/item/team/schedule/offerShiftRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OfferShiftRequestCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OfferShiftRequestCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOfferShiftRequestFromDiscriminatorValue, deserializeIntoOfferShiftRequest, serializeOfferShiftRequest, type OfferShiftRequest } from '../../../../../models/offerShiftRequest'; import { createOfferShiftRequestCollectionResponseFromDiscriminatorValue } from '../../../../../models/offerShiftRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OfferShiftRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OfferShiftRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OfferShiftRequestsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/offerShiftRequests/item/index.ts b/src/groups/item/team/schedule/offerShiftRequests/item/index.ts index ab84e4429f7..cf25dbe721f 100644 --- a/src/groups/item/team/schedule/offerShiftRequests/item/index.ts +++ b/src/groups/item/team/schedule/offerShiftRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOfferShiftRequestFromDiscriminatorValue, deserializeIntoOfferShiftRequest, serializeOfferShiftRequest, type OfferShiftRequest } from '../../../../../../models/offerShiftRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/openShiftChangeRequests/count/index.ts b/src/groups/item/team/schedule/openShiftChangeRequests/count/index.ts index 3ef95ff16dd..037c2c9f85d 100644 --- a/src/groups/item/team/schedule/openShiftChangeRequests/count/index.ts +++ b/src/groups/item/team/schedule/openShiftChangeRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/openShiftChangeRequests/index.ts b/src/groups/item/team/schedule/openShiftChangeRequests/index.ts index 4db224efa3d..672fae9efe4 100644 --- a/src/groups/item/team/schedule/openShiftChangeRequests/index.ts +++ b/src/groups/item/team/schedule/openShiftChangeRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OpenShiftChangeRequestCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OpenShiftChangeRequestCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOpenShiftChangeRequestFromDiscriminatorValue, deserializeIntoOpenShiftChangeRequest, serializeOpenShiftChangeRequest, type OpenShiftChangeRequest } from '../../../../../models/openShiftChangeRequest'; import { createOpenShiftChangeRequestCollectionResponseFromDiscriminatorValue } from '../../../../../models/openShiftChangeRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OpenShiftChangeRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OpenShiftChangeRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OpenShiftChangeRequestsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/openShiftChangeRequests/item/index.ts b/src/groups/item/team/schedule/openShiftChangeRequests/item/index.ts index 48d0b78719c..f1ac7f420b9 100644 --- a/src/groups/item/team/schedule/openShiftChangeRequests/item/index.ts +++ b/src/groups/item/team/schedule/openShiftChangeRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOpenShiftChangeRequestFromDiscriminatorValue, deserializeIntoOpenShiftChangeRequest, serializeOpenShiftChangeRequest, type OpenShiftChangeRequest } from '../../../../../../models/openShiftChangeRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/openShifts/count/index.ts b/src/groups/item/team/schedule/openShifts/count/index.ts index b6003923399..ba9b889f0d1 100644 --- a/src/groups/item/team/schedule/openShifts/count/index.ts +++ b/src/groups/item/team/schedule/openShifts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/openShifts/index.ts b/src/groups/item/team/schedule/openShifts/index.ts index a58650ad57a..f3fa3411f67 100644 --- a/src/groups/item/team/schedule/openShifts/index.ts +++ b/src/groups/item/team/schedule/openShifts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OpenShiftCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OpenShiftCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOpenShiftFromDiscriminatorValue, deserializeIntoOpenShift, serializeOpenShift, type OpenShift } from '../../../../../models/openShift'; import { createOpenShiftCollectionResponseFromDiscriminatorValue } from '../../../../../models/openShiftCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OpenShiftItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OpenShiftItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OpenShiftsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/openShifts/item/index.ts b/src/groups/item/team/schedule/openShifts/item/index.ts index b45626cd682..ea69cf26e33 100644 --- a/src/groups/item/team/schedule/openShifts/item/index.ts +++ b/src/groups/item/team/schedule/openShifts/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOpenShiftFromDiscriminatorValue, deserializeIntoOpenShift, serializeOpenShift, type OpenShift } from '../../../../../../models/openShift'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/schedulingGroups/count/index.ts b/src/groups/item/team/schedule/schedulingGroups/count/index.ts index d360a55b409..43a33fc4b20 100644 --- a/src/groups/item/team/schedule/schedulingGroups/count/index.ts +++ b/src/groups/item/team/schedule/schedulingGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/schedulingGroups/index.ts b/src/groups/item/team/schedule/schedulingGroups/index.ts index 600c46923b3..f7595852c25 100644 --- a/src/groups/item/team/schedule/schedulingGroups/index.ts +++ b/src/groups/item/team/schedule/schedulingGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SchedulingGroupCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SchedulingGroupCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSchedulingGroupFromDiscriminatorValue, deserializeIntoSchedulingGroup, serializeSchedulingGroup, type SchedulingGroup } from '../../../../../models/schedulingGroup'; import { createSchedulingGroupCollectionResponseFromDiscriminatorValue } from '../../../../../models/schedulingGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SchedulingGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SchedulingGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchedulingGroupsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/schedulingGroups/item/index.ts b/src/groups/item/team/schedule/schedulingGroups/item/index.ts index 8ae43cac62e..eb7065c324b 100644 --- a/src/groups/item/team/schedule/schedulingGroups/item/index.ts +++ b/src/groups/item/team/schedule/schedulingGroups/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSchedulingGroupFromDiscriminatorValue, deserializeIntoSchedulingGroup, serializeSchedulingGroup, type SchedulingGroup } from '../../../../../../models/schedulingGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/share/index.ts b/src/groups/item/team/schedule/share/index.ts index 8155036f3f1..e573be900e6 100644 --- a/src/groups/item/team/schedule/share/index.ts +++ b/src/groups/item/team/schedule/share/index.ts @@ -1,11 +1,45 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSharePostRequestBody, serializeSharePostRequestBody, type SharePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSharePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSharePostRequestBody; +} +export function deserializeIntoSharePostRequestBody(sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : Record void> { + return { + "endDateTime": n => { sharePostRequestBody.endDateTime = n.getDateValue(); }, + "notifyTeam": n => { sharePostRequestBody.notifyTeam = n.getBooleanValue(); }, + "startDateTime": n => { sharePostRequestBody.startDateTime = n.getDateValue(); }, + } +} +export function serializeSharePostRequestBody(writer: SerializationWriter, sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : void { + writer.writeDateValue("endDateTime", sharePostRequestBody.endDateTime); + writer.writeBooleanValue("notifyTeam", sharePostRequestBody.notifyTeam); + writer.writeDateValue("startDateTime", sharePostRequestBody.startDateTime); + writer.writeAdditionalData(sharePostRequestBody.additionalData); +} +export interface SharePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The endDateTime property + */ + endDateTime?: Date; + /** + * The notifyTeam property + */ + notifyTeam?: boolean; + /** + * The startDateTime property + */ + startDateTime?: Date; +} /** * Provides operations to call the share method. */ diff --git a/src/groups/item/team/schedule/share/sharePostRequestBody.ts b/src/groups/item/team/schedule/share/sharePostRequestBody.ts deleted file mode 100644 index 6c1dabb3317..00000000000 --- a/src/groups/item/team/schedule/share/sharePostRequestBody.ts +++ /dev/null @@ -1,42 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSharePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSharePostRequestBody; -} -export function deserializeIntoSharePostRequestBody(sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : Record void> { - return { - "endDateTime": n => { sharePostRequestBody.endDateTime = n.getDateValue(); }, - "notifyTeam": n => { sharePostRequestBody.notifyTeam = n.getBooleanValue(); }, - "startDateTime": n => { sharePostRequestBody.startDateTime = n.getDateValue(); }, - } -} -export function serializeSharePostRequestBody(writer: SerializationWriter, sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : void { - writer.writeDateValue("endDateTime", sharePostRequestBody.endDateTime); - writer.writeBooleanValue("notifyTeam", sharePostRequestBody.notifyTeam); - writer.writeDateValue("startDateTime", sharePostRequestBody.startDateTime); - writer.writeAdditionalData(sharePostRequestBody.additionalData); -} -export interface SharePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The endDateTime property - */ - endDateTime?: Date; - /** - * The notifyTeam property - */ - notifyTeam?: boolean; - /** - * The startDateTime property - */ - startDateTime?: Date; -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/schedule/shifts/count/index.ts b/src/groups/item/team/schedule/shifts/count/index.ts index 21638261972..4b7b39a3107 100644 --- a/src/groups/item/team/schedule/shifts/count/index.ts +++ b/src/groups/item/team/schedule/shifts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/shifts/index.ts b/src/groups/item/team/schedule/shifts/index.ts index 60011c936c8..315006f7d9b 100644 --- a/src/groups/item/team/schedule/shifts/index.ts +++ b/src/groups/item/team/schedule/shifts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ShiftCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ShiftCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createShiftFromDiscriminatorValue, deserializeIntoShift, serializeShift, type Shift } from '../../../../../models/shift'; import { createShiftCollectionResponseFromDiscriminatorValue } from '../../../../../models/shiftCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ShiftItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ShiftItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ShiftsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/shifts/item/index.ts b/src/groups/item/team/schedule/shifts/item/index.ts index 39498b4bc12..cb8e96247f3 100644 --- a/src/groups/item/team/schedule/shifts/item/index.ts +++ b/src/groups/item/team/schedule/shifts/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createShiftFromDiscriminatorValue, deserializeIntoShift, serializeShift, type Shift } from '../../../../../../models/shift'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/swapShiftsChangeRequests/count/index.ts b/src/groups/item/team/schedule/swapShiftsChangeRequests/count/index.ts index c4105ffd3fb..fd9f4c6f0d2 100644 --- a/src/groups/item/team/schedule/swapShiftsChangeRequests/count/index.ts +++ b/src/groups/item/team/schedule/swapShiftsChangeRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/swapShiftsChangeRequests/index.ts b/src/groups/item/team/schedule/swapShiftsChangeRequests/index.ts index d509a4aa16c..daa791179be 100644 --- a/src/groups/item/team/schedule/swapShiftsChangeRequests/index.ts +++ b/src/groups/item/team/schedule/swapShiftsChangeRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SwapShiftsChangeRequestCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SwapShiftsChangeRequestCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSwapShiftsChangeRequestFromDiscriminatorValue, deserializeIntoSwapShiftsChangeRequest, serializeSwapShiftsChangeRequest, type SwapShiftsChangeRequest } from '../../../../../models/swapShiftsChangeRequest'; import { createSwapShiftsChangeRequestCollectionResponseFromDiscriminatorValue } from '../../../../../models/swapShiftsChangeRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SwapShiftsChangeRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SwapShiftsChangeRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/swapShiftsChangeRequests/item/index.ts b/src/groups/item/team/schedule/swapShiftsChangeRequests/item/index.ts index a5a02e323b4..b11776aa794 100644 --- a/src/groups/item/team/schedule/swapShiftsChangeRequests/item/index.ts +++ b/src/groups/item/team/schedule/swapShiftsChangeRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSwapShiftsChangeRequestFromDiscriminatorValue, deserializeIntoSwapShiftsChangeRequest, serializeSwapShiftsChangeRequest, type SwapShiftsChangeRequest } from '../../../../../../models/swapShiftsChangeRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/timeOffReasons/count/index.ts b/src/groups/item/team/schedule/timeOffReasons/count/index.ts index 8d3b1a0bd22..5fcffc53225 100644 --- a/src/groups/item/team/schedule/timeOffReasons/count/index.ts +++ b/src/groups/item/team/schedule/timeOffReasons/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/timeOffReasons/index.ts b/src/groups/item/team/schedule/timeOffReasons/index.ts index 16b2bca8057..5b7dfe6a856 100644 --- a/src/groups/item/team/schedule/timeOffReasons/index.ts +++ b/src/groups/item/team/schedule/timeOffReasons/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffReasonCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TimeOffReasonCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeOffReasonFromDiscriminatorValue, deserializeIntoTimeOffReason, serializeTimeOffReason, type TimeOffReason } from '../../../../../models/timeOffReason'; import { createTimeOffReasonCollectionResponseFromDiscriminatorValue } from '../../../../../models/timeOffReasonCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffReasonItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffReasonItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimeOffReasonsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/timeOffReasons/item/index.ts b/src/groups/item/team/schedule/timeOffReasons/item/index.ts index f22d5dc6305..8dc7ab5e1f2 100644 --- a/src/groups/item/team/schedule/timeOffReasons/item/index.ts +++ b/src/groups/item/team/schedule/timeOffReasons/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeOffReasonFromDiscriminatorValue, deserializeIntoTimeOffReason, serializeTimeOffReason, type TimeOffReason } from '../../../../../../models/timeOffReason'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/timeOffRequests/count/index.ts b/src/groups/item/team/schedule/timeOffRequests/count/index.ts index 602a9394d23..39bbcfb15fb 100644 --- a/src/groups/item/team/schedule/timeOffRequests/count/index.ts +++ b/src/groups/item/team/schedule/timeOffRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/timeOffRequests/index.ts b/src/groups/item/team/schedule/timeOffRequests/index.ts index c52a95cc256..99011eda914 100644 --- a/src/groups/item/team/schedule/timeOffRequests/index.ts +++ b/src/groups/item/team/schedule/timeOffRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffRequestCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TimeOffRequestCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeOffRequestFromDiscriminatorValue, deserializeIntoTimeOffRequest, serializeTimeOffRequest, type TimeOffRequest } from '../../../../../models/timeOffRequest'; import { createTimeOffRequestCollectionResponseFromDiscriminatorValue } from '../../../../../models/timeOffRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimeOffRequestsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/timeOffRequests/item/index.ts b/src/groups/item/team/schedule/timeOffRequests/item/index.ts index 13c13dc236f..999788092e7 100644 --- a/src/groups/item/team/schedule/timeOffRequests/item/index.ts +++ b/src/groups/item/team/schedule/timeOffRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeOffRequestFromDiscriminatorValue, deserializeIntoTimeOffRequest, serializeTimeOffRequest, type TimeOffRequest } from '../../../../../../models/timeOffRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/timesOff/count/index.ts b/src/groups/item/team/schedule/timesOff/count/index.ts index 476dd494cb5..bc5f62edd39 100644 --- a/src/groups/item/team/schedule/timesOff/count/index.ts +++ b/src/groups/item/team/schedule/timesOff/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/schedule/timesOff/index.ts b/src/groups/item/team/schedule/timesOff/index.ts index e1e990f505a..149b57f1c98 100644 --- a/src/groups/item/team/schedule/timesOff/index.ts +++ b/src/groups/item/team/schedule/timesOff/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TimeOffCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeOffFromDiscriminatorValue, deserializeIntoTimeOff, serializeTimeOff, type TimeOff } from '../../../../../models/timeOff'; import { createTimeOffCollectionResponseFromDiscriminatorValue } from '../../../../../models/timeOffCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimesOffRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/schedule/timesOff/item/index.ts b/src/groups/item/team/schedule/timesOff/item/index.ts index 85dbb731b3d..cf1b4385627 100644 --- a/src/groups/item/team/schedule/timesOff/item/index.ts +++ b/src/groups/item/team/schedule/timesOff/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeOffFromDiscriminatorValue, deserializeIntoTimeOff, serializeTimeOff, type TimeOff } from '../../../../../../models/timeOff'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/sendActivityNotification/index.ts b/src/groups/item/team/sendActivityNotification/index.ts index c81208b8333..f497b2db4b0 100644 --- a/src/groups/item/team/sendActivityNotification/index.ts +++ b/src/groups/item/team/sendActivityNotification/index.ts @@ -1,11 +1,67 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../../models/itemBody'; +import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../../models/keyValuePair'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSendActivityNotificationPostRequestBody, serializeSendActivityNotificationPostRequestBody, type SendActivityNotificationPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../../models/teamworkActivityTopic'; +import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../../models/teamworkNotificationRecipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSendActivityNotificationPostRequestBody; +} +export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { + return { + "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, + "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, + "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, + "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, + "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, + "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, + } +} +export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activityType property + */ + activityType?: string; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The chainId property + */ + chainId?: number; + /** + * The previewText property + */ + previewText?: ItemBody; + /** + * The recipient property + */ + recipient?: TeamworkNotificationRecipient; + /** + * The templateParameters property + */ + templateParameters?: KeyValuePair[]; + /** + * The topic property + */ + topic?: TeamworkActivityTopic; +} +export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { + writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); + writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); + writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); + writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); + writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); + writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); + writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); +} /** * Provides operations to call the sendActivityNotification method. */ diff --git a/src/groups/item/team/sendActivityNotification/sendActivityNotificationPostRequestBody.ts b/src/groups/item/team/sendActivityNotification/sendActivityNotificationPostRequestBody.ts deleted file mode 100644 index 528829b98da..00000000000 --- a/src/groups/item/team/sendActivityNotification/sendActivityNotificationPostRequestBody.ts +++ /dev/null @@ -1,64 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../../models/itemBody'; -import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../../models/keyValuePair'; -import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../../models/teamworkActivityTopic'; -import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../../models/teamworkNotificationRecipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSendActivityNotificationPostRequestBody; -} -export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { - return { - "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, - "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, - "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, - "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, - "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, - "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, - } -} -export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activityType property - */ - activityType?: string; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The chainId property - */ - chainId?: number; - /** - * The previewText property - */ - previewText?: ItemBody; - /** - * The recipient property - */ - recipient?: TeamworkNotificationRecipient; - /** - * The templateParameters property - */ - templateParameters?: KeyValuePair[]; - /** - * The topic property - */ - topic?: TeamworkActivityTopic; -} -export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { - writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); - writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); - writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); - writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); - writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); - writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); - writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/team/tags/count/index.ts b/src/groups/item/team/tags/count/index.ts index 78f6bb43ce6..eb2e1203e77 100644 --- a/src/groups/item/team/tags/count/index.ts +++ b/src/groups/item/team/tags/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/tags/index.ts b/src/groups/item/team/tags/index.ts index a8d0a4147ed..ba0aefd6b7d 100644 --- a/src/groups/item/team/tags/index.ts +++ b/src/groups/item/team/tags/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamworkTagCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TeamworkTagCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamworkTagFromDiscriminatorValue, deserializeIntoTeamworkTag, serializeTeamworkTag, type TeamworkTag } from '../../../../models/teamworkTag'; import { createTeamworkTagCollectionResponseFromDiscriminatorValue } from '../../../../models/teamworkTagCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamworkTagItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamworkTagItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TagsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/tags/item/index.ts b/src/groups/item/team/tags/item/index.ts index c8c65135578..500afb68642 100644 --- a/src/groups/item/team/tags/item/index.ts +++ b/src/groups/item/team/tags/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagFromDiscriminatorValue, deserializeIntoTeamworkTag, serializeTeamworkTag, type TeamworkTag } from '../../../../../models/teamworkTag'; -import { MembersRequestBuilder } from './members/'; +import { MembersRequestBuilder } from './members'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamworkTagItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/tags/item/members/count/index.ts b/src/groups/item/team/tags/item/members/count/index.ts index 2133cace1d0..d8a65fb7976 100644 --- a/src/groups/item/team/tags/item/members/count/index.ts +++ b/src/groups/item/team/tags/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/tags/item/members/index.ts b/src/groups/item/team/tags/item/members/index.ts index 3855447dcb6..fb6cca69faf 100644 --- a/src/groups/item/team/tags/item/members/index.ts +++ b/src/groups/item/team/tags/item/members/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamworkTagMemberCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamworkTagMemberCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagMemberFromDiscriminatorValue, deserializeIntoTeamworkTagMember, serializeTeamworkTagMember, type TeamworkTagMember } from '../../../../../../models/teamworkTagMember'; import { createTeamworkTagMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../models/teamworkTagMemberCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamworkTagMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamworkTagMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/team/tags/item/members/item/index.ts b/src/groups/item/team/tags/item/members/item/index.ts index c59ee29fbba..56863c59fcf 100644 --- a/src/groups/item/team/tags/item/members/item/index.ts +++ b/src/groups/item/team/tags/item/members/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagMemberFromDiscriminatorValue, deserializeIntoTeamworkTagMember, serializeTeamworkTagMember, type TeamworkTagMember } from '../../../../../../../models/teamworkTagMember'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/template/index.ts b/src/groups/item/team/template/index.ts index fcfc69b8a1f..526d30eb077 100644 --- a/src/groups/item/team/template/index.ts +++ b/src/groups/item/team/template/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTemplate } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TeamsTemplate } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsTemplateFromDiscriminatorValue } from '../../../../models/teamsTemplate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/team/unarchive/index.ts b/src/groups/item/team/unarchive/index.ts index 618a9a08a0a..b39a2e35899 100644 --- a/src/groups/item/team/unarchive/index.ts +++ b/src/groups/item/team/unarchive/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/count/index.ts b/src/groups/item/threads/count/index.ts index 407d8abfe1f..c13b4ec73bf 100644 --- a/src/groups/item/threads/count/index.ts +++ b/src/groups/item/threads/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/index.ts b/src/groups/item/threads/index.ts index e22735607a4..24ec1e01be6 100644 --- a/src/groups/item/threads/index.ts +++ b/src/groups/item/threads/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationThreadCollectionResponse } from '../../../models/'; +import { type ConversationThreadCollectionResponse } from '../../../models'; import { createConversationThreadFromDiscriminatorValue, deserializeIntoConversationThread, serializeConversationThread, type ConversationThread } from '../../../models/conversationThread'; import { createConversationThreadCollectionResponseFromDiscriminatorValue } from '../../../models/conversationThreadCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationThreadItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationThreadItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ThreadsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/threads/item/index.ts b/src/groups/item/threads/item/index.ts index f8f8f65549d..1c591b9339e 100644 --- a/src/groups/item/threads/item/index.ts +++ b/src/groups/item/threads/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationThreadFromDiscriminatorValue, deserializeIntoConversationThread, serializeConversationThread, type ConversationThread } from '../../../../models/conversationThread'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { PostsRequestBuilder } from './posts/'; -import { ReplyRequestBuilder } from './reply/'; +import { PostsRequestBuilder } from './posts'; +import { ReplyRequestBuilder } from './reply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConversationThreadItemRequestBuilderGetQueryParameters { @@ -54,10 +54,10 @@ export class ConversationThreadItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get a thread object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationThread - * @see {@link https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -98,7 +98,7 @@ export class ConversationThreadItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get a thread object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/groups/item/threads/item/posts/count/index.ts b/src/groups/item/threads/item/posts/count/index.ts index 4b4c2d3af3b..e3750479e73 100644 --- a/src/groups/item/threads/item/posts/count/index.ts +++ b/src/groups/item/threads/item/posts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/index.ts b/src/groups/item/threads/item/posts/index.ts index 3b3ac40ff14..8666eed846a 100644 --- a/src/groups/item/threads/item/posts/index.ts +++ b/src/groups/item/threads/item/posts/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PostCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type PostCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPostCollectionResponseFromDiscriminatorValue } from '../../../../../models/postCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PostItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PostItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PostsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/threads/item/posts/item/attachments/count/index.ts b/src/groups/item/threads/item/posts/item/attachments/count/index.ts index b6eb8fa4f5c..357b2a7d120 100644 --- a/src/groups/item/threads/item/posts/item/attachments/count/index.ts +++ b/src/groups/item/threads/item/posts/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/item/attachments/createUploadSession/index.ts b/src/groups/item/threads/item/posts/item/attachments/createUploadSession/index.ts index fc38a153707..a5ffe1180dc 100644 --- a/src/groups/item/threads/item/posts/item/attachments/createUploadSession/index.ts +++ b/src/groups/item/threads/item/posts/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/threads/item/posts/item/attachments/index.ts b/src/groups/item/threads/item/posts/item/attachments/index.ts index 9db9a42e559..d1f668b98e2 100644 --- a/src/groups/item/threads/item/posts/item/attachments/index.ts +++ b/src/groups/item/threads/item/posts/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/threads/item/posts/item/attachments/item/index.ts b/src/groups/item/threads/item/posts/item/attachments/item/index.ts index a052c5fa44f..81aebd09ab3 100644 --- a/src/groups/item/threads/item/posts/item/attachments/item/index.ts +++ b/src/groups/item/threads/item/posts/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/item/extensions/count/index.ts b/src/groups/item/threads/item/posts/item/extensions/count/index.ts index 59a7ba1bf5d..781b0cd2e0e 100644 --- a/src/groups/item/threads/item/posts/item/extensions/count/index.ts +++ b/src/groups/item/threads/item/posts/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/item/extensions/index.ts b/src/groups/item/threads/item/posts/item/extensions/index.ts index 0b3a46431cc..47b96c22e94 100644 --- a/src/groups/item/threads/item/posts/item/extensions/index.ts +++ b/src/groups/item/threads/item/posts/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/threads/item/posts/item/extensions/item/index.ts b/src/groups/item/threads/item/posts/item/extensions/item/index.ts index 3ba0c135ddf..4f8f9aab08e 100644 --- a/src/groups/item/threads/item/posts/item/extensions/item/index.ts +++ b/src/groups/item/threads/item/posts/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/item/forward/forwardPostRequestBody.ts b/src/groups/item/threads/item/posts/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 1fd7eb4c631..00000000000 --- a/src/groups/item/threads/item/posts/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/threads/item/posts/item/forward/index.ts b/src/groups/item/threads/item/posts/item/forward/index.ts index f863cae6aa1..36ebbf22357 100644 --- a/src/groups/item/threads/item/posts/item/forward/index.ts +++ b/src/groups/item/threads/item/posts/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/attachments/count/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/attachments/count/index.ts index aaef9ae1f3a..6b6217b7e29 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/attachments/count/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/attachments/createUploadSession/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/attachments/createUploadSession/index.ts index 598746cb2ea..52f5fca1468 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/attachments/createUploadSession/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/attachments/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/attachments/index.ts index ef474a5a8ea..885b981824a 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/attachments/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/attachments/item/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/attachments/item/index.ts index 0ae733d8348..a1f711d22d1 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/attachments/item/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/extensions/count/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/extensions/count/index.ts index c4ab2a54064..2dec7fb6ea7 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/extensions/count/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/extensions/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/extensions/index.ts index 411c27fe6a1..ce520f7fedf 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/extensions/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/extensions/item/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/extensions/item/index.ts index 83fe3cd2362..d1bfbfcafa7 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/extensions/item/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/forward/forwardPostRequestBody.ts b/src/groups/item/threads/item/posts/item/inReplyTo/forward/forwardPostRequestBody.ts deleted file mode 100644 index 37dde22b05f..00000000000 --- a/src/groups/item/threads/item/posts/item/inReplyTo/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/forward/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/forward/index.ts index 73327cae3fc..b72f971504f 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/forward/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/index.ts index 54db8b7d745..2a6257e57c2 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Post } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type Post } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPostFromDiscriminatorValue } from '../../../../../../../models/post'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { ReplyRequestBuilder } from './reply/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { ReplyRequestBuilder } from './reply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InReplyToRequestBuilderGetQueryParameters { diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/reply/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/reply/index.ts index 03a4dd27d70..f1da018ca11 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/reply/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/reply/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../../models/post'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Post property + */ + post?: Post; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ @@ -19,10 +42,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply"); }; /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent 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. - * @see {@link https://learn.microsoft.com/graph/api/post-reply?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} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -35,7 +58,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent 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 a RequestInformation diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/reply/replyPostRequestBody.ts b/src/groups/item/threads/item/posts/item/inReplyTo/reply/replyPostRequestBody.ts deleted file mode 100644 index e485d6a9884..00000000000 --- a/src/groups/item/threads/item/posts/item/inReplyTo/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../../models/post'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Post property - */ - post?: Post; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/threads/item/posts/item/index.ts b/src/groups/item/threads/item/posts/item/index.ts index 00ddb85bc94..1409cc5f7d1 100644 --- a/src/groups/item/threads/item/posts/item/index.ts +++ b/src/groups/item/threads/item/posts/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Post } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type Post } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPostFromDiscriminatorValue } from '../../../../../../models/post'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InReplyToRequestBuilder } from './inReplyTo/'; -import { ReplyRequestBuilder } from './reply/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InReplyToRequestBuilder } from './inReplyTo'; +import { ReplyRequestBuilder } from './reply'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PostItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/threads/item/posts/item/reply/index.ts b/src/groups/item/threads/item/posts/item/reply/index.ts index 67af05d3165..2e569af982f 100644 --- a/src/groups/item/threads/item/posts/item/reply/index.ts +++ b/src/groups/item/threads/item/posts/item/reply/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../models/post'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Post property + */ + post?: Post; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ @@ -19,10 +42,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply"); }; /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent 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. - * @see {@link https://learn.microsoft.com/graph/api/post-reply?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} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -35,7 +58,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent 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 a RequestInformation diff --git a/src/groups/item/threads/item/posts/item/reply/replyPostRequestBody.ts b/src/groups/item/threads/item/posts/item/reply/replyPostRequestBody.ts deleted file mode 100644 index 3a668df8372..00000000000 --- a/src/groups/item/threads/item/posts/item/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../../../models/post'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Post property - */ - post?: Post; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/threads/item/reply/index.ts b/src/groups/item/threads/item/reply/index.ts index 00b2299f61b..f8a48f6cc83 100644 --- a/src/groups/item/threads/item/reply/index.ts +++ b/src/groups/item/threads/item/reply/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../models/post'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Post property + */ + post?: Post; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ @@ -19,10 +42,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply"); }; /** - * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -35,7 +58,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + * Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/threads/item/reply/replyPostRequestBody.ts b/src/groups/item/threads/item/reply/replyPostRequestBody.ts deleted file mode 100644 index a9d7cd709ed..00000000000 --- a/src/groups/item/threads/item/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPostFromDiscriminatorValue, serializePost, type Post } from '../../../../../models/post'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "post": n => { replyPostRequestBody.post = n.getObjectValue(createPostFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Post property - */ - post?: Post; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeObjectValue("Post", replyPostRequestBody.post, serializePost); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/groups/item/transitiveMemberOf/count/index.ts b/src/groups/item/transitiveMemberOf/count/index.ts index 2ab955ededa..6cce4b993e8 100644 --- a/src/groups/item/transitiveMemberOf/count/index.ts +++ b/src/groups/item/transitiveMemberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts b/src/groups/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts index 6ced83a7d02..8f08699ab65 100644 --- a/src/groups/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts +++ b/src/groups/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMemberOf/graphAdministrativeUnit/index.ts b/src/groups/item/transitiveMemberOf/graphAdministrativeUnit/index.ts index bfcb9f8748a..304a827cabb 100644 --- a/src/groups/item/transitiveMemberOf/graphAdministrativeUnit/index.ts +++ b/src/groups/item/transitiveMemberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMemberOf/graphGroup/count/index.ts b/src/groups/item/transitiveMemberOf/graphGroup/count/index.ts index 28407595586..50045f4c54c 100644 --- a/src/groups/item/transitiveMemberOf/graphGroup/count/index.ts +++ b/src/groups/item/transitiveMemberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMemberOf/graphGroup/index.ts b/src/groups/item/transitiveMemberOf/graphGroup/index.ts index 19ed40059ff..97e86d93b4c 100644 --- a/src/groups/item/transitiveMemberOf/graphGroup/index.ts +++ b/src/groups/item/transitiveMemberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMemberOf/index.ts b/src/groups/item/transitiveMemberOf/index.ts index 8c099e9575c..6bf8a7e3884 100644 --- a/src/groups/item/transitiveMemberOf/index.ts +++ b/src/groups/item/transitiveMemberOf/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TransitiveMemberOfRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts b/src/groups/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts index 6bd125ceb52..2e79b892c73 100644 --- a/src/groups/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts +++ b/src/groups/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMemberOf/item/graphGroup/index.ts b/src/groups/item/transitiveMemberOf/item/graphGroup/index.ts index cd87ad96fd0..ad9058cc4c7 100644 --- a/src/groups/item/transitiveMemberOf/item/graphGroup/index.ts +++ b/src/groups/item/transitiveMemberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMemberOf/item/index.ts b/src/groups/item/transitiveMemberOf/item/index.ts index db7cea6bd36..6ff04bb5462 100644 --- a/src/groups/item/transitiveMemberOf/item/index.ts +++ b/src/groups/item/transitiveMemberOf/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMembers/count/index.ts b/src/groups/item/transitiveMembers/count/index.ts index f519129b5af..d36c3a2ece3 100644 --- a/src/groups/item/transitiveMembers/count/index.ts +++ b/src/groups/item/transitiveMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/graphApplication/count/index.ts b/src/groups/item/transitiveMembers/graphApplication/count/index.ts index 7fac927240d..11b628d0796 100644 --- a/src/groups/item/transitiveMembers/graphApplication/count/index.ts +++ b/src/groups/item/transitiveMembers/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/graphApplication/index.ts b/src/groups/item/transitiveMembers/graphApplication/index.ts index 23e32972d13..02c6ac05751 100644 --- a/src/groups/item/transitiveMembers/graphApplication/index.ts +++ b/src/groups/item/transitiveMembers/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../../models/'; +import { type ApplicationCollectionResponse } from '../../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMembers/graphDevice/count/index.ts b/src/groups/item/transitiveMembers/graphDevice/count/index.ts index f02ab1f4c5c..0ad5d7ab5e0 100644 --- a/src/groups/item/transitiveMembers/graphDevice/count/index.ts +++ b/src/groups/item/transitiveMembers/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/graphDevice/index.ts b/src/groups/item/transitiveMembers/graphDevice/index.ts index 0567bc8e894..00933b224c5 100644 --- a/src/groups/item/transitiveMembers/graphDevice/index.ts +++ b/src/groups/item/transitiveMembers/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../../models/'; +import { type DeviceCollectionResponse } from '../../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMembers/graphGroup/count/index.ts b/src/groups/item/transitiveMembers/graphGroup/count/index.ts index cdfd65d9a62..f2e1aa4ffc8 100644 --- a/src/groups/item/transitiveMembers/graphGroup/count/index.ts +++ b/src/groups/item/transitiveMembers/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/graphGroup/index.ts b/src/groups/item/transitiveMembers/graphGroup/index.ts index 44cbf8a2c62..e9b14ff5c18 100644 --- a/src/groups/item/transitiveMembers/graphGroup/index.ts +++ b/src/groups/item/transitiveMembers/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMembers/graphOrgContact/count/index.ts b/src/groups/item/transitiveMembers/graphOrgContact/count/index.ts index d6b7a0729db..1c1859f8118 100644 --- a/src/groups/item/transitiveMembers/graphOrgContact/count/index.ts +++ b/src/groups/item/transitiveMembers/graphOrgContact/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/graphOrgContact/index.ts b/src/groups/item/transitiveMembers/graphOrgContact/index.ts index 3f6438356d9..48d54141190 100644 --- a/src/groups/item/transitiveMembers/graphOrgContact/index.ts +++ b/src/groups/item/transitiveMembers/graphOrgContact/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../../../../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphOrgContactRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMembers/graphServicePrincipal/count/index.ts b/src/groups/item/transitiveMembers/graphServicePrincipal/count/index.ts index bc6bf2dd83f..1c789e12d90 100644 --- a/src/groups/item/transitiveMembers/graphServicePrincipal/count/index.ts +++ b/src/groups/item/transitiveMembers/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/graphServicePrincipal/index.ts b/src/groups/item/transitiveMembers/graphServicePrincipal/index.ts index af7cd5ed2df..07d4aacd80f 100644 --- a/src/groups/item/transitiveMembers/graphServicePrincipal/index.ts +++ b/src/groups/item/transitiveMembers/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMembers/graphUser/count/index.ts b/src/groups/item/transitiveMembers/graphUser/count/index.ts index 18087f47a28..50f5cdca386 100644 --- a/src/groups/item/transitiveMembers/graphUser/count/index.ts +++ b/src/groups/item/transitiveMembers/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/graphUser/index.ts b/src/groups/item/transitiveMembers/graphUser/index.ts index 5762bd3afc9..3fbb8d2d4a1 100644 --- a/src/groups/item/transitiveMembers/graphUser/index.ts +++ b/src/groups/item/transitiveMembers/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMembers/index.ts b/src/groups/item/transitiveMembers/index.ts index 63037f9f48e..f6de9c07cef 100644 --- a/src/groups/item/transitiveMembers/index.ts +++ b/src/groups/item/transitiveMembers/index.ts @@ -1,18 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TransitiveMembersRequestBuilderGetQueryParameters { diff --git a/src/groups/item/transitiveMembers/item/graphApplication/index.ts b/src/groups/item/transitiveMembers/item/graphApplication/index.ts index 15acfc09304..2b88d8a0d69 100644 --- a/src/groups/item/transitiveMembers/item/graphApplication/index.ts +++ b/src/groups/item/transitiveMembers/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../../models/'; +import { type Application } from '../../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../../models/application'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/item/graphDevice/index.ts b/src/groups/item/transitiveMembers/item/graphDevice/index.ts index 141f24ae258..45a5c160dcf 100644 --- a/src/groups/item/transitiveMembers/item/graphDevice/index.ts +++ b/src/groups/item/transitiveMembers/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../models/'; +import { type Device } from '../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../models/device'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/item/graphGroup/index.ts b/src/groups/item/transitiveMembers/item/graphGroup/index.ts index 00d02ef492d..412a63658ee 100644 --- a/src/groups/item/transitiveMembers/item/graphGroup/index.ts +++ b/src/groups/item/transitiveMembers/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/item/graphOrgContact/index.ts b/src/groups/item/transitiveMembers/item/graphOrgContact/index.ts index e6106a7e8f9..d74c856df5d 100644 --- a/src/groups/item/transitiveMembers/item/graphOrgContact/index.ts +++ b/src/groups/item/transitiveMembers/item/graphOrgContact/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContact } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OrgContact } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue } from '../../../../../models/orgContact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/item/graphServicePrincipal/index.ts b/src/groups/item/transitiveMembers/item/graphServicePrincipal/index.ts index dc5e1ffc40f..f98895a5640 100644 --- a/src/groups/item/transitiveMembers/item/graphServicePrincipal/index.ts +++ b/src/groups/item/transitiveMembers/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/item/graphUser/index.ts b/src/groups/item/transitiveMembers/item/graphUser/index.ts index aa336eaab65..e4c7e099a79 100644 --- a/src/groups/item/transitiveMembers/item/graphUser/index.ts +++ b/src/groups/item/transitiveMembers/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/transitiveMembers/item/index.ts b/src/groups/item/transitiveMembers/item/index.ts index 10b603e684a..3b85ea9ecfc 100644 --- a/src/groups/item/transitiveMembers/item/index.ts +++ b/src/groups/item/transitiveMembers/item/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/groups/item/unsubscribeByMail/index.ts b/src/groups/item/unsubscribeByMail/index.ts index 82d91c1aa00..71ec0662b35 100644 --- a/src/groups/item/unsubscribeByMail/index.ts +++ b/src/groups/item/unsubscribeByMail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/groups/item/validateProperties/index.ts b/src/groups/item/validateProperties/index.ts index 895c4f72b36..adb463d9a7e 100644 --- a/src/groups/item/validateProperties/index.ts +++ b/src/groups/item/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -41,57 +39,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/group-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/groups/validateProperties/index.ts b/src/groups/validateProperties/index.ts index c119105c955..3c9a114e085 100644 --- a/src/groups/validateProperties/index.ts +++ b/src/groups/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/groups/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identity/apiConnectors/count/index.ts b/src/identity/apiConnectors/count/index.ts index 405ede36a09..7f7a8a99bb3 100644 --- a/src/identity/apiConnectors/count/index.ts +++ b/src/identity/apiConnectors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/apiConnectors/index.ts b/src/identity/apiConnectors/index.ts index 15dce8fc7e9..b17669c464d 100644 --- a/src/identity/apiConnectors/index.ts +++ b/src/identity/apiConnectors/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityApiConnectorCollectionResponse } from '../../models/'; +import { type IdentityApiConnectorCollectionResponse } from '../../models'; import { createIdentityApiConnectorFromDiscriminatorValue, deserializeIntoIdentityApiConnector, serializeIdentityApiConnector, type IdentityApiConnector } from '../../models/identityApiConnector'; import { createIdentityApiConnectorCollectionResponseFromDiscriminatorValue } from '../../models/identityApiConnectorCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { IdentityApiConnectorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IdentityApiConnectorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApiConnectorsRequestBuilderGetQueryParameters { diff --git a/src/identity/apiConnectors/item/index.ts b/src/identity/apiConnectors/item/index.ts index ca861845643..a89709cb85f 100644 --- a/src/identity/apiConnectors/item/index.ts +++ b/src/identity/apiConnectors/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityApiConnectorFromDiscriminatorValue, deserializeIntoIdentityApiConnector, serializeIdentityApiConnector, type IdentityApiConnector } from '../../../models/identityApiConnector'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { UploadClientCertificateRequestBuilder } from './uploadClientCertificate/'; +import { UploadClientCertificateRequestBuilder } from './uploadClientCertificate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IdentityApiConnectorItemRequestBuilderGetQueryParameters { diff --git a/src/identity/apiConnectors/item/uploadClientCertificate/index.ts b/src/identity/apiConnectors/item/uploadClientCertificate/index.ts index be0c5952e46..1d5a971c36a 100644 --- a/src/identity/apiConnectors/item/uploadClientCertificate/index.ts +++ b/src/identity/apiConnectors/item/uploadClientCertificate/index.ts @@ -1,7 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createIdentityApiConnectorFromDiscriminatorValue, deserializeIntoIdentityApiConnector, serializeIdentityApiConnector, type IdentityApiConnector } from '../../../../models/identityApiConnector'; +import { type ODataError } from '../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createUploadClientCertificatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -32,5 +35,58 @@ export interface UploadClientCertificatePostRequestBody extends AdditionalDataHo */ pkcs12Value?: string; } +/** + * Provides operations to call the uploadClientCertificate method. + */ +export class UploadClientCertificateRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new UploadClientCertificateRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/identity/apiConnectors/{identityApiConnector%2Did}/uploadClientCertificate"); + }; + /** + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of IdentityApiConnector + * @see {@link https://learn.microsoft.com/graph/api/identityapiconnector-uploadclientcertificate?view=graph-rest-1.0|Find more info here} + */ + public post(body: UploadClientCertificatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createIdentityApiConnectorFromDiscriminatorValue, errorMapping); + }; + /** + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: UploadClientCertificatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUploadClientCertificatePostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a uploadClientCertificateRequestBuilder + */ + public withUrl(rawUrl: string) : UploadClientCertificateRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new UploadClientCertificateRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/identity/apiConnectors/item/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts b/src/identity/apiConnectors/item/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts deleted file mode 100644 index 497f8651a9b..00000000000 --- a/src/identity/apiConnectors/item/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUploadClientCertificatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUploadClientCertificatePostRequestBody; -} -export function deserializeIntoUploadClientCertificatePostRequestBody(uploadClientCertificatePostRequestBody: UploadClientCertificatePostRequestBody | undefined = {} as UploadClientCertificatePostRequestBody) : Record void> { - return { - "password": n => { uploadClientCertificatePostRequestBody.password = n.getStringValue(); }, - "pkcs12Value": n => { uploadClientCertificatePostRequestBody.pkcs12Value = n.getStringValue(); }, - } -} -export function serializeUploadClientCertificatePostRequestBody(writer: SerializationWriter, uploadClientCertificatePostRequestBody: UploadClientCertificatePostRequestBody | undefined = {} as UploadClientCertificatePostRequestBody) : void { - writer.writeStringValue("password", uploadClientCertificatePostRequestBody.password); - writer.writeStringValue("pkcs12Value", uploadClientCertificatePostRequestBody.pkcs12Value); - writer.writeAdditionalData(uploadClientCertificatePostRequestBody.additionalData); -} -export interface UploadClientCertificatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The password property - */ - password?: string; - /** - * The pkcs12Value property - */ - pkcs12Value?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/identity/b2xUserFlows/count/index.ts b/src/identity/b2xUserFlows/count/index.ts index 4431ca86929..86060a241f5 100644 --- a/src/identity/b2xUserFlows/count/index.ts +++ b/src/identity/b2xUserFlows/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/index.ts b/src/identity/b2xUserFlows/index.ts index 1de16a0d6ae..65a61c391ed 100644 --- a/src/identity/b2xUserFlows/index.ts +++ b/src/identity/b2xUserFlows/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type B2xIdentityUserFlowCollectionResponse } from '../../models/'; +import { type B2xIdentityUserFlowCollectionResponse } from '../../models'; import { createB2xIdentityUserFlowFromDiscriminatorValue, deserializeIntoB2xIdentityUserFlow, serializeB2xIdentityUserFlow, type B2xIdentityUserFlow } from '../../models/b2xIdentityUserFlow'; import { createB2xIdentityUserFlowCollectionResponseFromDiscriminatorValue } from '../../models/b2xIdentityUserFlowCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { B2xIdentityUserFlowItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { B2xIdentityUserFlowItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface B2xUserFlowsRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/index.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/index.ts index e7419bcbfad..751c830ce7d 100644 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/index.ts +++ b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserFlowApiConnectorConfiguration } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserFlowApiConnectorConfiguration } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserFlowApiConnectorConfigurationFromDiscriminatorValue } from '../../../../models/userFlowApiConnectorConfiguration'; -import { PostAttributeCollectionRequestBuilder } from './postAttributeCollection/'; -import { PostFederationSignupRequestBuilder } from './postFederationSignup/'; +import { PostAttributeCollectionRequestBuilder } from './postAttributeCollection'; +import { PostFederationSignupRequestBuilder } from './postFederationSignup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApiConnectorConfigurationRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/index.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/index.ts index 5a1d71abbbe..1f801233627 100644 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/index.ts +++ b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityApiConnectorFromDiscriminatorValue, deserializeIntoIdentityApiConnector, serializeIdentityApiConnector, type IdentityApiConnector } from '../../../../../models/identityApiConnector'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { RefRequestBuilder } from './ref/'; -import { UploadClientCertificateRequestBuilder } from './uploadClientCertificate/'; +import { RefRequestBuilder } from './ref'; +import { UploadClientCertificateRequestBuilder } from './uploadClientCertificate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PostAttributeCollectionRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/ref/index.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/ref/index.ts index d2987d48ae5..c52177d1bce 100644 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/ref/index.ts +++ b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceUpdate, serializeReferenceUpdate, type ReferenceUpdate } from '../../../../../../models/referenceUpdate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate/index.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate/index.ts index be0c5952e46..a9b767fd59d 100644 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate/index.ts +++ b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate/index.ts @@ -1,7 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createIdentityApiConnectorFromDiscriminatorValue, deserializeIntoIdentityApiConnector, serializeIdentityApiConnector, type IdentityApiConnector } from '../../../../../../models/identityApiConnector'; +import { type ODataError } from '../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createUploadClientCertificatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -32,5 +35,58 @@ export interface UploadClientCertificatePostRequestBody extends AdditionalDataHo */ pkcs12Value?: string; } +/** + * Provides operations to call the uploadClientCertificate method. + */ +export class UploadClientCertificateRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new UploadClientCertificateRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate"); + }; + /** + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of IdentityApiConnector + * @see {@link https://learn.microsoft.com/graph/api/identityapiconnector-uploadclientcertificate?view=graph-rest-1.0|Find more info here} + */ + public post(body: UploadClientCertificatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createIdentityApiConnectorFromDiscriminatorValue, errorMapping); + }; + /** + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: UploadClientCertificatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUploadClientCertificatePostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a uploadClientCertificateRequestBuilder + */ + public withUrl(rawUrl: string) : UploadClientCertificateRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new UploadClientCertificateRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts deleted file mode 100644 index 497f8651a9b..00000000000 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUploadClientCertificatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUploadClientCertificatePostRequestBody; -} -export function deserializeIntoUploadClientCertificatePostRequestBody(uploadClientCertificatePostRequestBody: UploadClientCertificatePostRequestBody | undefined = {} as UploadClientCertificatePostRequestBody) : Record void> { - return { - "password": n => { uploadClientCertificatePostRequestBody.password = n.getStringValue(); }, - "pkcs12Value": n => { uploadClientCertificatePostRequestBody.pkcs12Value = n.getStringValue(); }, - } -} -export function serializeUploadClientCertificatePostRequestBody(writer: SerializationWriter, uploadClientCertificatePostRequestBody: UploadClientCertificatePostRequestBody | undefined = {} as UploadClientCertificatePostRequestBody) : void { - writer.writeStringValue("password", uploadClientCertificatePostRequestBody.password); - writer.writeStringValue("pkcs12Value", uploadClientCertificatePostRequestBody.pkcs12Value); - writer.writeAdditionalData(uploadClientCertificatePostRequestBody.additionalData); -} -export interface UploadClientCertificatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The password property - */ - password?: string; - /** - * The pkcs12Value property - */ - pkcs12Value?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/index.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/index.ts index 09d8784ff67..84f45b29e53 100644 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/index.ts +++ b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityApiConnectorFromDiscriminatorValue, deserializeIntoIdentityApiConnector, serializeIdentityApiConnector, type IdentityApiConnector } from '../../../../../models/identityApiConnector'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { RefRequestBuilder } from './ref/'; -import { UploadClientCertificateRequestBuilder } from './uploadClientCertificate/'; +import { RefRequestBuilder } from './ref'; +import { UploadClientCertificateRequestBuilder } from './uploadClientCertificate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PostFederationSignupRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/ref/index.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/ref/index.ts index 319ad4678af..d2f90ab4a59 100644 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/ref/index.ts +++ b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceUpdate, serializeReferenceUpdate, type ReferenceUpdate } from '../../../../../../models/referenceUpdate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate/index.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate/index.ts index be0c5952e46..505f087c551 100644 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate/index.ts +++ b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate/index.ts @@ -1,7 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createIdentityApiConnectorFromDiscriminatorValue, deserializeIntoIdentityApiConnector, serializeIdentityApiConnector, type IdentityApiConnector } from '../../../../../../models/identityApiConnector'; +import { type ODataError } from '../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createUploadClientCertificatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -32,5 +35,58 @@ export interface UploadClientCertificatePostRequestBody extends AdditionalDataHo */ pkcs12Value?: string; } +/** + * Provides operations to call the uploadClientCertificate method. + */ +export class UploadClientCertificateRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new UploadClientCertificateRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate"); + }; + /** + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of IdentityApiConnector + * @see {@link https://learn.microsoft.com/graph/api/identityapiconnector-uploadclientcertificate?view=graph-rest-1.0|Find more info here} + */ + public post(body: UploadClientCertificatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createIdentityApiConnectorFromDiscriminatorValue, errorMapping); + }; + /** + * Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: UploadClientCertificatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUploadClientCertificatePostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a uploadClientCertificateRequestBuilder + */ + public withUrl(rawUrl: string) : UploadClientCertificateRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new UploadClientCertificateRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts b/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts deleted file mode 100644 index 497f8651a9b..00000000000 --- a/src/identity/b2xUserFlows/item/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate/uploadClientCertificatePostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUploadClientCertificatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUploadClientCertificatePostRequestBody; -} -export function deserializeIntoUploadClientCertificatePostRequestBody(uploadClientCertificatePostRequestBody: UploadClientCertificatePostRequestBody | undefined = {} as UploadClientCertificatePostRequestBody) : Record void> { - return { - "password": n => { uploadClientCertificatePostRequestBody.password = n.getStringValue(); }, - "pkcs12Value": n => { uploadClientCertificatePostRequestBody.pkcs12Value = n.getStringValue(); }, - } -} -export function serializeUploadClientCertificatePostRequestBody(writer: SerializationWriter, uploadClientCertificatePostRequestBody: UploadClientCertificatePostRequestBody | undefined = {} as UploadClientCertificatePostRequestBody) : void { - writer.writeStringValue("password", uploadClientCertificatePostRequestBody.password); - writer.writeStringValue("pkcs12Value", uploadClientCertificatePostRequestBody.pkcs12Value); - writer.writeAdditionalData(uploadClientCertificatePostRequestBody.additionalData); -} -export interface UploadClientCertificatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The password property - */ - password?: string; - /** - * The pkcs12Value property - */ - pkcs12Value?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/identity/b2xUserFlows/item/identityProviders/count/index.ts b/src/identity/b2xUserFlows/item/identityProviders/count/index.ts index f96ac26a7f1..adedb71cd30 100644 --- a/src/identity/b2xUserFlows/item/identityProviders/count/index.ts +++ b/src/identity/b2xUserFlows/item/identityProviders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/identityProviders/index.ts b/src/identity/b2xUserFlows/item/identityProviders/index.ts index aae297793af..fd7bdd85965 100644 --- a/src/identity/b2xUserFlows/item/identityProviders/index.ts +++ b/src/identity/b2xUserFlows/item/identityProviders/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityProviderCollectionResponse } from '../../../../models/'; +import { type IdentityProviderCollectionResponse } from '../../../../models'; import { createIdentityProviderCollectionResponseFromDiscriminatorValue } from '../../../../models/identityProviderCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { IdentityProviderItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IdentityProviderItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IdentityProvidersRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/identityProviders/item/index.ts b/src/identity/b2xUserFlows/item/identityProviders/item/index.ts index f6d41059d9b..a977c28d770 100644 --- a/src/identity/b2xUserFlows/item/identityProviders/item/index.ts +++ b/src/identity/b2xUserFlows/item/identityProviders/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityProvider } from '../../../../../models/'; +import { type IdentityProvider } from '../../../../../models'; import { createIdentityProviderFromDiscriminatorValue } from '../../../../../models/identityProvider'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/index.ts b/src/identity/b2xUserFlows/item/index.ts index cfa9f399dd3..261ff14aaed 100644 --- a/src/identity/b2xUserFlows/item/index.ts +++ b/src/identity/b2xUserFlows/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createB2xIdentityUserFlowFromDiscriminatorValue, deserializeIntoB2xIdentityUserFlow, serializeB2xIdentityUserFlow, type B2xIdentityUserFlow } from '../../../models/b2xIdentityUserFlow'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ApiConnectorConfigurationRequestBuilder } from './apiConnectorConfiguration/'; -import { IdentityProvidersRequestBuilder } from './identityProviders/'; -import { LanguagesRequestBuilder } from './languages/'; -import { UserAttributeAssignmentsRequestBuilder } from './userAttributeAssignments/'; -import { UserFlowIdentityProvidersRequestBuilder } from './userFlowIdentityProviders/'; +import { ApiConnectorConfigurationRequestBuilder } from './apiConnectorConfiguration'; +import { IdentityProvidersRequestBuilder } from './identityProviders'; +import { LanguagesRequestBuilder } from './languages'; +import { UserAttributeAssignmentsRequestBuilder } from './userAttributeAssignments'; +import { UserFlowIdentityProvidersRequestBuilder } from './userFlowIdentityProviders'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface B2xIdentityUserFlowItemRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/languages/count/index.ts b/src/identity/b2xUserFlows/item/languages/count/index.ts index 3c5a4a59cd6..0f6ac9b78a3 100644 --- a/src/identity/b2xUserFlows/item/languages/count/index.ts +++ b/src/identity/b2xUserFlows/item/languages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/languages/index.ts b/src/identity/b2xUserFlows/item/languages/index.ts index d46102dac0f..53b956eb345 100644 --- a/src/identity/b2xUserFlows/item/languages/index.ts +++ b/src/identity/b2xUserFlows/item/languages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserFlowLanguageConfigurationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserFlowLanguageConfigurationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserFlowLanguageConfigurationFromDiscriminatorValue, deserializeIntoUserFlowLanguageConfiguration, serializeUserFlowLanguageConfiguration, type UserFlowLanguageConfiguration } from '../../../../models/userFlowLanguageConfiguration'; import { createUserFlowLanguageConfigurationCollectionResponseFromDiscriminatorValue } from '../../../../models/userFlowLanguageConfigurationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserFlowLanguageConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserFlowLanguageConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LanguagesRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/languages/item/defaultPages/count/index.ts b/src/identity/b2xUserFlows/item/languages/item/defaultPages/count/index.ts index 83c6e486acc..4df1aed432d 100644 --- a/src/identity/b2xUserFlows/item/languages/item/defaultPages/count/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/defaultPages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/languages/item/defaultPages/index.ts b/src/identity/b2xUserFlows/item/languages/item/defaultPages/index.ts index d14e9591354..9208f4ec804 100644 --- a/src/identity/b2xUserFlows/item/languages/item/defaultPages/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/defaultPages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserFlowLanguagePageCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type UserFlowLanguagePageCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFlowLanguagePageFromDiscriminatorValue, deserializeIntoUserFlowLanguagePage, serializeUserFlowLanguagePage, type UserFlowLanguagePage } from '../../../../../../models/userFlowLanguagePage'; import { createUserFlowLanguagePageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/userFlowLanguagePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserFlowLanguagePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserFlowLanguagePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DefaultPagesRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/languages/item/defaultPages/item/index.ts b/src/identity/b2xUserFlows/item/languages/item/defaultPages/item/index.ts index 8f6142926ba..7e5d47dc49f 100644 --- a/src/identity/b2xUserFlows/item/languages/item/defaultPages/item/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/defaultPages/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFlowLanguagePageFromDiscriminatorValue, deserializeIntoUserFlowLanguagePage, serializeUserFlowLanguagePage, type UserFlowLanguagePage } from '../../../../../../../models/userFlowLanguagePage'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserFlowLanguagePageItemRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/languages/item/defaultPages/item/value/index.ts b/src/identity/b2xUserFlows/item/languages/item/defaultPages/item/value/index.ts index f69bde602c1..97e9f5e2356 100644 --- a/src/identity/b2xUserFlows/item/languages/item/defaultPages/item/value/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/defaultPages/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/languages/item/index.ts b/src/identity/b2xUserFlows/item/languages/item/index.ts index e963651fd24..79d232f7d8c 100644 --- a/src/identity/b2xUserFlows/item/languages/item/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFlowLanguageConfigurationFromDiscriminatorValue, deserializeIntoUserFlowLanguageConfiguration, serializeUserFlowLanguageConfiguration, type UserFlowLanguageConfiguration } from '../../../../../models/userFlowLanguageConfiguration'; -import { DefaultPagesRequestBuilder } from './defaultPages/'; -import { OverridesPagesRequestBuilder } from './overridesPages/'; +import { DefaultPagesRequestBuilder } from './defaultPages'; +import { OverridesPagesRequestBuilder } from './overridesPages'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/languages/item/overridesPages/count/index.ts b/src/identity/b2xUserFlows/item/languages/item/overridesPages/count/index.ts index 516c5e488fd..280f1230837 100644 --- a/src/identity/b2xUserFlows/item/languages/item/overridesPages/count/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/overridesPages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/languages/item/overridesPages/index.ts b/src/identity/b2xUserFlows/item/languages/item/overridesPages/index.ts index 6802c4c7dc9..d58f929804b 100644 --- a/src/identity/b2xUserFlows/item/languages/item/overridesPages/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/overridesPages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserFlowLanguagePageCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type UserFlowLanguagePageCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFlowLanguagePageFromDiscriminatorValue, deserializeIntoUserFlowLanguagePage, serializeUserFlowLanguagePage, type UserFlowLanguagePage } from '../../../../../../models/userFlowLanguagePage'; import { createUserFlowLanguagePageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/userFlowLanguagePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserFlowLanguagePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserFlowLanguagePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OverridesPagesRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/languages/item/overridesPages/item/index.ts b/src/identity/b2xUserFlows/item/languages/item/overridesPages/item/index.ts index 8bf04ce960e..330367a9ed3 100644 --- a/src/identity/b2xUserFlows/item/languages/item/overridesPages/item/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/overridesPages/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFlowLanguagePageFromDiscriminatorValue, deserializeIntoUserFlowLanguagePage, serializeUserFlowLanguagePage, type UserFlowLanguagePage } from '../../../../../../../models/userFlowLanguagePage'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserFlowLanguagePageItemRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/languages/item/overridesPages/item/value/index.ts b/src/identity/b2xUserFlows/item/languages/item/overridesPages/item/value/index.ts index a3b9f4de9d6..2c4b71c8aaf 100644 --- a/src/identity/b2xUserFlows/item/languages/item/overridesPages/item/value/index.ts +++ b/src/identity/b2xUserFlows/item/languages/item/overridesPages/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/userAttributeAssignments/count/index.ts b/src/identity/b2xUserFlows/item/userAttributeAssignments/count/index.ts index a1fa21331c2..f398770de48 100644 --- a/src/identity/b2xUserFlows/item/userAttributeAssignments/count/index.ts +++ b/src/identity/b2xUserFlows/item/userAttributeAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/userAttributeAssignments/getOrder/index.ts b/src/identity/b2xUserFlows/item/userAttributeAssignments/getOrder/index.ts index d0e2811bb25..9888d1da51a 100644 --- a/src/identity/b2xUserFlows/item/userAttributeAssignments/getOrder/index.ts +++ b/src/identity/b2xUserFlows/item/userAttributeAssignments/getOrder/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AssignmentOrder } from '../../../../../models/'; +import { type AssignmentOrder } from '../../../../../models'; import { createAssignmentOrderFromDiscriminatorValue } from '../../../../../models/assignmentOrder'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/userAttributeAssignments/index.ts b/src/identity/b2xUserFlows/item/userAttributeAssignments/index.ts index 623acf7ac9b..1d9f37829c9 100644 --- a/src/identity/b2xUserFlows/item/userAttributeAssignments/index.ts +++ b/src/identity/b2xUserFlows/item/userAttributeAssignments/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityUserFlowAttributeAssignmentCollectionResponse } from '../../../../models/'; +import { type IdentityUserFlowAttributeAssignmentCollectionResponse } from '../../../../models'; import { createIdentityUserFlowAttributeAssignmentFromDiscriminatorValue, deserializeIntoIdentityUserFlowAttributeAssignment, serializeIdentityUserFlowAttributeAssignment, type IdentityUserFlowAttributeAssignment } from '../../../../models/identityUserFlowAttributeAssignment'; import { createIdentityUserFlowAttributeAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/identityUserFlowAttributeAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetOrderRequestBuilder } from './getOrder/'; -import { IdentityUserFlowAttributeAssignmentItemRequestBuilder } from './item/'; -import { SetOrderRequestBuilder } from './setOrder/'; +import { CountRequestBuilder } from './count'; +import { GetOrderRequestBuilder } from './getOrder'; +import { IdentityUserFlowAttributeAssignmentItemRequestBuilder } from './item'; +import { SetOrderRequestBuilder } from './setOrder'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserAttributeAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/userAttributeAssignments/item/index.ts b/src/identity/b2xUserFlows/item/userAttributeAssignments/item/index.ts index 12e4aff2a14..fd3330d6baa 100644 --- a/src/identity/b2xUserFlows/item/userAttributeAssignments/item/index.ts +++ b/src/identity/b2xUserFlows/item/userAttributeAssignments/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityUserFlowAttributeAssignmentFromDiscriminatorValue, deserializeIntoIdentityUserFlowAttributeAssignment, serializeIdentityUserFlowAttributeAssignment, type IdentityUserFlowAttributeAssignment } from '../../../../../models/identityUserFlowAttributeAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { UserAttributeRequestBuilder } from './userAttribute/'; +import { UserAttributeRequestBuilder } from './userAttribute'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IdentityUserFlowAttributeAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/userAttributeAssignments/item/userAttribute/index.ts b/src/identity/b2xUserFlows/item/userAttributeAssignments/item/userAttribute/index.ts index 42485371620..1fb2e5f329f 100644 --- a/src/identity/b2xUserFlows/item/userAttributeAssignments/item/userAttribute/index.ts +++ b/src/identity/b2xUserFlows/item/userAttributeAssignments/item/userAttribute/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityUserFlowAttribute } from '../../../../../../models/'; +import { type IdentityUserFlowAttribute } from '../../../../../../models'; import { createIdentityUserFlowAttributeFromDiscriminatorValue } from '../../../../../../models/identityUserFlowAttribute'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/userAttributeAssignments/setOrder/index.ts b/src/identity/b2xUserFlows/item/userAttributeAssignments/setOrder/index.ts index 2295e77e6c9..219d8ef2946 100644 --- a/src/identity/b2xUserFlows/item/userAttributeAssignments/setOrder/index.ts +++ b/src/identity/b2xUserFlows/item/userAttributeAssignments/setOrder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAssignmentOrderFromDiscriminatorValue, serializeAssignmentOrder, type AssignmentOrder } from '../../../../../models/assignmentOrder'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSetOrderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SetOrderPostRequestBody extends AdditionalDataHolder, Parsable */ newAssignmentOrder?: AssignmentOrder; } -/** - * Provides operations to call the setOrder method. - */ -export class SetOrderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SetOrderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/setOrder"); - }; - /** - * Set the order of identityUserFlowAttributeAssignments being collected within a user flow. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/identityuserflowattributeassignment-setorder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SetOrderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Set the order of identityUserFlowAttributeAssignments being collected within a user flow. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SetOrderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetOrderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a setOrderRequestBuilder - */ - public withUrl(rawUrl: string) : SetOrderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SetOrderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/count/index.ts b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/count/index.ts index 87f4e72db06..fe32bddc98e 100644 --- a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/count/index.ts +++ b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/index.ts b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/index.ts index 2211ebe8aed..e8ff2e3ec7a 100644 --- a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/index.ts +++ b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityProviderBaseCollectionResponse } from '../../../../models/'; +import { type IdentityProviderBaseCollectionResponse } from '../../../../models'; import { createIdentityProviderBaseCollectionResponseFromDiscriminatorValue } from '../../../../models/identityProviderBaseCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { IdentityProviderBaseItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { IdentityProviderBaseItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserFlowIdentityProvidersRequestBuilderGetQueryParameters { diff --git a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/item/index.ts b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/item/index.ts index a111aece7a1..27ce43aef81 100644 --- a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/item/index.ts +++ b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/item/ref/index.ts b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/item/ref/index.ts index 97e67af16b0..aae4b7e376e 100644 --- a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/item/ref/index.ts +++ b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/ref/index.ts b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/ref/index.ts index 390a621e166..915e2cad425 100644 --- a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/ref/index.ts +++ b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/identity/conditionalAccess/authenticationContextClassReferences/count/index.ts b/src/identity/conditionalAccess/authenticationContextClassReferences/count/index.ts index 33f1fd2c569..8e2ed183bf7 100644 --- a/src/identity/conditionalAccess/authenticationContextClassReferences/count/index.ts +++ b/src/identity/conditionalAccess/authenticationContextClassReferences/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/authenticationContextClassReferences/index.ts b/src/identity/conditionalAccess/authenticationContextClassReferences/index.ts index 6d94a4d4ef6..cd8e4cd12db 100644 --- a/src/identity/conditionalAccess/authenticationContextClassReferences/index.ts +++ b/src/identity/conditionalAccess/authenticationContextClassReferences/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationContextClassReferenceCollectionResponse } from '../../../models/'; +import { type AuthenticationContextClassReferenceCollectionResponse } from '../../../models'; import { createAuthenticationContextClassReferenceFromDiscriminatorValue, deserializeIntoAuthenticationContextClassReference, serializeAuthenticationContextClassReference, type AuthenticationContextClassReference } from '../../../models/authenticationContextClassReference'; import { createAuthenticationContextClassReferenceCollectionResponseFromDiscriminatorValue } from '../../../models/authenticationContextClassReferenceCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationContextClassReferenceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationContextClassReferenceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationContextClassReferencesRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/authenticationContextClassReferences/item/index.ts b/src/identity/conditionalAccess/authenticationContextClassReferences/item/index.ts index ac8a11553c7..27c7a8f82bf 100644 --- a/src/identity/conditionalAccess/authenticationContextClassReferences/item/index.ts +++ b/src/identity/conditionalAccess/authenticationContextClassReferences/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationContextClassReferenceFromDiscriminatorValue, deserializeIntoAuthenticationContextClassReference, serializeAuthenticationContextClassReference, type AuthenticationContextClassReference } from '../../../../models/authenticationContextClassReference'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/count/index.ts b/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/count/index.ts index f111a793827..ed141c18244 100644 --- a/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/count/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/index.ts b/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/index.ts index 03abd18b660..4f62da6b0db 100644 --- a/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationMethodModeDetailCollectionResponse } from '../../../../models/'; +import { type AuthenticationMethodModeDetailCollectionResponse } from '../../../../models'; import { createAuthenticationMethodModeDetailFromDiscriminatorValue, deserializeIntoAuthenticationMethodModeDetail, serializeAuthenticationMethodModeDetail, type AuthenticationMethodModeDetail } from '../../../../models/authenticationMethodModeDetail'; import { createAuthenticationMethodModeDetailCollectionResponseFromDiscriminatorValue } from '../../../../models/authenticationMethodModeDetailCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationMethodModeDetailItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationMethodModeDetailItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationMethodModesRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/item/index.ts b/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/item/index.ts index 8cf88db29d8..d8e40733979 100644 --- a/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/item/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationMethodModeDetailFromDiscriminatorValue, deserializeIntoAuthenticationMethodModeDetail, serializeAuthenticationMethodModeDetail, type AuthenticationMethodModeDetail } from '../../../../../models/authenticationMethodModeDetail'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/authenticationStrength/index.ts b/src/identity/conditionalAccess/authenticationStrength/index.ts index 8d95f404351..570fa4d8829 100644 --- a/src/identity/conditionalAccess/authenticationStrength/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationStrengthRootFromDiscriminatorValue, deserializeIntoAuthenticationStrengthRoot, serializeAuthenticationStrengthRoot, type AuthenticationStrengthRoot } from '../../../models/authenticationStrengthRoot'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AuthenticationMethodModesRequestBuilder } from './authenticationMethodModes/'; -import { PoliciesRequestBuilder } from './policies/'; +import { AuthenticationMethodModesRequestBuilder } from './authenticationMethodModes'; +import { PoliciesRequestBuilder } from './policies'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationStrengthRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/count/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/count/index.ts index 8bd385b6c92..92e40354c7d 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/count/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/index.ts index 8232b8339fc..4d37cdf75cc 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationStrengthPolicyCollectionResponse } from '../../../../models/'; +import { type AuthenticationStrengthPolicyCollectionResponse } from '../../../../models'; import { createAuthenticationStrengthPolicyFromDiscriminatorValue, deserializeIntoAuthenticationStrengthPolicy, serializeAuthenticationStrengthPolicy, type AuthenticationStrengthPolicy } from '../../../../models/authenticationStrengthPolicy'; import { createAuthenticationStrengthPolicyCollectionResponseFromDiscriminatorValue } from '../../../../models/authenticationStrengthPolicyCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationStrengthPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationStrengthPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PoliciesRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/count/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/count/index.ts index 49a7325221b..72102c1206e 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/count/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/index.ts index 6a4cdc73613..3b7628148d3 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationCombinationConfigurationCollectionResponse } from '../../../../../../models/'; +import { type AuthenticationCombinationConfigurationCollectionResponse } from '../../../../../../models'; import { createAuthenticationCombinationConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationCombinationConfiguration, serializeAuthenticationCombinationConfiguration, type AuthenticationCombinationConfiguration } from '../../../../../../models/authenticationCombinationConfiguration'; import { createAuthenticationCombinationConfigurationCollectionResponseFromDiscriminatorValue } from '../../../../../../models/authenticationCombinationConfigurationCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationCombinationConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationCombinationConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CombinationConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/item/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/item/index.ts index c3b2e8fbb28..f2ec3019e10 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/item/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/item/combinationConfigurations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationCombinationConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationCombinationConfiguration, serializeAuthenticationCombinationConfiguration, type AuthenticationCombinationConfiguration } from '../../../../../../../models/authenticationCombinationConfiguration'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/item/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/item/index.ts index 0a6a1b5344a..b4f00235ef1 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/item/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationStrengthPolicyFromDiscriminatorValue, deserializeIntoAuthenticationStrengthPolicy, serializeAuthenticationStrengthPolicy, type AuthenticationStrengthPolicy } from '../../../../../models/authenticationStrengthPolicy'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CombinationConfigurationsRequestBuilder } from './combinationConfigurations/'; -import { UpdateAllowedCombinationsRequestBuilder } from './updateAllowedCombinations/'; -import { UsageRequestBuilder } from './usage/'; +import { CombinationConfigurationsRequestBuilder } from './combinationConfigurations'; +import { UpdateAllowedCombinationsRequestBuilder } from './updateAllowedCombinations'; +import { UsageRequestBuilder } from './usage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations/index.ts index d7702e4cd15..c2a18cee722 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { AuthenticationMethodModes } from '../../../../../../models/authenticationMethodModes'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createUpdateAllowedCombinationsResultFromDiscriminatorValue, deserializeIntoUpdateAllowedCombinationsResult, serializeUpdateAllowedCombinationsResult, type UpdateAllowedCombinationsResult } from '../../../../../../models/updateAllowedCombinationsResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createUpdateAllowedCombinationsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -31,58 +28,5 @@ export interface UpdateAllowedCombinationsPostRequestBody extends AdditionalData */ allowedCombinations?: AuthenticationMethodModes[]; } -/** - * Provides operations to call the updateAllowedCombinations method. - */ -export class UpdateAllowedCombinationsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new UpdateAllowedCombinationsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations"); - }; - /** - * Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UpdateAllowedCombinationsResult - * @see {@link https://learn.microsoft.com/graph/api/authenticationstrengthpolicy-updateallowedcombinations?view=graph-rest-1.0|Find more info here} - */ - public post(body: UpdateAllowedCombinationsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUpdateAllowedCombinationsResultFromDiscriminatorValue, errorMapping); - }; - /** - * Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: UpdateAllowedCombinationsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUpdateAllowedCombinationsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a updateAllowedCombinationsRequestBuilder - */ - public withUrl(rawUrl: string) : UpdateAllowedCombinationsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new UpdateAllowedCombinationsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/item/usage/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/item/usage/index.ts index 29023f008f0..69964490755 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/item/usage/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/item/usage/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationStrengthUsage } from '../../../../../../models/'; +import { type AuthenticationStrengthUsage } from '../../../../../../models'; import { createAuthenticationStrengthUsageFromDiscriminatorValue } from '../../../../../../models/authenticationStrengthUsage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/index.ts b/src/identity/conditionalAccess/index.ts index adf8498dfe8..b3dcc9fae52 100644 --- a/src/identity/conditionalAccess/index.ts +++ b/src/identity/conditionalAccess/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createConditionalAccessRootFromDiscriminatorValue, deserializeIntoConditionalAccessRoot, serializeConditionalAccessRoot, type ConditionalAccessRoot } from '../../models/conditionalAccessRoot'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AuthenticationContextClassReferencesRequestBuilder } from './authenticationContextClassReferences/'; -import { AuthenticationStrengthRequestBuilder } from './authenticationStrength/'; -import { NamedLocationsRequestBuilder } from './namedLocations/'; -import { PoliciesRequestBuilder } from './policies/'; -import { TemplatesRequestBuilder } from './templates/'; +import { AuthenticationContextClassReferencesRequestBuilder } from './authenticationContextClassReferences'; +import { AuthenticationStrengthRequestBuilder } from './authenticationStrength'; +import { NamedLocationsRequestBuilder } from './namedLocations'; +import { PoliciesRequestBuilder } from './policies'; +import { TemplatesRequestBuilder } from './templates'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConditionalAccessRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/namedLocations/count/index.ts b/src/identity/conditionalAccess/namedLocations/count/index.ts index 2811bb2c951..4aca601bccb 100644 --- a/src/identity/conditionalAccess/namedLocations/count/index.ts +++ b/src/identity/conditionalAccess/namedLocations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/namedLocations/index.ts b/src/identity/conditionalAccess/namedLocations/index.ts index cd892974b8d..d836edbdcdc 100644 --- a/src/identity/conditionalAccess/namedLocations/index.ts +++ b/src/identity/conditionalAccess/namedLocations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type NamedLocationCollectionResponse } from '../../../models/'; +import { type NamedLocationCollectionResponse } from '../../../models'; import { createNamedLocationFromDiscriminatorValue, deserializeIntoNamedLocation, serializeNamedLocation, type NamedLocation } from '../../../models/namedLocation'; import { createNamedLocationCollectionResponseFromDiscriminatorValue } from '../../../models/namedLocationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { NamedLocationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { NamedLocationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NamedLocationsRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/namedLocations/item/index.ts b/src/identity/conditionalAccess/namedLocations/item/index.ts index f787424e647..b857ef1175e 100644 --- a/src/identity/conditionalAccess/namedLocations/item/index.ts +++ b/src/identity/conditionalAccess/namedLocations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createNamedLocationFromDiscriminatorValue, deserializeIntoNamedLocation, serializeNamedLocation, type NamedLocation } from '../../../../models/namedLocation'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -29,9 +29,9 @@ export class NamedLocationItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24select,%24expand}"); }; /** - * Delete a namedLocation object. + * Delete an ipNamedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -77,7 +77,7 @@ export class NamedLocationItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createNamedLocationFromDiscriminatorValue, errorMapping); }; /** - * Delete a namedLocation object. + * Delete an ipNamedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/identity/conditionalAccess/policies/count/index.ts b/src/identity/conditionalAccess/policies/count/index.ts index 775419019f1..edbd98020f3 100644 --- a/src/identity/conditionalAccess/policies/count/index.ts +++ b/src/identity/conditionalAccess/policies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/policies/index.ts b/src/identity/conditionalAccess/policies/index.ts index 06a950ed5b7..e88931190b4 100644 --- a/src/identity/conditionalAccess/policies/index.ts +++ b/src/identity/conditionalAccess/policies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConditionalAccessPolicyCollectionResponse } from '../../../models/'; +import { type ConditionalAccessPolicyCollectionResponse } from '../../../models'; import { createConditionalAccessPolicyFromDiscriminatorValue, deserializeIntoConditionalAccessPolicy, serializeConditionalAccessPolicy, type ConditionalAccessPolicy } from '../../../models/conditionalAccessPolicy'; import { createConditionalAccessPolicyCollectionResponseFromDiscriminatorValue } from '../../../models/conditionalAccessPolicyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConditionalAccessPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConditionalAccessPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PoliciesRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/policies/item/index.ts b/src/identity/conditionalAccess/policies/item/index.ts index f292b04968e..85085355ac3 100644 --- a/src/identity/conditionalAccess/policies/item/index.ts +++ b/src/identity/conditionalAccess/policies/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConditionalAccessPolicyFromDiscriminatorValue, deserializeIntoConditionalAccessPolicy, serializeConditionalAccessPolicy, type ConditionalAccessPolicy } from '../../../../models/conditionalAccessPolicy'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/templates/count/index.ts b/src/identity/conditionalAccess/templates/count/index.ts index f13403c3677..338dcd19a96 100644 --- a/src/identity/conditionalAccess/templates/count/index.ts +++ b/src/identity/conditionalAccess/templates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/conditionalAccess/templates/index.ts b/src/identity/conditionalAccess/templates/index.ts index a1247714eeb..1f89c9e877a 100644 --- a/src/identity/conditionalAccess/templates/index.ts +++ b/src/identity/conditionalAccess/templates/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConditionalAccessTemplateCollectionResponse } from '../../../models/'; +import { type ConditionalAccessTemplateCollectionResponse } from '../../../models'; import { createConditionalAccessTemplateCollectionResponseFromDiscriminatorValue } from '../../../models/conditionalAccessTemplateCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConditionalAccessTemplateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConditionalAccessTemplateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TemplatesRequestBuilderGetQueryParameters { diff --git a/src/identity/conditionalAccess/templates/item/index.ts b/src/identity/conditionalAccess/templates/item/index.ts index 0f90e8f8e84..bcbd0f284f6 100644 --- a/src/identity/conditionalAccess/templates/item/index.ts +++ b/src/identity/conditionalAccess/templates/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConditionalAccessTemplate } from '../../../../models/'; +import { type ConditionalAccessTemplate } from '../../../../models'; import { createConditionalAccessTemplateFromDiscriminatorValue } from '../../../../models/conditionalAccessTemplate'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/identityProviders/availableProviderTypes/availableProviderTypesGetResponse.ts b/src/identity/identityProviders/availableProviderTypes/availableProviderTypesGetResponse.ts deleted file mode 100644 index 4156856cbe7..00000000000 --- a/src/identity/identityProviders/availableProviderTypes/availableProviderTypesGetResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AvailableProviderTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function createAvailableProviderTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAvailableProviderTypesGetResponse; -} -export function deserializeIntoAvailableProviderTypesGetResponse(availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(availableProviderTypesGetResponse), - "value": n => { availableProviderTypesGetResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeAvailableProviderTypesGetResponse(writer: SerializationWriter, availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, availableProviderTypesGetResponse) - writer.writeCollectionOfPrimitiveValues("value", availableProviderTypesGetResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/identity/identityProviders/availableProviderTypes/index.ts b/src/identity/identityProviders/availableProviderTypes/index.ts index 007f765e84c..08618762ac9 100644 --- a/src/identity/identityProviders/availableProviderTypes/index.ts +++ b/src/identity/identityProviders/availableProviderTypes/index.ts @@ -1,12 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createAvailableProviderTypesGetResponseFromDiscriminatorValue } from './'; -import { type AvailableProviderTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AvailableProviderTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: string[]; +} export interface AvailableProviderTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +34,20 @@ export interface AvailableProviderTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function createAvailableProviderTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAvailableProviderTypesGetResponse; +} +export function deserializeIntoAvailableProviderTypesGetResponse(availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(availableProviderTypesGetResponse), + "value": n => { availableProviderTypesGetResponse.value = n.getCollectionOfPrimitiveValues(); }, + } +} +export function serializeAvailableProviderTypesGetResponse(writer: SerializationWriter, availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, availableProviderTypesGetResponse) + writer.writeCollectionOfPrimitiveValues("value", availableProviderTypesGetResponse.value); +} /** * Provides operations to call the availableProviderTypes method. */ diff --git a/src/identity/identityProviders/count/index.ts b/src/identity/identityProviders/count/index.ts index 330f9667f9c..47cbc70feda 100644 --- a/src/identity/identityProviders/count/index.ts +++ b/src/identity/identityProviders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/identityProviders/index.ts b/src/identity/identityProviders/index.ts index 0e81c87661a..a4fe2ff34a3 100644 --- a/src/identity/identityProviders/index.ts +++ b/src/identity/identityProviders/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityProviderBaseCollectionResponse } from '../../models/'; +import { type IdentityProviderBaseCollectionResponse } from '../../models'; import { createIdentityProviderBaseFromDiscriminatorValue, deserializeIntoIdentityProviderBase, serializeIdentityProviderBase, type IdentityProviderBase } from '../../models/identityProviderBase'; import { createIdentityProviderBaseCollectionResponseFromDiscriminatorValue } from '../../models/identityProviderBaseCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AvailableProviderTypesRequestBuilder } from './availableProviderTypes/'; -import { CountRequestBuilder } from './count/'; -import { IdentityProviderBaseItemRequestBuilder } from './item/'; +import { AvailableProviderTypesRequestBuilder } from './availableProviderTypes'; +import { CountRequestBuilder } from './count'; +import { IdentityProviderBaseItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IdentityProvidersRequestBuilderGetQueryParameters { diff --git a/src/identity/identityProviders/item/index.ts b/src/identity/identityProviders/item/index.ts index 18607f496ee..8949e22914c 100644 --- a/src/identity/identityProviders/item/index.ts +++ b/src/identity/identityProviders/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityProviderBaseFromDiscriminatorValue, deserializeIntoIdentityProviderBase, serializeIdentityProviderBase, type IdentityProviderBase } from '../../../models/identityProviderBase'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/index.ts b/src/identity/index.ts index be034209b8e..51d1e1a750e 100644 --- a/src/identity/index.ts +++ b/src/identity/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityContainerFromDiscriminatorValue, deserializeIntoIdentityContainer, serializeIdentityContainer, type IdentityContainer } from '../models/identityContainer'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { ApiConnectorsRequestBuilder } from './apiConnectors/'; -import { B2xUserFlowsRequestBuilder } from './b2xUserFlows/'; -import { ConditionalAccessRequestBuilder } from './conditionalAccess/'; -import { IdentityProvidersRequestBuilder } from './identityProviders/'; -import { UserFlowAttributesRequestBuilder } from './userFlowAttributes/'; +import { ApiConnectorsRequestBuilder } from './apiConnectors'; +import { B2xUserFlowsRequestBuilder } from './b2xUserFlows'; +import { ConditionalAccessRequestBuilder } from './conditionalAccess'; +import { IdentityProvidersRequestBuilder } from './identityProviders'; +import { UserFlowAttributesRequestBuilder } from './userFlowAttributes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IdentityRequestBuilderGetQueryParameters { diff --git a/src/identity/userFlowAttributes/count/index.ts b/src/identity/userFlowAttributes/count/index.ts index 7c6720d6822..0022c73aa2c 100644 --- a/src/identity/userFlowAttributes/count/index.ts +++ b/src/identity/userFlowAttributes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identity/userFlowAttributes/index.ts b/src/identity/userFlowAttributes/index.ts index 453df7bc3a1..5412420dc36 100644 --- a/src/identity/userFlowAttributes/index.ts +++ b/src/identity/userFlowAttributes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityUserFlowAttributeCollectionResponse } from '../../models/'; +import { type IdentityUserFlowAttributeCollectionResponse } from '../../models'; import { createIdentityUserFlowAttributeFromDiscriminatorValue, deserializeIntoIdentityUserFlowAttribute, serializeIdentityUserFlowAttribute, type IdentityUserFlowAttribute } from '../../models/identityUserFlowAttribute'; import { createIdentityUserFlowAttributeCollectionResponseFromDiscriminatorValue } from '../../models/identityUserFlowAttributeCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { IdentityUserFlowAttributeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IdentityUserFlowAttributeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserFlowAttributesRequestBuilderGetQueryParameters { diff --git a/src/identity/userFlowAttributes/item/index.ts b/src/identity/userFlowAttributes/item/index.ts index 7706b71824e..d8df81cd97d 100644 --- a/src/identity/userFlowAttributes/item/index.ts +++ b/src/identity/userFlowAttributes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityUserFlowAttributeFromDiscriminatorValue, deserializeIntoIdentityUserFlowAttribute, serializeIdentityUserFlowAttribute, type IdentityUserFlowAttribute } from '../../../models/identityUserFlowAttribute'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/count/index.ts b/src/identityGovernance/accessReviews/definitions/count/index.ts index c932cdbc51a..dde897b4bf8 100644 --- a/src/identityGovernance/accessReviews/definitions/count/index.ts +++ b/src/identityGovernance/accessReviews/definitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/accessReviews/definitions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index cc730d30d78..00000000000 --- a/src/identityGovernance/accessReviews/definitions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessReviewScheduleDefinitionFromDiscriminatorValue, serializeAccessReviewScheduleDefinition, type AccessReviewScheduleDefinition } from '../../../../models/accessReviewScheduleDefinition'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewScheduleDefinitionFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessReviewScheduleDefinition[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewScheduleDefinition); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/accessReviews/definitions/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/accessReviews/definitions/filterByCurrentUserWithOn/index.ts index 6fbbc3490eb..40df4d1deb9 100644 --- a/src/identityGovernance/accessReviews/definitions/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/accessReviews/definitions/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createAccessReviewScheduleDefinitionFromDiscriminatorValue, serializeAccessReviewScheduleDefinition, type AccessReviewScheduleDefinition } from '../../../../models/accessReviewScheduleDefinition'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewScheduleDefinitionFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessReviewScheduleDefinition[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewScheduleDefinition); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/accessReviews/definitions/index.ts b/src/identityGovernance/accessReviews/definitions/index.ts index 418a44623e9..7d983f992c2 100644 --- a/src/identityGovernance/accessReviews/definitions/index.ts +++ b/src/identityGovernance/accessReviews/definitions/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewScheduleDefinitionCollectionResponse } from '../../../models/'; +import { type AccessReviewScheduleDefinitionCollectionResponse } from '../../../models'; import { createAccessReviewScheduleDefinitionFromDiscriminatorValue, deserializeIntoAccessReviewScheduleDefinition, serializeAccessReviewScheduleDefinition, type AccessReviewScheduleDefinition } from '../../../models/accessReviewScheduleDefinition'; import { createAccessReviewScheduleDefinitionCollectionResponseFromDiscriminatorValue } from '../../../models/accessReviewScheduleDefinitionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AccessReviewScheduleDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AccessReviewScheduleDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DefinitionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/index.ts b/src/identityGovernance/accessReviews/definitions/item/index.ts index dce484d46d6..0c7cfba9cf6 100644 --- a/src/identityGovernance/accessReviews/definitions/item/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewScheduleDefinitionFromDiscriminatorValue, deserializeIntoAccessReviewScheduleDefinition, serializeAccessReviewScheduleDefinition, type AccessReviewScheduleDefinition } from '../../../../models/accessReviewScheduleDefinition'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { InstancesRequestBuilder } from './instances/'; -import { StopRequestBuilder } from './stop/'; +import { InstancesRequestBuilder } from './instances'; +import { StopRequestBuilder } from './stop'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessReviewScheduleDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/count/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/count/index.ts index fc933f7d8e0..652da9137e0 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/count/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/accessReviews/definitions/item/instances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 192b3138969..00000000000 --- a/src/identityGovernance/accessReviews/definitions/item/instances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessReviewInstanceFromDiscriminatorValue, serializeAccessReviewInstance, type AccessReviewInstance } from '../../../../../../models/accessReviewInstance'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewInstanceFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessReviewInstance[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewInstance); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/filterByCurrentUserWithOn/index.ts index 06731c4e0f7..61a36ce4c04 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { createAccessReviewInstanceFromDiscriminatorValue, serializeAccessReviewInstance, type AccessReviewInstance } from '../../../../../../models/accessReviewInstance'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewInstanceFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessReviewInstance[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewInstance); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/index.ts index b6999fb8063..e3a3318c0cc 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewInstanceCollectionResponse } from '../../../../../models/'; +import { type AccessReviewInstanceCollectionResponse } from '../../../../../models'; import { createAccessReviewInstanceFromDiscriminatorValue, deserializeIntoAccessReviewInstance, serializeAccessReviewInstance, type AccessReviewInstance } from '../../../../../models/accessReviewInstance'; import { createAccessReviewInstanceCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessReviewInstanceCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AccessReviewInstanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AccessReviewInstanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/acceptRecommendations/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/acceptRecommendations/index.ts index 49182ce5393..0f29f8a81ad 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/acceptRecommendations/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/acceptRecommendations/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/applyDecisions/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/applyDecisions/index.ts index 66b7a7b48e0..50c69fc480c 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/applyDecisions/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/applyDecisions/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/batchRecordDecisions/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/batchRecordDecisions/index.ts index 746d2b18d5e..f1103705499 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/batchRecordDecisions/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/batchRecordDecisions/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface BatchRecordDecisionsPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -46,57 +44,5 @@ export function serializeBatchRecordDecisionsPostRequestBody(writer: Serializati writer.writeStringValue("resourceId", batchRecordDecisionsPostRequestBody.resourceId); writer.writeAdditionalData(batchRecordDecisionsPostRequestBody.additionalData); } -/** - * Provides operations to call the batchRecordDecisions method. - */ -export class BatchRecordDecisionsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new BatchRecordDecisionsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/batchRecordDecisions"); - }; - /** - * Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/accessreviewinstance-batchrecorddecisions?view=graph-rest-1.0|Find more info here} - */ - public post(body: BatchRecordDecisionsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: BatchRecordDecisionsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeBatchRecordDecisionsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a batchRecordDecisionsRequestBuilder - */ - public withUrl(rawUrl: string) : BatchRecordDecisionsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new BatchRecordDecisionsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/count/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/count/index.ts index 2679f0a3563..5394b70b673 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/count/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/index.ts index adc1ab982bb..bf28c9cf765 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewReviewerCollectionResponse } from '../../../../../../../models/'; +import { type AccessReviewReviewerCollectionResponse } from '../../../../../../../models'; import { createAccessReviewReviewerFromDiscriminatorValue, deserializeIntoAccessReviewReviewer, serializeAccessReviewReviewer, type AccessReviewReviewer } from '../../../../../../../models/accessReviewReviewer'; import { createAccessReviewReviewerCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessReviewReviewerCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessReviewReviewerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessReviewReviewerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactedReviewersRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/item/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/item/index.ts index f0766145326..5191e86a890 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/item/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/contactedReviewers/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewReviewerFromDiscriminatorValue, deserializeIntoAccessReviewReviewer, serializeAccessReviewReviewer, type AccessReviewReviewer } from '../../../../../../../../models/accessReviewReviewer'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/count/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/count/index.ts index 6e5fb3c50a9..0a571ae6fe7 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/count/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 64963ea52e9..00000000000 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessReviewInstanceDecisionItemFromDiscriminatorValue, serializeAccessReviewInstanceDecisionItem, type AccessReviewInstanceDecisionItem } from '../../../../../../../../models/accessReviewInstanceDecisionItem'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewInstanceDecisionItemFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessReviewInstanceDecisionItem[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewInstanceDecisionItem); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/filterByCurrentUserWithOn/index.ts index fe2d8cf19f7..fc965635a5d 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { createAccessReviewInstanceDecisionItemFromDiscriminatorValue, serializeAccessReviewInstanceDecisionItem, type AccessReviewInstanceDecisionItem } from '../../../../../../../../models/accessReviewInstanceDecisionItem'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewInstanceDecisionItemFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessReviewInstanceDecisionItem[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewInstanceDecisionItem); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/index.ts index 336f5eb83ac..cdabd502ed3 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewInstanceDecisionItemCollectionResponse } from '../../../../../../../models/'; +import { type AccessReviewInstanceDecisionItemCollectionResponse } from '../../../../../../../models'; import { createAccessReviewInstanceDecisionItemFromDiscriminatorValue, deserializeIntoAccessReviewInstanceDecisionItem, serializeAccessReviewInstanceDecisionItem, type AccessReviewInstanceDecisionItem } from '../../../../../../../models/accessReviewInstanceDecisionItem'; import { createAccessReviewInstanceDecisionItemCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessReviewInstanceDecisionItemCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AccessReviewInstanceDecisionItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AccessReviewInstanceDecisionItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DecisionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/index.ts index 3ffa63a3c4f..f1db0de15da 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewInstanceDecisionItemFromDiscriminatorValue, deserializeIntoAccessReviewInstanceDecisionItem, serializeAccessReviewInstanceDecisionItem, type AccessReviewInstanceDecisionItem } from '../../../../../../../../models/accessReviewInstanceDecisionItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { InsightsRequestBuilder } from './insights/'; +import { InsightsRequestBuilder } from './insights'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/count/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/count/index.ts index 666aa2772b2..7c754da6b45 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/count/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/index.ts index 4e0f3186b53..ddbd9222961 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GovernanceInsightCollectionResponse } from '../../../../../../../../../models/'; +import { type GovernanceInsightCollectionResponse } from '../../../../../../../../../models'; import { createGovernanceInsightFromDiscriminatorValue, deserializeIntoGovernanceInsight, serializeGovernanceInsight, type GovernanceInsight } from '../../../../../../../../../models/governanceInsight'; import { createGovernanceInsightCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/governanceInsightCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GovernanceInsightItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GovernanceInsightItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InsightsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/item/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/item/index.ts index 051011fc4f9..e2405392c6c 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/item/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/decisions/item/insights/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createGovernanceInsightFromDiscriminatorValue, deserializeIntoGovernanceInsight, serializeGovernanceInsight, type GovernanceInsight } from '../../../../../../../../../../models/governanceInsight'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/index.ts index 5369ebe6de5..c525de4f451 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewInstanceFromDiscriminatorValue, deserializeIntoAccessReviewInstance, serializeAccessReviewInstance, type AccessReviewInstance } from '../../../../../../models/accessReviewInstance'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AcceptRecommendationsRequestBuilder } from './acceptRecommendations/'; -import { ApplyDecisionsRequestBuilder } from './applyDecisions/'; -import { BatchRecordDecisionsRequestBuilder } from './batchRecordDecisions/'; -import { ContactedReviewersRequestBuilder } from './contactedReviewers/'; -import { DecisionsRequestBuilder } from './decisions/'; -import { ResetDecisionsRequestBuilder } from './resetDecisions/'; -import { SendReminderRequestBuilder } from './sendReminder/'; -import { StagesRequestBuilder } from './stages/'; -import { StopRequestBuilder } from './stop/'; +import { AcceptRecommendationsRequestBuilder } from './acceptRecommendations'; +import { ApplyDecisionsRequestBuilder } from './applyDecisions'; +import { BatchRecordDecisionsRequestBuilder } from './batchRecordDecisions'; +import { ContactedReviewersRequestBuilder } from './contactedReviewers'; +import { DecisionsRequestBuilder } from './decisions'; +import { ResetDecisionsRequestBuilder } from './resetDecisions'; +import { SendReminderRequestBuilder } from './sendReminder'; +import { StagesRequestBuilder } from './stages'; +import { StopRequestBuilder } from './stop'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessReviewInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/resetDecisions/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/resetDecisions/index.ts index 4f26dc30ec6..442c40008a5 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/resetDecisions/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/resetDecisions/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/sendReminder/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/sendReminder/index.ts index 5b864729d4e..81f94f76d0d 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/sendReminder/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/sendReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/count/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/count/index.ts index 82a416da2d5..b2450607899 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/count/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index d2018dd2cc1..00000000000 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessReviewStageFromDiscriminatorValue, serializeAccessReviewStage, type AccessReviewStage } from '../../../../../../../../models/accessReviewStage'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewStageFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessReviewStage[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewStage); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/filterByCurrentUserWithOn/index.ts index e36888f0f23..94b8eac39b3 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { createAccessReviewStageFromDiscriminatorValue, serializeAccessReviewStage, type AccessReviewStage } from '../../../../../../../../models/accessReviewStage'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewStageFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessReviewStage[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewStage); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/index.ts index d9330a66da8..32019e52797 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewStageCollectionResponse } from '../../../../../../../models/'; +import { type AccessReviewStageCollectionResponse } from '../../../../../../../models'; import { createAccessReviewStageFromDiscriminatorValue, deserializeIntoAccessReviewStage, serializeAccessReviewStage, type AccessReviewStage } from '../../../../../../../models/accessReviewStage'; import { createAccessReviewStageCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessReviewStageCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AccessReviewStageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AccessReviewStageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface StagesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/count/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/count/index.ts index 1503a8c9482..d7e08c28968 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/count/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 7e63c9d68ea..00000000000 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessReviewInstanceDecisionItemFromDiscriminatorValue, serializeAccessReviewInstanceDecisionItem, type AccessReviewInstanceDecisionItem } from '../../../../../../../../../../models/accessReviewInstanceDecisionItem'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewInstanceDecisionItemFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessReviewInstanceDecisionItem[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewInstanceDecisionItem); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/filterByCurrentUserWithOn/index.ts index b33e5c4df9d..fd5acbfbe5c 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { createAccessReviewInstanceDecisionItemFromDiscriminatorValue, serializeAccessReviewInstanceDecisionItem, type AccessReviewInstanceDecisionItem } from '../../../../../../../../../../models/accessReviewInstanceDecisionItem'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessReviewInstanceDecisionItemFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessReviewInstanceDecisionItem[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessReviewInstanceDecisionItem); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/index.ts index 780503623a7..6f9a20471b0 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewInstanceDecisionItemCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessReviewInstanceDecisionItemCollectionResponse } from '../../../../../../../../../models'; import { createAccessReviewInstanceDecisionItemFromDiscriminatorValue, deserializeIntoAccessReviewInstanceDecisionItem, serializeAccessReviewInstanceDecisionItem, type AccessReviewInstanceDecisionItem } from '../../../../../../../../../models/accessReviewInstanceDecisionItem'; import { createAccessReviewInstanceDecisionItemCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessReviewInstanceDecisionItemCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AccessReviewInstanceDecisionItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AccessReviewInstanceDecisionItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DecisionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/index.ts index 257b8bc6aa9..e24f92b3021 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewInstanceDecisionItemFromDiscriminatorValue, deserializeIntoAccessReviewInstanceDecisionItem, serializeAccessReviewInstanceDecisionItem, type AccessReviewInstanceDecisionItem } from '../../../../../../../../../../models/accessReviewInstanceDecisionItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { InsightsRequestBuilder } from './insights/'; +import { InsightsRequestBuilder } from './insights'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/count/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/count/index.ts index 83f2d295f95..b19693f44a5 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/count/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/index.ts index 6aace506cbc..7674621cdaa 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GovernanceInsightCollectionResponse } from '../../../../../../../../../../../models/'; +import { type GovernanceInsightCollectionResponse } from '../../../../../../../../../../../models'; import { createGovernanceInsightFromDiscriminatorValue, deserializeIntoGovernanceInsight, serializeGovernanceInsight, type GovernanceInsight } from '../../../../../../../../../../../models/governanceInsight'; import { createGovernanceInsightCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/governanceInsightCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GovernanceInsightItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GovernanceInsightItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InsightsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/item/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/item/index.ts index e02e3a3920f..79611faa791 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/item/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/decisions/item/insights/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createGovernanceInsightFromDiscriminatorValue, deserializeIntoGovernanceInsight, serializeGovernanceInsight, type GovernanceInsight } from '../../../../../../../../../../../../models/governanceInsight'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/index.ts index 792cc10696a..16954dbe3c9 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewStageFromDiscriminatorValue, deserializeIntoAccessReviewStage, serializeAccessReviewStage, type AccessReviewStage } from '../../../../../../../../models/accessReviewStage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { DecisionsRequestBuilder } from './decisions/'; -import { StopRequestBuilder } from './stop/'; +import { DecisionsRequestBuilder } from './decisions'; +import { StopRequestBuilder } from './stop'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessReviewStageItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/stop/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/stop/index.ts index 6f13cc10c39..d7dd645673b 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/stop/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stages/item/stop/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/instances/item/stop/index.ts b/src/identityGovernance/accessReviews/definitions/item/instances/item/stop/index.ts index 12381cf5b36..ed76fd60023 100644 --- a/src/identityGovernance/accessReviews/definitions/item/instances/item/stop/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/instances/item/stop/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/definitions/item/stop/index.ts b/src/identityGovernance/accessReviews/definitions/item/stop/index.ts index f37548a3014..9623b6948ec 100644 --- a/src/identityGovernance/accessReviews/definitions/item/stop/index.ts +++ b/src/identityGovernance/accessReviews/definitions/item/stop/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/historyDefinitions/count/index.ts b/src/identityGovernance/accessReviews/historyDefinitions/count/index.ts index fd381505eee..87e18693988 100644 --- a/src/identityGovernance/accessReviews/historyDefinitions/count/index.ts +++ b/src/identityGovernance/accessReviews/historyDefinitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/historyDefinitions/index.ts b/src/identityGovernance/accessReviews/historyDefinitions/index.ts index 01c3802cc82..4e642525ebc 100644 --- a/src/identityGovernance/accessReviews/historyDefinitions/index.ts +++ b/src/identityGovernance/accessReviews/historyDefinitions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewHistoryDefinitionCollectionResponse } from '../../../models/'; +import { type AccessReviewHistoryDefinitionCollectionResponse } from '../../../models'; import { createAccessReviewHistoryDefinitionFromDiscriminatorValue, deserializeIntoAccessReviewHistoryDefinition, serializeAccessReviewHistoryDefinition, type AccessReviewHistoryDefinition } from '../../../models/accessReviewHistoryDefinition'; import { createAccessReviewHistoryDefinitionCollectionResponseFromDiscriminatorValue } from '../../../models/accessReviewHistoryDefinitionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessReviewHistoryDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessReviewHistoryDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HistoryDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/historyDefinitions/item/index.ts b/src/identityGovernance/accessReviews/historyDefinitions/item/index.ts index 8a19d092512..8b1d6813858 100644 --- a/src/identityGovernance/accessReviews/historyDefinitions/item/index.ts +++ b/src/identityGovernance/accessReviews/historyDefinitions/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewHistoryDefinitionFromDiscriminatorValue, deserializeIntoAccessReviewHistoryDefinition, serializeAccessReviewHistoryDefinition, type AccessReviewHistoryDefinition } from '../../../../models/accessReviewHistoryDefinition'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { InstancesRequestBuilder } from './instances/'; +import { InstancesRequestBuilder } from './instances'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessReviewHistoryDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/historyDefinitions/item/instances/count/index.ts b/src/identityGovernance/accessReviews/historyDefinitions/item/instances/count/index.ts index fc432f204ef..b386e061000 100644 --- a/src/identityGovernance/accessReviews/historyDefinitions/item/instances/count/index.ts +++ b/src/identityGovernance/accessReviews/historyDefinitions/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/historyDefinitions/item/instances/index.ts b/src/identityGovernance/accessReviews/historyDefinitions/item/instances/index.ts index ca6bbab4d1e..b4aa276f22c 100644 --- a/src/identityGovernance/accessReviews/historyDefinitions/item/instances/index.ts +++ b/src/identityGovernance/accessReviews/historyDefinitions/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewHistoryInstanceCollectionResponse } from '../../../../../models/'; +import { type AccessReviewHistoryInstanceCollectionResponse } from '../../../../../models'; import { createAccessReviewHistoryInstanceFromDiscriminatorValue, deserializeIntoAccessReviewHistoryInstance, serializeAccessReviewHistoryInstance, type AccessReviewHistoryInstance } from '../../../../../models/accessReviewHistoryInstance'; import { createAccessReviewHistoryInstanceCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessReviewHistoryInstanceCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessReviewHistoryInstanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessReviewHistoryInstanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/historyDefinitions/item/instances/item/generateDownloadUri/index.ts b/src/identityGovernance/accessReviews/historyDefinitions/item/instances/item/generateDownloadUri/index.ts index e30d6b2be92..18638ef84f2 100644 --- a/src/identityGovernance/accessReviews/historyDefinitions/item/instances/item/generateDownloadUri/index.ts +++ b/src/identityGovernance/accessReviews/historyDefinitions/item/instances/item/generateDownloadUri/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessReviewHistoryInstance } from '../../../../../../../models/'; +import { type AccessReviewHistoryInstance } from '../../../../../../../models'; import { createAccessReviewHistoryInstanceFromDiscriminatorValue } from '../../../../../../../models/accessReviewHistoryInstance'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/accessReviews/historyDefinitions/item/instances/item/index.ts b/src/identityGovernance/accessReviews/historyDefinitions/item/instances/item/index.ts index 23b9daf14fd..d9b501fc39e 100644 --- a/src/identityGovernance/accessReviews/historyDefinitions/item/instances/item/index.ts +++ b/src/identityGovernance/accessReviews/historyDefinitions/item/instances/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewHistoryInstanceFromDiscriminatorValue, deserializeIntoAccessReviewHistoryInstance, serializeAccessReviewHistoryInstance, type AccessReviewHistoryInstance } from '../../../../../../models/accessReviewHistoryInstance'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { GenerateDownloadUriRequestBuilder } from './generateDownloadUri/'; +import { GenerateDownloadUriRequestBuilder } from './generateDownloadUri'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessReviewHistoryInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/accessReviews/index.ts b/src/identityGovernance/accessReviews/index.ts index 15c4c5005d1..6f72c214a61 100644 --- a/src/identityGovernance/accessReviews/index.ts +++ b/src/identityGovernance/accessReviews/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessReviewSetFromDiscriminatorValue, deserializeIntoAccessReviewSet, serializeAccessReviewSet, type AccessReviewSet } from '../../models/accessReviewSet'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { DefinitionsRequestBuilder } from './definitions/'; -import { HistoryDefinitionsRequestBuilder } from './historyDefinitions/'; +import { DefinitionsRequestBuilder } from './definitions'; +import { HistoryDefinitionsRequestBuilder } from './historyDefinitions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessReviewsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/appConsent/appConsentRequests/count/index.ts b/src/identityGovernance/appConsent/appConsentRequests/count/index.ts index e2fe9732f58..26e41786ec0 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/count/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/appConsent/appConsentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/appConsent/appConsentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 0740095dc9a..00000000000 --- a/src/identityGovernance/appConsent/appConsentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAppConsentRequestFromDiscriminatorValue, serializeAppConsentRequest, type AppConsentRequest } from '../../../../models/appConsentRequest'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAppConsentRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AppConsentRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAppConsentRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/appConsent/appConsentRequests/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/appConsent/appConsentRequests/filterByCurrentUserWithOn/index.ts index d7363a71013..18a07c690e2 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createAppConsentRequestFromDiscriminatorValue, serializeAppConsentRequest, type AppConsentRequest } from '../../../../models/appConsentRequest'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAppConsentRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AppConsentRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAppConsentRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/appConsent/appConsentRequests/index.ts b/src/identityGovernance/appConsent/appConsentRequests/index.ts index d3b6cf37909..4228610e035 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppConsentRequestCollectionResponse } from '../../../models/'; +import { type AppConsentRequestCollectionResponse } from '../../../models'; import { createAppConsentRequestFromDiscriminatorValue, deserializeIntoAppConsentRequest, serializeAppConsentRequest, type AppConsentRequest } from '../../../models/appConsentRequest'; import { createAppConsentRequestCollectionResponseFromDiscriminatorValue } from '../../../models/appConsentRequestCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AppConsentRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AppConsentRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppConsentRequestsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/index.ts index 548103b09cf..01de3d344b4 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppConsentRequestFromDiscriminatorValue, deserializeIntoAppConsentRequest, serializeAppConsentRequest, type AppConsentRequest } from '../../../../models/appConsentRequest'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { UserConsentRequestsRequestBuilder } from './userConsentRequests/'; +import { UserConsentRequestsRequestBuilder } from './userConsentRequests'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppConsentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/count/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/count/index.ts index 20fd66baca3..bc2c226e5fd 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/count/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 21f27bc8d7a..00000000000 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createUserConsentRequestFromDiscriminatorValue, serializeUserConsentRequest, type UserConsentRequest } from '../../../../../../models/userConsentRequest'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUserConsentRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UserConsentRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUserConsentRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/filterByCurrentUserWithOn/index.ts index 120f5fa63b4..0640cacd077 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUserConsentRequestFromDiscriminatorValue, serializeUserConsentRequest, type UserConsentRequest } from '../../../../../../models/userConsentRequest'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUserConsentRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UserConsentRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUserConsentRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/index.ts index a2a96cd2d3d..b8d8b6e241e 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserConsentRequestCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UserConsentRequestCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserConsentRequestFromDiscriminatorValue, deserializeIntoUserConsentRequest, serializeUserConsentRequest, type UserConsentRequest } from '../../../../../models/userConsentRequest'; import { createUserConsentRequestCollectionResponseFromDiscriminatorValue } from '../../../../../models/userConsentRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UserConsentRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UserConsentRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserConsentRequestsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/index.ts index 58639ebe1cf..e1e28c5f516 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createApprovalFromDiscriminatorValue, deserializeIntoApproval, serializeApproval, type Approval } from '../../../../../../../models/approval'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { StagesRequestBuilder } from './stages/'; +import { StagesRequestBuilder } from './stages'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApprovalRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/count/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/count/index.ts index 3a5a378af2a..8ed8a924493 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/count/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/index.ts index fbe240fb3f7..46ad7685347 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApprovalStageCollectionResponse } from '../../../../../../../../models/'; +import { type ApprovalStageCollectionResponse } from '../../../../../../../../models'; import { createApprovalStageFromDiscriminatorValue, deserializeIntoApprovalStage, serializeApprovalStage, type ApprovalStage } from '../../../../../../../../models/approvalStage'; import { createApprovalStageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/approvalStageCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ApprovalStageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ApprovalStageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface StagesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/item/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/item/index.ts index e258d8e0631..37cedeaa97a 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/item/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/approval/stages/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createApprovalStageFromDiscriminatorValue, deserializeIntoApprovalStage, serializeApprovalStage, type ApprovalStage } from '../../../../../../../../../models/approvalStage'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/index.ts b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/index.ts index edc12a81ae9..dc27443d224 100644 --- a/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/index.ts +++ b/src/identityGovernance/appConsent/appConsentRequests/item/userConsentRequests/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserConsentRequestFromDiscriminatorValue, deserializeIntoUserConsentRequest, serializeUserConsentRequest, type UserConsentRequest } from '../../../../../../models/userConsentRequest'; -import { ApprovalRequestBuilder } from './approval/'; +import { ApprovalRequestBuilder } from './approval'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserConsentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/appConsent/index.ts b/src/identityGovernance/appConsent/index.ts index ebd1309c40d..81c111e274e 100644 --- a/src/identityGovernance/appConsent/index.ts +++ b/src/identityGovernance/appConsent/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppConsentApprovalRouteFromDiscriminatorValue, deserializeIntoAppConsentApprovalRoute, serializeAppConsentApprovalRoute, type AppConsentApprovalRoute } from '../../models/appConsentApprovalRoute'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AppConsentRequestsRequestBuilder } from './appConsentRequests/'; +import { AppConsentRequestsRequestBuilder } from './appConsentRequests'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppConsentRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/count/index.ts index bffeb6c1280..f6d79f8727d 100644 --- a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 313cab42e02..00000000000 --- a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createApprovalFromDiscriminatorValue, serializeApproval, type Approval } from '../../../../models/approval'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createApprovalFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: Approval[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeApproval); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUserWithOn/index.ts index f789a331b3f..672e720319a 100644 --- a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createApprovalFromDiscriminatorValue, serializeApproval, type Approval } from '../../../../models/approval'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createApprovalFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: Approval[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeApproval); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/index.ts b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/index.ts index 0224b73d9ff..509a73a73b6 100644 --- a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApprovalCollectionResponse } from '../../../models/'; +import { type ApprovalCollectionResponse } from '../../../models'; import { createApprovalFromDiscriminatorValue, deserializeIntoApproval, serializeApproval, type Approval } from '../../../models/approval'; import { createApprovalCollectionResponseFromDiscriminatorValue } from '../../../models/approvalCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { ApprovalItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { ApprovalItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/index.ts index 80f20cdcfa2..b8b049b7a00 100644 --- a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createApprovalFromDiscriminatorValue, deserializeIntoApproval, serializeApproval, type Approval } from '../../../../models/approval'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { StagesRequestBuilder } from './stages/'; +import { StagesRequestBuilder } from './stages'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApprovalItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/count/index.ts index 828170017ec..60791c4f6cc 100644 --- a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/index.ts b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/index.ts index abd2ba17e20..76d6fee7378 100644 --- a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApprovalStageCollectionResponse } from '../../../../../models/'; +import { type ApprovalStageCollectionResponse } from '../../../../../models'; import { createApprovalStageFromDiscriminatorValue, deserializeIntoApprovalStage, serializeApprovalStage, type ApprovalStage } from '../../../../../models/approvalStage'; import { createApprovalStageCollectionResponseFromDiscriminatorValue } from '../../../../../models/approvalStageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ApprovalStageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ApprovalStageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface StagesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/item/index.ts index e04c0692ab3..61af9e2ba12 100644 --- a/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/item/stages/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createApprovalStageFromDiscriminatorValue, deserializeIntoApprovalStage, serializeApprovalStage, type ApprovalStage } from '../../../../../../models/approvalStage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/count/index.ts index 3a35b130f8f..2e49045672d 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 9c29b3daac4..00000000000 --- a/src/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessPackageFromDiscriminatorValue, serializeAccessPackage, type AccessPackage } from '../../../../models/accessPackage'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessPackage[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessPackage); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUserWithOn/index.ts index caf26ff296a..869ff2bfefa 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createAccessPackageFromDiscriminatorValue, serializeAccessPackage, type AccessPackage } from '../../../../models/accessPackage'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessPackage[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessPackage); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/entitlementManagement/accessPackages/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/index.ts index 609b90fa1ef..a2f9fdc475c 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCollectionResponse } from '../../../models/'; +import { type AccessPackageCollectionResponse } from '../../../models'; import { createAccessPackageFromDiscriminatorValue, deserializeIntoAccessPackage, serializeAccessPackage, type AccessPackage } from '../../../models/accessPackage'; import { createAccessPackageCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AccessPackageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AccessPackageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackagesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/count/index.ts index d4ac6db33e5..d31074eb713 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/index.ts index e27842e0d0d..5a3d4847b9d 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCollectionResponse } from '../../../../../models/'; +import { type AccessPackageCollectionResponse } from '../../../../../models'; import { createAccessPackageCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/item/index.ts index f0ed6f6968e..875f3750fa6 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/accessPackagesIncompatibleWith/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackage } from '../../../../../../models/'; +import { type AccessPackage } from '../../../../../../models'; import { createAccessPackageFromDiscriminatorValue } from '../../../../../../models/accessPackage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/count/index.ts index ed0a7bf147d..6130822832e 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/index.ts index 98981980b34..cbbe4f2bbe4 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageAssignmentPolicyCollectionResponse } from '../../../../../models/'; +import { type AccessPackageAssignmentPolicyCollectionResponse } from '../../../../../models'; import { createAccessPackageAssignmentPolicyFromDiscriminatorValue, deserializeIntoAccessPackageAssignmentPolicy, serializeAccessPackageAssignmentPolicy, type AccessPackageAssignmentPolicy } from '../../../../../models/accessPackageAssignmentPolicy'; import { createAccessPackageAssignmentPolicyCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageAssignmentPolicyCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageAssignmentPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageAssignmentPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentPoliciesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/accessPackage/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/accessPackage/index.ts index 3ad29208aff..6433b559345 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/accessPackage/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/accessPackage/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackage } from '../../../../../../../models/'; +import { type AccessPackage } from '../../../../../../../models'; import { createAccessPackageFromDiscriminatorValue } from '../../../../../../../models/accessPackage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/catalog/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/catalog/index.ts index 6c54a67a1c5..678099cd975 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/catalog/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/catalog/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCatalog } from '../../../../../../../models/'; +import { type AccessPackageCatalog } from '../../../../../../../models'; import { createAccessPackageCatalogFromDiscriminatorValue } from '../../../../../../../models/accessPackageCatalog'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/count/index.ts index 122b24330ad..8983359ebf4 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/index.ts index 981f425e574..92f8a87106d 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomExtensionStageSettingCollectionResponse } from '../../../../../../../models/'; +import { type CustomExtensionStageSettingCollectionResponse } from '../../../../../../../models'; import { createCustomExtensionStageSettingFromDiscriminatorValue, deserializeIntoCustomExtensionStageSetting, serializeCustomExtensionStageSetting, type CustomExtensionStageSetting } from '../../../../../../../models/customExtensionStageSetting'; import { createCustomExtensionStageSettingCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/customExtensionStageSettingCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CustomExtensionStageSettingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CustomExtensionStageSettingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomExtensionStageSettingsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/item/customExtension/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/item/customExtension/index.ts index 68d1a9a45f7..42dc01e0993 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/item/customExtension/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/item/customExtension/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomCalloutExtension } from '../../../../../../../../../models/'; +import { type CustomCalloutExtension } from '../../../../../../../../../models'; import { createCustomCalloutExtensionFromDiscriminatorValue } from '../../../../../../../../../models/customCalloutExtension'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/item/index.ts index f50cd2aa5b5..659187fde48 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/customExtensionStageSettings/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCustomExtensionStageSettingFromDiscriminatorValue, deserializeIntoCustomExtensionStageSetting, serializeCustomExtensionStageSetting, type CustomExtensionStageSetting } from '../../../../../../../../models/customExtensionStageSetting'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CustomExtensionRequestBuilder } from './customExtension/'; +import { CustomExtensionRequestBuilder } from './customExtension'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomExtensionStageSettingItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/index.ts index 9972f6b7cd4..9059aaf6779 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageAssignmentPolicyFromDiscriminatorValue, deserializeIntoAccessPackageAssignmentPolicy, serializeAccessPackageAssignmentPolicy, type AccessPackageAssignmentPolicy } from '../../../../../../models/accessPackageAssignmentPolicy'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AccessPackageRequestBuilder } from './accessPackage/'; -import { CatalogRequestBuilder } from './catalog/'; -import { CustomExtensionStageSettingsRequestBuilder } from './customExtensionStageSettings/'; -import { QuestionsRequestBuilder } from './questions/'; +import { AccessPackageRequestBuilder } from './accessPackage'; +import { CatalogRequestBuilder } from './catalog'; +import { CustomExtensionStageSettingsRequestBuilder } from './customExtensionStageSettings'; +import { QuestionsRequestBuilder } from './questions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/count/index.ts index 5db09efb155..4312a78f180 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/index.ts index 5a2efb4ea4e..f204d1d7bec 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageQuestionCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageQuestionCollectionResponse } from '../../../../../../../models'; import { createAccessPackageQuestionFromDiscriminatorValue, deserializeIntoAccessPackageQuestion, serializeAccessPackageQuestion, type AccessPackageQuestion } from '../../../../../../../models/accessPackageQuestion'; import { createAccessPackageQuestionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageQuestionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageQuestionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageQuestionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface QuestionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/item/index.ts index 15a68d8ac9b..2d2de5bf039 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/assignmentPolicies/item/questions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageQuestionFromDiscriminatorValue, deserializeIntoAccessPackageQuestion, serializeAccessPackageQuestion, type AccessPackageQuestion } from '../../../../../../../../models/accessPackageQuestion'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/catalog/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/catalog/index.ts index 71b38a97bfe..371e47f940c 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/catalog/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/catalog/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCatalog } from '../../../../../models/'; +import { type AccessPackageCatalog } from '../../../../../models'; import { createAccessPackageCatalogFromDiscriminatorValue } from '../../../../../models/accessPackageCatalog'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/getApplicablePolicyRequirements/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/getApplicablePolicyRequirements/index.ts index 5d18a1ae49c..10fb9a521e9 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/getApplicablePolicyRequirements/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/getApplicablePolicyRequirements/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { createAccessPackageAssignmentRequestRequirementsFromDiscriminatorValue, serializeAccessPackageAssignmentRequestRequirements, type AccessPackageAssignmentRequestRequirements } from '../../../../../models/accessPackageAssignmentRequestRequirements'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetApplicablePolicyRequirementsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -27,54 +25,5 @@ export function serializeGetApplicablePolicyRequirementsPostResponse(writer: Ser serializeBaseCollectionPaginationCountResponse(writer, getApplicablePolicyRequirementsPostResponse) writer.writeCollectionOfObjectValues("value", getApplicablePolicyRequirementsPostResponse.value, serializeAccessPackageAssignmentRequestRequirements); } -/** - * Provides operations to call the getApplicablePolicyRequirements method. - */ -export class GetApplicablePolicyRequirementsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetApplicablePolicyRequirementsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/getApplicablePolicyRequirements"); - }; - /** - * In Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetApplicablePolicyRequirementsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/accesspackage-getapplicablepolicyrequirements?view=graph-rest-1.0|Find more info here} - */ - public post(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetApplicablePolicyRequirementsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * In Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getApplicablePolicyRequirementsRequestBuilder - */ - public withUrl(rawUrl: string) : GetApplicablePolicyRequirementsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetApplicablePolicyRequirementsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/count/index.ts index 36100629281..679dc3e14f8 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/index.ts index 993a15dc202..0007cffa013 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCollectionResponse } from '../../../../../models/'; +import { type AccessPackageCollectionResponse } from '../../../../../models'; import { createAccessPackageCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IncompatibleAccessPackagesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/item/index.ts index 819989f9c18..1352ed5f5bd 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/item/ref/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/item/ref/index.ts index 38671961383..f01f42be617 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/item/ref/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/ref/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/ref/index.ts index f1f5af86803..bef02dd67e6 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/ref/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../../models/stringCollectionResponse'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/count/index.ts index 3132c4de1e9..118442296ec 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/index.ts index 5f3646ba82b..d2d75e49ec8 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../../models/'; +import { type GroupCollectionResponse } from '../../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GroupItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GroupItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IncompatibleGroupsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/index.ts index aec3b962882..09d56029abf 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { RefRequestBuilder } from './ref'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/ref/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/ref/index.ts index e5ce5bba21b..3c1fdef31fc 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/ref/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/serviceProvisioningErrors/count/index.ts index bb08b7df39d..371ceb9dbb9 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/serviceProvisioningErrors/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/serviceProvisioningErrors/index.ts index ce47ea60715..f1386c3a286 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/ref/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/ref/index.ts index f54d9c61405..0adb8f923d6 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/ref/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../../models/stringCollectionResponse'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/index.ts index 84d32c8461e..e299e4cf389 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/index.ts @@ -2,15 +2,15 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageFromDiscriminatorValue, deserializeIntoAccessPackage, serializeAccessPackage, type AccessPackage } from '../../../../models/accessPackage'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AccessPackagesIncompatibleWithRequestBuilder } from './accessPackagesIncompatibleWith/'; -import { AssignmentPoliciesRequestBuilder } from './assignmentPolicies/'; -import { CatalogRequestBuilder } from './catalog/'; -import { GetApplicablePolicyRequirementsRequestBuilder } from './getApplicablePolicyRequirements/'; -import { IncompatibleAccessPackagesRequestBuilder } from './incompatibleAccessPackages/'; -import { IncompatibleGroupsRequestBuilder } from './incompatibleGroups/'; -import { ResourceRoleScopesRequestBuilder } from './resourceRoleScopes/'; +import { AccessPackagesIncompatibleWithRequestBuilder } from './accessPackagesIncompatibleWith'; +import { AssignmentPoliciesRequestBuilder } from './assignmentPolicies'; +import { CatalogRequestBuilder } from './catalog'; +import { GetApplicablePolicyRequirementsRequestBuilder } from './getApplicablePolicyRequirements'; +import { IncompatibleAccessPackagesRequestBuilder } from './incompatibleAccessPackages'; +import { IncompatibleGroupsRequestBuilder } from './incompatibleGroups'; +import { ResourceRoleScopesRequestBuilder } from './resourceRoleScopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageItemRequestBuilderGetQueryParameters { @@ -93,10 +93,10 @@ export class AccessPackageItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Retrieve the properties and relationships of an accessPackage object. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of AccessPackage - * @see {@link https://learn.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/accesspackage-list-resourcerolescopes?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -137,7 +137,7 @@ export class AccessPackageItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Retrieve the properties and relationships of an accessPackage object. + * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/count/index.ts index 165046f2a1c..6a9685eab5e 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/index.ts index cdc4ce5c745..9e2ca53139e 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleScopeCollectionResponse } from '../../../../../models/'; +import { type AccessPackageResourceRoleScopeCollectionResponse } from '../../../../../models'; import { createAccessPackageResourceRoleScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceRoleScope, serializeAccessPackageResourceRoleScope, type AccessPackageResourceRoleScope } from '../../../../../models/accessPackageResourceRoleScope'; import { createAccessPackageResourceRoleScopeCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageResourceRoleScopeCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRoleScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/index.ts index 5944691006e..bd9bd2e8c8f 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceRoleScope, serializeAccessPackageResourceRoleScope, type AccessPackageResourceRoleScope } from '../../../../../../models/accessPackageResourceRoleScope'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { RoleRequestBuilder } from './role/'; -import { ScopeRequestBuilder } from './scope/'; +import { RoleRequestBuilder } from './role'; +import { ScopeRequestBuilder } from './scope'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/index.ts index 1362f408e18..dae91b5e7f8 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/environment/index.ts index 5997cf383b1..1575b23b58e 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/index.ts index d71a460e861..c352a979b90 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/count/index.ts index d9ff85c8312..345b29e0aa0 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/index.ts index 37a090c844c..7c3f99ce9e8 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/item/index.ts index 250d756e448..40b616d95fe 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/roles/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/count/index.ts index 5e1a31d8de0..cba4c09f80d 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/index.ts index d563f61f6c6..04d5aeb87f0 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/index.ts index 3e8e37517a8..5931d043138 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/environment/index.ts index 8aaf3a1f4e1..feab749bbb6 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/index.ts index 117472f30bf..ae5693d11c0 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/count/index.ts index 5de541b18c2..63683bfce4f 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/index.ts index 49ca18ca326..4e36db68702 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/item/index.ts index 3a716ef0526..7742a23e858 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/index.ts index 67037986a85..1ef0d8461ca 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopeRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/environment/index.ts index f020e2684e7..381996a44e3 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/index.ts index 1339563e8f9..915beeaa350 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/count/index.ts index 56ee1dcfdbe..4f3d0419439 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/index.ts index 506c6e67882..3796f49a9c4 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/index.ts index 2f221b86638..2ce37fd1c16 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/environment/index.ts index 6ab70a45277..4d7a9a99fa7 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/index.ts index 3900bf76de4..b65a18e3584 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/count/index.ts index 11c20e4efee..6d64b63eb7e 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/index.ts index 98db098cc66..0ca18648b74 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/item/index.ts index 2b0b19a59bf..b68e3366938 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/count/index.ts index 55c19471266..fb41959121e 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/index.ts index adfb82c0c87..7d1ea3fe458 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/item/index.ts index 353ba23f4e7..95fd1378c2c 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/resourceRoleScopes/item/scope/resource/scopes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/count/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/count/index.ts index fe6cfc64899..14c1481b67b 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/count/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/index.ts index 82e307485eb..979c8365e61 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageAssignmentPolicyCollectionResponse } from '../../../models/'; +import { type AccessPackageAssignmentPolicyCollectionResponse } from '../../../models'; import { createAccessPackageAssignmentPolicyFromDiscriminatorValue, deserializeIntoAccessPackageAssignmentPolicy, serializeAccessPackageAssignmentPolicy, type AccessPackageAssignmentPolicy } from '../../../models/accessPackageAssignmentPolicy'; import { createAccessPackageAssignmentPolicyCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageAssignmentPolicyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageAssignmentPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageAssignmentPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentPoliciesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/accessPackage/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/accessPackage/index.ts index 637d63cf583..4ba7f06829e 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/accessPackage/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/accessPackage/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackage } from '../../../../../models/'; +import { type AccessPackage } from '../../../../../models'; import { createAccessPackageFromDiscriminatorValue } from '../../../../../models/accessPackage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/catalog/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/catalog/index.ts index e345b40b164..b222368296e 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/catalog/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/catalog/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCatalog } from '../../../../../models/'; +import { type AccessPackageCatalog } from '../../../../../models'; import { createAccessPackageCatalogFromDiscriminatorValue } from '../../../../../models/accessPackageCatalog'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/count/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/count/index.ts index 73547a33eca..cf5374f7edb 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/count/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/index.ts index 9ebbe0b02d6..41a5517d6eb 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomExtensionStageSettingCollectionResponse } from '../../../../../models/'; +import { type CustomExtensionStageSettingCollectionResponse } from '../../../../../models'; import { createCustomExtensionStageSettingFromDiscriminatorValue, deserializeIntoCustomExtensionStageSetting, serializeCustomExtensionStageSetting, type CustomExtensionStageSetting } from '../../../../../models/customExtensionStageSetting'; import { createCustomExtensionStageSettingCollectionResponseFromDiscriminatorValue } from '../../../../../models/customExtensionStageSettingCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CustomExtensionStageSettingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CustomExtensionStageSettingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomExtensionStageSettingsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/item/customExtension/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/item/customExtension/index.ts index 0d5bd9d7a16..a2538321c1c 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/item/customExtension/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/item/customExtension/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomCalloutExtension } from '../../../../../../../models/'; +import { type CustomCalloutExtension } from '../../../../../../../models'; import { createCustomCalloutExtensionFromDiscriminatorValue } from '../../../../../../../models/customCalloutExtension'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/item/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/item/index.ts index 38e8aef74b3..76e077dba3e 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/item/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/customExtensionStageSettings/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCustomExtensionStageSettingFromDiscriminatorValue, deserializeIntoCustomExtensionStageSetting, serializeCustomExtensionStageSetting, type CustomExtensionStageSetting } from '../../../../../../models/customExtensionStageSetting'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CustomExtensionRequestBuilder } from './customExtension/'; +import { CustomExtensionRequestBuilder } from './customExtension'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomExtensionStageSettingItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/index.ts index 922e5d767b6..d2182432a27 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageAssignmentPolicyFromDiscriminatorValue, deserializeIntoAccessPackageAssignmentPolicy, serializeAccessPackageAssignmentPolicy, type AccessPackageAssignmentPolicy } from '../../../../models/accessPackageAssignmentPolicy'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AccessPackageRequestBuilder } from './accessPackage/'; -import { CatalogRequestBuilder } from './catalog/'; -import { CustomExtensionStageSettingsRequestBuilder } from './customExtensionStageSettings/'; -import { QuestionsRequestBuilder } from './questions/'; +import { AccessPackageRequestBuilder } from './accessPackage'; +import { CatalogRequestBuilder } from './catalog'; +import { CustomExtensionStageSettingsRequestBuilder } from './customExtensionStageSettings'; +import { QuestionsRequestBuilder } from './questions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/count/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/count/index.ts index 5a821e9cd42..8d8dca87c3e 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/count/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/index.ts index f88421a20d8..0456478449e 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageQuestionCollectionResponse } from '../../../../../models/'; +import { type AccessPackageQuestionCollectionResponse } from '../../../../../models'; import { createAccessPackageQuestionFromDiscriminatorValue, deserializeIntoAccessPackageQuestion, serializeAccessPackageQuestion, type AccessPackageQuestion } from '../../../../../models/accessPackageQuestion'; import { createAccessPackageQuestionCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageQuestionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageQuestionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageQuestionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface QuestionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/item/index.ts b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/item/index.ts index 6586384bf53..769d56f1b9b 100644 --- a/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/item/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentPolicies/item/questions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageQuestionFromDiscriminatorValue, deserializeIntoAccessPackageQuestion, serializeAccessPackageQuestion, type AccessPackageQuestion } from '../../../../../../models/accessPackageQuestion'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/count/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/count/index.ts index 353db7c34dc..123d7e3112a 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/count/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 16915bc47d9..00000000000 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessPackageAssignmentRequestFromDiscriminatorValue, serializeAccessPackageAssignmentRequest, type AccessPackageAssignmentRequest } from '../../../../models/accessPackageAssignmentRequest'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageAssignmentRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessPackageAssignmentRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessPackageAssignmentRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUserWithOn/index.ts index 21e557e0c9a..f2966fef38e 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createAccessPackageAssignmentRequestFromDiscriminatorValue, serializeAccessPackageAssignmentRequest, type AccessPackageAssignmentRequest } from '../../../../models/accessPackageAssignmentRequest'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageAssignmentRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessPackageAssignmentRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessPackageAssignmentRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/index.ts index 65c54aedc08..b1211503712 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageAssignmentRequestCollectionResponse } from '../../../models/'; +import { type AccessPackageAssignmentRequestCollectionResponse } from '../../../models'; import { createAccessPackageAssignmentRequestFromDiscriminatorValue, deserializeIntoAccessPackageAssignmentRequest, serializeAccessPackageAssignmentRequest, type AccessPackageAssignmentRequest } from '../../../models/accessPackageAssignmentRequest'; import { createAccessPackageAssignmentRequestCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageAssignmentRequestCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AccessPackageAssignmentRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AccessPackageAssignmentRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentRequestsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/item/accessPackage/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/item/accessPackage/index.ts index 3723bfdbe1c..09a0b1080c3 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/item/accessPackage/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/item/accessPackage/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackage } from '../../../../../models/'; +import { type AccessPackage } from '../../../../../models'; import { createAccessPackageFromDiscriminatorValue } from '../../../../../models/accessPackage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/item/assignment/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/item/assignment/index.ts index ac66dd1795f..1fd7611406c 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/item/assignment/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/item/assignment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageAssignment } from '../../../../../models/'; +import { type AccessPackageAssignment } from '../../../../../models'; import { createAccessPackageAssignmentFromDiscriminatorValue } from '../../../../../models/accessPackageAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/item/cancel/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/item/cancel/index.ts index 14c9e0be34d..ea78ddb80d8 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/item/cancel/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/item/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/item/index.ts index 2959f111d51..6ceb30fb988 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/item/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageAssignmentRequestFromDiscriminatorValue, deserializeIntoAccessPackageAssignmentRequest, serializeAccessPackageAssignmentRequest, type AccessPackageAssignmentRequest } from '../../../../models/accessPackageAssignmentRequest'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AccessPackageRequestBuilder } from './accessPackage/'; -import { AssignmentRequestBuilder } from './assignment/'; -import { CancelRequestBuilder } from './cancel/'; -import { ReprocessRequestBuilder } from './reprocess/'; -import { RequestorRequestBuilder } from './requestor/'; -import { ResumeRequestBuilder } from './resume/'; +import { AccessPackageRequestBuilder } from './accessPackage'; +import { AssignmentRequestBuilder } from './assignment'; +import { CancelRequestBuilder } from './cancel'; +import { ReprocessRequestBuilder } from './reprocess'; +import { RequestorRequestBuilder } from './requestor'; +import { ResumeRequestBuilder } from './resume'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/item/reprocess/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/item/reprocess/index.ts index 4cc2d9417c8..8533f199f40 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/item/reprocess/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/item/reprocess/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/item/requestor/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/item/requestor/index.ts index 3dc364a85d7..561b8f1640f 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/item/requestor/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/item/requestor/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageSubject } from '../../../../../models/'; +import { type AccessPackageSubject } from '../../../../../models'; import { createAccessPackageSubjectFromDiscriminatorValue } from '../../../../../models/accessPackageSubject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/item/resume/index.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/item/resume/index.ts index f2156e85cb5..fbab2ac43f6 100644 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/item/resume/index.ts +++ b/src/identityGovernance/entitlementManagement/assignmentRequests/item/resume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { createCustomExtensionDataFromDiscriminatorValue, serializeCustomExtensionData, type CustomExtensionData } from '../../../../../models/customExtensionData'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomExtensionDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomExtensionData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomExtensionData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/entitlementManagement/assignmentRequests/item/resume/resumePostRequestBody.ts b/src/identityGovernance/entitlementManagement/assignmentRequests/item/resume/resumePostRequestBody.ts deleted file mode 100644 index 2436a7882c0..00000000000 --- a/src/identityGovernance/entitlementManagement/assignmentRequests/item/resume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomExtensionDataFromDiscriminatorValue, serializeCustomExtensionData, type CustomExtensionData } from '../../../../../models/customExtensionData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomExtensionDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomExtensionData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomExtensionData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/entitlementManagement/assignments/additionalAccess/additionalAccessGetResponse.ts b/src/identityGovernance/entitlementManagement/assignments/additionalAccess/additionalAccessGetResponse.ts deleted file mode 100644 index 062d5ac7db3..00000000000 --- a/src/identityGovernance/entitlementManagement/assignments/additionalAccess/additionalAccessGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessPackageAssignmentFromDiscriminatorValue, serializeAccessPackageAssignment, type AccessPackageAssignment } from '../../../../models/accessPackageAssignment'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AdditionalAccessGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessPackageAssignment[]; -} -export function createAdditionalAccessGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAdditionalAccessGetResponse; -} -export function deserializeIntoAdditionalAccessGetResponse(additionalAccessGetResponse: AdditionalAccessGetResponse | undefined = {} as AdditionalAccessGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(additionalAccessGetResponse), - "value": n => { additionalAccessGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageAssignmentFromDiscriminatorValue); }, - } -} -export function serializeAdditionalAccessGetResponse(writer: SerializationWriter, additionalAccessGetResponse: AdditionalAccessGetResponse | undefined = {} as AdditionalAccessGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, additionalAccessGetResponse) - writer.writeCollectionOfObjectValues("value", additionalAccessGetResponse.value, serializeAccessPackageAssignment); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/entitlementManagement/assignments/additionalAccess/index.ts b/src/identityGovernance/entitlementManagement/assignments/additionalAccess/index.ts index 38851eff16b..270e807adad 100644 --- a/src/identityGovernance/entitlementManagement/assignments/additionalAccess/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/additionalAccess/index.ts @@ -1,12 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createAccessPackageAssignmentFromDiscriminatorValue, serializeAccessPackageAssignment, type AccessPackageAssignment } from '../../../../models/accessPackageAssignment'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createAdditionalAccessGetResponseFromDiscriminatorValue } from './'; -import { type AdditionalAccessGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AdditionalAccessGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessPackageAssignment[]; +} export interface AdditionalAccessRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +43,20 @@ export interface AdditionalAccessRequestBuilderGetQueryParameters { */ top?: number; } +export function createAdditionalAccessGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAdditionalAccessGetResponse; +} +export function deserializeIntoAdditionalAccessGetResponse(additionalAccessGetResponse: AdditionalAccessGetResponse | undefined = {} as AdditionalAccessGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(additionalAccessGetResponse), + "value": n => { additionalAccessGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageAssignmentFromDiscriminatorValue); }, + } +} +export function serializeAdditionalAccessGetResponse(writer: SerializationWriter, additionalAccessGetResponse: AdditionalAccessGetResponse | undefined = {} as AdditionalAccessGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, additionalAccessGetResponse) + writer.writeCollectionOfObjectValues("value", additionalAccessGetResponse.value, serializeAccessPackageAssignment); +} /** * Provides operations to call the additionalAccess method. */ diff --git a/src/identityGovernance/entitlementManagement/assignments/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.ts b/src/identityGovernance/entitlementManagement/assignments/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.ts deleted file mode 100644 index cc10dfe6459..00000000000 --- a/src/identityGovernance/entitlementManagement/assignments/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessPackageAssignmentFromDiscriminatorValue, serializeAccessPackageAssignment, type AccessPackageAssignment } from '../../../../models/accessPackageAssignment'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessPackageAssignment[]; -} -export function createAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse; -} -export function deserializeIntoAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse(additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse: AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse | undefined = {} as AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse), - "value": n => { additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageAssignmentFromDiscriminatorValue); }, - } -} -export function serializeAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse(writer: SerializationWriter, additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse: AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse | undefined = {} as AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse) - writer.writeCollectionOfObjectValues("value", additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.value, serializeAccessPackageAssignment); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/entitlementManagement/assignments/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/index.ts b/src/identityGovernance/entitlementManagement/assignments/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/index.ts index 91715ad3747..458d2cf025e 100644 --- a/src/identityGovernance/entitlementManagement/assignments/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/index.ts @@ -1,12 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createAccessPackageAssignmentFromDiscriminatorValue, serializeAccessPackageAssignment, type AccessPackageAssignment } from '../../../../models/accessPackageAssignment'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponseFromDiscriminatorValue } from './'; -import { type AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessPackageAssignment[]; +} export interface AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +43,20 @@ export interface AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackag */ top?: number; } +export function createAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse; +} +export function deserializeIntoAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse(additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse: AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse | undefined = {} as AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse), + "value": n => { additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageAssignmentFromDiscriminatorValue); }, + } +} +export function serializeAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse(writer: SerializationWriter, additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse: AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse | undefined = {} as AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse) + writer.writeCollectionOfObjectValues("value", additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.value, serializeAccessPackageAssignment); +} /** * Provides operations to call the additionalAccess method. */ diff --git a/src/identityGovernance/entitlementManagement/assignments/count/index.ts b/src/identityGovernance/entitlementManagement/assignments/count/index.ts index 15db13c48a1..c33bb1e3363 100644 --- a/src/identityGovernance/entitlementManagement/assignments/count/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignments/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/entitlementManagement/assignments/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index ca8101b494b..00000000000 --- a/src/identityGovernance/entitlementManagement/assignments/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAccessPackageAssignmentFromDiscriminatorValue, serializeAccessPackageAssignment, type AccessPackageAssignment } from '../../../../models/accessPackageAssignment'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageAssignmentFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AccessPackageAssignment[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessPackageAssignment); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/entitlementManagement/assignments/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/entitlementManagement/assignments/filterByCurrentUserWithOn/index.ts index 21e8f9b4c5f..c6591dee145 100644 --- a/src/identityGovernance/entitlementManagement/assignments/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createAccessPackageAssignmentFromDiscriminatorValue, serializeAccessPackageAssignment, type AccessPackageAssignment } from '../../../../models/accessPackageAssignment'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createAccessPackageAssignmentFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AccessPackageAssignment[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeAccessPackageAssignment); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/entitlementManagement/assignments/index.ts b/src/identityGovernance/entitlementManagement/assignments/index.ts index f4b976ff305..9d4233aca86 100644 --- a/src/identityGovernance/entitlementManagement/assignments/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageAssignmentCollectionResponse } from '../../../models/'; +import { type AccessPackageAssignmentCollectionResponse } from '../../../models'; import { createAccessPackageAssignmentFromDiscriminatorValue, deserializeIntoAccessPackageAssignment, serializeAccessPackageAssignment, type AccessPackageAssignment } from '../../../models/accessPackageAssignment'; import { createAccessPackageAssignmentCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageAssignmentCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AdditionalAccessRequestBuilder } from './additionalAccess/'; -import { AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder } from './additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { AccessPackageAssignmentItemRequestBuilder } from './item/'; +import { AdditionalAccessRequestBuilder } from './additionalAccess'; +import { AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder } from './additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { AccessPackageAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignments/item/accessPackage/index.ts b/src/identityGovernance/entitlementManagement/assignments/item/accessPackage/index.ts index 1a0a8bedc80..d4c48bb88b9 100644 --- a/src/identityGovernance/entitlementManagement/assignments/item/accessPackage/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/item/accessPackage/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackage } from '../../../../../models/'; +import { type AccessPackage } from '../../../../../models'; import { createAccessPackageFromDiscriminatorValue } from '../../../../../models/accessPackage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignments/item/assignmentPolicy/index.ts b/src/identityGovernance/entitlementManagement/assignments/item/assignmentPolicy/index.ts index 6f1ed3d9d34..854b39bfb5b 100644 --- a/src/identityGovernance/entitlementManagement/assignments/item/assignmentPolicy/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/item/assignmentPolicy/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageAssignmentPolicy } from '../../../../../models/'; +import { type AccessPackageAssignmentPolicy } from '../../../../../models'; import { createAccessPackageAssignmentPolicyFromDiscriminatorValue } from '../../../../../models/accessPackageAssignmentPolicy'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignments/item/index.ts b/src/identityGovernance/entitlementManagement/assignments/item/index.ts index f8ab51cc6c8..fffd17c92cb 100644 --- a/src/identityGovernance/entitlementManagement/assignments/item/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/item/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageAssignmentFromDiscriminatorValue, deserializeIntoAccessPackageAssignment, serializeAccessPackageAssignment, type AccessPackageAssignment } from '../../../../models/accessPackageAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AccessPackageRequestBuilder } from './accessPackage/'; -import { AssignmentPolicyRequestBuilder } from './assignmentPolicy/'; -import { ReprocessRequestBuilder } from './reprocess/'; -import { TargetRequestBuilder } from './target/'; +import { AccessPackageRequestBuilder } from './accessPackage'; +import { AssignmentPolicyRequestBuilder } from './assignmentPolicy'; +import { ReprocessRequestBuilder } from './reprocess'; +import { TargetRequestBuilder } from './target'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/assignments/item/reprocess/index.ts b/src/identityGovernance/entitlementManagement/assignments/item/reprocess/index.ts index e9807bd2166..4e85ba0792e 100644 --- a/src/identityGovernance/entitlementManagement/assignments/item/reprocess/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/item/reprocess/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/assignments/item/target/index.ts b/src/identityGovernance/entitlementManagement/assignments/item/target/index.ts index 19fd20dfc47..f51bd5aa29f 100644 --- a/src/identityGovernance/entitlementManagement/assignments/item/target/index.ts +++ b/src/identityGovernance/entitlementManagement/assignments/item/target/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageSubject } from '../../../../../models/'; +import { type AccessPackageSubject } from '../../../../../models'; import { createAccessPackageSubjectFromDiscriminatorValue } from '../../../../../models/accessPackageSubject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/count/index.ts index 798b6fe8092..c883b360a05 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/index.ts b/src/identityGovernance/entitlementManagement/catalogs/index.ts index d0ad673a4c1..4246f33fa04 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCatalogCollectionResponse } from '../../../models/'; +import { type AccessPackageCatalogCollectionResponse } from '../../../models'; import { createAccessPackageCatalogFromDiscriminatorValue, deserializeIntoAccessPackageCatalog, serializeAccessPackageCatalog, type AccessPackageCatalog } from '../../../models/accessPackageCatalog'; import { createAccessPackageCatalogCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageCatalogCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageCatalogItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageCatalogItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CatalogsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/count/index.ts index caea8aad1e3..3502c92a93d 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/index.ts index 6f654fd6be4..730300033cd 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCollectionResponse } from '../../../../../models/'; +import { type AccessPackageCollectionResponse } from '../../../../../models'; import { createAccessPackageCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackagesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/item/index.ts index f6bbbaf9b99..de2498ad2d6 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/accessPackages/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackage } from '../../../../../../models/'; +import { type AccessPackage } from '../../../../../../models'; import { createAccessPackageFromDiscriminatorValue } from '../../../../../../models/accessPackage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/count/index.ts index 16ec30c762e..4a8cf161371 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/index.ts index c745a1ef9e6..cdf16fa30e9 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomCalloutExtensionCollectionResponse } from '../../../../../models/'; +import { type CustomCalloutExtensionCollectionResponse } from '../../../../../models'; import { createCustomCalloutExtensionFromDiscriminatorValue, deserializeIntoCustomCalloutExtension, serializeCustomCalloutExtension, type CustomCalloutExtension } from '../../../../../models/customCalloutExtension'; import { createCustomCalloutExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../models/customCalloutExtensionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CustomCalloutExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CustomCalloutExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomWorkflowExtensionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/item/index.ts index 7a814ac2af6..4ef5c6a9d06 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/customWorkflowExtensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCustomCalloutExtensionFromDiscriminatorValue, deserializeIntoCustomCalloutExtension, serializeCustomCalloutExtension, type CustomCalloutExtension } from '../../../../../../models/customCalloutExtension'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -60,11 +60,11 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createCustomCalloutExtensionFromDiscriminatorValue, errorMapping); }; /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of CustomCalloutExtension - * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0|Find more info here} */ public patch(body: CustomCalloutExtension, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -99,7 +99,7 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return requestInfo; }; /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/index.ts index 9db7fee4a70..ed2153e1b77 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageCatalogFromDiscriminatorValue, deserializeIntoAccessPackageCatalog, serializeAccessPackageCatalog, type AccessPackageCatalog } from '../../../../models/accessPackageCatalog'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AccessPackagesRequestBuilder } from './accessPackages/'; -import { CustomWorkflowExtensionsRequestBuilder } from './customWorkflowExtensions/'; -import { ResourceRolesRequestBuilder } from './resourceRoles/'; -import { ResourcesRequestBuilder } from './resources/'; -import { ResourceScopesRequestBuilder } from './resourceScopes/'; +import { AccessPackagesRequestBuilder } from './accessPackages'; +import { CustomWorkflowExtensionsRequestBuilder } from './customWorkflowExtensions'; +import { ResourceRolesRequestBuilder } from './resourceRoles'; +import { ResourcesRequestBuilder } from './resources'; +import { ResourceScopesRequestBuilder } from './resourceScopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageCatalogItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/count/index.ts index dea94c334a2..934fd0b1f7c 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/index.ts index d1e402cdf28..55d013d740d 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/index.ts index e726c282e9e..d6799225fdd 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/environment/index.ts index 943d09d7027..8f59049f931 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/index.ts index d811b20f750..d8cf50a7997 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/count/index.ts index b631025d86d..d719ee5525b 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/index.ts index de0a1c56614..285f9ba7a56 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/item/index.ts index 6ac1e8bea70..48983933ab1 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/roles/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/count/index.ts index 0473a06cc93..76535004129 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/index.ts index c919a2d63fc..d5cbcc879e4 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/index.ts index fef6762166f..a77340ea094 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/environment/index.ts index 817a6ac5433..1e891840f8a 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/index.ts index 3e080690b37..34f210f49d7 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/count/index.ts index ef7a875c69e..8f6ee91639d 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/index.ts index c0c38b4aa4f..62cc3e4c163 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/item/index.ts index 3b15806ba6a..616c9304b1d 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceRoles/item/resource/scopes/item/resource/roles/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/count/index.ts index 20bcd79adfa..ae2b3364ae4 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/index.ts index 6e653b0438e..69a2a3bf90d 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/index.ts index 0cbaf9d2536..f486cd476fd 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/environment/index.ts index b8073b83020..f443d0212cf 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/index.ts index e2232fc0edf..d76d4b3ad79 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/count/index.ts index 4385c0acd6b..37516543f67 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/index.ts index 43a6ee4b576..e85154e9466 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/index.ts index 014ff1c5f28..67608edf95f 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/environment/index.ts index 189e770174e..ddd6fcd67f8 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/index.ts index a23d9eca13f..28633f85a7d 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/count/index.ts index 976d096de82..50933a5c163 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/index.ts index f30cfbb8092..5118c3519d5 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/item/index.ts index 78d7682f815..e14f2eb3646 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/roles/item/resource/scopes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/count/index.ts index f8038e09760..7e1a46e41f4 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/index.ts index ae170172eeb..715d40ce321 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/item/index.ts index 4b58d53448d..14be7e12133 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resourceScopes/item/resource/scopes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/count/index.ts index 8e65e8b3da3..6d73bc9d9e1 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/index.ts index fc4fac04871..d8c6fbcd724 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceCollectionResponse } from '../../../../../models/'; +import { type AccessPackageResourceCollectionResponse } from '../../../../../models'; import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../models/accessPackageResource'; import { createAccessPackageResourceCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageResourceCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/environment/index.ts index 61077d4011e..90402198feb 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/index.ts index 3d7c213986e..8a467055233 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/count/index.ts index d028ebec278..6a8e1b54c08 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/index.ts index 1c7daf3a71e..72bfc3a153d 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/index.ts index 5dab444cedb..a327dbafb03 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/environment/index.ts index ba8502bce7f..b880fd2c888 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/index.ts index f143e31effa..1e9d1c46c2a 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/count/index.ts index 619364025f7..eced1d67d55 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/index.ts index 5353ddd2cfd..77a63e07bf5 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/index.ts index b00ca2a5ed0..a6e5840db1e 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts index 6151bdb2c5e..33b6cf0cee0 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/index.ts index aa45e6a863d..58bc4eb1bdd 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/roles/item/resource/scopes/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/count/index.ts index 0e2607a9db1..c6c1f995a91 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/index.ts index b26c78f6a79..7f63ac1d096 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/index.ts index ec2f2a7462a..7ac1f50d8e4 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/environment/index.ts index dbf7bc30459..e692b13a21b 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/index.ts index 8fb337e54b4..6f4e907e5c0 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/count/index.ts index b777eea1fd8..33b0efa30bf 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/index.ts index 42175999c34..e538a701451 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/index.ts index 29dcddc15bb..c8e3e6e1ed4 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts index 1e937fc3dd2..ecded3578a6 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/index.ts index 90d0ef8cd61..d616d325867 100644 --- a/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/catalogs/item/resources/item/scopes/item/resource/roles/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/count/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/count/index.ts index e1bd5374e8b..1564df742f4 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/count/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/index.ts index caa1d2926f9..f6b6287fecb 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConnectedOrganizationCollectionResponse } from '../../../models/'; +import { type ConnectedOrganizationCollectionResponse } from '../../../models'; import { createConnectedOrganizationFromDiscriminatorValue, deserializeIntoConnectedOrganization, serializeConnectedOrganization, type ConnectedOrganization } from '../../../models/connectedOrganization'; import { createConnectedOrganizationCollectionResponseFromDiscriminatorValue } from '../../../models/connectedOrganizationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConnectedOrganizationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConnectedOrganizationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConnectedOrganizationsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/count/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/count/index.ts index 4c6fa2888ad..7c04462d168 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/count/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/index.ts index 61b2bdb4db7..6cfbac455ba 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalSponsorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/item/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/item/index.ts index d36598c30fc..3e89eccf01b 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/item/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/item/ref/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/item/ref/index.ts index 8a9cdcb3296..e7ae95c060d 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/item/ref/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/ref/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/ref/index.ts index 768ce706def..5b135e2aece 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/ref/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../../models/stringCollectionResponse'; diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/index.ts index dd3de81b252..6cf4089a8f4 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createConnectedOrganizationFromDiscriminatorValue, deserializeIntoConnectedOrganization, serializeConnectedOrganization, type ConnectedOrganization } from '../../../../models/connectedOrganization'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ExternalSponsorsRequestBuilder } from './externalSponsors/'; -import { InternalSponsorsRequestBuilder } from './internalSponsors/'; +import { ExternalSponsorsRequestBuilder } from './externalSponsors'; +import { InternalSponsorsRequestBuilder } from './internalSponsors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConnectedOrganizationItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/count/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/count/index.ts index 11ba27ec3c7..db8ae4a08c7 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/count/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/index.ts index 0dcdbda496e..48762fea9b4 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InternalSponsorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/item/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/item/index.ts index 23d7d7c6ddd..cdc4116dda4 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/item/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/item/ref/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/item/ref/index.ts index 84699cc4696..d7ebcecf7fe 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/item/ref/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/ref/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/ref/index.ts index 8f09ec60c42..5036ffda872 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/ref/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/internalSponsors/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../../models/stringCollectionResponse'; diff --git a/src/identityGovernance/entitlementManagement/index.ts b/src/identityGovernance/entitlementManagement/index.ts index 1bb90fcee12..57cbd295296 100644 --- a/src/identityGovernance/entitlementManagement/index.ts +++ b/src/identityGovernance/entitlementManagement/index.ts @@ -2,20 +2,20 @@ // eslint-disable // Generated by Microsoft Kiota import { createEntitlementManagementFromDiscriminatorValue, deserializeIntoEntitlementManagement, serializeEntitlementManagement, type EntitlementManagement } from '../../models/entitlementManagement'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AccessPackageAssignmentApprovalsRequestBuilder } from './accessPackageAssignmentApprovals/'; -import { AccessPackagesRequestBuilder } from './accessPackages/'; -import { AssignmentPoliciesRequestBuilder } from './assignmentPolicies/'; -import { AssignmentRequestsRequestBuilder } from './assignmentRequests/'; -import { AssignmentsRequestBuilder } from './assignments/'; -import { CatalogsRequestBuilder } from './catalogs/'; -import { ConnectedOrganizationsRequestBuilder } from './connectedOrganizations/'; -import { ResourceEnvironmentsRequestBuilder } from './resourceEnvironments/'; -import { ResourceRequestsRequestBuilder } from './resourceRequests/'; -import { ResourceRoleScopesRequestBuilder } from './resourceRoleScopes/'; -import { ResourcesRequestBuilder } from './resources/'; -import { SettingsRequestBuilder } from './settings/'; +import { AccessPackageAssignmentApprovalsRequestBuilder } from './accessPackageAssignmentApprovals'; +import { AccessPackagesRequestBuilder } from './accessPackages'; +import { AssignmentPoliciesRequestBuilder } from './assignmentPolicies'; +import { AssignmentRequestsRequestBuilder } from './assignmentRequests'; +import { AssignmentsRequestBuilder } from './assignments'; +import { CatalogsRequestBuilder } from './catalogs'; +import { ConnectedOrganizationsRequestBuilder } from './connectedOrganizations'; +import { ResourceEnvironmentsRequestBuilder } from './resourceEnvironments'; +import { ResourceRequestsRequestBuilder } from './resourceRequests'; +import { ResourceRoleScopesRequestBuilder } from './resourceRoleScopes'; +import { ResourcesRequestBuilder } from './resources'; +import { SettingsRequestBuilder } from './settings'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EntitlementManagementRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/count/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/count/index.ts index 958b534e65e..443f6d4164c 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/index.ts index 8695f9b4f83..e8f69fd238d 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironmentCollectionResponse } from '../../../models/'; +import { type AccessPackageResourceEnvironmentCollectionResponse } from '../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue, deserializeIntoAccessPackageResourceEnvironment, serializeAccessPackageResourceEnvironment, type AccessPackageResourceEnvironment } from '../../../models/accessPackageResourceEnvironment'; import { createAccessPackageResourceEnvironmentCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageResourceEnvironmentCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceEnvironmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceEnvironmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceEnvironmentsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/index.ts index 1890bf0ef29..0922ff92acd 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceEnvironmentFromDiscriminatorValue, deserializeIntoAccessPackageResourceEnvironment, serializeAccessPackageResourceEnvironment, type AccessPackageResourceEnvironment } from '../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ResourcesRequestBuilder } from './resources/'; +import { ResourcesRequestBuilder } from './resources'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceEnvironmentItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/count/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/count/index.ts index dc2f65e36e4..dce87bb7ab6 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/index.ts index 6d32bcd6115..02b02e8db23 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceCollectionResponse } from '../../../../../models/'; +import { type AccessPackageResourceCollectionResponse } from '../../../../../models'; import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../models/accessPackageResource'; import { createAccessPackageResourceCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageResourceCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/environment/index.ts index 55539bf830d..2d1032104b2 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/index.ts index 44fd5738dc9..02007d7dc25 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/count/index.ts index d6a98a0f398..5b71b12c555 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/index.ts index 53f1e4a922d..f6032e38f6e 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/index.ts index a3bf91c4a7c..33b9b9383ed 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/environment/index.ts index 3c3b26ad343..b891278633d 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/index.ts index f360e8add34..b8a6387c300 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/count/index.ts index 357be97b757..058de873d05 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/index.ts index 19f735e89ae..e8ed79f508b 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/index.ts index 2dca77d6161..4f050bcf139 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts index eed01b95788..40364c8b68e 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/resource/index.ts index 614e9c2749e..7b937ed5885 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/roles/item/resource/scopes/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/count/index.ts index d8d9c9b944c..de27feb39f0 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/index.ts index 196b365b444..7b3316f672b 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/index.ts index 2995447de28..f330c976396 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/environment/index.ts index fee430cd567..0da6802512e 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/index.ts index 1f2da5b815d..5caed0d95d6 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/count/index.ts index 4fca3d29938..964afd3b1bd 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/index.ts index 05afa5236df..885e0476dd4 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/index.ts index 4a169f94122..27020a9927f 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts index c5cf73e6056..c042184aa8c 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/resource/index.ts index a489d6fa103..7acb145c993 100644 --- a/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceEnvironments/item/resources/item/scopes/item/resource/roles/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/count/index.ts index 9aef30bcb16..d4c819fb2ed 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/index.ts index 0ab944f76b2..ad1d6b7e673 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRequestCollectionResponse } from '../../../models/'; +import { type AccessPackageResourceRequestCollectionResponse } from '../../../models'; import { createAccessPackageResourceRequestFromDiscriminatorValue, deserializeIntoAccessPackageResourceRequest, serializeAccessPackageResourceRequest, type AccessPackageResourceRequest } from '../../../models/accessPackageResourceRequest'; import { createAccessPackageResourceRequestCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageResourceRequestCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/count/index.ts index ffb6f88c8b5..2c395663b4d 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/index.ts index c6bd77ba856..bc47180f76b 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageCollectionResponse } from '../../../../../../models/'; +import { type AccessPackageCollectionResponse } from '../../../../../../models'; import { createAccessPackageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/accessPackageCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackagesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/item/index.ts index 5a64494c7b8..c61b2556a52 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/accessPackages/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackage } from '../../../../../../../models/'; +import { type AccessPackage } from '../../../../../../../models'; import { createAccessPackageFromDiscriminatorValue } from '../../../../../../../models/accessPackage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/count/index.ts index e8bdbb8246c..6986d03669d 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/index.ts index aa86eab8470..442627c6876 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomCalloutExtensionCollectionResponse } from '../../../../../../models/'; +import { type CustomCalloutExtensionCollectionResponse } from '../../../../../../models'; import { createCustomCalloutExtensionFromDiscriminatorValue, deserializeIntoCustomCalloutExtension, serializeCustomCalloutExtension, type CustomCalloutExtension } from '../../../../../../models/customCalloutExtension'; import { createCustomCalloutExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/customCalloutExtensionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CustomCalloutExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CustomCalloutExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomWorkflowExtensionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/item/index.ts index 4a5139b8cf7..2663d930d00 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCustomCalloutExtensionFromDiscriminatorValue, deserializeIntoCustomCalloutExtension, serializeCustomCalloutExtension, type CustomCalloutExtension } from '../../../../../../../models/customCalloutExtension'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -60,11 +60,11 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createCustomCalloutExtensionFromDiscriminatorValue, errorMapping); }; /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of CustomCalloutExtension - * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0|Find more info here} */ public patch(body: CustomCalloutExtension, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -99,7 +99,7 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return requestInfo; }; /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/index.ts index 85c5b72378d..98425aba572 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageCatalogFromDiscriminatorValue, deserializeIntoAccessPackageCatalog, serializeAccessPackageCatalog, type AccessPackageCatalog } from '../../../../../models/accessPackageCatalog'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AccessPackagesRequestBuilder } from './accessPackages/'; -import { CustomWorkflowExtensionsRequestBuilder } from './customWorkflowExtensions/'; -import { ResourceRolesRequestBuilder } from './resourceRoles/'; -import { ResourcesRequestBuilder } from './resources/'; -import { ResourceScopesRequestBuilder } from './resourceScopes/'; +import { AccessPackagesRequestBuilder } from './accessPackages'; +import { CustomWorkflowExtensionsRequestBuilder } from './customWorkflowExtensions'; +import { ResourceRolesRequestBuilder } from './resourceRoles'; +import { ResourcesRequestBuilder } from './resources'; +import { ResourceScopesRequestBuilder } from './resourceScopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CatalogRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/count/index.ts index fc4446bdf7e..1444c2b4819 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/index.ts index d44c2520572..8a61037800a 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/index.ts index c526bf84a33..467e0c1dd8a 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/environment/index.ts index 99c12b68dad..6c1350a3959 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/index.ts index 8acb3716479..5e72b23490d 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/count/index.ts index f0574e5bdd2..530033d7635 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/index.ts index 694859f9b2d..9fd4ced5895 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/item/index.ts index 21c94008103..778c214b34c 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/roles/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/count/index.ts index b01d03b9262..3d7ee1ca643 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/index.ts index a78c0c2f9b9..451e101fca6 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/index.ts index 428aa24c0e0..b60a88d7618 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/environment/index.ts index 78ff68dd517..237573d9370 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/index.ts index 655c4aca264..efa0cdf7aa0 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/count/index.ts index 0bf6868c59e..72fc3768d34 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/index.ts index 9871347c810..dd1a40b4b25 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/item/index.ts index 5530961c411..8e4f8dbf6ef 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceRoles/item/resource/scopes/item/resource/roles/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/count/index.ts index f2a07a6a10d..1be16205d7b 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/index.ts index 4b92d838de7..a831eaf394c 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/index.ts index bcb1f525f60..37f62d5b345 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/environment/index.ts index 6909ccbce5e..cb2ed42728a 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/index.ts index f78602e1a57..75cf6e9b79d 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/count/index.ts index a39e877c542..2fc257e8680 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/index.ts index 8d37fe5762b..bf4dffaf734 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/index.ts index 4c04619ac6a..31a4ca558f6 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/environment/index.ts index 167867aa069..803e108a12c 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/index.ts index f9f0b6c3bb8..5246ded5745 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/count/index.ts index 4afc25b44d0..6adfb142745 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/index.ts index ef5e5bbbb4e..4555a1864ca 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/item/index.ts index 65fc4984dd7..650b54a01fb 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/roles/item/resource/scopes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/count/index.ts index 68a1e5cc69b..b044631d3a7 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/index.ts index ff7fd7ec6b8..10d644de6b7 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/item/index.ts index bbeb9de20a1..2c1a9b7de04 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resourceScopes/item/resource/scopes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/count/index.ts index 8ced0e4a5a2..6588119cb71 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/index.ts index 4797e62a405..772e7309b8b 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceCollectionResponse } from '../../../../../../models/'; +import { type AccessPackageResourceCollectionResponse } from '../../../../../../models'; import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../models/accessPackageResource'; import { createAccessPackageResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../models/accessPackageResourceCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/environment/index.ts index ddf9caf5d21..3caabb768b5 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/index.ts index 2508f04fc61..a61c7b93d30 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/count/index.ts index 5402c367c56..717d5ce372e 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/index.ts index 79f74813d9c..c7a8bdce4a4 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/index.ts index ca7d4f57c56..9cc8ca905fc 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/environment/index.ts index a904857c0bb..71fca199310 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/index.ts index 5dd65255ad7..e0d3fc5a58e 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/count/index.ts index b92a195b0fc..ea999adb0cd 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/index.ts index 81b04ee21eb..dfa62eaf852 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/index.ts index 95b43886bbc..f3fcc7fb749 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts index f15e486d69a..e1647c20084 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/resource/index.ts index 7649a0fc04a..184403278d0 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/roles/item/resource/scopes/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/count/index.ts index c2f610c16a4..3f3eb031c07 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/index.ts index d4f3178d76c..39771bc658d 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/index.ts index 25e3346f4f5..4b17f635f22 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/environment/index.ts index 9b051ed3d60..ff60c68ca03 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/index.ts index 40bec4ac0fc..01a81fb76fa 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/count/index.ts index ee83eb7e1c3..a6b3383feb3 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/index.ts index 9712f05b60c..58933be465d 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/index.ts index 93847d32692..c636f1bfa09 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts index 197d885eb54..31d37ee1bae 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/resource/index.ts index 7fbc1afd3a1..46af12695be 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/resources/item/scopes/item/resource/roles/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/index.ts index e188000fe88..8344d902cdc 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRequestFromDiscriminatorValue, deserializeIntoAccessPackageResourceRequest, serializeAccessPackageResourceRequest, type AccessPackageResourceRequest } from '../../../../models/accessPackageResourceRequest'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CatalogRequestBuilder } from './catalog/'; -import { ResourceRequestBuilder } from './resource/'; +import { CatalogRequestBuilder } from './catalog'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRequestItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/environment/index.ts index 1f1f483663a..84a8f71134a 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/index.ts index af3b7dd38a8..af21fd0fabd 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/count/index.ts index 064e0ba327b..8d36da4e38b 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/index.ts index f65796b5c08..8928f327933 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/index.ts index 68dc141d835..e4adf34f5a1 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/environment/index.ts index 0cb3c38de2a..41ce752ab99 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/index.ts index f040c876176..5f8ebfae995 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/count/index.ts index e511b80b8c7..9e858f6b4ac 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/index.ts index fe55846d2e4..fe6c6d3364b 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/index.ts index 4d044e9040c..adba9fcb4cf 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/resource/environment/index.ts index a1b5ceeff8a..395eaa2d87c 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/resource/index.ts index 54fb4c9db60..9448c11756a 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/roles/item/resource/scopes/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/count/index.ts index 332b4e9f62e..88e4ba305b1 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/index.ts index bcaada62468..5a2003037d8 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/index.ts index dcff0acb7e4..7d8a0c19e2a 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/environment/index.ts index 7de44372d56..91669c7177f 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/index.ts index a3a605d302e..176ecc54457 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/count/index.ts index fa7fbf3ce21..4e6621fc42c 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/index.ts index 3b286cec187..249726c55de 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/index.ts index 19a60337746..44f69367560 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/resource/environment/index.ts index 53db6418279..26d15074cbb 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/resource/index.ts index 008888f675c..8ecde71655c 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/resource/scopes/item/resource/roles/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/count/index.ts index 7ee0ec4620c..104dae2c01d 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/index.ts index 02dd4bbe16b..3ab8cdd6c54 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleScopeCollectionResponse } from '../../../models/'; +import { type AccessPackageResourceRoleScopeCollectionResponse } from '../../../models'; import { createAccessPackageResourceRoleScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceRoleScope, serializeAccessPackageResourceRoleScope, type AccessPackageResourceRoleScope } from '../../../models/accessPackageResourceRoleScope'; import { createAccessPackageResourceRoleScopeCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageResourceRoleScopeCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRoleScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/index.ts index e059304ef24..a9a3e47e784 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceRoleScope, serializeAccessPackageResourceRoleScope, type AccessPackageResourceRoleScope } from '../../../../models/accessPackageResourceRoleScope'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { RoleRequestBuilder } from './role/'; -import { ScopeRequestBuilder } from './scope/'; +import { RoleRequestBuilder } from './role'; +import { ScopeRequestBuilder } from './scope'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/index.ts index 987dad54529..743c667c3eb 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/environment/index.ts index 45ea95bc191..af2f31928f2 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/index.ts index d3e986979c3..4cafb40fd85 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/count/index.ts index 9f01a99ac09..56817f4abdf 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/index.ts index 4ddcd1b0001..10313602b3b 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/item/index.ts index 7b090e95c2b..16d781a17b9 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/roles/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/count/index.ts index b819eec9b2c..45fa9fe0e89 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/index.ts index 0a928e1a556..9242f4f5f86 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/index.ts index 29f1da3c38d..e8a56c9baf1 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/environment/index.ts index 165aee0e107..3d814098c60 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/index.ts index 6e7e02654f8..d959bc684b2 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/count/index.ts index a45b46fda64..3b1e05376bb 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/index.ts index fe10e236c35..578782129a2 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/item/index.ts index 67d56fd8527..75051351d88 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/role/resource/scopes/item/resource/roles/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/index.ts index 1eab6551c1f..0766c696834 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopeRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/environment/index.ts index 45ddcf8fe06..39377ca8b07 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/index.ts index 6567ac9c276..498ad3f2ca4 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/count/index.ts index f2831a8a28e..b6d6bb165c3 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/index.ts index 3a236bf7733..32e0177fbfa 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/index.ts index 6f5022ba032..7d52a6a51d2 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/environment/index.ts index bbe4bccb47e..87533c0b7ff 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/index.ts index b0e868a6c60..78aa6a30c25 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/count/index.ts index 9e8de3f9fdf..971e55033f9 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/index.ts index e2a351d6fcb..3d67d259f49 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/item/index.ts index bda1eb7ab64..24538b43a42 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/roles/item/resource/scopes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/count/index.ts index b5e9d18ef60..69eccc5d7a4 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/index.ts index 5b8dcace18b..5ec3f926254 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/item/index.ts index b750741e705..5b496bde53c 100644 --- a/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRoleScopes/item/scope/resource/scopes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/count/index.ts b/src/identityGovernance/entitlementManagement/resources/count/index.ts index 255b972dced..578809efe5c 100644 --- a/src/identityGovernance/entitlementManagement/resources/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/index.ts b/src/identityGovernance/entitlementManagement/resources/index.ts index 7cc42edca30..ff6931ebb1b 100644 --- a/src/identityGovernance/entitlementManagement/resources/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceCollectionResponse } from '../../../models/'; +import { type AccessPackageResourceCollectionResponse } from '../../../models'; import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../models/accessPackageResource'; import { createAccessPackageResourceCollectionResponseFromDiscriminatorValue } from '../../../models/accessPackageResourceCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/environment/index.ts b/src/identityGovernance/entitlementManagement/resources/item/environment/index.ts index 3d170f287bc..12dace28041 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/index.ts b/src/identityGovernance/entitlementManagement/resources/item/index.ts index 65f78ad892b..b8893c6f73f 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/count/index.ts index 1020fa75209..593eea81f78 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/index.ts index c4049d1eb44..2f1ce5ebb95 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/item/index.ts index 204c286c9d2..7c27f79bd13 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/environment/index.ts index b7822293a0e..c4340bb4d88 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/index.ts index 9b7d2582f61..4e000efb1f3 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { ScopesRequestBuilder } from './scopes/'; +import { EnvironmentRequestBuilder } from './environment'; +import { ScopesRequestBuilder } from './scopes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/count/index.ts index 6360f169765..e390c6537f5 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/index.ts index dd081d21bcf..bac293da9d5 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/index.ts index 5f6ce241537..12bc749dc10 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts index a72958eacf5..443760173f4 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/resource/index.ts index b4c93e33a1d..08ab5f5b7c6 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/roles/item/resource/scopes/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/count/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/count/index.ts index f1512e8d804..54c401f0756 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/index.ts index e1717ffadaa..f1a8b86f272 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../models/'; +import { type AccessPackageResourceScopeCollectionResponse } from '../../../../../models'; import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../models/accessPackageResourceScope'; import { createAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue } from '../../../../../models/accessPackageResourceScopeCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceScopeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceScopeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/index.ts index c78dcf207f9..511a13f19ea 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceScopeFromDiscriminatorValue, deserializeIntoAccessPackageResourceScope, serializeAccessPackageResourceScope, type AccessPackageResourceScope } from '../../../../../../models/accessPackageResourceScope'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceScopeItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/environment/index.ts index e063f92cea6..944ffb46297 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/index.ts index 3631f1d6297..9218b49290a 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; -import { RolesRequestBuilder } from './roles/'; +import { EnvironmentRequestBuilder } from './environment'; +import { RolesRequestBuilder } from './roles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/count/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/count/index.ts index 5de9374507f..ce03416ada3 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/count/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/index.ts index a9b79a3e7c2..2c034b108fd 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../models/'; +import { type AccessPackageResourceRoleCollectionResponse } from '../../../../../../../../models'; import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../models/accessPackageResourceRole'; import { createAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/accessPackageResourceRoleCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AccessPackageResourceRoleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AccessPackageResourceRoleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RolesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/index.ts index 02fc2f33e6f..d4278a1dba6 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceRoleFromDiscriminatorValue, deserializeIntoAccessPackageResourceRole, serializeAccessPackageResourceRole, type AccessPackageResourceRole } from '../../../../../../../../../models/accessPackageResourceRole'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessPackageResourceRoleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts index f5d21cb501b..cbc906a7092 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/resource/environment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models/'; +import { type AccessPackageResourceEnvironment } from '../../../../../../../../../../../models'; import { createAccessPackageResourceEnvironmentFromDiscriminatorValue } from '../../../../../../../../../../../models/accessPackageResourceEnvironment'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/resource/index.ts b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/resource/index.ts index 101a0bc8cd7..8ee88a03594 100644 --- a/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/resource/index.ts +++ b/src/identityGovernance/entitlementManagement/resources/item/scopes/item/resource/roles/item/resource/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAccessPackageResourceFromDiscriminatorValue, deserializeIntoAccessPackageResource, serializeAccessPackageResource, type AccessPackageResource } from '../../../../../../../../../../models/accessPackageResource'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { EnvironmentRequestBuilder } from './environment/'; +import { EnvironmentRequestBuilder } from './environment'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/entitlementManagement/settings/index.ts b/src/identityGovernance/entitlementManagement/settings/index.ts index 5ecdf9280d7..d2c1e23a055 100644 --- a/src/identityGovernance/entitlementManagement/settings/index.ts +++ b/src/identityGovernance/entitlementManagement/settings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEntitlementManagementSettingsFromDiscriminatorValue, deserializeIntoEntitlementManagementSettings, serializeEntitlementManagementSettings, type EntitlementManagementSettings } from '../../../models/entitlementManagementSettings'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/index.ts b/src/identityGovernance/index.ts index 7be399986e1..09937e8bf6c 100644 --- a/src/identityGovernance/index.ts +++ b/src/identityGovernance/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityGovernanceFromDiscriminatorValue, deserializeIntoIdentityGovernance, serializeIdentityGovernance, type IdentityGovernance } from '../models/identityGovernance'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { AccessReviewsRequestBuilder } from './accessReviews/'; -import { AppConsentRequestBuilder } from './appConsent/'; -import { EntitlementManagementRequestBuilder } from './entitlementManagement/'; -import { LifecycleWorkflowsRequestBuilder } from './lifecycleWorkflows/'; -import { PrivilegedAccessRequestBuilder } from './privilegedAccess/'; -import { TermsOfUseRequestBuilder } from './termsOfUse/'; +import { AccessReviewsRequestBuilder } from './accessReviews'; +import { AppConsentRequestBuilder } from './appConsent'; +import { EntitlementManagementRequestBuilder } from './entitlementManagement'; +import { LifecycleWorkflowsRequestBuilder } from './lifecycleWorkflows'; +import { PrivilegedAccessRequestBuilder } from './privilegedAccess'; +import { TermsOfUseRequestBuilder } from './termsOfUse'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IdentityGovernanceRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/count/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/count/index.ts index f2cc4e00d9b..17f797c52b6 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/index.ts index 7c86416d502..0d2a14e234e 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomTaskExtensionCollectionResponse } from '../../../models/identityGovernance/'; +import { type CustomTaskExtensionCollectionResponse } from '../../../models/identityGovernance'; import { createCustomTaskExtensionFromDiscriminatorValue, deserializeIntoCustomTaskExtension, serializeCustomTaskExtension, type CustomTaskExtension } from '../../../models/identityGovernance/customTaskExtension'; import { createCustomTaskExtensionCollectionResponseFromDiscriminatorValue } from '../../../models/identityGovernance/customTaskExtensionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CustomTaskExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CustomTaskExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomTaskExtensionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/index.ts index 345421bb194..2c01429cc5e 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/mailboxSettings/index.ts index 3e59b23f397..2d416db4b65 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/serviceProvisioningErrors/count/index.ts index bbd463bbee4..b085f20b50b 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/serviceProvisioningErrors/index.ts index ad2ef79b7fc..0dfaa1a6634 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/createdBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/index.ts index 53dfd3d2d1d..373b5bd57f0 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createCustomTaskExtensionFromDiscriminatorValue, deserializeIntoCustomTaskExtension, serializeCustomTaskExtension, type CustomTaskExtension } from '../../../../models/identityGovernance/customTaskExtension'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CreatedByRequestBuilder } from './createdBy/'; -import { LastModifiedByRequestBuilder } from './lastModifiedBy/'; +import { CreatedByRequestBuilder } from './createdBy'; +import { LastModifiedByRequestBuilder } from './lastModifiedBy'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomTaskExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/index.ts index 9360a9e79ba..9c63a2cb0c8 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/mailboxSettings/index.ts index 2bbef47f8de..0677173cd8f 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts index 42c49c80152..50da9fa564f 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/serviceProvisioningErrors/index.ts index 15ae6f2c1b4..62502ac4947 100644 --- a/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/customTaskExtensions/item/lastModifiedBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/index.ts index dece545d7f6..0c112b19c6a 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeletedItemContainer } from '../../../models/'; +import { type DeletedItemContainer } from '../../../models'; import { createDeletedItemContainerFromDiscriminatorValue } from '../../../models/deletedItemContainer'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { WorkflowsRequestBuilder } from './workflows/'; +import { WorkflowsRequestBuilder } from './workflows'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeletedItemsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/count/index.ts index 72058d34255..6a95e5f8bf4 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/index.ts index bdebad41f6b..0349b17e813 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkflowCollectionResponse } from '../../../../models/identityGovernance/'; +import { type WorkflowCollectionResponse } from '../../../../models/identityGovernance'; import { createWorkflowCollectionResponseFromDiscriminatorValue } from '../../../../models/identityGovernance/workflowCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { WorkflowItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkflowItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkflowsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/index.ts index 1ea2a1c7f53..b26d0ea8395 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/mailboxSettings/index.ts index 60408e115bb..c803f624797 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/serviceProvisioningErrors/count/index.ts index 9b0634b39e6..aa37805cd32 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/serviceProvisioningErrors/index.ts index 6341d1295ea..80eb71ccb58 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/createdBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/count/index.ts index 548d72af1bd..d91b66ba793 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/index.ts index 5cb4800a317..f8496d41694 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResultCollectionResponse } from '../../../../../../models/identityGovernance/'; +import { type UserProcessingResultCollectionResponse } from '../../../../../../models/identityGovernance'; import { createUserProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../models/identityGovernance/userProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { UserProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExecutionScopeRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/item/index.ts index 9ef3169c0e0..d5adeedc839 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/executionScope/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResult } from '../../../../../../../models/identityGovernance/'; +import { type UserProcessingResult } from '../../../../../../../models/identityGovernance'; import { createUserProcessingResultFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/userProcessingResult'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/index.ts index 5bd47e6f364..ea87a1a4818 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Workflow } from '../../../../../models/identityGovernance/'; +import { type Workflow } from '../../../../../models/identityGovernance'; import { createWorkflowFromDiscriminatorValue } from '../../../../../models/identityGovernance/workflow'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CreatedByRequestBuilder } from './createdBy/'; -import { ExecutionScopeRequestBuilder } from './executionScope/'; -import { LastModifiedByRequestBuilder } from './lastModifiedBy/'; -import { MicrosoftGraphIdentityGovernanceActivateRequestBuilder } from './microsoftGraphIdentityGovernanceActivate/'; -import { MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder } from './microsoftGraphIdentityGovernanceCreateNewVersion/'; -import { MicrosoftGraphIdentityGovernanceRestoreRequestBuilder } from './microsoftGraphIdentityGovernanceRestore/'; -import { RunsRequestBuilder } from './runs/'; -import { TaskReportsRequestBuilder } from './taskReports/'; -import { TasksRequestBuilder } from './tasks/'; -import { UserProcessingResultsRequestBuilder } from './userProcessingResults/'; -import { VersionsRequestBuilder } from './versions/'; +import { CreatedByRequestBuilder } from './createdBy'; +import { ExecutionScopeRequestBuilder } from './executionScope'; +import { LastModifiedByRequestBuilder } from './lastModifiedBy'; +import { MicrosoftGraphIdentityGovernanceActivateRequestBuilder } from './microsoftGraphIdentityGovernanceActivate'; +import { MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder } from './microsoftGraphIdentityGovernanceCreateNewVersion'; +import { MicrosoftGraphIdentityGovernanceRestoreRequestBuilder } from './microsoftGraphIdentityGovernanceRestore'; +import { RunsRequestBuilder } from './runs'; +import { TaskReportsRequestBuilder } from './taskReports'; +import { TasksRequestBuilder } from './tasks'; +import { UserProcessingResultsRequestBuilder } from './userProcessingResults'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkflowItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/index.ts index ec051819acc..63c495cf019 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/mailboxSettings/index.ts index 3fed0bfe025..8397bf28e10 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts index 4ca8093ec59..fdbcd094a4a 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/serviceProvisioningErrors/index.ts index e448eac21e5..35f15cd36e3 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/lastModifiedBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceActivate/activatePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceActivate/activatePostRequestBody.ts deleted file mode 100644 index ad6748a7596..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceActivate/activatePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createUserFromDiscriminatorValue, serializeUser, type User } from '../../../../../../models/user'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ActivatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The subjects property - */ - subjects?: User[]; -} -export function createActivatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoActivatePostRequestBody; -} -export function deserializeIntoActivatePostRequestBody(activatePostRequestBody: ActivatePostRequestBody | undefined = {} as ActivatePostRequestBody) : Record void> { - return { - "subjects": n => { activatePostRequestBody.subjects = n.getCollectionOfObjectValues(createUserFromDiscriminatorValue); }, - } -} -export function serializeActivatePostRequestBody(writer: SerializationWriter, activatePostRequestBody: ActivatePostRequestBody | undefined = {} as ActivatePostRequestBody) : void { - writer.writeCollectionOfObjectValues("subjects", activatePostRequestBody.subjects, serializeUser); - writer.writeAdditionalData(activatePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceActivate/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceActivate/index.ts index 0a58edbb384..6abeb049e7a 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceActivate/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceActivate/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoActivatePostRequestBody, serializeActivatePostRequestBody, type ActivatePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUserFromDiscriminatorValue, serializeUser, type User } from '../../../../../../models/user'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ActivatePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The subjects property + */ + subjects?: User[]; +} +export function createActivatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoActivatePostRequestBody; +} +export function deserializeIntoActivatePostRequestBody(activatePostRequestBody: ActivatePostRequestBody | undefined = {} as ActivatePostRequestBody) : Record void> { + return { + "subjects": n => { activatePostRequestBody.subjects = n.getCollectionOfObjectValues(createUserFromDiscriminatorValue); }, + } +} +export function serializeActivatePostRequestBody(writer: SerializationWriter, activatePostRequestBody: ActivatePostRequestBody | undefined = {} as ActivatePostRequestBody) : void { + writer.writeCollectionOfObjectValues("subjects", activatePostRequestBody.subjects, serializeUser); + writer.writeAdditionalData(activatePostRequestBody.additionalData); +} /** * Provides operations to call the activate method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceCreateNewVersion/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceCreateNewVersion/index.ts index 1aacb19a97b..accb58235f6 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceCreateNewVersion/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceCreateNewVersion/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createWorkflowFromDiscriminatorValue, deserializeIntoWorkflow, serializeWorkflow, type Workflow } from '../../../../../../models/identityGovernance/workflow'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createWorkflowFromDiscriminatorValue, serializeWorkflow, type Workflow } from '../../../../../../models/identityGovernance/workflow'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateNewVersionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +27,5 @@ export function serializeCreateNewVersionPostRequestBody(writer: SerializationWr writer.writeObjectValue("workflow", createNewVersionPostRequestBody.workflow, serializeWorkflow); writer.writeAdditionalData(createNewVersionPostRequestBody.additionalData); } -/** - * Provides operations to call the createNewVersion method. - */ -export class MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.createNewVersion"); - }; - /** - * Create a new version of the workflow object. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Workflow - * @see {@link https://learn.microsoft.com/graph/api/identitygovernance-workflow-createnewversion?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateNewVersionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkflowFromDiscriminatorValue, errorMapping); - }; - /** - * Create a new version of the workflow object. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateNewVersionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateNewVersionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a microsoftGraphIdentityGovernanceCreateNewVersionRequestBuilder - */ - public withUrl(rawUrl: string) : MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceRestore/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceRestore/index.ts index 50e18d1aa9b..7746e8e46cf 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceRestore/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/microsoftGraphIdentityGovernanceRestore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Workflow } from '../../../../../../models/identityGovernance/'; +import { type Workflow } from '../../../../../../models/identityGovernance'; import { createWorkflowFromDiscriminatorValue } from '../../../../../../models/identityGovernance/workflow'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/count/index.ts index 8320ef86ed1..6c2e567c054 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/index.ts index 44164613704..707d3e3cc09 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RunCollectionResponse } from '../../../../../../models/identityGovernance/'; +import { type RunCollectionResponse } from '../../../../../../models/identityGovernance'; import { createRunCollectionResponseFromDiscriminatorValue } from '../../../../../../models/identityGovernance/runCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { RunItemRequestBuilder } from './item/'; -import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/'; +import { CountRequestBuilder } from './count'; +import { RunItemRequestBuilder } from './item'; +import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RunsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/index.ts index 6273ebbd96b..9713f070976 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Run } from '../../../../../../../models/identityGovernance/'; +import { type Run } from '../../../../../../../models/identityGovernance'; import { createRunFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/run'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; -import { UserProcessingResultsRequestBuilder } from './userProcessingResults/'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; +import { UserProcessingResultsRequestBuilder } from './userProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RunItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/count/index.ts index 0ae6d2455f3..5361d7ddf01 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/index.ts index 5a91c1425cf..4613bc1a3c5 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/index.ts index 24006774aa4..bbd63fc7012 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index b94fc5cf119..a80cf1abc9f 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 2ff63b8495e..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/index.ts index caf1c652fc8..cdf7765ee0c 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 1b88f0a98c5..d74cc711aaa 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index c6171852edc..8b325bb109f 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index a2d590aa993..61bfa73d7a6 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/task/index.ts index b97c830af78..bd88817dfb8 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/count/index.ts index 42242f1293c..8bb56e2a559 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/index.ts index 41a8ee5f89d..6a0ae0184b1 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance/'; +import { type UserProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance'; import { createUserProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/userProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { UserProcessingResultItemRequestBuilder } from './item/'; -import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/'; +import { CountRequestBuilder } from './count'; +import { UserProcessingResultItemRequestBuilder } from './item'; +import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/index.ts index 083371441b8..ff8412b620d 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResult } from '../../../../../../../../../models/identityGovernance/'; +import { type UserProcessingResult } from '../../../../../../../../../models/identityGovernance'; import { createUserProcessingResultFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/userProcessingResult'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { SubjectRequestBuilder } from './subject'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/index.ts index eeb6d7e491d..13b113e7e83 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/mailboxSettings/index.ts index a370457db30..6ab0bc7e3ea 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index c62d9da4108..08e06728d11 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts index 417248db56e..e2533d62ec0 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/count/index.ts index 3a89ee59468..0888e8cfa61 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/index.ts index 71b66a6c7b6..76bc5c2062d 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/index.ts index 095ca795b6a..a673247d69f 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index a14629a6979..8f2041b75ec 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 44f76c1d551..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts index cdef888c7c9..5c7bc18a011 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 073cae0acd7..1b73d637f1b 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 763a8bd2102..d7676a5a01e 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index bab8d4eb873..4251e0d81ff 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts index 7e43aca0f93..7cfc1883b66 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts index 80a53d7f63e..2f98fe7ebff 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserSummary } from '../../../../../../../../../models/identityGovernance/'; +import { type UserSummary } from '../../../../../../../../../models/identityGovernance'; import { createUserSummaryFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/userSummary'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts index 36e803f8cbe..b95a7212189 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/runs/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RunSummary } from '../../../../../../../models/identityGovernance/'; +import { type RunSummary } from '../../../../../../../models/identityGovernance'; import { createRunSummaryFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/runSummary'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/count/index.ts index 34edaa6c336..b4ab0fec556 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/index.ts index a0e90c6a54b..6daa92a907b 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskReportCollectionResponse } from '../../../../../../models/identityGovernance/'; +import { type TaskReportCollectionResponse } from '../../../../../../models/identityGovernance'; import { createTaskReportCollectionResponseFromDiscriminatorValue } from '../../../../../../models/identityGovernance/taskReportCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskReportItemRequestBuilder } from './item/'; -import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/'; +import { CountRequestBuilder } from './count'; +import { TaskReportItemRequestBuilder } from './item'; +import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskReportsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/index.ts index 8e995fe4a63..fc7d7a04574 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskReport } from '../../../../../../../models/identityGovernance/'; +import { type TaskReport } from '../../../../../../../models/identityGovernance'; import { createTaskReportFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskReport'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { TaskRequestBuilder } from './task/'; -import { TaskDefinitionRequestBuilder } from './taskDefinition/'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { TaskRequestBuilder } from './task'; +import { TaskDefinitionRequestBuilder } from './taskDefinition'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskReportItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/task/index.ts index 6af54ce74af..28da7544cf6 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskDefinition/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskDefinition/index.ts index b1386397dbc..2557760b297 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskDefinition/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskDefinition/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskDefinition } from '../../../../../../../../models/identityGovernance/'; +import { type TaskDefinition } from '../../../../../../../../models/identityGovernance'; import { createTaskDefinitionFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/count/index.ts index 76835ee957b..daab0f11cf2 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/index.ts index 53ecbf3a51c..da01315f6a7 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/index.ts index 8c8cf23c0fd..04b921f0a12 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index 8e3350d4c44..86dbd7cfc88 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 2ff63b8495e..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/index.ts index d0b96c00adc..d075ba7d7c4 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index e56909047c1..44552948aa4 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index a6e35666744..e02ec77df4d 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index a11136d401b..35dc6acb70c 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/task/index.ts index 9858a437bec..28e0f31c289 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts index 0148c2d1661..905a25ea11e 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/taskReports/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskReportSummary } from '../../../../../../../models/identityGovernance/'; +import { type TaskReportSummary } from '../../../../../../../models/identityGovernance'; import { createTaskReportSummaryFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskReportSummary'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/count/index.ts index d85ae5ccb4e..e61c82335a9 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/index.ts index 1411c9a31c4..62ce075aa83 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskCollectionResponse } from '../../../../../../models/identityGovernance/'; +import { type TaskCollectionResponse } from '../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue, deserializeIntoTask, serializeTask, type Task } from '../../../../../../models/identityGovernance/task'; import { createTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../models/identityGovernance/taskCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/index.ts index 8cd003fa9e6..138c2775515 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createTaskFromDiscriminatorValue, deserializeIntoTask, serializeTask, type Task } from '../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/count/index.ts index dfbbdf45808..895ac3306bd 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/index.ts index 8e92193ce07..f32ab554e34 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/index.ts index 7cb5afd9303..a0319a0cbcb 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index 90df6706a5f..a690c50499c 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 2ff63b8495e..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/index.ts index 84f30691a89..e6c5a53c60d 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index b36aec99b70..ef6eec345a2 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 0d8ea374341..8a428d08b86 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index ebe35f49788..d348f3d5642 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/task/index.ts index 9e303eaf893..316bef3c75f 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/tasks/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/count/index.ts index f510fdba366..51942c78a65 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/index.ts index 82573d89154..bf1845cdf52 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResultCollectionResponse } from '../../../../../../models/identityGovernance/'; +import { type UserProcessingResultCollectionResponse } from '../../../../../../models/identityGovernance'; import { createUserProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../models/identityGovernance/userProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { UserProcessingResultItemRequestBuilder } from './item/'; -import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/'; +import { CountRequestBuilder } from './count'; +import { UserProcessingResultItemRequestBuilder } from './item'; +import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/index.ts index 65cc2bde1a7..0784964f5bc 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResult } from '../../../../../../../models/identityGovernance/'; +import { type UserProcessingResult } from '../../../../../../../models/identityGovernance'; import { createUserProcessingResultFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/userProcessingResult'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { SubjectRequestBuilder } from './subject'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/index.ts index ce9196669e4..32ec99f6f13 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/mailboxSettings/index.ts index 39f18696c32..8cffc11cf09 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 0f2f5462bde..271950dd973 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts index b8690cbe511..61ed0051441 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/count/index.ts index aa27a90297a..95edcecbb3a 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/index.ts index 9277a76609f..77ca55e9611 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/index.ts index f08a2c6378a..40054e04301 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index 18444ba6272..028aee7aa73 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 2ff63b8495e..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts index 316c1a8232c..3b522d79ea6 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 9778bf5be3a..841f1e9a0b4 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index f7ceca14c48..3669ea6f8c3 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index 60f1b8f6aeb..318ea9cfd1b 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts index de6da920aba..4fdda38db78 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts index d1ef1b33d54..9522a70f410 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserSummary } from '../../../../../../../models/identityGovernance/'; +import { type UserSummary } from '../../../../../../../models/identityGovernance'; import { createUserSummaryFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/userSummary'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/count/index.ts index 13b85e84f19..63e1b77e9cf 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/index.ts index e4168bb3f41..830044f56dc 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkflowVersionCollectionResponse } from '../../../../../../models/identityGovernance/'; +import { type WorkflowVersionCollectionResponse } from '../../../../../../models/identityGovernance'; import { createWorkflowVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/identityGovernance/workflowVersionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { WorkflowVersionVersionNumberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkflowVersionVersionNumberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/index.ts index f5dd39a3c84..269095fb5f2 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/mailboxSettings/index.ts index 54a30fb5022..14b9c5b9a2c 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/serviceProvisioningErrors/count/index.ts index 76802189af7..55361eff214 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/serviceProvisioningErrors/index.ts index 31ab681d44f..fad64578760 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/createdBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/index.ts index 54c56bfd07a..6b1165c775d 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkflowVersion } from '../../../../../../../models/identityGovernance/'; +import { type WorkflowVersion } from '../../../../../../../models/identityGovernance'; import { createWorkflowVersionFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/workflowVersion'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CreatedByRequestBuilder } from './createdBy/'; -import { LastModifiedByRequestBuilder } from './lastModifiedBy/'; -import { TasksRequestBuilder } from './tasks/'; +import { CreatedByRequestBuilder } from './createdBy'; +import { LastModifiedByRequestBuilder } from './lastModifiedBy'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/index.ts index 0789077586c..899e51f9c45 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/mailboxSettings/index.ts index f54cbb2d5e5..c0f726c9ccd 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts index 8ed8add09db..5456be885cc 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/index.ts index d82c92661c0..8dab27c2817 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/count/index.ts index 1b35dcda83d..d4381bc99d7 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/index.ts index 97542aa49f7..2d1ae51947c 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskCollectionResponse } from '../../../../../../../../models/identityGovernance/'; +import { type TaskCollectionResponse } from '../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue, deserializeIntoTask, serializeTask, type Task } from '../../../../../../../../models/identityGovernance/task'; import { createTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/index.ts index 4f8c8a5243a..0fe1cca7c78 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createTaskFromDiscriminatorValue, deserializeIntoTask, serializeTask, type Task } from '../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/count/index.ts index 99d77daf713..67ba0ca6d4c 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/index.ts index 76033ab5e53..9a7204cc966 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/index.ts index 125551ca687..1506e60c080 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index efbb91efad4..959ed15ff55 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 44f76c1d551..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/index.ts index f46ce2363ef..08e798606e6 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 6635e5b4bf3..e81cca92e24 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 9bd6264dd91..b7cc2d70fda 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index d76a91e7fcb..b2523f01f33 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/task/index.ts index b1e511ed1a4..3002b8a0e4d 100644 --- a/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/deletedItems/workflows/item/versions/item/tasks/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/index.ts b/src/identityGovernance/lifecycleWorkflows/index.ts index 939a9be08f1..1dae592a92d 100644 --- a/src/identityGovernance/lifecycleWorkflows/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createLifecycleWorkflowsContainerFromDiscriminatorValue, deserializeIntoLifecycleWorkflowsContainer, serializeLifecycleWorkflowsContainer, type LifecycleWorkflowsContainer } from '../../models/identityGovernance/lifecycleWorkflowsContainer'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CustomTaskExtensionsRequestBuilder } from './customTaskExtensions/'; -import { DeletedItemsRequestBuilder } from './deletedItems/'; -import { SettingsRequestBuilder } from './settings/'; -import { TaskDefinitionsRequestBuilder } from './taskDefinitions/'; -import { WorkflowsRequestBuilder } from './workflows/'; -import { WorkflowTemplatesRequestBuilder } from './workflowTemplates/'; +import { CustomTaskExtensionsRequestBuilder } from './customTaskExtensions'; +import { DeletedItemsRequestBuilder } from './deletedItems'; +import { SettingsRequestBuilder } from './settings'; +import { TaskDefinitionsRequestBuilder } from './taskDefinitions'; +import { WorkflowsRequestBuilder } from './workflows'; +import { WorkflowTemplatesRequestBuilder } from './workflowTemplates'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LifecycleWorkflowsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/settings/index.ts b/src/identityGovernance/lifecycleWorkflows/settings/index.ts index d3c6e525dbe..fdbc3320270 100644 --- a/src/identityGovernance/lifecycleWorkflows/settings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/settings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLifecycleManagementSettingsFromDiscriminatorValue, deserializeIntoLifecycleManagementSettings, serializeLifecycleManagementSettings, type LifecycleManagementSettings } from '../../../models/identityGovernance/lifecycleManagementSettings'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/taskDefinitions/count/index.ts b/src/identityGovernance/lifecycleWorkflows/taskDefinitions/count/index.ts index 6fff71216e0..aa6b47b6028 100644 --- a/src/identityGovernance/lifecycleWorkflows/taskDefinitions/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/taskDefinitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/taskDefinitions/index.ts b/src/identityGovernance/lifecycleWorkflows/taskDefinitions/index.ts index dedaa37634d..216b876bd59 100644 --- a/src/identityGovernance/lifecycleWorkflows/taskDefinitions/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/taskDefinitions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskDefinitionCollectionResponse } from '../../../models/identityGovernance/'; +import { type TaskDefinitionCollectionResponse } from '../../../models/identityGovernance'; import { createTaskDefinitionCollectionResponseFromDiscriminatorValue } from '../../../models/identityGovernance/taskDefinitionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/taskDefinitions/item/index.ts b/src/identityGovernance/lifecycleWorkflows/taskDefinitions/item/index.ts index a9397babb3e..de43a1f44e6 100644 --- a/src/identityGovernance/lifecycleWorkflows/taskDefinitions/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/taskDefinitions/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskDefinition } from '../../../../models/identityGovernance/'; +import { type TaskDefinition } from '../../../../models/identityGovernance'; import { createTaskDefinitionFromDiscriminatorValue } from '../../../../models/identityGovernance/taskDefinition'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/count/index.ts index 9684760bebc..3af5ba22ae7 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/index.ts index 449c9a3d53b..9e5f1b376a8 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkflowTemplateCollectionResponse } from '../../../models/identityGovernance/'; +import { type WorkflowTemplateCollectionResponse } from '../../../models/identityGovernance'; import { createWorkflowTemplateCollectionResponseFromDiscriminatorValue } from '../../../models/identityGovernance/workflowTemplateCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { WorkflowTemplateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkflowTemplateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkflowTemplatesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/index.ts index 7f3c1804c42..216d591144c 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkflowTemplate } from '../../../../models/identityGovernance/'; +import { type WorkflowTemplate } from '../../../../models/identityGovernance'; import { createWorkflowTemplateFromDiscriminatorValue } from '../../../../models/identityGovernance/workflowTemplate'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { TasksRequestBuilder } from './tasks/'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkflowTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/count/index.ts index a2ab5be2952..69f99d7ac42 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/index.ts index 3d05456e463..0e2266a0f45 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskCollectionResponse } from '../../../../../models/identityGovernance/'; +import { type TaskCollectionResponse } from '../../../../../models/identityGovernance'; import { createTaskCollectionResponseFromDiscriminatorValue } from '../../../../../models/identityGovernance/taskCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/index.ts index 18d339c6765..2e2bda3bbf1 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/count/index.ts index 1e291d5b759..e0eb06612e1 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/index.ts index d499618b34b..02be2b53243 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/index.ts index ded8e1ad54b..dac535caa0c 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index 1b5176d5cdb..f904e37248d 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 30355cd211f..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/index.ts index 24205049783..9cb88a48661 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 347820f04df..cbffbdf2ac9 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 4fbe6cd9a6b..4a89d92c642 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index c422ed5375a..3406bbd2d6c 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/task/index.ts index 4a0f9e4364b..b440014c922 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflowTemplates/item/tasks/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/count/index.ts index 4ca39273841..4f12e930a18 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/index.ts index 10a79670f5c..a51a54903ae 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkflowCollectionResponse } from '../../../models/identityGovernance/'; +import { type WorkflowCollectionResponse } from '../../../models/identityGovernance'; import { createWorkflowFromDiscriminatorValue, deserializeIntoWorkflow, serializeWorkflow, type Workflow } from '../../../models/identityGovernance/workflow'; import { createWorkflowCollectionResponseFromDiscriminatorValue } from '../../../models/identityGovernance/workflowCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { WorkflowItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkflowItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkflowsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/index.ts index 810939e0fcd..a7974b470c5 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/mailboxSettings/index.ts index 591076e3dca..6fe44d40d29 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/serviceProvisioningErrors/count/index.ts index 450ebe1ec61..ddc5654e48f 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/serviceProvisioningErrors/index.ts index d05132b2050..18c0f6fe283 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/createdBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/count/index.ts index a37af1f59b6..34380bd4d8d 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/index.ts index 409cc624ace..549dd65b6f1 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResultCollectionResponse } from '../../../../../models/identityGovernance/'; +import { type UserProcessingResultCollectionResponse } from '../../../../../models/identityGovernance'; import { createUserProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../models/identityGovernance/userProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { UserProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExecutionScopeRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/item/index.ts index 42c5de5f6dc..9886b5e3807 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/executionScope/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResult } from '../../../../../../models/identityGovernance/'; +import { type UserProcessingResult } from '../../../../../../models/identityGovernance'; import { createUserProcessingResultFromDiscriminatorValue } from '../../../../../../models/identityGovernance/userProcessingResult'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/index.ts index 2fb9de31b72..7b15c0ef38c 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/index.ts @@ -2,19 +2,19 @@ // eslint-disable // Generated by Microsoft Kiota import { createWorkflowFromDiscriminatorValue, deserializeIntoWorkflow, serializeWorkflow, type Workflow } from '../../../../models/identityGovernance/workflow'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CreatedByRequestBuilder } from './createdBy/'; -import { ExecutionScopeRequestBuilder } from './executionScope/'; -import { LastModifiedByRequestBuilder } from './lastModifiedBy/'; -import { MicrosoftGraphIdentityGovernanceActivateRequestBuilder } from './microsoftGraphIdentityGovernanceActivate/'; -import { MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder } from './microsoftGraphIdentityGovernanceCreateNewVersion/'; -import { MicrosoftGraphIdentityGovernanceRestoreRequestBuilder } from './microsoftGraphIdentityGovernanceRestore/'; -import { RunsRequestBuilder } from './runs/'; -import { TaskReportsRequestBuilder } from './taskReports/'; -import { TasksRequestBuilder } from './tasks/'; -import { UserProcessingResultsRequestBuilder } from './userProcessingResults/'; -import { VersionsRequestBuilder } from './versions/'; +import { CreatedByRequestBuilder } from './createdBy'; +import { ExecutionScopeRequestBuilder } from './executionScope'; +import { LastModifiedByRequestBuilder } from './lastModifiedBy'; +import { MicrosoftGraphIdentityGovernanceActivateRequestBuilder } from './microsoftGraphIdentityGovernanceActivate'; +import { MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder } from './microsoftGraphIdentityGovernanceCreateNewVersion'; +import { MicrosoftGraphIdentityGovernanceRestoreRequestBuilder } from './microsoftGraphIdentityGovernanceRestore'; +import { RunsRequestBuilder } from './runs'; +import { TaskReportsRequestBuilder } from './taskReports'; +import { TasksRequestBuilder } from './tasks'; +import { UserProcessingResultsRequestBuilder } from './userProcessingResults'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkflowItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/index.ts index 7e63ef8056d..1d1ee217a9e 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/mailboxSettings/index.ts index 3a1a2468f17..254d5b55796 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts index 8d1562a55b2..43da6dad6ed 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/serviceProvisioningErrors/index.ts index 6a7d394591b..657ea9b8b83 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/lastModifiedBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceActivate/activatePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceActivate/activatePostRequestBody.ts deleted file mode 100644 index 774a953dd02..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceActivate/activatePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createUserFromDiscriminatorValue, serializeUser, type User } from '../../../../../models/user'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ActivatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The subjects property - */ - subjects?: User[]; -} -export function createActivatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoActivatePostRequestBody; -} -export function deserializeIntoActivatePostRequestBody(activatePostRequestBody: ActivatePostRequestBody | undefined = {} as ActivatePostRequestBody) : Record void> { - return { - "subjects": n => { activatePostRequestBody.subjects = n.getCollectionOfObjectValues(createUserFromDiscriminatorValue); }, - } -} -export function serializeActivatePostRequestBody(writer: SerializationWriter, activatePostRequestBody: ActivatePostRequestBody | undefined = {} as ActivatePostRequestBody) : void { - writer.writeCollectionOfObjectValues("subjects", activatePostRequestBody.subjects, serializeUser); - writer.writeAdditionalData(activatePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceActivate/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceActivate/index.ts index a9bc6f87973..b7e21e8b356 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceActivate/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceActivate/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoActivatePostRequestBody, serializeActivatePostRequestBody, type ActivatePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUserFromDiscriminatorValue, serializeUser, type User } from '../../../../../models/user'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ActivatePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The subjects property + */ + subjects?: User[]; +} +export function createActivatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoActivatePostRequestBody; +} +export function deserializeIntoActivatePostRequestBody(activatePostRequestBody: ActivatePostRequestBody | undefined = {} as ActivatePostRequestBody) : Record void> { + return { + "subjects": n => { activatePostRequestBody.subjects = n.getCollectionOfObjectValues(createUserFromDiscriminatorValue); }, + } +} +export function serializeActivatePostRequestBody(writer: SerializationWriter, activatePostRequestBody: ActivatePostRequestBody | undefined = {} as ActivatePostRequestBody) : void { + writer.writeCollectionOfObjectValues("subjects", activatePostRequestBody.subjects, serializeUser); + writer.writeAdditionalData(activatePostRequestBody.additionalData); +} /** * Provides operations to call the activate method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceCreateNewVersion/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceCreateNewVersion/index.ts index 8bf79722904..05f7a20b3ed 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceCreateNewVersion/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceCreateNewVersion/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createWorkflowFromDiscriminatorValue, deserializeIntoWorkflow, serializeWorkflow, type Workflow } from '../../../../../models/identityGovernance/workflow'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createWorkflowFromDiscriminatorValue, serializeWorkflow, type Workflow } from '../../../../../models/identityGovernance/workflow'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateNewVersionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +27,5 @@ export function serializeCreateNewVersionPostRequestBody(writer: SerializationWr writer.writeObjectValue("workflow", createNewVersionPostRequestBody.workflow, serializeWorkflow); writer.writeAdditionalData(createNewVersionPostRequestBody.additionalData); } -/** - * Provides operations to call the createNewVersion method. - */ -export class MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.createNewVersion"); - }; - /** - * Create a new version of the workflow object. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Workflow - * @see {@link https://learn.microsoft.com/graph/api/identitygovernance-workflow-createnewversion?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateNewVersionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createWorkflowFromDiscriminatorValue, errorMapping); - }; - /** - * Create a new version of the workflow object. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateNewVersionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateNewVersionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a microsoftGraphIdentityGovernanceCreateNewVersionRequestBuilder - */ - public withUrl(rawUrl: string) : MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceRestore/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceRestore/index.ts index cc541c9f888..e40d62fd5bb 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceRestore/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/microsoftGraphIdentityGovernanceRestore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Workflow } from '../../../../../models/identityGovernance/'; +import { type Workflow } from '../../../../../models/identityGovernance'; import { createWorkflowFromDiscriminatorValue } from '../../../../../models/identityGovernance/workflow'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/count/index.ts index 5a6aaf47460..2cfe916796f 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/index.ts index eae026856db..4c2d1093e11 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RunCollectionResponse } from '../../../../../models/identityGovernance/'; +import { type RunCollectionResponse } from '../../../../../models/identityGovernance'; import { createRunCollectionResponseFromDiscriminatorValue } from '../../../../../models/identityGovernance/runCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { RunItemRequestBuilder } from './item/'; -import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/'; +import { CountRequestBuilder } from './count'; +import { RunItemRequestBuilder } from './item'; +import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RunsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/index.ts index 2f380b8c270..1a162134f55 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Run } from '../../../../../../models/identityGovernance/'; +import { type Run } from '../../../../../../models/identityGovernance'; import { createRunFromDiscriminatorValue } from '../../../../../../models/identityGovernance/run'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; -import { UserProcessingResultsRequestBuilder } from './userProcessingResults/'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; +import { UserProcessingResultsRequestBuilder } from './userProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RunItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/count/index.ts index 4fcd439ccb4..ab2abc95639 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/index.ts index 950cc694cb7..111b842383c 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/index.ts index 97609ff3c69..fccaeab469e 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index aab5c1e1f56..b3627f96dd7 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 30355cd211f..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/index.ts index bd3d3198540..e03400b9aa4 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 686277ca490..973e060683e 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 700f47b5ab6..2eb9bd04239 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index 72dcc80bd77..df29f2f54c0 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/task/index.ts index 83a8aafcf58..e2b881f47ab 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/count/index.ts index 33609b91593..65a796ec2a2 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/index.ts index 5ac6f44c0af..b95d482ae39 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance/'; +import { type UserProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance'; import { createUserProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/userProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { UserProcessingResultItemRequestBuilder } from './item/'; -import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/'; +import { CountRequestBuilder } from './count'; +import { UserProcessingResultItemRequestBuilder } from './item'; +import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/index.ts index c7a0cbc2774..61e59db474e 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResult } from '../../../../../../../../models/identityGovernance/'; +import { type UserProcessingResult } from '../../../../../../../../models/identityGovernance'; import { createUserProcessingResultFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/userProcessingResult'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { SubjectRequestBuilder } from './subject'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/index.ts index 3f0ad6e8235..4ca5f967325 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/mailboxSettings/index.ts index 7f1bd2af5b8..388c5564080 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index cddb8e5fcb0..348b612da2c 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts index 75949d2f519..88a30d8e3ef 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/count/index.ts index 63434f242d7..12791d60b18 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/index.ts index de6c7e4b042..c09b65c3d2b 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/index.ts index 59fa510c3ee..7fec3fa2401 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index 2d9278a0880..9a0b4e73df7 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index e7faf9921d4..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts index d8a97213403..fea539a5013 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 2cf34e28717..cdecd7b9912 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 49b260c10ab..e430c36fd37 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index 67eb9f8de10..2dbedd0842e 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts index 2d63256f789..c4d7fb1c85f 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts index f18a4249c0f..170e840e0ea 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserSummary } from '../../../../../../../../models/identityGovernance/'; +import { type UserSummary } from '../../../../../../../../models/identityGovernance'; import { createUserSummaryFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/userSummary'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts index 87a5836e0c9..a51f2d321c8 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/runs/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RunSummary } from '../../../../../../models/identityGovernance/'; +import { type RunSummary } from '../../../../../../models/identityGovernance'; import { createRunSummaryFromDiscriminatorValue } from '../../../../../../models/identityGovernance/runSummary'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/count/index.ts index 78deaab5990..6325c9a116e 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/index.ts index d21e37ddef4..230ed956bbe 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskReportCollectionResponse } from '../../../../../models/identityGovernance/'; +import { type TaskReportCollectionResponse } from '../../../../../models/identityGovernance'; import { createTaskReportCollectionResponseFromDiscriminatorValue } from '../../../../../models/identityGovernance/taskReportCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskReportItemRequestBuilder } from './item/'; -import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/'; +import { CountRequestBuilder } from './count'; +import { TaskReportItemRequestBuilder } from './item'; +import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskReportsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/index.ts index e92a43040d7..88541e61b0f 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskReport } from '../../../../../../models/identityGovernance/'; +import { type TaskReport } from '../../../../../../models/identityGovernance'; import { createTaskReportFromDiscriminatorValue } from '../../../../../../models/identityGovernance/taskReport'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { TaskRequestBuilder } from './task/'; -import { TaskDefinitionRequestBuilder } from './taskDefinition/'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { TaskRequestBuilder } from './task'; +import { TaskDefinitionRequestBuilder } from './taskDefinition'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskReportItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/task/index.ts index a7495bd2d6c..d980b195277 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskDefinition/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskDefinition/index.ts index 20829589f6f..e279859580d 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskDefinition/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskDefinition/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskDefinition } from '../../../../../../../models/identityGovernance/'; +import { type TaskDefinition } from '../../../../../../../models/identityGovernance'; import { createTaskDefinitionFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskDefinition'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/count/index.ts index 41aedb842c0..cfc5ea5b798 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/index.ts index 75da01982b3..a8a628e44b9 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/index.ts index 4c0711cd6a7..92ad2a176e7 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index f06046250b8..52247f61df4 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 30355cd211f..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/index.ts index 111f956d1d2..f4cbd95c0cd 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 9268effcb3f..253e82afdc0 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 7356dd246fb..edbf44e4c01 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index 2eaee6e6f1c..b9cf9aae9fa 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/task/index.ts index 0a32a695e02..86145904135 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts index 66a78adbc29..abafe064125 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/taskReports/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskReportSummary } from '../../../../../../models/identityGovernance/'; +import { type TaskReportSummary } from '../../../../../../models/identityGovernance'; import { createTaskReportSummaryFromDiscriminatorValue } from '../../../../../../models/identityGovernance/taskReportSummary'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/count/index.ts index 3f88ab16c08..1ecdcd593d4 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/index.ts index 9bd9b2aae41..1f8cf696228 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskCollectionResponse } from '../../../../../models/identityGovernance/'; +import { type TaskCollectionResponse } from '../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue, deserializeIntoTask, serializeTask, type Task } from '../../../../../models/identityGovernance/task'; import { createTaskCollectionResponseFromDiscriminatorValue } from '../../../../../models/identityGovernance/taskCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/index.ts index f3f25621bf0..9786c63cf51 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createTaskFromDiscriminatorValue, deserializeIntoTask, serializeTask, type Task } from '../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/count/index.ts index 59e5287ae51..ce668eb46d7 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/index.ts index 43d6b12cf90..5a0aadae1dd 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/index.ts index 9f0d43105e8..1f45d966017 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index 346b24101bd..bdae640b9c3 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 30355cd211f..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/index.ts index cd39d8eb163..8e88fb7b25f 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 69466f7230d..1146928486c 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index d16f6013b11..80eae048a60 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index 41e55f7ce7c..ee20765b519 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/task/index.ts index 43a528a0515..f264dd204a2 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/tasks/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/count/index.ts index 623449ca8d2..709071409cc 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/index.ts index 12778912908..82d522a1b08 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResultCollectionResponse } from '../../../../../models/identityGovernance/'; +import { type UserProcessingResultCollectionResponse } from '../../../../../models/identityGovernance'; import { createUserProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../models/identityGovernance/userProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { UserProcessingResultItemRequestBuilder } from './item/'; -import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/'; +import { CountRequestBuilder } from './count'; +import { UserProcessingResultItemRequestBuilder } from './item'; +import { MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder } from './microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/index.ts index b2a1f252cad..b647f85d467 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserProcessingResult } from '../../../../../../models/identityGovernance/'; +import { type UserProcessingResult } from '../../../../../../models/identityGovernance'; import { createUserProcessingResultFromDiscriminatorValue } from '../../../../../../models/identityGovernance/userProcessingResult'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { SubjectRequestBuilder } from './subject'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/index.ts index 9a89b24ae43..d83f77ade35 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/mailboxSettings/index.ts index 00efc4c6a73..016f470b260 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index f8ad5b20ca0..a432d1612be 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts index aefc3735fb0..43d9c838da5 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/count/index.ts index 6be6cbccb3d..0781154beeb 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/index.ts index d4c45bb49b3..9d5b0696cd9 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/index.ts index 170127f29bd..6c36fd408ff 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index ecd49176a26..4ea1ce3b82a 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index 30355cd211f..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts index 331e3224a4a..0580b8bd6f8 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index 50e54b70d35..f844531d475 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index d906d8f10be..86267c0cb10 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index 36ef0fa40bd..e64e4042130 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts index a5e893dc68a..51e5e9831aa 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts index 166e826736c..664b8c3f4d3 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/userProcessingResults/microsoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserSummary } from '../../../../../../models/identityGovernance/'; +import { type UserSummary } from '../../../../../../models/identityGovernance'; import { createUserSummaryFromDiscriminatorValue } from '../../../../../../models/identityGovernance/userSummary'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/count/index.ts index 64913360e61..7d89fe9fa95 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/index.ts index 669771f4f7c..491700040ab 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkflowVersionCollectionResponse } from '../../../../../models/identityGovernance/'; +import { type WorkflowVersionCollectionResponse } from '../../../../../models/identityGovernance'; import { createWorkflowVersionCollectionResponseFromDiscriminatorValue } from '../../../../../models/identityGovernance/workflowVersionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { WorkflowVersionVersionNumberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkflowVersionVersionNumberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/index.ts index b17d53ea545..6ff9481dadb 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/mailboxSettings/index.ts index c445d07a86b..462c09e3839 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/serviceProvisioningErrors/count/index.ts index 2b9b91068c5..794e58d8aac 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/serviceProvisioningErrors/index.ts index fd3e1294900..b274a0d4af1 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/createdBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/index.ts index 83270f39264..63f0e5cfc59 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkflowVersion } from '../../../../../../models/identityGovernance/'; +import { type WorkflowVersion } from '../../../../../../models/identityGovernance'; import { createWorkflowVersionFromDiscriminatorValue } from '../../../../../../models/identityGovernance/workflowVersion'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CreatedByRequestBuilder } from './createdBy/'; -import { LastModifiedByRequestBuilder } from './lastModifiedBy/'; -import { TasksRequestBuilder } from './tasks/'; +import { CreatedByRequestBuilder } from './createdBy'; +import { LastModifiedByRequestBuilder } from './lastModifiedBy'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/index.ts index 9c700457b31..b2014c6345b 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/mailboxSettings/index.ts index 0de9913d6f9..3a56e139f26 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts index b60c784dfd9..1bc97ae357b 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/index.ts index fed6ddfdca1..d4465976a05 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/lastModifiedBy/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/count/index.ts index 691509c8355..fd62ead7f6a 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/index.ts index f531845d7c9..234331bfe15 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskCollectionResponse } from '../../../../../../../models/identityGovernance/'; +import { type TaskCollectionResponse } from '../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue, deserializeIntoTask, serializeTask, type Task } from '../../../../../../../models/identityGovernance/task'; import { createTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/identityGovernance/taskCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/index.ts index 986b8b76dcf..5829aa50ba2 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createTaskFromDiscriminatorValue, deserializeIntoTask, serializeTask, type Task } from '../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults/'; +import { TaskProcessingResultsRequestBuilder } from './taskProcessingResults'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/count/index.ts index fb53625dcad..24ec894cf63 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/index.ts index 37aec119c76..e0cceef1a7e 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResultCollectionResponse } from '../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/identityGovernance/taskProcessingResultCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { TaskProcessingResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TaskProcessingResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/index.ts index 8e1d1a8e7ce..cd5e07b1d93 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TaskProcessingResult } from '../../../../../../../../../../models/identityGovernance/'; +import { type TaskProcessingResult } from '../../../../../../../../../../models/identityGovernance'; import { createTaskProcessingResultFromDiscriminatorValue } from '../../../../../../../../../../models/identityGovernance/taskProcessingResult'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume/'; -import { SubjectRequestBuilder } from './subject/'; -import { TaskRequestBuilder } from './task/'; +import { MicrosoftGraphIdentityGovernanceResumeRequestBuilder } from './microsoftGraphIdentityGovernanceResume'; +import { SubjectRequestBuilder } from './subject'; +import { TaskRequestBuilder } from './task'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts index c25a4269e19..4de3d0333d9 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/index.ts @@ -1,11 +1,46 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoResumePostRequestBody, serializeResumePostRequestBody, type ResumePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResumePostRequestBody; +} +export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { + return { + "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, + "source": n => { resumePostRequestBody.source = n.getStringValue(); }, + "type": n => { resumePostRequestBody.type = n.getStringValue(); }, + } +} +export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The data property + */ + data?: CustomTaskExtensionCallbackData; + /** + * The source property + */ + source?: string; + /** + * The type property + */ + type?: string; +} +export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { + writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); + writer.writeStringValue("source", resumePostRequestBody.source); + writer.writeStringValue("type", resumePostRequestBody.type); + writer.writeAdditionalData(resumePostRequestBody.additionalData); +} /** * Provides operations to call the resume method. */ diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts deleted file mode 100644 index e7faf9921d4..00000000000 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/microsoftGraphIdentityGovernanceResume/resumePostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createCustomTaskExtensionCallbackDataFromDiscriminatorValue, serializeCustomTaskExtensionCallbackData, type CustomTaskExtensionCallbackData } from '../../../../../../../../../../../models/identityGovernance/customTaskExtensionCallbackData'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResumePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResumePostRequestBody; -} -export function deserializeIntoResumePostRequestBody(resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : Record void> { - return { - "data": n => { resumePostRequestBody.data = n.getObjectValue(createCustomTaskExtensionCallbackDataFromDiscriminatorValue); }, - "source": n => { resumePostRequestBody.source = n.getStringValue(); }, - "type": n => { resumePostRequestBody.type = n.getStringValue(); }, - } -} -export interface ResumePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The data property - */ - data?: CustomTaskExtensionCallbackData; - /** - * The source property - */ - source?: string; - /** - * The type property - */ - type?: string; -} -export function serializeResumePostRequestBody(writer: SerializationWriter, resumePostRequestBody: ResumePostRequestBody | undefined = {} as ResumePostRequestBody) : void { - writer.writeObjectValue("data", resumePostRequestBody.data, serializeCustomTaskExtensionCallbackData); - writer.writeStringValue("source", resumePostRequestBody.source); - writer.writeStringValue("type", resumePostRequestBody.type); - writer.writeAdditionalData(resumePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/index.ts index a3a689cad30..bdf1703024a 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts index a41731fa00a..4fa411926e8 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts index 575a0eb5c21..fcd02035b30 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts index adb0b836c04..d3b70a2932c 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/subject/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/task/index.ts b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/task/index.ts index 8584d74d71b..1e55bed0a6b 100644 --- a/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/task/index.ts +++ b/src/identityGovernance/lifecycleWorkflows/workflows/item/versions/item/tasks/item/taskProcessingResults/item/task/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Task } from '../../../../../../../../../../../models/identityGovernance/'; +import { type Task } from '../../../../../../../../../../../models/identityGovernance'; import { createTaskFromDiscriminatorValue } from '../../../../../../../../../../../models/identityGovernance/task'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/count/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/count/index.ts index 85c4d926b79..b2340fbfcf7 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index fa6e3cfd517..00000000000 --- a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createApprovalFromDiscriminatorValue, serializeApproval, type Approval } from '../../../../../models/approval'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createApprovalFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: Approval[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeApproval); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUserWithOn/index.ts index dadf2670c27..e187a104a36 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { createApprovalFromDiscriminatorValue, serializeApproval, type Approval } from '../../../../../models/approval'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createApprovalFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: Approval[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeApproval); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/index.ts index 9eea8ad596a..d4117ceaed8 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApprovalCollectionResponse } from '../../../../models/'; +import { type ApprovalCollectionResponse } from '../../../../models'; import { createApprovalFromDiscriminatorValue, deserializeIntoApproval, serializeApproval, type Approval } from '../../../../models/approval'; import { createApprovalCollectionResponseFromDiscriminatorValue } from '../../../../models/approvalCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { ApprovalItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { ApprovalItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentApprovalsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/index.ts index 0b56b83c7b5..bad7fd52111 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createApprovalFromDiscriminatorValue, deserializeIntoApproval, serializeApproval, type Approval } from '../../../../../models/approval'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { StagesRequestBuilder } from './stages/'; +import { StagesRequestBuilder } from './stages'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApprovalItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/count/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/count/index.ts index 5ee92c7748f..1035b75535b 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/index.ts index 6ec96b86407..44aebf23cdd 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApprovalStageCollectionResponse } from '../../../../../../models/'; +import { type ApprovalStageCollectionResponse } from '../../../../../../models'; import { createApprovalStageFromDiscriminatorValue, deserializeIntoApprovalStage, serializeApprovalStage, type ApprovalStage } from '../../../../../../models/approvalStage'; import { createApprovalStageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/approvalStageCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ApprovalStageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ApprovalStageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface StagesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/item/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/item/index.ts index 5acb10adc04..babe326af7f 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/item/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentApprovals/item/stages/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createApprovalStageFromDiscriminatorValue, deserializeIntoApprovalStage, serializeApprovalStage, type ApprovalStage } from '../../../../../../../models/approvalStage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/count/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/count/index.ts index 66fa4a2283a..2bbcb51210a 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 2cb8cb833c3..00000000000 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createPrivilegedAccessGroupAssignmentScheduleInstanceFromDiscriminatorValue, serializePrivilegedAccessGroupAssignmentScheduleInstance, type PrivilegedAccessGroupAssignmentScheduleInstance } from '../../../../../models/privilegedAccessGroupAssignmentScheduleInstance'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupAssignmentScheduleInstanceFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: PrivilegedAccessGroupAssignmentScheduleInstance[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupAssignmentScheduleInstance); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUserWithOn/index.ts index 9d424a32e1b..4db95d0f57d 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrivilegedAccessGroupAssignmentScheduleInstanceFromDiscriminatorValue, serializePrivilegedAccessGroupAssignmentScheduleInstance, type PrivilegedAccessGroupAssignmentScheduleInstance } from '../../../../../models/privilegedAccessGroupAssignmentScheduleInstance'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupAssignmentScheduleInstanceFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: PrivilegedAccessGroupAssignmentScheduleInstance[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupAssignmentScheduleInstance); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/index.ts index 5e31a1d80f5..0fb21171a91 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupAssignmentScheduleInstanceFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupAssignmentScheduleInstance, serializePrivilegedAccessGroupAssignmentScheduleInstance, type PrivilegedAccessGroupAssignmentScheduleInstance } from '../../../../models/privilegedAccessGroupAssignmentScheduleInstance'; import { createPrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponseFromDiscriminatorValue } from '../../../../models/privilegedAccessGroupAssignmentScheduleInstanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentScheduleInstancesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/activatedUsing/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/activatedUsing/index.ts index cdc6ea6f9f0..6849d4eaf9a 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/activatedUsing/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupEligibilityScheduleInstance } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupEligibilityScheduleInstance } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValue } from '../../../../../../models/privilegedAccessGroupEligibilityScheduleInstance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/index.ts index 71a689b5d30..1012b52249e 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../../models/'; +import { type Group } from '../../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../../models/group'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/serviceProvisioningErrors/count/index.ts index 264e5f638d3..0c713913338 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/serviceProvisioningErrors/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/serviceProvisioningErrors/index.ts index c3aaa6e9820..54969076e9c 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/index.ts index e064805dbec..c181b7cf7f3 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupAssignmentScheduleInstanceFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupAssignmentScheduleInstance, serializePrivilegedAccessGroupAssignmentScheduleInstance, type PrivilegedAccessGroupAssignmentScheduleInstance } from '../../../../../models/privilegedAccessGroupAssignmentScheduleInstance'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { GroupRequestBuilder } from './group/'; -import { PrincipalRequestBuilder } from './principal/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { GroupRequestBuilder } from './group'; +import { PrincipalRequestBuilder } from './principal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/principal/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/principal/index.ts index 08df629df66..8c9e73f7737 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/principal/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../../models/'; +import { type DirectoryObject } from '../../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/count/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/count/index.ts index cfe16c56051..74890b71780 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 052e160f83f..00000000000 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createPrivilegedAccessGroupAssignmentScheduleRequestFromDiscriminatorValue, serializePrivilegedAccessGroupAssignmentScheduleRequest, type PrivilegedAccessGroupAssignmentScheduleRequest } from '../../../../../models/privilegedAccessGroupAssignmentScheduleRequest'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupAssignmentScheduleRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: PrivilegedAccessGroupAssignmentScheduleRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupAssignmentScheduleRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUserWithOn/index.ts index 7b9e38b9f53..db9db254542 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrivilegedAccessGroupAssignmentScheduleRequestFromDiscriminatorValue, serializePrivilegedAccessGroupAssignmentScheduleRequest, type PrivilegedAccessGroupAssignmentScheduleRequest } from '../../../../../models/privilegedAccessGroupAssignmentScheduleRequest'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupAssignmentScheduleRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: PrivilegedAccessGroupAssignmentScheduleRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupAssignmentScheduleRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/index.ts index be06fd627dc..e5eabafb40c 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupAssignmentScheduleRequestFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupAssignmentScheduleRequest, serializePrivilegedAccessGroupAssignmentScheduleRequest, type PrivilegedAccessGroupAssignmentScheduleRequest } from '../../../../models/privilegedAccessGroupAssignmentScheduleRequest'; import { createPrivilegedAccessGroupAssignmentScheduleRequestCollectionResponseFromDiscriminatorValue } from '../../../../models/privilegedAccessGroupAssignmentScheduleRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentScheduleRequestsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/activatedUsing/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/activatedUsing/index.ts index aa517de1fa6..490ea57e704 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/activatedUsing/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue } from '../../../../../../models/privilegedAccessGroupEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/cancel/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/cancel/index.ts index 30a216b820c..1e727c3f8b5 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/cancel/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/index.ts index 916004ccf89..644389179e6 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../../models/'; +import { type Group } from '../../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../../models/group'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/serviceProvisioningErrors/count/index.ts index f5b0bd6d3f9..6266f7ec96e 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/serviceProvisioningErrors/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/serviceProvisioningErrors/index.ts index ab5738550f2..559b9d501db 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/index.ts index 2e2971edea6..5ac4852225e 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupAssignmentScheduleRequestFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupAssignmentScheduleRequest, serializePrivilegedAccessGroupAssignmentScheduleRequest, type PrivilegedAccessGroupAssignmentScheduleRequest } from '../../../../../models/privilegedAccessGroupAssignmentScheduleRequest'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { CancelRequestBuilder } from './cancel/'; -import { GroupRequestBuilder } from './group/'; -import { PrincipalRequestBuilder } from './principal/'; -import { TargetScheduleRequestBuilder } from './targetSchedule/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { CancelRequestBuilder } from './cancel'; +import { GroupRequestBuilder } from './group'; +import { PrincipalRequestBuilder } from './principal'; +import { TargetScheduleRequestBuilder } from './targetSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/principal/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/principal/index.ts index acbddb9cfcb..de54059256e 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/principal/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../../models/'; +import { type DirectoryObject } from '../../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/targetSchedule/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/targetSchedule/index.ts index 45c86196d31..9962f5f86ce 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/targetSchedule/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/item/targetSchedule/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue } from '../../../../../../models/privilegedAccessGroupEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/count/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/count/index.ts index b164bb116ce..78da4dd224b 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index e19bd0f6db1..00000000000 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createPrivilegedAccessGroupAssignmentScheduleFromDiscriminatorValue, serializePrivilegedAccessGroupAssignmentSchedule, type PrivilegedAccessGroupAssignmentSchedule } from '../../../../../models/privilegedAccessGroupAssignmentSchedule'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupAssignmentScheduleFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: PrivilegedAccessGroupAssignmentSchedule[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupAssignmentSchedule); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUserWithOn/index.ts index 06bfdad7b17..191ca817ada 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrivilegedAccessGroupAssignmentScheduleFromDiscriminatorValue, serializePrivilegedAccessGroupAssignmentSchedule, type PrivilegedAccessGroupAssignmentSchedule } from '../../../../../models/privilegedAccessGroupAssignmentSchedule'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupAssignmentScheduleFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: PrivilegedAccessGroupAssignmentSchedule[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupAssignmentSchedule); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/index.ts index 513fc3cc35e..6923ba9d817 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupAssignmentScheduleCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupAssignmentScheduleCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupAssignmentScheduleFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupAssignmentSchedule, serializePrivilegedAccessGroupAssignmentSchedule, type PrivilegedAccessGroupAssignmentSchedule } from '../../../../models/privilegedAccessGroupAssignmentSchedule'; import { createPrivilegedAccessGroupAssignmentScheduleCollectionResponseFromDiscriminatorValue } from '../../../../models/privilegedAccessGroupAssignmentScheduleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssignmentSchedulesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/activatedUsing/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/activatedUsing/index.ts index 37829871f49..0a1aa30388b 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/activatedUsing/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue } from '../../../../../../models/privilegedAccessGroupEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/index.ts index 30314037012..5f32743167f 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../../models/'; +import { type Group } from '../../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../../models/group'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/serviceProvisioningErrors/count/index.ts index 1f3a44907b7..aa5b8efe372 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/serviceProvisioningErrors/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/serviceProvisioningErrors/index.ts index 6c28a5cfd87..be93be25230 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/index.ts index 401e9bee8d8..5d2f6ec8c29 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupAssignmentScheduleFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupAssignmentSchedule, serializePrivilegedAccessGroupAssignmentSchedule, type PrivilegedAccessGroupAssignmentSchedule } from '../../../../../models/privilegedAccessGroupAssignmentSchedule'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { GroupRequestBuilder } from './group/'; -import { PrincipalRequestBuilder } from './principal/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { GroupRequestBuilder } from './group'; +import { PrincipalRequestBuilder } from './principal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/principal/index.ts b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/principal/index.ts index 38756f1114e..0889fedd4ff 100644 --- a/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/principal/index.ts +++ b/src/identityGovernance/privilegedAccess/group/assignmentSchedules/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../../models/'; +import { type DirectoryObject } from '../../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/count/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/count/index.ts index 22f6703822e..26bc9a013cf 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 4b2bc958d0f..00000000000 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createPrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValue, serializePrivilegedAccessGroupEligibilityScheduleInstance, type PrivilegedAccessGroupEligibilityScheduleInstance } from '../../../../../models/privilegedAccessGroupEligibilityScheduleInstance'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: PrivilegedAccessGroupEligibilityScheduleInstance[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupEligibilityScheduleInstance); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts index ab10cc96a67..5b23bbbf336 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValue, serializePrivilegedAccessGroupEligibilityScheduleInstance, type PrivilegedAccessGroupEligibilityScheduleInstance } from '../../../../../models/privilegedAccessGroupEligibilityScheduleInstance'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: PrivilegedAccessGroupEligibilityScheduleInstance[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupEligibilityScheduleInstance); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/index.ts index 4c4025229a3..c29a5da912a 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupEligibilityScheduleInstance, serializePrivilegedAccessGroupEligibilityScheduleInstance, type PrivilegedAccessGroupEligibilityScheduleInstance } from '../../../../models/privilegedAccessGroupEligibilityScheduleInstance'; import { createPrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponseFromDiscriminatorValue } from '../../../../models/privilegedAccessGroupEligibilityScheduleInstanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EligibilityScheduleInstancesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/index.ts index 1b33aa9ef28..5cf504f7dd3 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../../models/'; +import { type Group } from '../../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../../models/group'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/serviceProvisioningErrors/count/index.ts index eff83501dd6..55dd8a99adb 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/serviceProvisioningErrors/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/serviceProvisioningErrors/index.ts index 46d72daa3bc..e99809fb353 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/index.ts index 61c11a95f5f..e0dcb22eb24 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupEligibilityScheduleInstance, serializePrivilegedAccessGroupEligibilityScheduleInstance, type PrivilegedAccessGroupEligibilityScheduleInstance } from '../../../../../models/privilegedAccessGroupEligibilityScheduleInstance'; -import { GroupRequestBuilder } from './group/'; -import { PrincipalRequestBuilder } from './principal/'; +import { GroupRequestBuilder } from './group'; +import { PrincipalRequestBuilder } from './principal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/principal/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/principal/index.ts index fd97dd0266c..37cd16fe6c1 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/principal/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../../models/'; +import { type DirectoryObject } from '../../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/count/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/count/index.ts index b0b54b45817..6d68ca9c269 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index e1c912577bf..00000000000 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createPrivilegedAccessGroupEligibilityScheduleRequestFromDiscriminatorValue, serializePrivilegedAccessGroupEligibilityScheduleRequest, type PrivilegedAccessGroupEligibilityScheduleRequest } from '../../../../../models/privilegedAccessGroupEligibilityScheduleRequest'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupEligibilityScheduleRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: PrivilegedAccessGroupEligibilityScheduleRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupEligibilityScheduleRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts index 8bf5b5eedd6..a6794b5963b 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrivilegedAccessGroupEligibilityScheduleRequestFromDiscriminatorValue, serializePrivilegedAccessGroupEligibilityScheduleRequest, type PrivilegedAccessGroupEligibilityScheduleRequest } from '../../../../../models/privilegedAccessGroupEligibilityScheduleRequest'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupEligibilityScheduleRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: PrivilegedAccessGroupEligibilityScheduleRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupEligibilityScheduleRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/index.ts index a92ed66b35f..3b8d705be3a 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleRequestFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupEligibilityScheduleRequest, serializePrivilegedAccessGroupEligibilityScheduleRequest, type PrivilegedAccessGroupEligibilityScheduleRequest } from '../../../../models/privilegedAccessGroupEligibilityScheduleRequest'; import { createPrivilegedAccessGroupEligibilityScheduleRequestCollectionResponseFromDiscriminatorValue } from '../../../../models/privilegedAccessGroupEligibilityScheduleRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EligibilityScheduleRequestsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/cancel/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/cancel/index.ts index b77c619f030..463aff6b19a 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/cancel/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/index.ts index fcc63317f1b..4c23b041594 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../../models/'; +import { type Group } from '../../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../../models/group'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/serviceProvisioningErrors/count/index.ts index c1dd029d1ba..b46eae8ff2a 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/serviceProvisioningErrors/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/serviceProvisioningErrors/index.ts index fdeb9194ffb..41469ee6fde 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/index.ts index 2a0f374affe..3604d42d161 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleRequestFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupEligibilityScheduleRequest, serializePrivilegedAccessGroupEligibilityScheduleRequest, type PrivilegedAccessGroupEligibilityScheduleRequest } from '../../../../../models/privilegedAccessGroupEligibilityScheduleRequest'; -import { CancelRequestBuilder } from './cancel/'; -import { GroupRequestBuilder } from './group/'; -import { PrincipalRequestBuilder } from './principal/'; -import { TargetScheduleRequestBuilder } from './targetSchedule/'; +import { CancelRequestBuilder } from './cancel'; +import { GroupRequestBuilder } from './group'; +import { PrincipalRequestBuilder } from './principal'; +import { TargetScheduleRequestBuilder } from './targetSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/principal/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/principal/index.ts index 69dcb8ee8df..845a87bf258 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/principal/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../../models/'; +import { type DirectoryObject } from '../../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/targetSchedule/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/targetSchedule/index.ts index d229af76de9..165fa343114 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/targetSchedule/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/item/targetSchedule/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue } from '../../../../../../models/privilegedAccessGroupEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/count/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/count/index.ts index c052dcd1906..498e351f770 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 6255810b9ad..00000000000 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue, serializePrivilegedAccessGroupEligibilitySchedule, type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../models/privilegedAccessGroupEligibilitySchedule'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: PrivilegedAccessGroupEligibilitySchedule[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupEligibilitySchedule); -} -// tslint:enable -// eslint-enable diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUserWithOn/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUserWithOn/index.ts index 8bfdb6aca46..0698181e7c5 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUserWithOn/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue, serializePrivilegedAccessGroupEligibilitySchedule, type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../models/privilegedAccessGroupEligibilitySchedule'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: PrivilegedAccessGroupEligibilitySchedule[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializePrivilegedAccessGroupEligibilitySchedule); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/index.ts index 60651ded37a..9c07ed1aed8 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrivilegedAccessGroupEligibilityScheduleCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrivilegedAccessGroupEligibilityScheduleCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupEligibilitySchedule, serializePrivilegedAccessGroupEligibilitySchedule, type PrivilegedAccessGroupEligibilitySchedule } from '../../../../models/privilegedAccessGroupEligibilitySchedule'; import { createPrivilegedAccessGroupEligibilityScheduleCollectionResponseFromDiscriminatorValue } from '../../../../models/privilegedAccessGroupEligibilityScheduleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EligibilitySchedulesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/index.ts index 75f93db3474..a9044849ddf 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../../models/'; +import { type Group } from '../../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../../models/group'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/serviceProvisioningErrors/count/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/serviceProvisioningErrors/count/index.ts index b14a4513be7..d59543116dc 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/serviceProvisioningErrors/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/serviceProvisioningErrors/index.ts index cfa1d942b6f..698b493726b 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/serviceProvisioningErrors/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/index.ts index 062ed17d998..37761608793 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroupEligibilitySchedule, serializePrivilegedAccessGroupEligibilitySchedule, type PrivilegedAccessGroupEligibilitySchedule } from '../../../../../models/privilegedAccessGroupEligibilitySchedule'; -import { GroupRequestBuilder } from './group/'; -import { PrincipalRequestBuilder } from './principal/'; +import { GroupRequestBuilder } from './group'; +import { PrincipalRequestBuilder } from './principal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/principal/index.ts b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/principal/index.ts index f6cde5f2ce4..96ca2dd88d8 100644 --- a/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/principal/index.ts +++ b/src/identityGovernance/privilegedAccess/group/eligibilitySchedules/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../../models/'; +import { type DirectoryObject } from '../../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/privilegedAccess/group/index.ts b/src/identityGovernance/privilegedAccess/group/index.ts index 7e41485632d..ee307baaf87 100644 --- a/src/identityGovernance/privilegedAccess/group/index.ts +++ b/src/identityGovernance/privilegedAccess/group/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrivilegedAccessGroupFromDiscriminatorValue, deserializeIntoPrivilegedAccessGroup, serializePrivilegedAccessGroup, type PrivilegedAccessGroup } from '../../../models/privilegedAccessGroup'; -import { AssignmentApprovalsRequestBuilder } from './assignmentApprovals/'; -import { AssignmentScheduleInstancesRequestBuilder } from './assignmentScheduleInstances/'; -import { AssignmentScheduleRequestsRequestBuilder } from './assignmentScheduleRequests/'; -import { AssignmentSchedulesRequestBuilder } from './assignmentSchedules/'; -import { EligibilityScheduleInstancesRequestBuilder } from './eligibilityScheduleInstances/'; -import { EligibilityScheduleRequestsRequestBuilder } from './eligibilityScheduleRequests/'; -import { EligibilitySchedulesRequestBuilder } from './eligibilitySchedules/'; +import { AssignmentApprovalsRequestBuilder } from './assignmentApprovals'; +import { AssignmentScheduleInstancesRequestBuilder } from './assignmentScheduleInstances'; +import { AssignmentScheduleRequestsRequestBuilder } from './assignmentScheduleRequests'; +import { AssignmentSchedulesRequestBuilder } from './assignmentSchedules'; +import { EligibilityScheduleInstancesRequestBuilder } from './eligibilityScheduleInstances'; +import { EligibilityScheduleRequestsRequestBuilder } from './eligibilityScheduleRequests'; +import { EligibilitySchedulesRequestBuilder } from './eligibilitySchedules'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/privilegedAccess/index.ts b/src/identityGovernance/privilegedAccess/index.ts index dc00b1f1aea..d823b1b0e60 100644 --- a/src/identityGovernance/privilegedAccess/index.ts +++ b/src/identityGovernance/privilegedAccess/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrivilegedAccessRootFromDiscriminatorValue, deserializeIntoPrivilegedAccessRoot, serializePrivilegedAccessRoot, type PrivilegedAccessRoot } from '../../models/privilegedAccessRoot'; -import { GroupRequestBuilder } from './group/'; +import { GroupRequestBuilder } from './group'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrivilegedAccessRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreementAcceptances/count/index.ts b/src/identityGovernance/termsOfUse/agreementAcceptances/count/index.ts index 1b076a3b0c7..b0eacce8a14 100644 --- a/src/identityGovernance/termsOfUse/agreementAcceptances/count/index.ts +++ b/src/identityGovernance/termsOfUse/agreementAcceptances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreementAcceptances/index.ts b/src/identityGovernance/termsOfUse/agreementAcceptances/index.ts index df0c7b40d4a..f20cf975909 100644 --- a/src/identityGovernance/termsOfUse/agreementAcceptances/index.ts +++ b/src/identityGovernance/termsOfUse/agreementAcceptances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementAcceptanceCollectionResponse } from '../../../models/'; +import { type AgreementAcceptanceCollectionResponse } from '../../../models'; import { createAgreementAcceptanceFromDiscriminatorValue, deserializeIntoAgreementAcceptance, serializeAgreementAcceptance, type AgreementAcceptance } from '../../../models/agreementAcceptance'; import { createAgreementAcceptanceCollectionResponseFromDiscriminatorValue } from '../../../models/agreementAcceptanceCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementAcceptanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementAcceptanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementAcceptancesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreementAcceptances/item/index.ts b/src/identityGovernance/termsOfUse/agreementAcceptances/item/index.ts index 1980a191222..dfbb16794ca 100644 --- a/src/identityGovernance/termsOfUse/agreementAcceptances/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreementAcceptances/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementAcceptanceFromDiscriminatorValue, deserializeIntoAgreementAcceptance, serializeAgreementAcceptance, type AgreementAcceptance } from '../../../../models/agreementAcceptance'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/count/index.ts b/src/identityGovernance/termsOfUse/agreements/count/index.ts index 16b90de1ee2..1052607105b 100644 --- a/src/identityGovernance/termsOfUse/agreements/count/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/index.ts b/src/identityGovernance/termsOfUse/agreements/index.ts index 21b2272b05d..e3b3cef0c2c 100644 --- a/src/identityGovernance/termsOfUse/agreements/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementCollectionResponse } from '../../../models/'; +import { type AgreementCollectionResponse } from '../../../models'; import { createAgreementFromDiscriminatorValue, deserializeIntoAgreement, serializeAgreement, type Agreement } from '../../../models/agreement'; import { createAgreementCollectionResponseFromDiscriminatorValue } from '../../../models/agreementCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/acceptances/count/index.ts b/src/identityGovernance/termsOfUse/agreements/item/acceptances/count/index.ts index 1031b428ed4..b0e5da93630 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/acceptances/count/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/acceptances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/item/acceptances/index.ts b/src/identityGovernance/termsOfUse/agreements/item/acceptances/index.ts index fc8d7821701..9effca928ec 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/acceptances/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/acceptances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementAcceptanceCollectionResponse } from '../../../../../models/'; +import { type AgreementAcceptanceCollectionResponse } from '../../../../../models'; import { createAgreementAcceptanceFromDiscriminatorValue, deserializeIntoAgreementAcceptance, serializeAgreementAcceptance, type AgreementAcceptance } from '../../../../../models/agreementAcceptance'; import { createAgreementAcceptanceCollectionResponseFromDiscriminatorValue } from '../../../../../models/agreementAcceptanceCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementAcceptanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementAcceptanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AcceptancesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/acceptances/item/index.ts b/src/identityGovernance/termsOfUse/agreements/item/acceptances/item/index.ts index af249e3731d..93f46c912d6 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/acceptances/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/acceptances/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementAcceptanceFromDiscriminatorValue, deserializeIntoAgreementAcceptance, serializeAgreementAcceptance, type AgreementAcceptance } from '../../../../../../models/agreementAcceptance'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/item/file/index.ts b/src/identityGovernance/termsOfUse/agreements/item/file/index.ts index eb9e86cafba..76b109e6171 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/file/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/file/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileFromDiscriminatorValue, deserializeIntoAgreementFile, serializeAgreementFile, type AgreementFile } from '../../../../../models/agreementFile'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { LocalizationsRequestBuilder } from './localizations/'; +import { LocalizationsRequestBuilder } from './localizations'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FileRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/count/index.ts b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/count/index.ts index a0b04e6bb79..3e7e7a75433 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/count/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/index.ts b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/index.ts index 1d1e0d25bda..bf6a2f57f8d 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementFileLocalizationCollectionResponse } from '../../../../../../models/'; +import { type AgreementFileLocalizationCollectionResponse } from '../../../../../../models'; import { createAgreementFileLocalizationFromDiscriminatorValue, deserializeIntoAgreementFileLocalization, serializeAgreementFileLocalization, type AgreementFileLocalization } from '../../../../../../models/agreementFileLocalization'; import { createAgreementFileLocalizationCollectionResponseFromDiscriminatorValue } from '../../../../../../models/agreementFileLocalizationCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementFileLocalizationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementFileLocalizationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LocalizationsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/index.ts b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/index.ts index 345aab847a0..73e42ce7629 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileLocalizationFromDiscriminatorValue, deserializeIntoAgreementFileLocalization, serializeAgreementFileLocalization, type AgreementFileLocalization } from '../../../../../../../models/agreementFileLocalization'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { VersionsRequestBuilder } from './versions/'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementFileLocalizationItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/count/index.ts b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/count/index.ts index 6964285d637..37d90895c7c 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/count/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/index.ts b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/index.ts index 41085984912..3d7aea9fe8a 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementFileVersionCollectionResponse } from '../../../../../../../../models/'; +import { type AgreementFileVersionCollectionResponse } from '../../../../../../../../models'; import { createAgreementFileVersionFromDiscriminatorValue, deserializeIntoAgreementFileVersion, serializeAgreementFileVersion, type AgreementFileVersion } from '../../../../../../../../models/agreementFileVersion'; import { createAgreementFileVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/agreementFileVersionCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementFileVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementFileVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/item/index.ts b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/item/index.ts index 09db54d3c6e..160635de352 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/file/localizations/item/versions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileVersionFromDiscriminatorValue, deserializeIntoAgreementFileVersion, serializeAgreementFileVersion, type AgreementFileVersion } from '../../../../../../../../../models/agreementFileVersion'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/item/files/count/index.ts b/src/identityGovernance/termsOfUse/agreements/item/files/count/index.ts index a8c077fa036..1c463448148 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/files/count/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/files/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/item/files/index.ts b/src/identityGovernance/termsOfUse/agreements/item/files/index.ts index 65e934c49ff..387fe1e78f8 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/files/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/files/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementFileLocalizationCollectionResponse } from '../../../../../models/'; +import { type AgreementFileLocalizationCollectionResponse } from '../../../../../models'; import { createAgreementFileLocalizationFromDiscriminatorValue, deserializeIntoAgreementFileLocalization, serializeAgreementFileLocalization, type AgreementFileLocalization } from '../../../../../models/agreementFileLocalization'; import { createAgreementFileLocalizationCollectionResponseFromDiscriminatorValue } from '../../../../../models/agreementFileLocalizationCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementFileLocalizationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementFileLocalizationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/files/item/index.ts b/src/identityGovernance/termsOfUse/agreements/item/files/item/index.ts index e5a1ac45dad..e5200dec2bb 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/files/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/files/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileLocalizationFromDiscriminatorValue, deserializeIntoAgreementFileLocalization, serializeAgreementFileLocalization, type AgreementFileLocalization } from '../../../../../../models/agreementFileLocalization'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { VersionsRequestBuilder } from './versions/'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementFileLocalizationItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/count/index.ts b/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/count/index.ts index d434826a81e..3f4ae815643 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/count/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/index.ts b/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/index.ts index 2640e69af99..d80acf4e410 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementFileVersionCollectionResponse } from '../../../../../../../models/'; +import { type AgreementFileVersionCollectionResponse } from '../../../../../../../models'; import { createAgreementFileVersionFromDiscriminatorValue, deserializeIntoAgreementFileVersion, serializeAgreementFileVersion, type AgreementFileVersion } from '../../../../../../../models/agreementFileVersion'; import { createAgreementFileVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/agreementFileVersionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementFileVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementFileVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/item/index.ts b/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/item/index.ts index 06e7462af8d..62297c54865 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/files/item/versions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFileVersionFromDiscriminatorValue, deserializeIntoAgreementFileVersion, serializeAgreementFileVersion, type AgreementFileVersion } from '../../../../../../../../models/agreementFileVersion'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityGovernance/termsOfUse/agreements/item/index.ts b/src/identityGovernance/termsOfUse/agreements/item/index.ts index a9d7ca75d8a..0aa3adc85cb 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAgreementFromDiscriminatorValue, deserializeIntoAgreement, serializeAgreement, type Agreement } from '../../../../models/agreement'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AcceptancesRequestBuilder } from './acceptances/'; -import { FileRequestBuilder } from './file/'; -import { FilesRequestBuilder } from './files/'; +import { AcceptancesRequestBuilder } from './acceptances'; +import { FileRequestBuilder } from './file'; +import { FilesRequestBuilder } from './files'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementItemRequestBuilderGetQueryParameters { diff --git a/src/identityGovernance/termsOfUse/index.ts b/src/identityGovernance/termsOfUse/index.ts index efd94f3d467..c4ef5b354b1 100644 --- a/src/identityGovernance/termsOfUse/index.ts +++ b/src/identityGovernance/termsOfUse/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTermsOfUseContainerFromDiscriminatorValue, deserializeIntoTermsOfUseContainer, serializeTermsOfUseContainer, type TermsOfUseContainer } from '../../models/termsOfUseContainer'; -import { AgreementAcceptancesRequestBuilder } from './agreementAcceptances/'; -import { AgreementsRequestBuilder } from './agreements/'; +import { AgreementAcceptancesRequestBuilder } from './agreementAcceptances'; +import { AgreementsRequestBuilder } from './agreements'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsOfUseRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/index.ts b/src/identityProtection/index.ts index 56d71aba64b..f9a3700b3a9 100644 --- a/src/identityProtection/index.ts +++ b/src/identityProtection/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityProtectionRootFromDiscriminatorValue, deserializeIntoIdentityProtectionRoot, serializeIdentityProtectionRoot, type IdentityProtectionRoot } from '../models/identityProtectionRoot'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { RiskDetectionsRequestBuilder } from './riskDetections/'; -import { RiskyServicePrincipalsRequestBuilder } from './riskyServicePrincipals/'; -import { RiskyUsersRequestBuilder } from './riskyUsers/'; -import { ServicePrincipalRiskDetectionsRequestBuilder } from './servicePrincipalRiskDetections/'; +import { RiskDetectionsRequestBuilder } from './riskDetections'; +import { RiskyServicePrincipalsRequestBuilder } from './riskyServicePrincipals'; +import { RiskyUsersRequestBuilder } from './riskyUsers'; +import { ServicePrincipalRiskDetectionsRequestBuilder } from './servicePrincipalRiskDetections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IdentityProtectionRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/riskDetections/count/index.ts b/src/identityProtection/riskDetections/count/index.ts index d4bdb17f3e7..7821bc0bc39 100644 --- a/src/identityProtection/riskDetections/count/index.ts +++ b/src/identityProtection/riskDetections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/riskDetections/index.ts b/src/identityProtection/riskDetections/index.ts index cf6b49d8d25..d0876e63ade 100644 --- a/src/identityProtection/riskDetections/index.ts +++ b/src/identityProtection/riskDetections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RiskDetectionCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type RiskDetectionCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRiskDetectionFromDiscriminatorValue, deserializeIntoRiskDetection, serializeRiskDetection, type RiskDetection } from '../../models/riskDetection'; import { createRiskDetectionCollectionResponseFromDiscriminatorValue } from '../../models/riskDetectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RiskDetectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RiskDetectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RiskDetectionsRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/riskDetections/item/index.ts b/src/identityProtection/riskDetections/item/index.ts index 51382a9684a..e51d1a5232e 100644 --- a/src/identityProtection/riskDetections/item/index.ts +++ b/src/identityProtection/riskDetections/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRiskDetectionFromDiscriminatorValue, deserializeIntoRiskDetection, serializeRiskDetection, type RiskDetection } from '../../../models/riskDetection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/riskyServicePrincipals/confirmCompromised/index.ts b/src/identityProtection/riskyServicePrincipals/confirmCompromised/index.ts index df5c2220363..dc14188fe87 100644 --- a/src/identityProtection/riskyServicePrincipals/confirmCompromised/index.ts +++ b/src/identityProtection/riskyServicePrincipals/confirmCompromised/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ConfirmCompromisedPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,57 +26,5 @@ export function serializeConfirmCompromisedPostRequestBody(writer: Serialization writer.writeCollectionOfPrimitiveValues("servicePrincipalIds", confirmCompromisedPostRequestBody.servicePrincipalIds); writer.writeAdditionalData(confirmCompromisedPostRequestBody.additionalData); } -/** - * Provides operations to call the confirmCompromised method. - */ -export class ConfirmCompromisedRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ConfirmCompromisedRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/identityProtection/riskyServicePrincipals/confirmCompromised"); - }; - /** - * Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/riskyserviceprincipal-confirmcompromised?view=graph-rest-1.0|Find more info here} - */ - public post(body: ConfirmCompromisedPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ConfirmCompromisedPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeConfirmCompromisedPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a confirmCompromisedRequestBuilder - */ - public withUrl(rawUrl: string) : ConfirmCompromisedRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ConfirmCompromisedRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identityProtection/riskyServicePrincipals/count/index.ts b/src/identityProtection/riskyServicePrincipals/count/index.ts index d52f325d5c7..7b920e565ce 100644 --- a/src/identityProtection/riskyServicePrincipals/count/index.ts +++ b/src/identityProtection/riskyServicePrincipals/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/riskyServicePrincipals/dismiss/dismissPostRequestBody.ts b/src/identityProtection/riskyServicePrincipals/dismiss/dismissPostRequestBody.ts deleted file mode 100644 index 8f78a4f68a3..00000000000 --- a/src/identityProtection/riskyServicePrincipals/dismiss/dismissPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDismissPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDismissPostRequestBody; -} -export function deserializeIntoDismissPostRequestBody(dismissPostRequestBody: DismissPostRequestBody | undefined = {} as DismissPostRequestBody) : Record void> { - return { - "servicePrincipalIds": n => { dismissPostRequestBody.servicePrincipalIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface DismissPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The servicePrincipalIds property - */ - servicePrincipalIds?: string[]; -} -export function serializeDismissPostRequestBody(writer: SerializationWriter, dismissPostRequestBody: DismissPostRequestBody | undefined = {} as DismissPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("servicePrincipalIds", dismissPostRequestBody.servicePrincipalIds); - writer.writeAdditionalData(dismissPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityProtection/riskyServicePrincipals/dismiss/index.ts b/src/identityProtection/riskyServicePrincipals/dismiss/index.ts index c604b3e1082..d58bd6777af 100644 --- a/src/identityProtection/riskyServicePrincipals/dismiss/index.ts +++ b/src/identityProtection/riskyServicePrincipals/dismiss/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoDismissPostRequestBody, serializeDismissPostRequestBody, type DismissPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDismissPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDismissPostRequestBody; +} +export function deserializeIntoDismissPostRequestBody(dismissPostRequestBody: DismissPostRequestBody | undefined = {} as DismissPostRequestBody) : Record void> { + return { + "servicePrincipalIds": n => { dismissPostRequestBody.servicePrincipalIds = n.getCollectionOfPrimitiveValues(); }, + } +} +export interface DismissPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The servicePrincipalIds property + */ + servicePrincipalIds?: string[]; +} +export function serializeDismissPostRequestBody(writer: SerializationWriter, dismissPostRequestBody: DismissPostRequestBody | undefined = {} as DismissPostRequestBody) : void { + writer.writeCollectionOfPrimitiveValues("servicePrincipalIds", dismissPostRequestBody.servicePrincipalIds); + writer.writeAdditionalData(dismissPostRequestBody.additionalData); +} /** * Provides operations to call the dismiss method. */ diff --git a/src/identityProtection/riskyServicePrincipals/index.ts b/src/identityProtection/riskyServicePrincipals/index.ts index 187c9bf578f..0121af8b00a 100644 --- a/src/identityProtection/riskyServicePrincipals/index.ts +++ b/src/identityProtection/riskyServicePrincipals/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RiskyServicePrincipalCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type RiskyServicePrincipalCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRiskyServicePrincipalFromDiscriminatorValue, deserializeIntoRiskyServicePrincipal, serializeRiskyServicePrincipal, type RiskyServicePrincipal } from '../../models/riskyServicePrincipal'; import { createRiskyServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../models/riskyServicePrincipalCollectionResponse'; -import { ConfirmCompromisedRequestBuilder } from './confirmCompromised/'; -import { CountRequestBuilder } from './count/'; -import { DismissRequestBuilder } from './dismiss/'; -import { RiskyServicePrincipalItemRequestBuilder } from './item/'; +import { ConfirmCompromisedRequestBuilder } from './confirmCompromised'; +import { CountRequestBuilder } from './count'; +import { DismissRequestBuilder } from './dismiss'; +import { RiskyServicePrincipalItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RiskyServicePrincipalsRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/riskyServicePrincipals/item/history/count/index.ts b/src/identityProtection/riskyServicePrincipals/item/history/count/index.ts index 7e067afb0e6..15a052027b6 100644 --- a/src/identityProtection/riskyServicePrincipals/item/history/count/index.ts +++ b/src/identityProtection/riskyServicePrincipals/item/history/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/riskyServicePrincipals/item/history/index.ts b/src/identityProtection/riskyServicePrincipals/item/history/index.ts index a3cfe1a099a..545f803aae1 100644 --- a/src/identityProtection/riskyServicePrincipals/item/history/index.ts +++ b/src/identityProtection/riskyServicePrincipals/item/history/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RiskyServicePrincipalHistoryItemCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type RiskyServicePrincipalHistoryItemCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRiskyServicePrincipalHistoryItemFromDiscriminatorValue, deserializeIntoRiskyServicePrincipalHistoryItem, serializeRiskyServicePrincipalHistoryItem, type RiskyServicePrincipalHistoryItem } from '../../../../models/riskyServicePrincipalHistoryItem'; import { createRiskyServicePrincipalHistoryItemCollectionResponseFromDiscriminatorValue } from '../../../../models/riskyServicePrincipalHistoryItemCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RiskyServicePrincipalHistoryItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RiskyServicePrincipalHistoryItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HistoryRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/riskyServicePrincipals/item/history/item/index.ts b/src/identityProtection/riskyServicePrincipals/item/history/item/index.ts index bdd4b60d8ad..53ec7c3daf6 100644 --- a/src/identityProtection/riskyServicePrincipals/item/history/item/index.ts +++ b/src/identityProtection/riskyServicePrincipals/item/history/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createRiskyServicePrincipalHistoryItemFromDiscriminatorValue, deserializeIntoRiskyServicePrincipalHistoryItem, serializeRiskyServicePrincipalHistoryItem, type RiskyServicePrincipalHistoryItem } from '../../../../../models/riskyServicePrincipalHistoryItem'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/riskyServicePrincipals/item/index.ts b/src/identityProtection/riskyServicePrincipals/item/index.ts index 3e9847160a7..c77e5832c98 100644 --- a/src/identityProtection/riskyServicePrincipals/item/index.ts +++ b/src/identityProtection/riskyServicePrincipals/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRiskyServicePrincipalFromDiscriminatorValue, deserializeIntoRiskyServicePrincipal, serializeRiskyServicePrincipal, type RiskyServicePrincipal } from '../../../models/riskyServicePrincipal'; -import { HistoryRequestBuilder } from './history/'; +import { HistoryRequestBuilder } from './history'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RiskyServicePrincipalItemRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/riskyUsers/confirmCompromised/index.ts b/src/identityProtection/riskyUsers/confirmCompromised/index.ts index 82235651e74..cf1ae521e67 100644 --- a/src/identityProtection/riskyUsers/confirmCompromised/index.ts +++ b/src/identityProtection/riskyUsers/confirmCompromised/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ConfirmCompromisedPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,57 +26,5 @@ export function serializeConfirmCompromisedPostRequestBody(writer: Serialization writer.writeCollectionOfPrimitiveValues("userIds", confirmCompromisedPostRequestBody.userIds); writer.writeAdditionalData(confirmCompromisedPostRequestBody.additionalData); } -/** - * Provides operations to call the confirmCompromised method. - */ -export class ConfirmCompromisedRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ConfirmCompromisedRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/identityProtection/riskyUsers/confirmCompromised"); - }; - /** - * Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/riskyuser-confirmcompromised?view=graph-rest-1.0|Find more info here} - */ - public post(body: ConfirmCompromisedPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ConfirmCompromisedPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeConfirmCompromisedPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a confirmCompromisedRequestBuilder - */ - public withUrl(rawUrl: string) : ConfirmCompromisedRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ConfirmCompromisedRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/identityProtection/riskyUsers/count/index.ts b/src/identityProtection/riskyUsers/count/index.ts index 71a68d3631e..aabf8ff668f 100644 --- a/src/identityProtection/riskyUsers/count/index.ts +++ b/src/identityProtection/riskyUsers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/riskyUsers/dismiss/dismissPostRequestBody.ts b/src/identityProtection/riskyUsers/dismiss/dismissPostRequestBody.ts deleted file mode 100644 index a45f0877a84..00000000000 --- a/src/identityProtection/riskyUsers/dismiss/dismissPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDismissPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDismissPostRequestBody; -} -export function deserializeIntoDismissPostRequestBody(dismissPostRequestBody: DismissPostRequestBody | undefined = {} as DismissPostRequestBody) : Record void> { - return { - "userIds": n => { dismissPostRequestBody.userIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface DismissPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The userIds property - */ - userIds?: string[]; -} -export function serializeDismissPostRequestBody(writer: SerializationWriter, dismissPostRequestBody: DismissPostRequestBody | undefined = {} as DismissPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("userIds", dismissPostRequestBody.userIds); - writer.writeAdditionalData(dismissPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/identityProtection/riskyUsers/dismiss/index.ts b/src/identityProtection/riskyUsers/dismiss/index.ts index 9d04d7fa47a..12db157f3c9 100644 --- a/src/identityProtection/riskyUsers/dismiss/index.ts +++ b/src/identityProtection/riskyUsers/dismiss/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoDismissPostRequestBody, serializeDismissPostRequestBody, type DismissPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDismissPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDismissPostRequestBody; +} +export function deserializeIntoDismissPostRequestBody(dismissPostRequestBody: DismissPostRequestBody | undefined = {} as DismissPostRequestBody) : Record void> { + return { + "userIds": n => { dismissPostRequestBody.userIds = n.getCollectionOfPrimitiveValues(); }, + } +} +export interface DismissPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The userIds property + */ + userIds?: string[]; +} +export function serializeDismissPostRequestBody(writer: SerializationWriter, dismissPostRequestBody: DismissPostRequestBody | undefined = {} as DismissPostRequestBody) : void { + writer.writeCollectionOfPrimitiveValues("userIds", dismissPostRequestBody.userIds); + writer.writeAdditionalData(dismissPostRequestBody.additionalData); +} /** * Provides operations to call the dismiss method. */ diff --git a/src/identityProtection/riskyUsers/index.ts b/src/identityProtection/riskyUsers/index.ts index c3038e3b5bd..28ac35b5a1e 100644 --- a/src/identityProtection/riskyUsers/index.ts +++ b/src/identityProtection/riskyUsers/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RiskyUserCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type RiskyUserCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRiskyUserFromDiscriminatorValue, deserializeIntoRiskyUser, serializeRiskyUser, type RiskyUser } from '../../models/riskyUser'; import { createRiskyUserCollectionResponseFromDiscriminatorValue } from '../../models/riskyUserCollectionResponse'; -import { ConfirmCompromisedRequestBuilder } from './confirmCompromised/'; -import { CountRequestBuilder } from './count/'; -import { DismissRequestBuilder } from './dismiss/'; -import { RiskyUserItemRequestBuilder } from './item/'; +import { ConfirmCompromisedRequestBuilder } from './confirmCompromised'; +import { CountRequestBuilder } from './count'; +import { DismissRequestBuilder } from './dismiss'; +import { RiskyUserItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RiskyUsersRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/riskyUsers/item/history/count/index.ts b/src/identityProtection/riskyUsers/item/history/count/index.ts index 27cae529829..21265797a0d 100644 --- a/src/identityProtection/riskyUsers/item/history/count/index.ts +++ b/src/identityProtection/riskyUsers/item/history/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/riskyUsers/item/history/index.ts b/src/identityProtection/riskyUsers/item/history/index.ts index 754b123f0c3..e1f9425c465 100644 --- a/src/identityProtection/riskyUsers/item/history/index.ts +++ b/src/identityProtection/riskyUsers/item/history/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RiskyUserHistoryItemCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type RiskyUserHistoryItemCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRiskyUserHistoryItemFromDiscriminatorValue, deserializeIntoRiskyUserHistoryItem, serializeRiskyUserHistoryItem, type RiskyUserHistoryItem } from '../../../../models/riskyUserHistoryItem'; import { createRiskyUserHistoryItemCollectionResponseFromDiscriminatorValue } from '../../../../models/riskyUserHistoryItemCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RiskyUserHistoryItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RiskyUserHistoryItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HistoryRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/riskyUsers/item/history/item/index.ts b/src/identityProtection/riskyUsers/item/history/item/index.ts index 8c3413974f6..77c264e5576 100644 --- a/src/identityProtection/riskyUsers/item/history/item/index.ts +++ b/src/identityProtection/riskyUsers/item/history/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createRiskyUserHistoryItemFromDiscriminatorValue, deserializeIntoRiskyUserHistoryItem, serializeRiskyUserHistoryItem, type RiskyUserHistoryItem } from '../../../../../models/riskyUserHistoryItem'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/riskyUsers/item/index.ts b/src/identityProtection/riskyUsers/item/index.ts index 10c733b17c6..ca111e33fb6 100644 --- a/src/identityProtection/riskyUsers/item/index.ts +++ b/src/identityProtection/riskyUsers/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRiskyUserFromDiscriminatorValue, deserializeIntoRiskyUser, serializeRiskyUser, type RiskyUser } from '../../../models/riskyUser'; -import { HistoryRequestBuilder } from './history/'; +import { HistoryRequestBuilder } from './history'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RiskyUserItemRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/servicePrincipalRiskDetections/count/index.ts b/src/identityProtection/servicePrincipalRiskDetections/count/index.ts index 0572af55202..92c9a8bf693 100644 --- a/src/identityProtection/servicePrincipalRiskDetections/count/index.ts +++ b/src/identityProtection/servicePrincipalRiskDetections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProtection/servicePrincipalRiskDetections/index.ts b/src/identityProtection/servicePrincipalRiskDetections/index.ts index c22c369511e..a3f7642997f 100644 --- a/src/identityProtection/servicePrincipalRiskDetections/index.ts +++ b/src/identityProtection/servicePrincipalRiskDetections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalRiskDetectionCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ServicePrincipalRiskDetectionCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createServicePrincipalRiskDetectionFromDiscriminatorValue, deserializeIntoServicePrincipalRiskDetection, serializeServicePrincipalRiskDetection, type ServicePrincipalRiskDetection } from '../../models/servicePrincipalRiskDetection'; import { createServicePrincipalRiskDetectionCollectionResponseFromDiscriminatorValue } from '../../models/servicePrincipalRiskDetectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ServicePrincipalRiskDetectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ServicePrincipalRiskDetectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServicePrincipalRiskDetectionsRequestBuilderGetQueryParameters { diff --git a/src/identityProtection/servicePrincipalRiskDetections/item/index.ts b/src/identityProtection/servicePrincipalRiskDetections/item/index.ts index d002a321ed9..5b37dfebb0c 100644 --- a/src/identityProtection/servicePrincipalRiskDetections/item/index.ts +++ b/src/identityProtection/servicePrincipalRiskDetections/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createServicePrincipalRiskDetectionFromDiscriminatorValue, deserializeIntoServicePrincipalRiskDetection, serializeServicePrincipalRiskDetection, type ServicePrincipalRiskDetection } from '../../../models/servicePrincipalRiskDetection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProviders/availableProviderTypes/availableProviderTypesGetResponse.ts b/src/identityProviders/availableProviderTypes/availableProviderTypesGetResponse.ts deleted file mode 100644 index e5e8a9780de..00000000000 --- a/src/identityProviders/availableProviderTypes/availableProviderTypesGetResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AvailableProviderTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function createAvailableProviderTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAvailableProviderTypesGetResponse; -} -export function deserializeIntoAvailableProviderTypesGetResponse(availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(availableProviderTypesGetResponse), - "value": n => { availableProviderTypesGetResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeAvailableProviderTypesGetResponse(writer: SerializationWriter, availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, availableProviderTypesGetResponse) - writer.writeCollectionOfPrimitiveValues("value", availableProviderTypesGetResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/identityProviders/availableProviderTypes/index.ts b/src/identityProviders/availableProviderTypes/index.ts index f49e783ac97..375cc2fe3c1 100644 --- a/src/identityProviders/availableProviderTypes/index.ts +++ b/src/identityProviders/availableProviderTypes/index.ts @@ -1,12 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { createAvailableProviderTypesGetResponseFromDiscriminatorValue } from './'; -import { type AvailableProviderTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AvailableProviderTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: string[]; +} export interface AvailableProviderTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +34,20 @@ export interface AvailableProviderTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function createAvailableProviderTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAvailableProviderTypesGetResponse; +} +export function deserializeIntoAvailableProviderTypesGetResponse(availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(availableProviderTypesGetResponse), + "value": n => { availableProviderTypesGetResponse.value = n.getCollectionOfPrimitiveValues(); }, + } +} +export function serializeAvailableProviderTypesGetResponse(writer: SerializationWriter, availableProviderTypesGetResponse: AvailableProviderTypesGetResponse | undefined = {} as AvailableProviderTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, availableProviderTypesGetResponse) + writer.writeCollectionOfPrimitiveValues("value", availableProviderTypesGetResponse.value); +} /** * Provides operations to call the availableProviderTypes method. */ diff --git a/src/identityProviders/count/index.ts b/src/identityProviders/count/index.ts index 529c80427b6..17d3535b6f6 100644 --- a/src/identityProviders/count/index.ts +++ b/src/identityProviders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/identityProviders/index.ts b/src/identityProviders/index.ts index bdd66baa971..5b108c722f7 100644 --- a/src/identityProviders/index.ts +++ b/src/identityProviders/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type IdentityProviderCollectionResponse } from '../models/'; +import { type IdentityProviderCollectionResponse } from '../models'; import { createIdentityProviderFromDiscriminatorValue, deserializeIntoIdentityProvider, serializeIdentityProvider, type IdentityProvider } from '../models/identityProvider'; import { createIdentityProviderCollectionResponseFromDiscriminatorValue } from '../models/identityProviderCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { AvailableProviderTypesRequestBuilder } from './availableProviderTypes/'; -import { CountRequestBuilder } from './count/'; -import { IdentityProviderItemRequestBuilder } from './item/'; +import { AvailableProviderTypesRequestBuilder } from './availableProviderTypes'; +import { CountRequestBuilder } from './count'; +import { IdentityProviderItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IdentityProvidersRequestBuilderGetQueryParameters { diff --git a/src/identityProviders/item/index.ts b/src/identityProviders/item/index.ts index 447e628011b..a835199de85 100644 --- a/src/identityProviders/item/index.ts +++ b/src/identityProviders/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentityProviderFromDiscriminatorValue, deserializeIntoIdentityProvider, serializeIdentityProvider, type IdentityProvider } from '../../models/identityProvider'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/index.ts b/src/index.ts index 2a2bd916344..630fa33e938 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,77 +1,77 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { AdminRequestBuilder } from './admin/'; -import { AgreementAcceptancesRequestBuilder } from './agreementAcceptances/'; -import { AgreementsRequestBuilder } from './agreements/'; -import { AppCatalogsRequestBuilder } from './appCatalogs/'; -import { ApplicationsRequestBuilder } from './applications/'; -import { ApplicationsWithAppIdRequestBuilder } from './applicationsWithAppId/'; -import { ApplicationTemplatesRequestBuilder } from './applicationTemplates/'; -import { AuditLogsRequestBuilder } from './auditLogs/'; -import { AuthenticationMethodConfigurationsRequestBuilder } from './authenticationMethodConfigurations/'; -import { AuthenticationMethodsPolicyRequestBuilder } from './authenticationMethodsPolicy/'; -import { CertificateBasedAuthConfigurationRequestBuilder } from './certificateBasedAuthConfiguration/'; -import { ChatsRequestBuilder } from './chats/'; -import { CommunicationsRequestBuilder } from './communications/'; -import { ComplianceRequestBuilder } from './compliance/'; -import { ConnectionsRequestBuilder } from './connections/'; -import { ContactsRequestBuilder } from './contacts/'; -import { ContractsRequestBuilder } from './contracts/'; -import { DataPolicyOperationsRequestBuilder } from './dataPolicyOperations/'; -import { DeviceAppManagementRequestBuilder } from './deviceAppManagement/'; -import { DeviceManagementRequestBuilder } from './deviceManagement/'; -import { DevicesRequestBuilder } from './devices/'; -import { DevicesWithDeviceIdRequestBuilder } from './devicesWithDeviceId/'; -import { DirectoryRequestBuilder } from './directory/'; -import { DirectoryObjectsRequestBuilder } from './directoryObjects/'; -import { DirectoryRolesRequestBuilder } from './directoryRoles/'; -import { DirectoryRolesWithRoleTemplateIdRequestBuilder } from './directoryRolesWithRoleTemplateId/'; -import { DirectoryRoleTemplatesRequestBuilder } from './directoryRoleTemplates/'; -import { DomainDnsRecordsRequestBuilder } from './domainDnsRecords/'; -import { DomainsRequestBuilder } from './domains/'; -import { DrivesRequestBuilder } from './drives/'; -import { EducationRequestBuilder } from './education/'; -import { EmployeeExperienceRequestBuilder } from './employeeExperience/'; -import { ExternalRequestBuilder } from './external/'; -import { FilterOperatorsRequestBuilder } from './filterOperators/'; -import { FunctionsRequestBuilder } from './functions/'; -import { GroupLifecyclePoliciesRequestBuilder } from './groupLifecyclePolicies/'; -import { GroupsRequestBuilder } from './groups/'; -import { GroupSettingsRequestBuilder } from './groupSettings/'; -import { GroupSettingTemplatesRequestBuilder } from './groupSettingTemplates/'; -import { IdentityRequestBuilder } from './identity/'; -import { IdentityGovernanceRequestBuilder } from './identityGovernance/'; -import { IdentityProtectionRequestBuilder } from './identityProtection/'; -import { IdentityProvidersRequestBuilder } from './identityProviders/'; -import { InformationProtectionRequestBuilder } from './informationProtection/'; -import { InvitationsRequestBuilder } from './invitations/'; -import { Oauth2PermissionGrantsRequestBuilder } from './oauth2PermissionGrants/'; -import { OrganizationRequestBuilder } from './organization/'; -import { PermissionGrantsRequestBuilder } from './permissionGrants/'; -import { PlacesRequestBuilder } from './places/'; -import { PlannerRequestBuilder } from './planner/'; -import { PoliciesRequestBuilder } from './policies/'; -import { PrintRequestBuilder } from './print/'; -import { PrivacyRequestBuilder } from './privacy/'; -import { ReportsRequestBuilder } from './reports/'; -import { RoleManagementRequestBuilder } from './roleManagement/'; -import { SchemaExtensionsRequestBuilder } from './schemaExtensions/'; -import { ScopedRoleMembershipsRequestBuilder } from './scopedRoleMemberships/'; -import { SearchRequestBuilder } from './search/'; -import { SecurityRequestBuilder } from './security/'; -import { ServicePrincipalsRequestBuilder } from './servicePrincipals/'; -import { ServicePrincipalsWithAppIdRequestBuilder } from './servicePrincipalsWithAppId/'; -import { SharesRequestBuilder } from './shares/'; -import { SitesRequestBuilder } from './sites/'; -import { SolutionsRequestBuilder } from './solutions/'; -import { SubscribedSkusRequestBuilder } from './subscribedSkus/'; -import { SubscriptionsRequestBuilder } from './subscriptions/'; -import { TeamsRequestBuilder } from './teams/'; -import { TeamsTemplatesRequestBuilder } from './teamsTemplates/'; -import { TeamworkRequestBuilder } from './teamwork/'; -import { TenantRelationshipsRequestBuilder } from './tenantRelationships/'; -import { UsersRequestBuilder } from './users/'; +import { AdminRequestBuilder } from './admin'; +import { AgreementAcceptancesRequestBuilder } from './agreementAcceptances'; +import { AgreementsRequestBuilder } from './agreements'; +import { AppCatalogsRequestBuilder } from './appCatalogs'; +import { ApplicationsRequestBuilder } from './applications'; +import { ApplicationsWithAppIdRequestBuilder } from './applicationsWithAppId'; +import { ApplicationTemplatesRequestBuilder } from './applicationTemplates'; +import { AuditLogsRequestBuilder } from './auditLogs'; +import { AuthenticationMethodConfigurationsRequestBuilder } from './authenticationMethodConfigurations'; +import { AuthenticationMethodsPolicyRequestBuilder } from './authenticationMethodsPolicy'; +import { CertificateBasedAuthConfigurationRequestBuilder } from './certificateBasedAuthConfiguration'; +import { ChatsRequestBuilder } from './chats'; +import { CommunicationsRequestBuilder } from './communications'; +import { ComplianceRequestBuilder } from './compliance'; +import { ConnectionsRequestBuilder } from './connections'; +import { ContactsRequestBuilder } from './contacts'; +import { ContractsRequestBuilder } from './contracts'; +import { DataPolicyOperationsRequestBuilder } from './dataPolicyOperations'; +import { DeviceAppManagementRequestBuilder } from './deviceAppManagement'; +import { DeviceManagementRequestBuilder } from './deviceManagement'; +import { DevicesRequestBuilder } from './devices'; +import { DevicesWithDeviceIdRequestBuilder } from './devicesWithDeviceId'; +import { DirectoryRequestBuilder } from './directory'; +import { DirectoryObjectsRequestBuilder } from './directoryObjects'; +import { DirectoryRolesRequestBuilder } from './directoryRoles'; +import { DirectoryRolesWithRoleTemplateIdRequestBuilder } from './directoryRolesWithRoleTemplateId'; +import { DirectoryRoleTemplatesRequestBuilder } from './directoryRoleTemplates'; +import { DomainDnsRecordsRequestBuilder } from './domainDnsRecords'; +import { DomainsRequestBuilder } from './domains'; +import { DrivesRequestBuilder } from './drives'; +import { EducationRequestBuilder } from './education'; +import { EmployeeExperienceRequestBuilder } from './employeeExperience'; +import { ExternalRequestBuilder } from './external'; +import { FilterOperatorsRequestBuilder } from './filterOperators'; +import { FunctionsRequestBuilder } from './functions'; +import { GroupLifecyclePoliciesRequestBuilder } from './groupLifecyclePolicies'; +import { GroupsRequestBuilder } from './groups'; +import { GroupSettingsRequestBuilder } from './groupSettings'; +import { GroupSettingTemplatesRequestBuilder } from './groupSettingTemplates'; +import { IdentityRequestBuilder } from './identity'; +import { IdentityGovernanceRequestBuilder } from './identityGovernance'; +import { IdentityProtectionRequestBuilder } from './identityProtection'; +import { IdentityProvidersRequestBuilder } from './identityProviders'; +import { InformationProtectionRequestBuilder } from './informationProtection'; +import { InvitationsRequestBuilder } from './invitations'; +import { Oauth2PermissionGrantsRequestBuilder } from './oauth2PermissionGrants'; +import { OrganizationRequestBuilder } from './organization'; +import { PermissionGrantsRequestBuilder } from './permissionGrants'; +import { PlacesRequestBuilder } from './places'; +import { PlannerRequestBuilder } from './planner'; +import { PoliciesRequestBuilder } from './policies'; +import { PrintRequestBuilder } from './print'; +import { PrivacyRequestBuilder } from './privacy'; +import { ReportsRequestBuilder } from './reports'; +import { RoleManagementRequestBuilder } from './roleManagement'; +import { SchemaExtensionsRequestBuilder } from './schemaExtensions'; +import { ScopedRoleMembershipsRequestBuilder } from './scopedRoleMemberships'; +import { SearchRequestBuilder } from './search'; +import { SecurityRequestBuilder } from './security'; +import { ServicePrincipalsRequestBuilder } from './servicePrincipals'; +import { ServicePrincipalsWithAppIdRequestBuilder } from './servicePrincipalsWithAppId'; +import { SharesRequestBuilder } from './shares'; +import { SitesRequestBuilder } from './sites'; +import { SolutionsRequestBuilder } from './solutions'; +import { SubscribedSkusRequestBuilder } from './subscribedSkus'; +import { SubscriptionsRequestBuilder } from './subscriptions'; +import { TeamsRequestBuilder } from './teams'; +import { TeamsTemplatesRequestBuilder } from './teamsTemplates'; +import { TeamworkRequestBuilder } from './teamwork'; +import { TenantRelationshipsRequestBuilder } from './tenantRelationships'; +import { UsersRequestBuilder } from './users'; import { BaseRequestBuilder, enableBackingStoreForSerializationWriterFactory, ParseNodeFactoryRegistry, registerDefaultDeserializer, registerDefaultSerializer, SerializationWriterFactoryRegistry, type RequestAdapter } from '@microsoft/kiota-abstractions'; import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form'; import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json'; diff --git a/src/informationProtection/bitlocker/index.ts b/src/informationProtection/bitlocker/index.ts index edd7de32a14..85b6a94d93d 100644 --- a/src/informationProtection/bitlocker/index.ts +++ b/src/informationProtection/bitlocker/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Bitlocker } from '../../models/'; +import { type Bitlocker } from '../../models'; import { createBitlockerFromDiscriminatorValue } from '../../models/bitlocker'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { RecoveryKeysRequestBuilder } from './recoveryKeys/'; +import { RecoveryKeysRequestBuilder } from './recoveryKeys'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BitlockerRequestBuilderGetQueryParameters { diff --git a/src/informationProtection/bitlocker/recoveryKeys/count/index.ts b/src/informationProtection/bitlocker/recoveryKeys/count/index.ts index 8640bb64f18..7b8a1e6d7f0 100644 --- a/src/informationProtection/bitlocker/recoveryKeys/count/index.ts +++ b/src/informationProtection/bitlocker/recoveryKeys/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/informationProtection/bitlocker/recoveryKeys/index.ts b/src/informationProtection/bitlocker/recoveryKeys/index.ts index f89c0630cba..2c639b8e88c 100644 --- a/src/informationProtection/bitlocker/recoveryKeys/index.ts +++ b/src/informationProtection/bitlocker/recoveryKeys/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BitlockerRecoveryKeyCollectionResponse } from '../../../models/'; +import { type BitlockerRecoveryKeyCollectionResponse } from '../../../models'; import { createBitlockerRecoveryKeyCollectionResponseFromDiscriminatorValue } from '../../../models/bitlockerRecoveryKeyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BitlockerRecoveryKeyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BitlockerRecoveryKeyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RecoveryKeysRequestBuilderGetQueryParameters { diff --git a/src/informationProtection/bitlocker/recoveryKeys/item/index.ts b/src/informationProtection/bitlocker/recoveryKeys/item/index.ts index ba8d53edfc5..ed7c1d097d9 100644 --- a/src/informationProtection/bitlocker/recoveryKeys/item/index.ts +++ b/src/informationProtection/bitlocker/recoveryKeys/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BitlockerRecoveryKey } from '../../../../models/'; +import { type BitlockerRecoveryKey } from '../../../../models'; import { createBitlockerRecoveryKeyFromDiscriminatorValue } from '../../../../models/bitlockerRecoveryKey'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/informationProtection/index.ts b/src/informationProtection/index.ts index 861b031b422..6b1bb94ec90 100644 --- a/src/informationProtection/index.ts +++ b/src/informationProtection/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createInformationProtectionFromDiscriminatorValue, deserializeIntoInformationProtection, serializeInformationProtection, type InformationProtection } from '../models/informationProtection'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { BitlockerRequestBuilder } from './bitlocker/'; -import { ThreatAssessmentRequestsRequestBuilder } from './threatAssessmentRequests/'; +import { BitlockerRequestBuilder } from './bitlocker'; +import { ThreatAssessmentRequestsRequestBuilder } from './threatAssessmentRequests'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InformationProtectionRequestBuilderGetQueryParameters { diff --git a/src/informationProtection/threatAssessmentRequests/count/index.ts b/src/informationProtection/threatAssessmentRequests/count/index.ts index 66be003041e..01c6b8b70c3 100644 --- a/src/informationProtection/threatAssessmentRequests/count/index.ts +++ b/src/informationProtection/threatAssessmentRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/informationProtection/threatAssessmentRequests/index.ts b/src/informationProtection/threatAssessmentRequests/index.ts index fb56c22e757..7ae38caea6f 100644 --- a/src/informationProtection/threatAssessmentRequests/index.ts +++ b/src/informationProtection/threatAssessmentRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ThreatAssessmentRequestCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ThreatAssessmentRequestCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createThreatAssessmentRequestFromDiscriminatorValue, deserializeIntoThreatAssessmentRequest, serializeThreatAssessmentRequest, type ThreatAssessmentRequest } from '../../models/threatAssessmentRequest'; import { createThreatAssessmentRequestCollectionResponseFromDiscriminatorValue } from '../../models/threatAssessmentRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ThreatAssessmentRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ThreatAssessmentRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ThreatAssessmentRequestsRequestBuilderGetQueryParameters { diff --git a/src/informationProtection/threatAssessmentRequests/item/index.ts b/src/informationProtection/threatAssessmentRequests/item/index.ts index 383817b55de..40b58822abe 100644 --- a/src/informationProtection/threatAssessmentRequests/item/index.ts +++ b/src/informationProtection/threatAssessmentRequests/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createThreatAssessmentRequestFromDiscriminatorValue, deserializeIntoThreatAssessmentRequest, serializeThreatAssessmentRequest, type ThreatAssessmentRequest } from '../../../models/threatAssessmentRequest'; -import { ResultsRequestBuilder } from './results/'; +import { ResultsRequestBuilder } from './results'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ThreatAssessmentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/informationProtection/threatAssessmentRequests/item/results/count/index.ts b/src/informationProtection/threatAssessmentRequests/item/results/count/index.ts index 12511c8b94f..826644aee8b 100644 --- a/src/informationProtection/threatAssessmentRequests/item/results/count/index.ts +++ b/src/informationProtection/threatAssessmentRequests/item/results/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/informationProtection/threatAssessmentRequests/item/results/index.ts b/src/informationProtection/threatAssessmentRequests/item/results/index.ts index 4e05996b4b3..32978914b62 100644 --- a/src/informationProtection/threatAssessmentRequests/item/results/index.ts +++ b/src/informationProtection/threatAssessmentRequests/item/results/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ThreatAssessmentResultCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ThreatAssessmentResultCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createThreatAssessmentResultFromDiscriminatorValue, deserializeIntoThreatAssessmentResult, serializeThreatAssessmentResult, type ThreatAssessmentResult } from '../../../../models/threatAssessmentResult'; import { createThreatAssessmentResultCollectionResponseFromDiscriminatorValue } from '../../../../models/threatAssessmentResultCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ThreatAssessmentResultItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ThreatAssessmentResultItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResultsRequestBuilderGetQueryParameters { diff --git a/src/informationProtection/threatAssessmentRequests/item/results/item/index.ts b/src/informationProtection/threatAssessmentRequests/item/results/item/index.ts index ed27d72fbae..e21ac0d7d12 100644 --- a/src/informationProtection/threatAssessmentRequests/item/results/item/index.ts +++ b/src/informationProtection/threatAssessmentRequests/item/results/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createThreatAssessmentResultFromDiscriminatorValue, deserializeIntoThreatAssessmentResult, serializeThreatAssessmentResult, type ThreatAssessmentResult } from '../../../../../models/threatAssessmentResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/invitations/count/index.ts b/src/invitations/count/index.ts index c33d33176b9..c9309d6b01c 100644 --- a/src/invitations/count/index.ts +++ b/src/invitations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/invitations/index.ts b/src/invitations/index.ts index 631e5208983..e119b59b9bc 100644 --- a/src/invitations/index.ts +++ b/src/invitations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type InvitationCollectionResponse } from '../models/'; +import { type InvitationCollectionResponse } from '../models'; import { createInvitationFromDiscriminatorValue, deserializeIntoInvitation, serializeInvitation, type Invitation } from '../models/invitation'; import { createInvitationCollectionResponseFromDiscriminatorValue } from '../models/invitationCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { InvitationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { InvitationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InvitationsRequestBuilderGetQueryParameters { diff --git a/src/invitations/item/index.ts b/src/invitations/item/index.ts index 058cfeb679c..fa457147276 100644 --- a/src/invitations/item/index.ts +++ b/src/invitations/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createInvitationFromDiscriminatorValue, deserializeIntoInvitation, serializeInvitation, type Invitation } from '../../models/invitation'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { InvitedUserRequestBuilder } from './invitedUser/'; +import { InvitedUserRequestBuilder } from './invitedUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InvitationItemRequestBuilderGetQueryParameters { diff --git a/src/invitations/item/invitedUser/index.ts b/src/invitations/item/invitedUser/index.ts index bfa513d897d..f9a4b503087 100644 --- a/src/invitations/item/invitedUser/index.ts +++ b/src/invitations/item/invitedUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InvitedUserRequestBuilderGetQueryParameters { diff --git a/src/invitations/item/invitedUser/mailboxSettings/index.ts b/src/invitations/item/invitedUser/mailboxSettings/index.ts index 0c2edce1cff..c20e54f74f5 100644 --- a/src/invitations/item/invitedUser/mailboxSettings/index.ts +++ b/src/invitations/item/invitedUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/invitations/item/invitedUser/serviceProvisioningErrors/count/index.ts b/src/invitations/item/invitedUser/serviceProvisioningErrors/count/index.ts index a999e408840..9eb40240ba6 100644 --- a/src/invitations/item/invitedUser/serviceProvisioningErrors/count/index.ts +++ b/src/invitations/item/invitedUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/invitations/item/invitedUser/serviceProvisioningErrors/index.ts b/src/invitations/item/invitedUser/serviceProvisioningErrors/index.ts index 925475d2f53..9fb9ddfe146 100644 --- a/src/invitations/item/invitedUser/serviceProvisioningErrors/index.ts +++ b/src/invitations/item/invitedUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/kiota-lock.json b/src/kiota-lock.json index 00081c6a307..12e0de1af52 100644 --- a/src/kiota-lock.json +++ b/src/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "73235354FECCB4FC17F264B3638012EE6EFDB1744896DA5387DCD5A80B44B49168AC08E4D51397861CC616EE1065C24F5DD405050E69CA268756BBBA995B164C", + "descriptionHash": "6DA35D9AA714EDF973538BF50655E022B6E70EF14FADCAC442DBACA93805F256BE1A51AADD1370D41EAE6B31585988CD2EA7B576565F796613288F79B96785A3", "descriptionLocation": "https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.9.0", @@ -27,7 +27,10 @@ "multipart/form-data;q=0.1" ], "includePatterns": [], - "excludePatterns": [], + "excludePatterns": [ + "/me", + "/me/**" + ], "disabledValidationRules": [ "all" ] diff --git a/src/models/customCalloutExtension.ts b/src/models/customCalloutExtension.ts index 62302b22f7e..52e18d31955 100644 --- a/src/models/customCalloutExtension.ts +++ b/src/models/customCalloutExtension.ts @@ -7,7 +7,7 @@ import { createCustomExtensionAuthenticationConfigurationFromDiscriminatorValue, import { createCustomExtensionClientConfigurationFromDiscriminatorValue, serializeCustomExtensionClientConfiguration, type CustomExtensionClientConfiguration } from './customExtensionClientConfiguration'; import { createCustomExtensionEndpointConfigurationFromDiscriminatorValue, serializeCustomExtensionEndpointConfiguration, type CustomExtensionEndpointConfiguration } from './customExtensionEndpointConfiguration'; import { deserializeIntoEntity, serializeEntity, type Entity } from './entity'; -import { type CustomTaskExtension } from './identityGovernance/'; +import { type CustomTaskExtension } from './identityGovernance'; import { deserializeIntoCustomTaskExtension } from './identityGovernance/customTaskExtension'; import { type AccessPackageAssignmentRequestWorkflowExtension, type AccessPackageAssignmentWorkflowExtension } from './index'; import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; diff --git a/src/models/customExtensionCallbackConfiguration.ts b/src/models/customExtensionCallbackConfiguration.ts index 22d5b181897..ad80b4a7ba9 100644 --- a/src/models/customExtensionCallbackConfiguration.ts +++ b/src/models/customExtensionCallbackConfiguration.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CustomTaskExtensionCallbackConfiguration } from './identityGovernance/'; +import { type CustomTaskExtensionCallbackConfiguration } from './identityGovernance'; import { deserializeIntoCustomTaskExtensionCallbackConfiguration } from './identityGovernance/customTaskExtensionCallbackConfiguration'; import { type AdditionalDataHolder, type Duration, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; diff --git a/src/models/customExtensionData.ts b/src/models/customExtensionData.ts index a48844a791d..d06103f534c 100644 --- a/src/models/customExtensionData.ts +++ b/src/models/customExtensionData.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoAccessPackageAssignmentRequestCallbackData } from './accessPackageAssignmentRequestCallbackData'; -import { type CustomTaskExtensionCallbackData, type CustomTaskExtensionCalloutData } from './identityGovernance/'; +import { type CustomTaskExtensionCallbackData, type CustomTaskExtensionCalloutData } from './identityGovernance'; import { deserializeIntoCustomTaskExtensionCallbackData } from './identityGovernance/customTaskExtensionCallbackData'; import { deserializeIntoCustomTaskExtensionCalloutData } from './identityGovernance/customTaskExtensionCalloutData'; import { type AccessPackageAssignmentRequestCallbackData } from './index'; diff --git a/src/models/entity.ts b/src/models/entity.ts index 6c728b30aca..7827c6894f4 100644 --- a/src/models/entity.ts +++ b/src/models/entity.ts @@ -116,7 +116,7 @@ import { deserializeIntoCalendarPermission } from './calendarPermission'; import { deserializeIntoCalendarSharingMessage } from './calendarSharingMessage'; import { deserializeIntoCall } from './call'; import { deserializeIntoCallRecording } from './callRecording'; -import { type CallRecord, type Segment, type Session } from './callRecords/'; +import { type CallRecord, type Segment, type Session } from './callRecords'; import { deserializeIntoCallRecord } from './callRecords/callRecord'; import { deserializeIntoSegment } from './callRecords/segment'; import { deserializeIntoSession } from './callRecords/session'; @@ -260,7 +260,7 @@ import { deserializeIntoEventMessageRequest } from './eventMessageRequest'; import { deserializeIntoEventMessageResponse } from './eventMessageResponse'; import { deserializeIntoExtension } from './extension'; import { deserializeIntoExtensionProperty } from './extensionProperty'; -import { type ConnectionOperation, type ExternalActivity, type ExternalActivityResult, type ExternalConnection, type ExternalGroup, type ExternalItem, type Identity, type Schema } from './externalConnectors/'; +import { type ConnectionOperation, type ExternalActivity, type ExternalActivityResult, type ExternalConnection, type ExternalGroup, type ExternalItem, type Identity, type Schema } from './externalConnectors'; import { deserializeIntoConnectionOperation } from './externalConnectors/connectionOperation'; import { deserializeIntoExternalActivity } from './externalConnectors/externalActivity'; import { deserializeIntoExternalActivityResult } from './externalConnectors/externalActivityResult'; @@ -289,7 +289,7 @@ import { deserializeIntoIdentityApiConnector } from './identityApiConnector'; import { deserializeIntoIdentityBuiltInUserFlowAttribute } from './identityBuiltInUserFlowAttribute'; import { deserializeIntoIdentityContainer } from './identityContainer'; import { deserializeIntoIdentityCustomUserFlowAttribute } from './identityCustomUserFlowAttribute'; -import { type CustomTaskExtension, type LifecycleManagementSettings, type LifecycleWorkflowsContainer, type Run, type Task, type TaskDefinition, type TaskProcessingResult, type TaskReport, type UserProcessingResult, type WorkflowTemplate } from './identityGovernance/'; +import { type CustomTaskExtension, type LifecycleManagementSettings, type LifecycleWorkflowsContainer, type Run, type Task, type TaskDefinition, type TaskProcessingResult, type TaskReport, type UserProcessingResult, type WorkflowTemplate } from './identityGovernance'; import { deserializeIntoCustomTaskExtension } from './identityGovernance/customTaskExtension'; import { deserializeIntoLifecycleManagementSettings } from './identityGovernance/lifecycleManagementSettings'; import { deserializeIntoLifecycleWorkflowsContainer } from './identityGovernance/lifecycleWorkflowsContainer'; @@ -531,8 +531,7 @@ import { deserializeIntoSearchEntity } from './searchEntity'; import { deserializeIntoSectionGroup } from './sectionGroup'; import { deserializeIntoSecureScore } from './secureScore'; import { deserializeIntoSecureScoreControlProfile } from './secureScoreControlProfile'; -import { deserializeIntoSecurity } from './security'; -import { type Alert as I6c6ea9cf476c9a2686ab81fd2ae38bdf3364559b2c5107ca7a29ad7bcf95e5a8, type Article, type ArticleIndicator, type Artifact, type CaseEscaped, type CaseOperation, type CasesRoot, type DataSet, type DataSource, type DataSourceContainer, type EdiscoveryAddToReviewSetOperation, type EdiscoveryCase, type EdiscoveryCaseSettings, type EdiscoveryCustodian, type EdiscoveryEstimateOperation, type EdiscoveryExportOperation, type EdiscoveryHoldOperation, type EdiscoveryIndexOperation, type EdiscoveryNoncustodialDataSource, type EdiscoveryPurgeDataOperation, type EdiscoveryReviewSet, type EdiscoveryReviewSetQuery, type EdiscoveryReviewTag, type EdiscoverySearch, type EdiscoveryTagOperation, type Host, type HostComponent, type HostCookie, type Hostname, type HostPair, type HostPort, type HostReputation, type HostSslCertificate, type HostTracker, type Incident, type Indicator, type IntelligenceProfile, type IntelligenceProfileIndicator, type IpAddress, type PassiveDnsRecord, type RetentionEvent, type RetentionEventType, type Search, type SiteSource, type SslCertificate, type Subdomain, type Tag, type ThreatIntelligence, type TriggersRoot, type TriggerTypesRoot, type UnclassifiedArtifact, type UnifiedGroupSource, type UserSource, type Vulnerability, type VulnerabilityComponent, type WhoisBaseRecord, type WhoisHistoryRecord, type WhoisRecord } from './security/'; +import { deserializeIntoSecurity, type Alert as I6c6ea9cf476c9a2686ab81fd2ae38bdf3364559b2c5107ca7a29ad7bcf95e5a8, type Article, type ArticleIndicator, type Artifact, type CaseEscaped, type CaseOperation, type CasesRoot, type DataSet, type DataSource, type DataSourceContainer, type EdiscoveryAddToReviewSetOperation, type EdiscoveryCase, type EdiscoveryCaseSettings, type EdiscoveryCustodian, type EdiscoveryEstimateOperation, type EdiscoveryExportOperation, type EdiscoveryHoldOperation, type EdiscoveryIndexOperation, type EdiscoveryNoncustodialDataSource, type EdiscoveryPurgeDataOperation, type EdiscoveryReviewSet, type EdiscoveryReviewSetQuery, type EdiscoveryReviewTag, type EdiscoverySearch, type EdiscoveryTagOperation, type Host, type HostComponent, type HostCookie, type Hostname, type HostPair, type HostPort, type HostReputation, type HostSslCertificate, type HostTracker, type Incident, type Indicator, type IntelligenceProfile, type IntelligenceProfileIndicator, type IpAddress, type PassiveDnsRecord, type RetentionEvent, type RetentionEventType, type Search, type SiteSource, type SslCertificate, type Subdomain, type Tag, type ThreatIntelligence, type TriggersRoot, type TriggerTypesRoot, type UnclassifiedArtifact, type UnifiedGroupSource, type UserSource, type Vulnerability, type VulnerabilityComponent, type WhoisBaseRecord, type WhoisHistoryRecord, type WhoisRecord } from './security'; import { deserializeIntoAlert as I6505bc1c6fce3ff5954d022e7fc93d3127679a577fa33bf9d60b79a6ac991f2c } from './security/alert'; import { deserializeIntoArticle } from './security/article'; import { deserializeIntoArticleIndicator } from './security/articleIndicator'; @@ -662,7 +661,7 @@ import { deserializeIntoTermsAndConditions } from './termsAndConditions'; import { deserializeIntoTermsAndConditionsAcceptanceStatus } from './termsAndConditionsAcceptanceStatus'; import { deserializeIntoTermsAndConditionsAssignment } from './termsAndConditionsAssignment'; import { deserializeIntoTermsOfUseContainer } from './termsOfUseContainer'; -import { type Group as I4e18a3882f273ff649b31b0adac5448533e694e026e54aa608d86a59539e9206, type Relation, type Set, type Store, type Term } from './termStore/'; +import { type Group as I4e18a3882f273ff649b31b0adac5448533e694e026e54aa608d86a59539e9206, type Relation, type Set, type Store, type Term } from './termStore'; import { deserializeIntoGroup as I68b49c30a4e01821ddd2d5b4d80947215a00ae0cb3aba3ad127e906da74c8ed6 } from './termStore/group'; import { deserializeIntoRelation } from './termStore/relation'; import { deserializeIntoSet } from './termStore/set'; diff --git a/src/models/subjectSet.ts b/src/models/subjectSet.ts index 8ec1f3b1ae8..767504cfe21 100644 --- a/src/models/subjectSet.ts +++ b/src/models/subjectSet.ts @@ -5,7 +5,7 @@ import { deserializeIntoAttributeRuleMembers } from './attributeRuleMembers'; import { deserializeIntoConnectedOrganizationMembers } from './connectedOrganizationMembers'; import { deserializeIntoExternalSponsors } from './externalSponsors'; import { deserializeIntoGroupMembers } from './groupMembers'; -import { type RuleBasedSubjectSet } from './identityGovernance/'; +import { type RuleBasedSubjectSet } from './identityGovernance'; import { deserializeIntoRuleBasedSubjectSet } from './identityGovernance/ruleBasedSubjectSet'; import { type AttributeRuleMembers, type ConnectedOrganizationMembers, type ExternalSponsors, type GroupMembers, type InternalSponsors, type RequestorManager, type SingleServicePrincipal, type SingleUser, type TargetApplicationOwners, type TargetManager } from './index'; import { deserializeIntoInternalSponsors } from './internalSponsors'; diff --git a/src/oauth2PermissionGrants/count/index.ts b/src/oauth2PermissionGrants/count/index.ts index 84069075aa1..24a5e12813a 100644 --- a/src/oauth2PermissionGrants/count/index.ts +++ b/src/oauth2PermissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/oauth2PermissionGrants/delta/index.ts b/src/oauth2PermissionGrants/delta/index.ts index be05d5e198a..961162afde1 100644 --- a/src/oauth2PermissionGrants/delta/index.ts +++ b/src/oauth2PermissionGrants/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createOAuth2PermissionGrantFromDiscriminatorValue, serializeOAuth2PermissionGrant, type OAuth2PermissionGrant } from '../../models/oAuth2PermissionGrant'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: OAuth2PermissionGrant[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeOAuth2PermissionGrant); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/oauth2PermissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/oauth2PermissionGrants/index.ts b/src/oauth2PermissionGrants/index.ts index 61e4b2ac363..d53935b5b6e 100644 --- a/src/oauth2PermissionGrants/index.ts +++ b/src/oauth2PermissionGrants/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OAuth2PermissionGrantCollectionResponse } from '../models/'; +import { type OAuth2PermissionGrantCollectionResponse } from '../models'; import { createOAuth2PermissionGrantFromDiscriminatorValue, deserializeIntoOAuth2PermissionGrant, serializeOAuth2PermissionGrant, type OAuth2PermissionGrant } from '../models/oAuth2PermissionGrant'; import { createOAuth2PermissionGrantCollectionResponseFromDiscriminatorValue } from '../models/oAuth2PermissionGrantCollectionResponse'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { OAuth2PermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { OAuth2PermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface Oauth2PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/oauth2PermissionGrants/item/index.ts b/src/oauth2PermissionGrants/item/index.ts index a5849ec7413..5aeb81c6d42 100644 --- a/src/oauth2PermissionGrants/item/index.ts +++ b/src/oauth2PermissionGrants/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createOAuth2PermissionGrantFromDiscriminatorValue, deserializeIntoOAuth2PermissionGrant, serializeOAuth2PermissionGrant, type OAuth2PermissionGrant } from '../../models/oAuth2PermissionGrant'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/count/index.ts b/src/organization/count/index.ts index 7be032a2d46..d6004ea26a1 100644 --- a/src/organization/count/index.ts +++ b/src/organization/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/delta/index.ts b/src/organization/delta/index.ts index 2e7db54a419..145d5b0230d 100644 --- a/src/organization/delta/index.ts +++ b/src/organization/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: DirectoryObject[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/organization/getAvailableExtensionProperties/index.ts b/src/organization/getAvailableExtensionProperties/index.ts index cf220038361..7800d3c8b0a 100644 --- a/src/organization/getAvailableExtensionProperties/index.ts +++ b/src/organization/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/organization/getByIds/getByIdsPostRequestBody.ts b/src/organization/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/organization/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/organization/getByIds/index.ts b/src/organization/getByIds/index.ts index 16fb2d7d4e3..49172d3c7dd 100644 --- a/src/organization/getByIds/index.ts +++ b/src/organization/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/organization/index.ts b/src/organization/index.ts index 5865e4ba922..056a56b860e 100644 --- a/src/organization/index.ts +++ b/src/organization/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrganizationCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type OrganizationCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createOrganizationFromDiscriminatorValue, deserializeIntoOrganization, serializeOrganization, type Organization } from '../models/organization'; import { createOrganizationCollectionResponseFromDiscriminatorValue } from '../models/organizationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { OrganizationItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { OrganizationItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OrganizationRequestBuilderGetQueryParameters { @@ -102,10 +102,10 @@ export class OrganizationRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/organization{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * List properties and relationships of the organization objects. + * Retrieve a list of organization objects. There's only one organization object in the collection. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of OrganizationCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-organization-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/organization-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -134,7 +134,7 @@ export class OrganizationRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createOrganizationFromDiscriminatorValue, errorMapping); }; /** - * List properties and relationships of the organization objects. + * Retrieve a list of organization objects. There's only one organization object in the collection. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/organization/item/branding/backgroundImage/index.ts b/src/organization/item/branding/backgroundImage/index.ts index 5be1f2c00eb..d5097264b57 100644 --- a/src/organization/item/branding/backgroundImage/index.ts +++ b/src/organization/item/branding/backgroundImage/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/bannerLogo/index.ts b/src/organization/item/branding/bannerLogo/index.ts index 992a2289b79..c0b15661205 100644 --- a/src/organization/item/branding/bannerLogo/index.ts +++ b/src/organization/item/branding/bannerLogo/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/customCSS/index.ts b/src/organization/item/branding/customCSS/index.ts index b8ea28dcf03..1251b23f9be 100644 --- a/src/organization/item/branding/customCSS/index.ts +++ b/src/organization/item/branding/customCSS/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/favicon/index.ts b/src/organization/item/branding/favicon/index.ts index 042aeb0483f..4479424ecf4 100644 --- a/src/organization/item/branding/favicon/index.ts +++ b/src/organization/item/branding/favicon/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/headerLogo/index.ts b/src/organization/item/branding/headerLogo/index.ts index 1383697e1fc..2d3afb0c6cb 100644 --- a/src/organization/item/branding/headerLogo/index.ts +++ b/src/organization/item/branding/headerLogo/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/index.ts b/src/organization/item/branding/index.ts index 595fb050f04..d7e3b826ade 100644 --- a/src/organization/item/branding/index.ts +++ b/src/organization/item/branding/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOrganizationalBrandingFromDiscriminatorValue, deserializeIntoOrganizationalBranding, serializeOrganizationalBranding, type OrganizationalBranding } from '../../../models/organizationalBranding'; -import { BackgroundImageRequestBuilder } from './backgroundImage/'; -import { BannerLogoRequestBuilder } from './bannerLogo/'; -import { CustomCSSRequestBuilder } from './customCSS/'; -import { FaviconRequestBuilder } from './favicon/'; -import { HeaderLogoRequestBuilder } from './headerLogo/'; -import { LocalizationsRequestBuilder } from './localizations/'; -import { SquareLogoRequestBuilder } from './squareLogo/'; -import { SquareLogoDarkRequestBuilder } from './squareLogoDark/'; +import { BackgroundImageRequestBuilder } from './backgroundImage'; +import { BannerLogoRequestBuilder } from './bannerLogo'; +import { CustomCSSRequestBuilder } from './customCSS'; +import { FaviconRequestBuilder } from './favicon'; +import { HeaderLogoRequestBuilder } from './headerLogo'; +import { LocalizationsRequestBuilder } from './localizations'; +import { SquareLogoRequestBuilder } from './squareLogo'; +import { SquareLogoDarkRequestBuilder } from './squareLogoDark'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BrandingRequestBuilderGetQueryParameters { diff --git a/src/organization/item/branding/localizations/count/index.ts b/src/organization/item/branding/localizations/count/index.ts index e6ec8fc25c3..e9365ce1805 100644 --- a/src/organization/item/branding/localizations/count/index.ts +++ b/src/organization/item/branding/localizations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/localizations/index.ts b/src/organization/item/branding/localizations/index.ts index 658441d7368..44d65a5fd67 100644 --- a/src/organization/item/branding/localizations/index.ts +++ b/src/organization/item/branding/localizations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrganizationalBrandingLocalizationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OrganizationalBrandingLocalizationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOrganizationalBrandingLocalizationFromDiscriminatorValue, deserializeIntoOrganizationalBrandingLocalization, serializeOrganizationalBrandingLocalization, type OrganizationalBrandingLocalization } from '../../../../models/organizationalBrandingLocalization'; import { createOrganizationalBrandingLocalizationCollectionResponseFromDiscriminatorValue } from '../../../../models/organizationalBrandingLocalizationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OrganizationalBrandingLocalizationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OrganizationalBrandingLocalizationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LocalizationsRequestBuilderGetQueryParameters { diff --git a/src/organization/item/branding/localizations/item/backgroundImage/index.ts b/src/organization/item/branding/localizations/item/backgroundImage/index.ts index d3939bb6bc6..3a659a65517 100644 --- a/src/organization/item/branding/localizations/item/backgroundImage/index.ts +++ b/src/organization/item/branding/localizations/item/backgroundImage/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/localizations/item/bannerLogo/index.ts b/src/organization/item/branding/localizations/item/bannerLogo/index.ts index 5f59774f5c5..dfc49352e06 100644 --- a/src/organization/item/branding/localizations/item/bannerLogo/index.ts +++ b/src/organization/item/branding/localizations/item/bannerLogo/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/localizations/item/customCSS/index.ts b/src/organization/item/branding/localizations/item/customCSS/index.ts index b39b1724702..55e4ac3f98a 100644 --- a/src/organization/item/branding/localizations/item/customCSS/index.ts +++ b/src/organization/item/branding/localizations/item/customCSS/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/localizations/item/favicon/index.ts b/src/organization/item/branding/localizations/item/favicon/index.ts index b3a80c2088a..43ce53d710e 100644 --- a/src/organization/item/branding/localizations/item/favicon/index.ts +++ b/src/organization/item/branding/localizations/item/favicon/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/localizations/item/headerLogo/index.ts b/src/organization/item/branding/localizations/item/headerLogo/index.ts index 41e1bfdbe64..7bdec773493 100644 --- a/src/organization/item/branding/localizations/item/headerLogo/index.ts +++ b/src/organization/item/branding/localizations/item/headerLogo/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/localizations/item/index.ts b/src/organization/item/branding/localizations/item/index.ts index 8799f934e46..1e9f6be21e5 100644 --- a/src/organization/item/branding/localizations/item/index.ts +++ b/src/organization/item/branding/localizations/item/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrganizationalBrandingLocalizationFromDiscriminatorValue, deserializeIntoOrganizationalBrandingLocalization, serializeOrganizationalBrandingLocalization, type OrganizationalBrandingLocalization } from '../../../../../models/organizationalBrandingLocalization'; -import { BackgroundImageRequestBuilder } from './backgroundImage/'; -import { BannerLogoRequestBuilder } from './bannerLogo/'; -import { CustomCSSRequestBuilder } from './customCSS/'; -import { FaviconRequestBuilder } from './favicon/'; -import { HeaderLogoRequestBuilder } from './headerLogo/'; -import { SquareLogoRequestBuilder } from './squareLogo/'; -import { SquareLogoDarkRequestBuilder } from './squareLogoDark/'; +import { BackgroundImageRequestBuilder } from './backgroundImage'; +import { BannerLogoRequestBuilder } from './bannerLogo'; +import { CustomCSSRequestBuilder } from './customCSS'; +import { FaviconRequestBuilder } from './favicon'; +import { HeaderLogoRequestBuilder } from './headerLogo'; +import { SquareLogoRequestBuilder } from './squareLogo'; +import { SquareLogoDarkRequestBuilder } from './squareLogoDark'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OrganizationalBrandingLocalizationItemRequestBuilderGetQueryParameters { diff --git a/src/organization/item/branding/localizations/item/squareLogo/index.ts b/src/organization/item/branding/localizations/item/squareLogo/index.ts index 361b700f2be..968579f32bb 100644 --- a/src/organization/item/branding/localizations/item/squareLogo/index.ts +++ b/src/organization/item/branding/localizations/item/squareLogo/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/localizations/item/squareLogoDark/index.ts b/src/organization/item/branding/localizations/item/squareLogoDark/index.ts index c134ab20cc5..bafd7e7e81c 100644 --- a/src/organization/item/branding/localizations/item/squareLogoDark/index.ts +++ b/src/organization/item/branding/localizations/item/squareLogoDark/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/squareLogo/index.ts b/src/organization/item/branding/squareLogo/index.ts index 95664cb7187..6fe3d9fe3ea 100644 --- a/src/organization/item/branding/squareLogo/index.ts +++ b/src/organization/item/branding/squareLogo/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/branding/squareLogoDark/index.ts b/src/organization/item/branding/squareLogoDark/index.ts index a79cf4f572b..e8c180903c5 100644 --- a/src/organization/item/branding/squareLogoDark/index.ts +++ b/src/organization/item/branding/squareLogoDark/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/certificateBasedAuthConfiguration/count/index.ts b/src/organization/item/certificateBasedAuthConfiguration/count/index.ts index 9058f61b756..6e1d9b8ed1a 100644 --- a/src/organization/item/certificateBasedAuthConfiguration/count/index.ts +++ b/src/organization/item/certificateBasedAuthConfiguration/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/certificateBasedAuthConfiguration/index.ts b/src/organization/item/certificateBasedAuthConfiguration/index.ts index d16511e0fb5..1a0629cfa83 100644 --- a/src/organization/item/certificateBasedAuthConfiguration/index.ts +++ b/src/organization/item/certificateBasedAuthConfiguration/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CertificateBasedAuthConfigurationCollectionResponse } from '../../../models/'; +import { type CertificateBasedAuthConfigurationCollectionResponse } from '../../../models'; import { createCertificateBasedAuthConfigurationFromDiscriminatorValue, deserializeIntoCertificateBasedAuthConfiguration, serializeCertificateBasedAuthConfiguration, type CertificateBasedAuthConfiguration } from '../../../models/certificateBasedAuthConfiguration'; import { createCertificateBasedAuthConfigurationCollectionResponseFromDiscriminatorValue } from '../../../models/certificateBasedAuthConfigurationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CertificateBasedAuthConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CertificateBasedAuthConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CertificateBasedAuthConfigurationRequestBuilderGetQueryParameters { diff --git a/src/organization/item/certificateBasedAuthConfiguration/item/index.ts b/src/organization/item/certificateBasedAuthConfiguration/item/index.ts index 0bf58d1902a..1fdf64500c4 100644 --- a/src/organization/item/certificateBasedAuthConfiguration/item/index.ts +++ b/src/organization/item/certificateBasedAuthConfiguration/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CertificateBasedAuthConfiguration } from '../../../../models/'; +import { type CertificateBasedAuthConfiguration } from '../../../../models'; import { createCertificateBasedAuthConfigurationFromDiscriminatorValue } from '../../../../models/certificateBasedAuthConfiguration'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/organization/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/organization/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/organization/item/checkMemberGroups/index.ts b/src/organization/item/checkMemberGroups/index.ts index d07e285c1ce..dcf9cd58809 100644 --- a/src/organization/item/checkMemberGroups/index.ts +++ b/src/organization/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/{organization%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/organization/item/checkMemberObjects/index.ts b/src/organization/item/checkMemberObjects/index.ts index 38a297ac554..d53883127a7 100644 --- a/src/organization/item/checkMemberObjects/index.ts +++ b/src/organization/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/{organization%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/organization/item/extensions/count/index.ts b/src/organization/item/extensions/count/index.ts index 1d92b785ec1..d6a3cfc6a2e 100644 --- a/src/organization/item/extensions/count/index.ts +++ b/src/organization/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/extensions/index.ts b/src/organization/item/extensions/index.ts index fe88b8fe601..15ba0c42382 100644 --- a/src/organization/item/extensions/index.ts +++ b/src/organization/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../models/'; +import { type ExtensionCollectionResponse } from '../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/organization/item/extensions/item/index.ts b/src/organization/item/extensions/item/index.ts index 317ec782294..8773c5e8d88 100644 --- a/src/organization/item/extensions/item/index.ts +++ b/src/organization/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../models/extension'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/organization/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/organization/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/organization/item/getMemberGroups/index.ts b/src/organization/item/getMemberGroups/index.ts index 1d9be5f3697..e7344ba5741 100644 --- a/src/organization/item/getMemberGroups/index.ts +++ b/src/organization/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/{organization%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/organization/item/getMemberObjects/index.ts b/src/organization/item/getMemberObjects/index.ts index 7a19ad77c4f..1d90b3647dc 100644 --- a/src/organization/item/getMemberObjects/index.ts +++ b/src/organization/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/{organization%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/organization/item/index.ts b/src/organization/item/index.ts index 4748a2e35df..16a90340937 100644 --- a/src/organization/item/index.ts +++ b/src/organization/item/index.ts @@ -1,18 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createOrganizationFromDiscriminatorValue, deserializeIntoOrganization, serializeOrganization, type Organization } from '../../models/organization'; -import { BrandingRequestBuilder } from './branding/'; -import { CertificateBasedAuthConfigurationRequestBuilder } from './certificateBasedAuthConfiguration/'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { RestoreRequestBuilder } from './restore/'; -import { SetMobileDeviceManagementAuthorityRequestBuilder } from './setMobileDeviceManagementAuthority/'; +import { BrandingRequestBuilder } from './branding'; +import { CertificateBasedAuthConfigurationRequestBuilder } from './certificateBasedAuthConfiguration'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { ExtensionsRequestBuilder } from './extensions'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { RestoreRequestBuilder } from './restore'; +import { SetMobileDeviceManagementAuthorityRequestBuilder } from './setMobileDeviceManagementAuthority'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OrganizationItemRequestBuilderGetQueryParameters { @@ -106,10 +106,10 @@ export class OrganizationItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Organization - * @see {@link https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-organization-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -150,7 +150,7 @@ export class OrganizationItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + * Read properties and relationships of the organization object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/organization/item/restore/index.ts b/src/organization/item/restore/index.ts index a44765a4d57..7bd697efff4 100644 --- a/src/organization/item/restore/index.ts +++ b/src/organization/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/organization/item/setMobileDeviceManagementAuthority/index.ts b/src/organization/item/setMobileDeviceManagementAuthority/index.ts index d4fdb1a7762..53b50615d26 100644 --- a/src/organization/item/setMobileDeviceManagementAuthority/index.ts +++ b/src/organization/item/setMobileDeviceManagementAuthority/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSetMobileDeviceManagementAuthorityPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,54 +26,5 @@ export interface SetMobileDeviceManagementAuthorityPostResponse extends Addition */ value?: number; } -/** - * Provides operations to call the setMobileDeviceManagementAuthority method. - */ -export class SetMobileDeviceManagementAuthorityRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SetMobileDeviceManagementAuthorityRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/{organization%2Did}/setMobileDeviceManagementAuthority"); - }; - /** - * Set mobile device management authority - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of SetMobileDeviceManagementAuthorityPostResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-organization-setmobiledevicemanagementauthority?view=graph-rest-1.0|Find more info here} - */ - public post(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createSetMobileDeviceManagementAuthorityPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Set mobile device management authority - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a setMobileDeviceManagementAuthorityRequestBuilder - */ - public withUrl(rawUrl: string) : SetMobileDeviceManagementAuthorityRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SetMobileDeviceManagementAuthorityRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/organization/validateProperties/index.ts b/src/organization/validateProperties/index.ts index 0b178875245..3c9a114e085 100644 --- a/src/organization/validateProperties/index.ts +++ b/src/organization/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/organization/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/permissionGrants/delta/index.ts b/src/permissionGrants/delta/index.ts index d2ffaf077d4..145d5b0230d 100644 --- a/src/permissionGrants/delta/index.ts +++ b/src/permissionGrants/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: DirectoryObject[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/permissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/permissionGrants/getAvailableExtensionProperties/index.ts b/src/permissionGrants/getAvailableExtensionProperties/index.ts index c757ac85486..7800d3c8b0a 100644 --- a/src/permissionGrants/getAvailableExtensionProperties/index.ts +++ b/src/permissionGrants/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/permissionGrants/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/permissionGrants/getByIds/getByIdsPostRequestBody.ts b/src/permissionGrants/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/permissionGrants/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/permissionGrants/getByIds/index.ts b/src/permissionGrants/getByIds/index.ts index 530815a16c7..49172d3c7dd 100644 --- a/src/permissionGrants/getByIds/index.ts +++ b/src/permissionGrants/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/permissionGrants/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/permissionGrants/index.ts b/src/permissionGrants/index.ts index 70a21c90f45..9452a4adcfb 100644 --- a/src/permissionGrants/index.ts +++ b/src/permissionGrants/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ResourceSpecificPermissionGrantCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ResourceSpecificPermissionGrantCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../models/resourceSpecificPermissionGrant'; import { createResourceSpecificPermissionGrantCollectionResponseFromDiscriminatorValue } from '../models/resourceSpecificPermissionGrantCollectionResponse'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/permissionGrants/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/permissionGrants/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/permissionGrants/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/permissionGrants/item/checkMemberGroups/index.ts b/src/permissionGrants/item/checkMemberGroups/index.ts index 8b049d8625b..dcf9cd58809 100644 --- a/src/permissionGrants/item/checkMemberGroups/index.ts +++ b/src/permissionGrants/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/permissionGrants/item/checkMemberObjects/index.ts b/src/permissionGrants/item/checkMemberObjects/index.ts index c2d6e7f6dd6..d53883127a7 100644 --- a/src/permissionGrants/item/checkMemberObjects/index.ts +++ b/src/permissionGrants/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/permissionGrants/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/permissionGrants/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/permissionGrants/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/permissionGrants/item/getMemberGroups/index.ts b/src/permissionGrants/item/getMemberGroups/index.ts index ec5fb02fcc3..e7344ba5741 100644 --- a/src/permissionGrants/item/getMemberGroups/index.ts +++ b/src/permissionGrants/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/permissionGrants/item/getMemberObjects/index.ts b/src/permissionGrants/item/getMemberObjects/index.ts index bcef1eb92d8..1d90b3647dc 100644 --- a/src/permissionGrants/item/getMemberObjects/index.ts +++ b/src/permissionGrants/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/permissionGrants/item/index.ts b/src/permissionGrants/item/index.ts index 92caa4651af..26b0bd69bd0 100644 --- a/src/permissionGrants/item/index.ts +++ b/src/permissionGrants/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../models/resourceSpecificPermissionGrant'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { RestoreRequestBuilder } from './restore/'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters { diff --git a/src/permissionGrants/item/restore/index.ts b/src/permissionGrants/item/restore/index.ts index 9c64519fe35..d5bd2a406bd 100644 --- a/src/permissionGrants/item/restore/index.ts +++ b/src/permissionGrants/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/permissionGrants/validateProperties/index.ts b/src/permissionGrants/validateProperties/index.ts index 0bc84bb65d0..3c9a114e085 100644 --- a/src/permissionGrants/validateProperties/index.ts +++ b/src/permissionGrants/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/permissionGrants/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/places/count/index.ts b/src/places/count/index.ts index 64d154c3428..f3de6f93418 100644 --- a/src/places/count/index.ts +++ b/src/places/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/places/graphRoom/count/index.ts b/src/places/graphRoom/count/index.ts index f6c5dd7e639..d04714312cd 100644 --- a/src/places/graphRoom/count/index.ts +++ b/src/places/graphRoom/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/places/graphRoom/index.ts b/src/places/graphRoom/index.ts index 6a8e47b1396..e420dbe5e42 100644 --- a/src/places/graphRoom/index.ts +++ b/src/places/graphRoom/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RoomCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type RoomCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRoomCollectionResponseFromDiscriminatorValue } from '../../models/roomCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphRoomRequestBuilderGetQueryParameters { diff --git a/src/places/graphRoomList/count/index.ts b/src/places/graphRoomList/count/index.ts index 05110fe6509..36ebc8a8279 100644 --- a/src/places/graphRoomList/count/index.ts +++ b/src/places/graphRoomList/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/places/graphRoomList/index.ts b/src/places/graphRoomList/index.ts index 02a717923d1..a2980076c2f 100644 --- a/src/places/graphRoomList/index.ts +++ b/src/places/graphRoomList/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RoomListCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type RoomListCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRoomListCollectionResponseFromDiscriminatorValue } from '../../models/roomListCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphRoomListRequestBuilderGetQueryParameters { diff --git a/src/places/index.ts b/src/places/index.ts index 9aaa092b228..ffa6dae3204 100644 --- a/src/places/index.ts +++ b/src/places/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { CountRequestBuilder } from './count/'; -import { GraphRoomRequestBuilder } from './graphRoom/'; -import { GraphRoomListRequestBuilder } from './graphRoomList/'; -import { PlaceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphRoomRequestBuilder } from './graphRoom'; +import { GraphRoomListRequestBuilder } from './graphRoomList'; +import { PlaceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/places/item/graphRoom/index.ts b/src/places/item/graphRoom/index.ts index c8155bb488e..5aecc5463ee 100644 --- a/src/places/item/graphRoom/index.ts +++ b/src/places/item/graphRoom/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Room } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type Room } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRoomFromDiscriminatorValue } from '../../../models/room'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/places/item/graphRoomList/index.ts b/src/places/item/graphRoomList/index.ts index 364260857ae..9d795280cff 100644 --- a/src/places/item/graphRoomList/index.ts +++ b/src/places/item/graphRoomList/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RoomList } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type RoomList } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRoomListFromDiscriminatorValue } from '../../../models/roomList'; -import { RoomsRequestBuilder } from './rooms/'; +import { RoomsRequestBuilder } from './rooms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphRoomListRequestBuilderGetQueryParameters { diff --git a/src/places/item/graphRoomList/rooms/count/index.ts b/src/places/item/graphRoomList/rooms/count/index.ts index 9752f7af954..cc5ea248eab 100644 --- a/src/places/item/graphRoomList/rooms/count/index.ts +++ b/src/places/item/graphRoomList/rooms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/places/item/graphRoomList/rooms/index.ts b/src/places/item/graphRoomList/rooms/index.ts index 23e127bcfdb..db6ef70915e 100644 --- a/src/places/item/graphRoomList/rooms/index.ts +++ b/src/places/item/graphRoomList/rooms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RoomCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type RoomCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRoomFromDiscriminatorValue, deserializeIntoRoom, serializeRoom, type Room } from '../../../../models/room'; import { createRoomCollectionResponseFromDiscriminatorValue } from '../../../../models/roomCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RoomItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RoomItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoomsRequestBuilderGetQueryParameters { diff --git a/src/places/item/graphRoomList/rooms/item/index.ts b/src/places/item/graphRoomList/rooms/item/index.ts index 83870159f4d..231dc122c54 100644 --- a/src/places/item/graphRoomList/rooms/item/index.ts +++ b/src/places/item/graphRoomList/rooms/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createRoomFromDiscriminatorValue, deserializeIntoRoom, serializeRoom, type Room } from '../../../../../models/room'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/places/item/index.ts b/src/places/item/index.ts index 4a6dcf8d7a6..1a1314058b1 100644 --- a/src/places/item/index.ts +++ b/src/places/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPlaceFromDiscriminatorValue, deserializeIntoPlace, serializePlace, type Place } from '../../models/place'; -import { GraphRoomRequestBuilder } from './graphRoom/'; -import { GraphRoomListRequestBuilder } from './graphRoomList/'; +import { GraphRoomRequestBuilder } from './graphRoom'; +import { GraphRoomListRequestBuilder } from './graphRoomList'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; /** diff --git a/src/planner/buckets/count/index.ts b/src/planner/buckets/count/index.ts index 1dde416b989..99e18a2a6f1 100644 --- a/src/planner/buckets/count/index.ts +++ b/src/planner/buckets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/buckets/index.ts b/src/planner/buckets/index.ts index a0d3583b9b2..56e02c135d7 100644 --- a/src/planner/buckets/index.ts +++ b/src/planner/buckets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerBucketCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PlannerBucketCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPlannerBucketFromDiscriminatorValue, deserializeIntoPlannerBucket, serializePlannerBucket, type PlannerBucket } from '../../models/plannerBucket'; import { createPlannerBucketCollectionResponseFromDiscriminatorValue } from '../../models/plannerBucketCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerBucketItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerBucketItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BucketsRequestBuilderGetQueryParameters { diff --git a/src/planner/buckets/item/index.ts b/src/planner/buckets/item/index.ts index 8dfb2b2842d..e5579280e45 100644 --- a/src/planner/buckets/item/index.ts +++ b/src/planner/buckets/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPlannerBucketFromDiscriminatorValue, deserializeIntoPlannerBucket, serializePlannerBucket, type PlannerBucket } from '../../../models/plannerBucket'; -import { TasksRequestBuilder } from './tasks/'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerBucketItemRequestBuilderGetQueryParameters { diff --git a/src/planner/buckets/item/tasks/count/index.ts b/src/planner/buckets/item/tasks/count/index.ts index 5bdb4b2ba05..84325d60ceb 100644 --- a/src/planner/buckets/item/tasks/count/index.ts +++ b/src/planner/buckets/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/buckets/item/tasks/index.ts b/src/planner/buckets/item/tasks/index.ts index ed45245050d..361847478f0 100644 --- a/src/planner/buckets/item/tasks/index.ts +++ b/src/planner/buckets/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/planner/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts b/src/planner/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts index d0bbd03d8c2..280bbce3fd2 100644 --- a/src/planner/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/planner/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts b/src/planner/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts index 559140b530f..c8ed99d5624 100644 --- a/src/planner/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/planner/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/buckets/item/tasks/item/details/index.ts b/src/planner/buckets/item/tasks/item/details/index.ts index 0d20be72c38..c463a2b8a53 100644 --- a/src/planner/buckets/item/tasks/item/details/index.ts +++ b/src/planner/buckets/item/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/buckets/item/tasks/item/index.ts b/src/planner/buckets/item/tasks/item/index.ts index ee6bdc07789..9bd0c4feada 100644 --- a/src/planner/buckets/item/tasks/item/index.ts +++ b/src/planner/buckets/item/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/planner/buckets/item/tasks/item/progressTaskBoardFormat/index.ts b/src/planner/buckets/item/tasks/item/progressTaskBoardFormat/index.ts index 97328d2b362..18cd9edb254 100644 --- a/src/planner/buckets/item/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/planner/buckets/item/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/index.ts b/src/planner/index.ts index 380cb4aefba..000f2fc6ab4 100644 --- a/src/planner/index.ts +++ b/src/planner/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createPlannerFromDiscriminatorValue, deserializeIntoPlanner, serializePlanner, type Planner } from '../models/planner'; -import { BucketsRequestBuilder } from './buckets/'; -import { PlansRequestBuilder } from './plans/'; -import { TasksRequestBuilder } from './tasks/'; +import { BucketsRequestBuilder } from './buckets'; +import { PlansRequestBuilder } from './plans'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/count/index.ts b/src/planner/plans/count/index.ts index f279fc95991..3f7f8860e1c 100644 --- a/src/planner/plans/count/index.ts +++ b/src/planner/plans/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/index.ts b/src/planner/plans/index.ts index 8719d1e108e..041601e6ba7 100644 --- a/src/planner/plans/index.ts +++ b/src/planner/plans/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerPlanCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PlannerPlanCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPlannerPlanFromDiscriminatorValue, deserializeIntoPlannerPlan, serializePlannerPlan, type PlannerPlan } from '../../models/plannerPlan'; import { createPlannerPlanCollectionResponseFromDiscriminatorValue } from '../../models/plannerPlanCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerPlanItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerPlanItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlansRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/item/buckets/count/index.ts b/src/planner/plans/item/buckets/count/index.ts index a2f952a41d4..e389f769a1d 100644 --- a/src/planner/plans/item/buckets/count/index.ts +++ b/src/planner/plans/item/buckets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/buckets/index.ts b/src/planner/plans/item/buckets/index.ts index cf5a918c474..422f2fc0001 100644 --- a/src/planner/plans/item/buckets/index.ts +++ b/src/planner/plans/item/buckets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerBucketCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PlannerBucketCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerBucketFromDiscriminatorValue, deserializeIntoPlannerBucket, serializePlannerBucket, type PlannerBucket } from '../../../../models/plannerBucket'; import { createPlannerBucketCollectionResponseFromDiscriminatorValue } from '../../../../models/plannerBucketCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerBucketItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerBucketItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BucketsRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/item/buckets/item/index.ts b/src/planner/plans/item/buckets/item/index.ts index 77844854065..906e2a83bfe 100644 --- a/src/planner/plans/item/buckets/item/index.ts +++ b/src/planner/plans/item/buckets/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketFromDiscriminatorValue, deserializeIntoPlannerBucket, serializePlannerBucket, type PlannerBucket } from '../../../../../models/plannerBucket'; -import { TasksRequestBuilder } from './tasks/'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerBucketItemRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/item/buckets/item/tasks/count/index.ts b/src/planner/plans/item/buckets/item/tasks/count/index.ts index d3c4a9df618..4ffa544e261 100644 --- a/src/planner/plans/item/buckets/item/tasks/count/index.ts +++ b/src/planner/plans/item/buckets/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/buckets/item/tasks/index.ts b/src/planner/plans/item/buckets/item/tasks/index.ts index 62f9fd100db..700d4af8300 100644 --- a/src/planner/plans/item/buckets/item/tasks/index.ts +++ b/src/planner/plans/item/buckets/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts b/src/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts index 4cbe9205c8e..3a859892004 100644 --- a/src/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts b/src/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts index baee9f0d3b1..46f5fa5d158 100644 --- a/src/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/buckets/item/tasks/item/details/index.ts b/src/planner/plans/item/buckets/item/tasks/item/details/index.ts index 6de7c3a3384..8872652241a 100644 --- a/src/planner/plans/item/buckets/item/tasks/item/details/index.ts +++ b/src/planner/plans/item/buckets/item/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/buckets/item/tasks/item/index.ts b/src/planner/plans/item/buckets/item/tasks/item/index.ts index 30b9455b209..0f83aa8468e 100644 --- a/src/planner/plans/item/buckets/item/tasks/item/index.ts +++ b/src/planner/plans/item/buckets/item/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts b/src/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts index 535e4e63b6a..671f6438700 100644 --- a/src/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/details/index.ts b/src/planner/plans/item/details/index.ts index 78674dcb370..6196711e486 100644 --- a/src/planner/plans/item/details/index.ts +++ b/src/planner/plans/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerPlanDetailsFromDiscriminatorValue, deserializeIntoPlannerPlanDetails, serializePlannerPlanDetails, type PlannerPlanDetails } from '../../../../models/plannerPlanDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/index.ts b/src/planner/plans/item/index.ts index 664fb3974af..7cf32b49a93 100644 --- a/src/planner/plans/item/index.ts +++ b/src/planner/plans/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPlannerPlanFromDiscriminatorValue, deserializeIntoPlannerPlan, serializePlannerPlan, type PlannerPlan } from '../../../models/plannerPlan'; -import { BucketsRequestBuilder } from './buckets/'; -import { DetailsRequestBuilder } from './details/'; -import { TasksRequestBuilder } from './tasks/'; +import { BucketsRequestBuilder } from './buckets'; +import { DetailsRequestBuilder } from './details'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerPlanItemRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/item/tasks/count/index.ts b/src/planner/plans/item/tasks/count/index.ts index 7a1a4b7fa66..b7bbf426a1c 100644 --- a/src/planner/plans/item/tasks/count/index.ts +++ b/src/planner/plans/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/tasks/index.ts b/src/planner/plans/item/tasks/index.ts index 5b42612c1dd..13bfba5b37a 100644 --- a/src/planner/plans/item/tasks/index.ts +++ b/src/planner/plans/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts b/src/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts index cf13bc35794..f7ea74e8387 100644 --- a/src/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts b/src/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts index 2a56b1e2f65..18818338057 100644 --- a/src/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/tasks/item/details/index.ts b/src/planner/plans/item/tasks/item/details/index.ts index 491f8784348..c6225a1b4d3 100644 --- a/src/planner/plans/item/tasks/item/details/index.ts +++ b/src/planner/plans/item/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/plans/item/tasks/item/index.ts b/src/planner/plans/item/tasks/item/index.ts index a40904ce027..a8d0b90be44 100644 --- a/src/planner/plans/item/tasks/item/index.ts +++ b/src/planner/plans/item/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts b/src/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts index 748598799fb..9b1106330c4 100644 --- a/src/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/tasks/count/index.ts b/src/planner/tasks/count/index.ts index 2606fb74d05..dd92eaf3049 100644 --- a/src/planner/tasks/count/index.ts +++ b/src/planner/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/tasks/index.ts b/src/planner/tasks/index.ts index 85f424aa7e1..b4a5bcdd129 100644 --- a/src/planner/tasks/index.ts +++ b/src/planner/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/planner/tasks/item/assignedToTaskBoardFormat/index.ts b/src/planner/tasks/item/assignedToTaskBoardFormat/index.ts index fded7584d82..ec25effe660 100644 --- a/src/planner/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/planner/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/tasks/item/bucketTaskBoardFormat/index.ts b/src/planner/tasks/item/bucketTaskBoardFormat/index.ts index 368b40f1406..0c9dc2d6180 100644 --- a/src/planner/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/planner/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/tasks/item/details/index.ts b/src/planner/tasks/item/details/index.ts index ddc84a3802b..749ff6316b4 100644 --- a/src/planner/tasks/item/details/index.ts +++ b/src/planner/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/planner/tasks/item/index.ts b/src/planner/tasks/item/index.ts index ad22f9a36e3..887670333aa 100644 --- a/src/planner/tasks/item/index.ts +++ b/src/planner/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/planner/tasks/item/progressTaskBoardFormat/index.ts b/src/planner/tasks/item/progressTaskBoardFormat/index.ts index 5050b484241..bda0a94b781 100644 --- a/src/planner/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/planner/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/activityBasedTimeoutPolicies/count/index.ts b/src/policies/activityBasedTimeoutPolicies/count/index.ts index 7b496a05bc6..f9923a26258 100644 --- a/src/policies/activityBasedTimeoutPolicies/count/index.ts +++ b/src/policies/activityBasedTimeoutPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/activityBasedTimeoutPolicies/index.ts b/src/policies/activityBasedTimeoutPolicies/index.ts index 50e7b2f3898..9b6251e295d 100644 --- a/src/policies/activityBasedTimeoutPolicies/index.ts +++ b/src/policies/activityBasedTimeoutPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ActivityBasedTimeoutPolicyCollectionResponse } from '../../models/'; +import { type ActivityBasedTimeoutPolicyCollectionResponse } from '../../models'; import { createActivityBasedTimeoutPolicyFromDiscriminatorValue, deserializeIntoActivityBasedTimeoutPolicy, serializeActivityBasedTimeoutPolicy, type ActivityBasedTimeoutPolicy } from '../../models/activityBasedTimeoutPolicy'; import { createActivityBasedTimeoutPolicyCollectionResponseFromDiscriminatorValue } from '../../models/activityBasedTimeoutPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ActivityBasedTimeoutPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ActivityBasedTimeoutPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivityBasedTimeoutPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/activityBasedTimeoutPolicies/item/appliesTo/count/index.ts b/src/policies/activityBasedTimeoutPolicies/item/appliesTo/count/index.ts index 9ad382a235a..f179e23a3c8 100644 --- a/src/policies/activityBasedTimeoutPolicies/item/appliesTo/count/index.ts +++ b/src/policies/activityBasedTimeoutPolicies/item/appliesTo/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/activityBasedTimeoutPolicies/item/appliesTo/index.ts b/src/policies/activityBasedTimeoutPolicies/item/appliesTo/index.ts index 15f7c49470a..0d51d9e4827 100644 --- a/src/policies/activityBasedTimeoutPolicies/item/appliesTo/index.ts +++ b/src/policies/activityBasedTimeoutPolicies/item/appliesTo/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppliesToRequestBuilderGetQueryParameters { diff --git a/src/policies/activityBasedTimeoutPolicies/item/appliesTo/item/index.ts b/src/policies/activityBasedTimeoutPolicies/item/appliesTo/item/index.ts index a49267cc3e7..fbcb69ae892 100644 --- a/src/policies/activityBasedTimeoutPolicies/item/appliesTo/item/index.ts +++ b/src/policies/activityBasedTimeoutPolicies/item/appliesTo/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/activityBasedTimeoutPolicies/item/index.ts b/src/policies/activityBasedTimeoutPolicies/item/index.ts index 9b82de10af5..639acbbe4b7 100644 --- a/src/policies/activityBasedTimeoutPolicies/item/index.ts +++ b/src/policies/activityBasedTimeoutPolicies/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createActivityBasedTimeoutPolicyFromDiscriminatorValue, deserializeIntoActivityBasedTimeoutPolicy, serializeActivityBasedTimeoutPolicy, type ActivityBasedTimeoutPolicy } from '../../../models/activityBasedTimeoutPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppliesToRequestBuilder } from './appliesTo/'; +import { AppliesToRequestBuilder } from './appliesTo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivityBasedTimeoutPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/adminConsentRequestPolicy/index.ts b/src/policies/adminConsentRequestPolicy/index.ts index 354d5a53bf3..d63d98a3ed1 100644 --- a/src/policies/adminConsentRequestPolicy/index.ts +++ b/src/policies/adminConsentRequestPolicy/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAdminConsentRequestPolicyFromDiscriminatorValue, deserializeIntoAdminConsentRequestPolicy, serializeAdminConsentRequestPolicy, type AdminConsentRequestPolicy } from '../../models/adminConsentRequestPolicy'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/appManagementPolicies/count/index.ts b/src/policies/appManagementPolicies/count/index.ts index 36765a749aa..f538e05f167 100644 --- a/src/policies/appManagementPolicies/count/index.ts +++ b/src/policies/appManagementPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/appManagementPolicies/index.ts b/src/policies/appManagementPolicies/index.ts index 4f8b7003346..522a22738e4 100644 --- a/src/policies/appManagementPolicies/index.ts +++ b/src/policies/appManagementPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppManagementPolicyCollectionResponse } from '../../models/'; +import { type AppManagementPolicyCollectionResponse } from '../../models'; import { createAppManagementPolicyFromDiscriminatorValue, deserializeIntoAppManagementPolicy, serializeAppManagementPolicy, type AppManagementPolicy } from '../../models/appManagementPolicy'; import { createAppManagementPolicyCollectionResponseFromDiscriminatorValue } from '../../models/appManagementPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AppManagementPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AppManagementPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppManagementPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/appManagementPolicies/item/appliesTo/count/index.ts b/src/policies/appManagementPolicies/item/appliesTo/count/index.ts index e705470022d..4db0ef52b21 100644 --- a/src/policies/appManagementPolicies/item/appliesTo/count/index.ts +++ b/src/policies/appManagementPolicies/item/appliesTo/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/appManagementPolicies/item/appliesTo/index.ts b/src/policies/appManagementPolicies/item/appliesTo/index.ts index ca507d90c36..27b7832e74d 100644 --- a/src/policies/appManagementPolicies/item/appliesTo/index.ts +++ b/src/policies/appManagementPolicies/item/appliesTo/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppliesToRequestBuilderGetQueryParameters { diff --git a/src/policies/appManagementPolicies/item/appliesTo/item/index.ts b/src/policies/appManagementPolicies/item/appliesTo/item/index.ts index b9641fdc04d..9c26765ad82 100644 --- a/src/policies/appManagementPolicies/item/appliesTo/item/index.ts +++ b/src/policies/appManagementPolicies/item/appliesTo/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/appManagementPolicies/item/index.ts b/src/policies/appManagementPolicies/item/index.ts index e0535b3735e..148d2d7abce 100644 --- a/src/policies/appManagementPolicies/item/index.ts +++ b/src/policies/appManagementPolicies/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppManagementPolicyFromDiscriminatorValue, deserializeIntoAppManagementPolicy, serializeAppManagementPolicy, type AppManagementPolicy } from '../../../models/appManagementPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppliesToRequestBuilder } from './appliesTo/'; +import { AppliesToRequestBuilder } from './appliesTo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppManagementPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/authenticationFlowsPolicy/index.ts b/src/policies/authenticationFlowsPolicy/index.ts index 6630e862088..b3defcd3eca 100644 --- a/src/policies/authenticationFlowsPolicy/index.ts +++ b/src/policies/authenticationFlowsPolicy/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationFlowsPolicyFromDiscriminatorValue, deserializeIntoAuthenticationFlowsPolicy, serializeAuthenticationFlowsPolicy, type AuthenticationFlowsPolicy } from '../../models/authenticationFlowsPolicy'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/count/index.ts b/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/count/index.ts index 2b2393ce6fc..9046a32c4fe 100644 --- a/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/count/index.ts +++ b/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/index.ts b/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/index.ts index 5fb86357469..f19e182d2f2 100644 --- a/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/index.ts +++ b/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationMethodConfigurationCollectionResponse } from '../../../models/'; +import { type AuthenticationMethodConfigurationCollectionResponse } from '../../../models'; import { createAuthenticationMethodConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationMethodConfiguration, serializeAuthenticationMethodConfiguration, type AuthenticationMethodConfiguration } from '../../../models/authenticationMethodConfiguration'; import { createAuthenticationMethodConfigurationCollectionResponseFromDiscriminatorValue } from '../../../models/authenticationMethodConfigurationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationMethodConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationMethodConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/item/index.ts b/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/item/index.ts index 41153092167..11ab7a7fe5b 100644 --- a/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/item/index.ts +++ b/src/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationMethodConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationMethodConfiguration, serializeAuthenticationMethodConfiguration, type AuthenticationMethodConfiguration } from '../../../../models/authenticationMethodConfiguration'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/authenticationMethodsPolicy/index.ts b/src/policies/authenticationMethodsPolicy/index.ts index 5a7a20e3a68..30c2ac59355 100644 --- a/src/policies/authenticationMethodsPolicy/index.ts +++ b/src/policies/authenticationMethodsPolicy/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationMethodsPolicyFromDiscriminatorValue, deserializeIntoAuthenticationMethodsPolicy, serializeAuthenticationMethodsPolicy, type AuthenticationMethodsPolicy } from '../../models/authenticationMethodsPolicy'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { AuthenticationMethodConfigurationsRequestBuilder } from './authenticationMethodConfigurations/'; +import { AuthenticationMethodConfigurationsRequestBuilder } from './authenticationMethodConfigurations'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationMethodsPolicyRequestBuilderGetQueryParameters { diff --git a/src/policies/authenticationStrengthPolicies/count/index.ts b/src/policies/authenticationStrengthPolicies/count/index.ts index c8886dd8526..7c3984f15f2 100644 --- a/src/policies/authenticationStrengthPolicies/count/index.ts +++ b/src/policies/authenticationStrengthPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/authenticationStrengthPolicies/index.ts b/src/policies/authenticationStrengthPolicies/index.ts index 6a8ac8dc9a7..e39b0841f9e 100644 --- a/src/policies/authenticationStrengthPolicies/index.ts +++ b/src/policies/authenticationStrengthPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationStrengthPolicyCollectionResponse } from '../../models/'; +import { type AuthenticationStrengthPolicyCollectionResponse } from '../../models'; import { createAuthenticationStrengthPolicyFromDiscriminatorValue, deserializeIntoAuthenticationStrengthPolicy, serializeAuthenticationStrengthPolicy, type AuthenticationStrengthPolicy } from '../../models/authenticationStrengthPolicy'; import { createAuthenticationStrengthPolicyCollectionResponseFromDiscriminatorValue } from '../../models/authenticationStrengthPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationStrengthPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationStrengthPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationStrengthPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/count/index.ts b/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/count/index.ts index 470580d8c3f..f37747870c9 100644 --- a/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/count/index.ts +++ b/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/index.ts b/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/index.ts index 72603cd7282..156649a27d4 100644 --- a/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/index.ts +++ b/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationCombinationConfigurationCollectionResponse } from '../../../../models/'; +import { type AuthenticationCombinationConfigurationCollectionResponse } from '../../../../models'; import { createAuthenticationCombinationConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationCombinationConfiguration, serializeAuthenticationCombinationConfiguration, type AuthenticationCombinationConfiguration } from '../../../../models/authenticationCombinationConfiguration'; import { createAuthenticationCombinationConfigurationCollectionResponseFromDiscriminatorValue } from '../../../../models/authenticationCombinationConfigurationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationCombinationConfigurationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationCombinationConfigurationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CombinationConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/item/index.ts b/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/item/index.ts index fe7754fe952..e3f50f608d1 100644 --- a/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/item/index.ts +++ b/src/policies/authenticationStrengthPolicies/item/combinationConfigurations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationCombinationConfigurationFromDiscriminatorValue, deserializeIntoAuthenticationCombinationConfiguration, serializeAuthenticationCombinationConfiguration, type AuthenticationCombinationConfiguration } from '../../../../../models/authenticationCombinationConfiguration'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/authenticationStrengthPolicies/item/index.ts b/src/policies/authenticationStrengthPolicies/item/index.ts index c954f5ab59d..a51a8290410 100644 --- a/src/policies/authenticationStrengthPolicies/item/index.ts +++ b/src/policies/authenticationStrengthPolicies/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationStrengthPolicyFromDiscriminatorValue, deserializeIntoAuthenticationStrengthPolicy, serializeAuthenticationStrengthPolicy, type AuthenticationStrengthPolicy } from '../../../models/authenticationStrengthPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CombinationConfigurationsRequestBuilder } from './combinationConfigurations/'; -import { UpdateAllowedCombinationsRequestBuilder } from './updateAllowedCombinations/'; -import { UsageRequestBuilder } from './usage/'; +import { CombinationConfigurationsRequestBuilder } from './combinationConfigurations'; +import { UpdateAllowedCombinationsRequestBuilder } from './updateAllowedCombinations'; +import { UsageRequestBuilder } from './usage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/authenticationStrengthPolicies/item/updateAllowedCombinations/index.ts b/src/policies/authenticationStrengthPolicies/item/updateAllowedCombinations/index.ts index f58f07cdff7..cc47a405a0c 100644 --- a/src/policies/authenticationStrengthPolicies/item/updateAllowedCombinations/index.ts +++ b/src/policies/authenticationStrengthPolicies/item/updateAllowedCombinations/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { AuthenticationMethodModes } from '../../../../models/authenticationMethodModes'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createUpdateAllowedCombinationsResultFromDiscriminatorValue, deserializeIntoUpdateAllowedCombinationsResult, serializeUpdateAllowedCombinationsResult, type UpdateAllowedCombinationsResult } from '../../../../models/updateAllowedCombinationsResult'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createUpdateAllowedCombinationsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -31,58 +28,5 @@ export interface UpdateAllowedCombinationsPostRequestBody extends AdditionalData */ allowedCombinations?: AuthenticationMethodModes[]; } -/** - * Provides operations to call the updateAllowedCombinations method. - */ -export class UpdateAllowedCombinationsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new UpdateAllowedCombinationsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations"); - }; - /** - * Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UpdateAllowedCombinationsResult - * @see {@link https://learn.microsoft.com/graph/api/authenticationstrengthpolicy-updateallowedcombinations?view=graph-rest-1.0|Find more info here} - */ - public post(body: UpdateAllowedCombinationsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUpdateAllowedCombinationsResultFromDiscriminatorValue, errorMapping); - }; - /** - * Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: UpdateAllowedCombinationsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeUpdateAllowedCombinationsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a updateAllowedCombinationsRequestBuilder - */ - public withUrl(rawUrl: string) : UpdateAllowedCombinationsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new UpdateAllowedCombinationsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/policies/authenticationStrengthPolicies/item/usage/index.ts b/src/policies/authenticationStrengthPolicies/item/usage/index.ts index 32a2b6f6dfe..81546365972 100644 --- a/src/policies/authenticationStrengthPolicies/item/usage/index.ts +++ b/src/policies/authenticationStrengthPolicies/item/usage/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationStrengthUsage } from '../../../../models/'; +import { type AuthenticationStrengthUsage } from '../../../../models'; import { createAuthenticationStrengthUsageFromDiscriminatorValue } from '../../../../models/authenticationStrengthUsage'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/authorizationPolicy/index.ts b/src/policies/authorizationPolicy/index.ts index d5d17c6815d..5ee9346fd75 100644 --- a/src/policies/authorizationPolicy/index.ts +++ b/src/policies/authorizationPolicy/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthorizationPolicyFromDiscriminatorValue, deserializeIntoAuthorizationPolicy, serializeAuthorizationPolicy, type AuthorizationPolicy } from '../../models/authorizationPolicy'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/claimsMappingPolicies/count/index.ts b/src/policies/claimsMappingPolicies/count/index.ts index e2127ac8c2a..1ded38c8425 100644 --- a/src/policies/claimsMappingPolicies/count/index.ts +++ b/src/policies/claimsMappingPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/claimsMappingPolicies/index.ts b/src/policies/claimsMappingPolicies/index.ts index e26af477f53..46541df951c 100644 --- a/src/policies/claimsMappingPolicies/index.ts +++ b/src/policies/claimsMappingPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ClaimsMappingPolicyCollectionResponse } from '../../models/'; +import { type ClaimsMappingPolicyCollectionResponse } from '../../models'; import { createClaimsMappingPolicyFromDiscriminatorValue, deserializeIntoClaimsMappingPolicy, serializeClaimsMappingPolicy, type ClaimsMappingPolicy } from '../../models/claimsMappingPolicy'; import { createClaimsMappingPolicyCollectionResponseFromDiscriminatorValue } from '../../models/claimsMappingPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ClaimsMappingPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ClaimsMappingPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ClaimsMappingPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/claimsMappingPolicies/item/appliesTo/count/index.ts b/src/policies/claimsMappingPolicies/item/appliesTo/count/index.ts index 84ec795f8b3..eaa22f0c288 100644 --- a/src/policies/claimsMappingPolicies/item/appliesTo/count/index.ts +++ b/src/policies/claimsMappingPolicies/item/appliesTo/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/claimsMappingPolicies/item/appliesTo/index.ts b/src/policies/claimsMappingPolicies/item/appliesTo/index.ts index 1969db742c2..35ea6911e30 100644 --- a/src/policies/claimsMappingPolicies/item/appliesTo/index.ts +++ b/src/policies/claimsMappingPolicies/item/appliesTo/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppliesToRequestBuilderGetQueryParameters { diff --git a/src/policies/claimsMappingPolicies/item/appliesTo/item/index.ts b/src/policies/claimsMappingPolicies/item/appliesTo/item/index.ts index ceab6a6e04d..297ac3ba9a3 100644 --- a/src/policies/claimsMappingPolicies/item/appliesTo/item/index.ts +++ b/src/policies/claimsMappingPolicies/item/appliesTo/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/claimsMappingPolicies/item/index.ts b/src/policies/claimsMappingPolicies/item/index.ts index 6de3662ef1b..6908a58de32 100644 --- a/src/policies/claimsMappingPolicies/item/index.ts +++ b/src/policies/claimsMappingPolicies/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createClaimsMappingPolicyFromDiscriminatorValue, deserializeIntoClaimsMappingPolicy, serializeClaimsMappingPolicy, type ClaimsMappingPolicy } from '../../../models/claimsMappingPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppliesToRequestBuilder } from './appliesTo/'; +import { AppliesToRequestBuilder } from './appliesTo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ClaimsMappingPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/conditionalAccessPolicies/count/index.ts b/src/policies/conditionalAccessPolicies/count/index.ts index ca51a0d719e..6f06699bdc8 100644 --- a/src/policies/conditionalAccessPolicies/count/index.ts +++ b/src/policies/conditionalAccessPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/conditionalAccessPolicies/index.ts b/src/policies/conditionalAccessPolicies/index.ts index 39a31f43e36..e9e09feb972 100644 --- a/src/policies/conditionalAccessPolicies/index.ts +++ b/src/policies/conditionalAccessPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConditionalAccessPolicyCollectionResponse } from '../../models/'; +import { type ConditionalAccessPolicyCollectionResponse } from '../../models'; import { createConditionalAccessPolicyFromDiscriminatorValue, deserializeIntoConditionalAccessPolicy, serializeConditionalAccessPolicy, type ConditionalAccessPolicy } from '../../models/conditionalAccessPolicy'; import { createConditionalAccessPolicyCollectionResponseFromDiscriminatorValue } from '../../models/conditionalAccessPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConditionalAccessPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConditionalAccessPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConditionalAccessPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/conditionalAccessPolicies/item/index.ts b/src/policies/conditionalAccessPolicies/item/index.ts index 34065cc980c..27225d37e72 100644 --- a/src/policies/conditionalAccessPolicies/item/index.ts +++ b/src/policies/conditionalAccessPolicies/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConditionalAccessPolicyFromDiscriminatorValue, deserializeIntoConditionalAccessPolicy, serializeConditionalAccessPolicy, type ConditionalAccessPolicy } from '../../../models/conditionalAccessPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/crossTenantAccessPolicy/defaultEscaped/index.ts b/src/policies/crossTenantAccessPolicy/defaultEscaped/index.ts index 48c2ed1f4ce..bd8b492a7ff 100644 --- a/src/policies/crossTenantAccessPolicy/defaultEscaped/index.ts +++ b/src/policies/crossTenantAccessPolicy/defaultEscaped/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCrossTenantAccessPolicyConfigurationDefaultFromDiscriminatorValue, deserializeIntoCrossTenantAccessPolicyConfigurationDefault, serializeCrossTenantAccessPolicyConfigurationDefault, type CrossTenantAccessPolicyConfigurationDefault } from '../../../models/crossTenantAccessPolicyConfigurationDefault'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ResetToSystemDefaultRequestBuilder } from './resetToSystemDefault/'; +import { ResetToSystemDefaultRequestBuilder } from './resetToSystemDefault'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DefaultRequestBuilderGetQueryParameters { diff --git a/src/policies/crossTenantAccessPolicy/defaultEscaped/resetToSystemDefault/index.ts b/src/policies/crossTenantAccessPolicy/defaultEscaped/resetToSystemDefault/index.ts index 3cd6f56e4e6..22050584f21 100644 --- a/src/policies/crossTenantAccessPolicy/defaultEscaped/resetToSystemDefault/index.ts +++ b/src/policies/crossTenantAccessPolicy/defaultEscaped/resetToSystemDefault/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/crossTenantAccessPolicy/index.ts b/src/policies/crossTenantAccessPolicy/index.ts index 468f556bcb1..d0830e696e7 100644 --- a/src/policies/crossTenantAccessPolicy/index.ts +++ b/src/policies/crossTenantAccessPolicy/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createCrossTenantAccessPolicyFromDiscriminatorValue, deserializeIntoCrossTenantAccessPolicy, serializeCrossTenantAccessPolicy, type CrossTenantAccessPolicy } from '../../models/crossTenantAccessPolicy'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { DefaultRequestBuilder } from './defaultEscaped/'; -import { PartnersRequestBuilder } from './partners/'; +import { DefaultRequestBuilder } from './defaultEscaped'; +import { PartnersRequestBuilder } from './partners'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CrossTenantAccessPolicyRequestBuilderGetQueryParameters { diff --git a/src/policies/crossTenantAccessPolicy/partners/count/index.ts b/src/policies/crossTenantAccessPolicy/partners/count/index.ts index 8a2fa3a3dd1..cf1e5dd0a38 100644 --- a/src/policies/crossTenantAccessPolicy/partners/count/index.ts +++ b/src/policies/crossTenantAccessPolicy/partners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/crossTenantAccessPolicy/partners/index.ts b/src/policies/crossTenantAccessPolicy/partners/index.ts index ed08ce2d594..da011d56c4d 100644 --- a/src/policies/crossTenantAccessPolicy/partners/index.ts +++ b/src/policies/crossTenantAccessPolicy/partners/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CrossTenantAccessPolicyConfigurationPartnerCollectionResponse } from '../../../models/'; +import { type CrossTenantAccessPolicyConfigurationPartnerCollectionResponse } from '../../../models'; import { createCrossTenantAccessPolicyConfigurationPartnerFromDiscriminatorValue, deserializeIntoCrossTenantAccessPolicyConfigurationPartner, serializeCrossTenantAccessPolicyConfigurationPartner, type CrossTenantAccessPolicyConfigurationPartner } from '../../../models/crossTenantAccessPolicyConfigurationPartner'; import { createCrossTenantAccessPolicyConfigurationPartnerCollectionResponseFromDiscriminatorValue } from '../../../models/crossTenantAccessPolicyConfigurationPartnerCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PartnersRequestBuilderGetQueryParameters { diff --git a/src/policies/crossTenantAccessPolicy/partners/item/identitySynchronization/index.ts b/src/policies/crossTenantAccessPolicy/partners/item/identitySynchronization/index.ts index 5161bb12cae..3cad9e625e0 100644 --- a/src/policies/crossTenantAccessPolicy/partners/item/identitySynchronization/index.ts +++ b/src/policies/crossTenantAccessPolicy/partners/item/identitySynchronization/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCrossTenantIdentitySyncPolicyPartnerFromDiscriminatorValue, deserializeIntoCrossTenantIdentitySyncPolicyPartner, serializeCrossTenantIdentitySyncPolicyPartner, type CrossTenantIdentitySyncPolicyPartner } from '../../../../../models/crossTenantIdentitySyncPolicyPartner'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/crossTenantAccessPolicy/partners/item/index.ts b/src/policies/crossTenantAccessPolicy/partners/item/index.ts index e9ad71c4d7a..2b8a144b7cd 100644 --- a/src/policies/crossTenantAccessPolicy/partners/item/index.ts +++ b/src/policies/crossTenantAccessPolicy/partners/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCrossTenantAccessPolicyConfigurationPartnerFromDiscriminatorValue, deserializeIntoCrossTenantAccessPolicyConfigurationPartner, serializeCrossTenantAccessPolicyConfigurationPartner, type CrossTenantAccessPolicyConfigurationPartner } from '../../../../models/crossTenantAccessPolicyConfigurationPartner'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { IdentitySynchronizationRequestBuilder } from './identitySynchronization/'; +import { IdentitySynchronizationRequestBuilder } from './identitySynchronization'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilderGetQueryParameters { diff --git a/src/policies/defaultAppManagementPolicy/index.ts b/src/policies/defaultAppManagementPolicy/index.ts index 7059ed32f40..eb8ffd5aa65 100644 --- a/src/policies/defaultAppManagementPolicy/index.ts +++ b/src/policies/defaultAppManagementPolicy/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTenantAppManagementPolicyFromDiscriminatorValue, deserializeIntoTenantAppManagementPolicy, serializeTenantAppManagementPolicy, type TenantAppManagementPolicy } from '../../models/tenantAppManagementPolicy'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/featureRolloutPolicies/count/index.ts b/src/policies/featureRolloutPolicies/count/index.ts index c9babecd227..508c1ac0ef3 100644 --- a/src/policies/featureRolloutPolicies/count/index.ts +++ b/src/policies/featureRolloutPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/featureRolloutPolicies/index.ts b/src/policies/featureRolloutPolicies/index.ts index 72de6283411..9788fd17a55 100644 --- a/src/policies/featureRolloutPolicies/index.ts +++ b/src/policies/featureRolloutPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type FeatureRolloutPolicyCollectionResponse } from '../../models/'; +import { type FeatureRolloutPolicyCollectionResponse } from '../../models'; import { createFeatureRolloutPolicyFromDiscriminatorValue, deserializeIntoFeatureRolloutPolicy, serializeFeatureRolloutPolicy, type FeatureRolloutPolicy } from '../../models/featureRolloutPolicy'; import { createFeatureRolloutPolicyCollectionResponseFromDiscriminatorValue } from '../../models/featureRolloutPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FeatureRolloutPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FeatureRolloutPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FeatureRolloutPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/featureRolloutPolicies/item/appliesTo/count/index.ts b/src/policies/featureRolloutPolicies/item/appliesTo/count/index.ts index 85bbd9be9b3..01f6d345cb6 100644 --- a/src/policies/featureRolloutPolicies/item/appliesTo/count/index.ts +++ b/src/policies/featureRolloutPolicies/item/appliesTo/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/featureRolloutPolicies/item/appliesTo/index.ts b/src/policies/featureRolloutPolicies/item/appliesTo/index.ts index 046f9f207f8..d951d42fc05 100644 --- a/src/policies/featureRolloutPolicies/item/appliesTo/index.ts +++ b/src/policies/featureRolloutPolicies/item/appliesTo/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue, deserializeIntoDirectoryObject, serializeDirectoryObject, type DirectoryObject } from '../../../../models/directoryObject'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppliesToRequestBuilderGetQueryParameters { diff --git a/src/policies/featureRolloutPolicies/item/appliesTo/item/index.ts b/src/policies/featureRolloutPolicies/item/appliesTo/item/index.ts index ecc64208f9a..4a5c36740dd 100644 --- a/src/policies/featureRolloutPolicies/item/appliesTo/item/index.ts +++ b/src/policies/featureRolloutPolicies/item/appliesTo/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/policies/featureRolloutPolicies/item/appliesTo/item/ref/index.ts b/src/policies/featureRolloutPolicies/item/appliesTo/item/ref/index.ts index 5291e929305..4b7afefe9c2 100644 --- a/src/policies/featureRolloutPolicies/item/appliesTo/item/ref/index.ts +++ b/src/policies/featureRolloutPolicies/item/appliesTo/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/featureRolloutPolicies/item/appliesTo/ref/index.ts b/src/policies/featureRolloutPolicies/item/appliesTo/ref/index.ts index 4b3afd015cc..6671cf958fc 100644 --- a/src/policies/featureRolloutPolicies/item/appliesTo/ref/index.ts +++ b/src/policies/featureRolloutPolicies/item/appliesTo/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/policies/featureRolloutPolicies/item/index.ts b/src/policies/featureRolloutPolicies/item/index.ts index a3331b408ad..c154bb7aae6 100644 --- a/src/policies/featureRolloutPolicies/item/index.ts +++ b/src/policies/featureRolloutPolicies/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createFeatureRolloutPolicyFromDiscriminatorValue, deserializeIntoFeatureRolloutPolicy, serializeFeatureRolloutPolicy, type FeatureRolloutPolicy } from '../../../models/featureRolloutPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppliesToRequestBuilder } from './appliesTo/'; +import { AppliesToRequestBuilder } from './appliesTo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FeatureRolloutPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/homeRealmDiscoveryPolicies/count/index.ts b/src/policies/homeRealmDiscoveryPolicies/count/index.ts index e6bfc00a886..1e48eb63bd1 100644 --- a/src/policies/homeRealmDiscoveryPolicies/count/index.ts +++ b/src/policies/homeRealmDiscoveryPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/homeRealmDiscoveryPolicies/index.ts b/src/policies/homeRealmDiscoveryPolicies/index.ts index f633ab77562..8e3e8f01b92 100644 --- a/src/policies/homeRealmDiscoveryPolicies/index.ts +++ b/src/policies/homeRealmDiscoveryPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type HomeRealmDiscoveryPolicyCollectionResponse } from '../../models/'; +import { type HomeRealmDiscoveryPolicyCollectionResponse } from '../../models'; import { createHomeRealmDiscoveryPolicyFromDiscriminatorValue, deserializeIntoHomeRealmDiscoveryPolicy, serializeHomeRealmDiscoveryPolicy, type HomeRealmDiscoveryPolicy } from '../../models/homeRealmDiscoveryPolicy'; import { createHomeRealmDiscoveryPolicyCollectionResponseFromDiscriminatorValue } from '../../models/homeRealmDiscoveryPolicyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { HomeRealmDiscoveryPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HomeRealmDiscoveryPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HomeRealmDiscoveryPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/count/index.ts b/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/count/index.ts index 7b839ee0f25..f2875cb0a86 100644 --- a/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/count/index.ts +++ b/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/index.ts b/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/index.ts index 0159ef170d4..b1828fd451c 100644 --- a/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/index.ts +++ b/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppliesToRequestBuilderGetQueryParameters { diff --git a/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/item/index.ts b/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/item/index.ts index 05e3589075f..f13125c10c9 100644 --- a/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/item/index.ts +++ b/src/policies/homeRealmDiscoveryPolicies/item/appliesTo/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/homeRealmDiscoveryPolicies/item/index.ts b/src/policies/homeRealmDiscoveryPolicies/item/index.ts index c9c6be8703a..667280b6e7e 100644 --- a/src/policies/homeRealmDiscoveryPolicies/item/index.ts +++ b/src/policies/homeRealmDiscoveryPolicies/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createHomeRealmDiscoveryPolicyFromDiscriminatorValue, deserializeIntoHomeRealmDiscoveryPolicy, serializeHomeRealmDiscoveryPolicy, type HomeRealmDiscoveryPolicy } from '../../../models/homeRealmDiscoveryPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppliesToRequestBuilder } from './appliesTo/'; +import { AppliesToRequestBuilder } from './appliesTo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HomeRealmDiscoveryPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/identitySecurityDefaultsEnforcementPolicy/index.ts b/src/policies/identitySecurityDefaultsEnforcementPolicy/index.ts index 7d64b9bb42b..51177979acc 100644 --- a/src/policies/identitySecurityDefaultsEnforcementPolicy/index.ts +++ b/src/policies/identitySecurityDefaultsEnforcementPolicy/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createIdentitySecurityDefaultsEnforcementPolicyFromDiscriminatorValue, deserializeIntoIdentitySecurityDefaultsEnforcementPolicy, serializeIdentitySecurityDefaultsEnforcementPolicy, type IdentitySecurityDefaultsEnforcementPolicy } from '../../models/identitySecurityDefaultsEnforcementPolicy'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/index.ts b/src/policies/index.ts index 388299c3e5d..0369765b82e 100644 --- a/src/policies/index.ts +++ b/src/policies/index.ts @@ -1,28 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createPolicyRootFromDiscriminatorValue, deserializeIntoPolicyRoot, serializePolicyRoot, type PolicyRoot } from '../models/policyRoot'; -import { ActivityBasedTimeoutPoliciesRequestBuilder } from './activityBasedTimeoutPolicies/'; -import { AdminConsentRequestPolicyRequestBuilder } from './adminConsentRequestPolicy/'; -import { AppManagementPoliciesRequestBuilder } from './appManagementPolicies/'; -import { AuthenticationFlowsPolicyRequestBuilder } from './authenticationFlowsPolicy/'; -import { AuthenticationMethodsPolicyRequestBuilder } from './authenticationMethodsPolicy/'; -import { AuthenticationStrengthPoliciesRequestBuilder } from './authenticationStrengthPolicies/'; -import { AuthorizationPolicyRequestBuilder } from './authorizationPolicy/'; -import { ClaimsMappingPoliciesRequestBuilder } from './claimsMappingPolicies/'; -import { ConditionalAccessPoliciesRequestBuilder } from './conditionalAccessPolicies/'; -import { CrossTenantAccessPolicyRequestBuilder } from './crossTenantAccessPolicy/'; -import { DefaultAppManagementPolicyRequestBuilder } from './defaultAppManagementPolicy/'; -import { FeatureRolloutPoliciesRequestBuilder } from './featureRolloutPolicies/'; -import { HomeRealmDiscoveryPoliciesRequestBuilder } from './homeRealmDiscoveryPolicies/'; -import { IdentitySecurityDefaultsEnforcementPolicyRequestBuilder } from './identitySecurityDefaultsEnforcementPolicy/'; -import { PermissionGrantPoliciesRequestBuilder } from './permissionGrantPolicies/'; -import { RoleManagementPoliciesRequestBuilder } from './roleManagementPolicies/'; -import { RoleManagementPolicyAssignmentsRequestBuilder } from './roleManagementPolicyAssignments/'; -import { TokenIssuancePoliciesRequestBuilder } from './tokenIssuancePolicies/'; -import { TokenLifetimePoliciesRequestBuilder } from './tokenLifetimePolicies/'; +import { ActivityBasedTimeoutPoliciesRequestBuilder } from './activityBasedTimeoutPolicies'; +import { AdminConsentRequestPolicyRequestBuilder } from './adminConsentRequestPolicy'; +import { AppManagementPoliciesRequestBuilder } from './appManagementPolicies'; +import { AuthenticationFlowsPolicyRequestBuilder } from './authenticationFlowsPolicy'; +import { AuthenticationMethodsPolicyRequestBuilder } from './authenticationMethodsPolicy'; +import { AuthenticationStrengthPoliciesRequestBuilder } from './authenticationStrengthPolicies'; +import { AuthorizationPolicyRequestBuilder } from './authorizationPolicy'; +import { ClaimsMappingPoliciesRequestBuilder } from './claimsMappingPolicies'; +import { ConditionalAccessPoliciesRequestBuilder } from './conditionalAccessPolicies'; +import { CrossTenantAccessPolicyRequestBuilder } from './crossTenantAccessPolicy'; +import { DefaultAppManagementPolicyRequestBuilder } from './defaultAppManagementPolicy'; +import { FeatureRolloutPoliciesRequestBuilder } from './featureRolloutPolicies'; +import { HomeRealmDiscoveryPoliciesRequestBuilder } from './homeRealmDiscoveryPolicies'; +import { IdentitySecurityDefaultsEnforcementPolicyRequestBuilder } from './identitySecurityDefaultsEnforcementPolicy'; +import { PermissionGrantPoliciesRequestBuilder } from './permissionGrantPolicies'; +import { RoleManagementPoliciesRequestBuilder } from './roleManagementPolicies'; +import { RoleManagementPolicyAssignmentsRequestBuilder } from './roleManagementPolicyAssignments'; +import { TokenIssuancePoliciesRequestBuilder } from './tokenIssuancePolicies'; +import { TokenLifetimePoliciesRequestBuilder } from './tokenLifetimePolicies'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/permissionGrantPolicies/count/index.ts b/src/policies/permissionGrantPolicies/count/index.ts index 77a87e096f5..39a452620a8 100644 --- a/src/policies/permissionGrantPolicies/count/index.ts +++ b/src/policies/permissionGrantPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/permissionGrantPolicies/index.ts b/src/policies/permissionGrantPolicies/index.ts index 0f43c625e14..1869526a90d 100644 --- a/src/policies/permissionGrantPolicies/index.ts +++ b/src/policies/permissionGrantPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PermissionGrantPolicyCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PermissionGrantPolicyCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPermissionGrantPolicyFromDiscriminatorValue, deserializeIntoPermissionGrantPolicy, serializePermissionGrantPolicy, type PermissionGrantPolicy } from '../../models/permissionGrantPolicy'; import { createPermissionGrantPolicyCollectionResponseFromDiscriminatorValue } from '../../models/permissionGrantPolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PermissionGrantPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PermissionGrantPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/permissionGrantPolicies/item/excludes/count/index.ts b/src/policies/permissionGrantPolicies/item/excludes/count/index.ts index e1373b51912..f2a7671b14f 100644 --- a/src/policies/permissionGrantPolicies/item/excludes/count/index.ts +++ b/src/policies/permissionGrantPolicies/item/excludes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/permissionGrantPolicies/item/excludes/index.ts b/src/policies/permissionGrantPolicies/item/excludes/index.ts index 3711ea2057f..e6a69ffa522 100644 --- a/src/policies/permissionGrantPolicies/item/excludes/index.ts +++ b/src/policies/permissionGrantPolicies/item/excludes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PermissionGrantConditionSetCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PermissionGrantConditionSetCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPermissionGrantConditionSetFromDiscriminatorValue, deserializeIntoPermissionGrantConditionSet, serializePermissionGrantConditionSet, type PermissionGrantConditionSet } from '../../../../models/permissionGrantConditionSet'; import { createPermissionGrantConditionSetCollectionResponseFromDiscriminatorValue } from '../../../../models/permissionGrantConditionSetCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PermissionGrantConditionSetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PermissionGrantConditionSetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExcludesRequestBuilderGetQueryParameters { diff --git a/src/policies/permissionGrantPolicies/item/excludes/item/index.ts b/src/policies/permissionGrantPolicies/item/excludes/item/index.ts index a48efc5ec3e..bb6776ae2b5 100644 --- a/src/policies/permissionGrantPolicies/item/excludes/item/index.ts +++ b/src/policies/permissionGrantPolicies/item/excludes/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPermissionGrantConditionSetFromDiscriminatorValue, deserializeIntoPermissionGrantConditionSet, serializePermissionGrantConditionSet, type PermissionGrantConditionSet } from '../../../../../models/permissionGrantConditionSet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/permissionGrantPolicies/item/includes/count/index.ts b/src/policies/permissionGrantPolicies/item/includes/count/index.ts index 0f0583019e3..eb6398ec1b2 100644 --- a/src/policies/permissionGrantPolicies/item/includes/count/index.ts +++ b/src/policies/permissionGrantPolicies/item/includes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/permissionGrantPolicies/item/includes/index.ts b/src/policies/permissionGrantPolicies/item/includes/index.ts index 129270ff53f..6b57d34f4c1 100644 --- a/src/policies/permissionGrantPolicies/item/includes/index.ts +++ b/src/policies/permissionGrantPolicies/item/includes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PermissionGrantConditionSetCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PermissionGrantConditionSetCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPermissionGrantConditionSetFromDiscriminatorValue, deserializeIntoPermissionGrantConditionSet, serializePermissionGrantConditionSet, type PermissionGrantConditionSet } from '../../../../models/permissionGrantConditionSet'; import { createPermissionGrantConditionSetCollectionResponseFromDiscriminatorValue } from '../../../../models/permissionGrantConditionSetCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PermissionGrantConditionSetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PermissionGrantConditionSetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IncludesRequestBuilderGetQueryParameters { diff --git a/src/policies/permissionGrantPolicies/item/includes/item/index.ts b/src/policies/permissionGrantPolicies/item/includes/item/index.ts index 0a00939e8ea..cdce38a30e1 100644 --- a/src/policies/permissionGrantPolicies/item/includes/item/index.ts +++ b/src/policies/permissionGrantPolicies/item/includes/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPermissionGrantConditionSetFromDiscriminatorValue, deserializeIntoPermissionGrantConditionSet, serializePermissionGrantConditionSet, type PermissionGrantConditionSet } from '../../../../../models/permissionGrantConditionSet'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/permissionGrantPolicies/item/index.ts b/src/policies/permissionGrantPolicies/item/index.ts index 1227ada50bc..7cfcb0f26cc 100644 --- a/src/policies/permissionGrantPolicies/item/index.ts +++ b/src/policies/permissionGrantPolicies/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPermissionGrantPolicyFromDiscriminatorValue, deserializeIntoPermissionGrantPolicy, serializePermissionGrantPolicy, type PermissionGrantPolicy } from '../../../models/permissionGrantPolicy'; -import { ExcludesRequestBuilder } from './excludes/'; -import { IncludesRequestBuilder } from './includes/'; +import { ExcludesRequestBuilder } from './excludes'; +import { IncludesRequestBuilder } from './includes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/roleManagementPolicies/count/index.ts b/src/policies/roleManagementPolicies/count/index.ts index c57a52157d0..3ff98468fb7 100644 --- a/src/policies/roleManagementPolicies/count/index.ts +++ b/src/policies/roleManagementPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/roleManagementPolicies/index.ts b/src/policies/roleManagementPolicies/index.ts index 600f351d6c7..20751ba08e0 100644 --- a/src/policies/roleManagementPolicies/index.ts +++ b/src/policies/roleManagementPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleManagementPolicyCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UnifiedRoleManagementPolicyCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyFromDiscriminatorValue, deserializeIntoUnifiedRoleManagementPolicy, serializeUnifiedRoleManagementPolicy, type UnifiedRoleManagementPolicy } from '../../models/unifiedRoleManagementPolicy'; import { createUnifiedRoleManagementPolicyCollectionResponseFromDiscriminatorValue } from '../../models/unifiedRoleManagementPolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleManagementPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleManagementPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleManagementPoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/roleManagementPolicies/item/effectiveRules/count/index.ts b/src/policies/roleManagementPolicies/item/effectiveRules/count/index.ts index 7cf34818d49..dca9ce86c29 100644 --- a/src/policies/roleManagementPolicies/item/effectiveRules/count/index.ts +++ b/src/policies/roleManagementPolicies/item/effectiveRules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/roleManagementPolicies/item/effectiveRules/index.ts b/src/policies/roleManagementPolicies/item/effectiveRules/index.ts index 79ea2a4e2a9..2604de0c2b8 100644 --- a/src/policies/roleManagementPolicies/item/effectiveRules/index.ts +++ b/src/policies/roleManagementPolicies/item/effectiveRules/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleManagementPolicyRuleCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UnifiedRoleManagementPolicyRuleCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyRuleFromDiscriminatorValue, deserializeIntoUnifiedRoleManagementPolicyRule, serializeUnifiedRoleManagementPolicyRule, type UnifiedRoleManagementPolicyRule } from '../../../../models/unifiedRoleManagementPolicyRule'; import { createUnifiedRoleManagementPolicyRuleCollectionResponseFromDiscriminatorValue } from '../../../../models/unifiedRoleManagementPolicyRuleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleManagementPolicyRuleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleManagementPolicyRuleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EffectiveRulesRequestBuilderGetQueryParameters { diff --git a/src/policies/roleManagementPolicies/item/effectiveRules/item/index.ts b/src/policies/roleManagementPolicies/item/effectiveRules/item/index.ts index ae783120496..b65e8b247bf 100644 --- a/src/policies/roleManagementPolicies/item/effectiveRules/item/index.ts +++ b/src/policies/roleManagementPolicies/item/effectiveRules/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyRuleFromDiscriminatorValue, deserializeIntoUnifiedRoleManagementPolicyRule, serializeUnifiedRoleManagementPolicyRule, type UnifiedRoleManagementPolicyRule } from '../../../../../models/unifiedRoleManagementPolicyRule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/roleManagementPolicies/item/index.ts b/src/policies/roleManagementPolicies/item/index.ts index 70d3d121344..2124ef0e89c 100644 --- a/src/policies/roleManagementPolicies/item/index.ts +++ b/src/policies/roleManagementPolicies/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyFromDiscriminatorValue, deserializeIntoUnifiedRoleManagementPolicy, serializeUnifiedRoleManagementPolicy, type UnifiedRoleManagementPolicy } from '../../../models/unifiedRoleManagementPolicy'; -import { EffectiveRulesRequestBuilder } from './effectiveRules/'; -import { RulesRequestBuilder } from './rules/'; +import { EffectiveRulesRequestBuilder } from './effectiveRules'; +import { RulesRequestBuilder } from './rules'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleManagementPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/roleManagementPolicies/item/rules/count/index.ts b/src/policies/roleManagementPolicies/item/rules/count/index.ts index 74135703a89..988f228a131 100644 --- a/src/policies/roleManagementPolicies/item/rules/count/index.ts +++ b/src/policies/roleManagementPolicies/item/rules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/roleManagementPolicies/item/rules/index.ts b/src/policies/roleManagementPolicies/item/rules/index.ts index dbe326fce9f..00efa6034a1 100644 --- a/src/policies/roleManagementPolicies/item/rules/index.ts +++ b/src/policies/roleManagementPolicies/item/rules/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleManagementPolicyRuleCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UnifiedRoleManagementPolicyRuleCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyRuleFromDiscriminatorValue, deserializeIntoUnifiedRoleManagementPolicyRule, serializeUnifiedRoleManagementPolicyRule, type UnifiedRoleManagementPolicyRule } from '../../../../models/unifiedRoleManagementPolicyRule'; import { createUnifiedRoleManagementPolicyRuleCollectionResponseFromDiscriminatorValue } from '../../../../models/unifiedRoleManagementPolicyRuleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleManagementPolicyRuleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleManagementPolicyRuleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RulesRequestBuilderGetQueryParameters { diff --git a/src/policies/roleManagementPolicies/item/rules/item/index.ts b/src/policies/roleManagementPolicies/item/rules/item/index.ts index 87911b63c21..d82dad9f6a6 100644 --- a/src/policies/roleManagementPolicies/item/rules/item/index.ts +++ b/src/policies/roleManagementPolicies/item/rules/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyRuleFromDiscriminatorValue, deserializeIntoUnifiedRoleManagementPolicyRule, serializeUnifiedRoleManagementPolicyRule, type UnifiedRoleManagementPolicyRule } from '../../../../../models/unifiedRoleManagementPolicyRule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/roleManagementPolicyAssignments/count/index.ts b/src/policies/roleManagementPolicyAssignments/count/index.ts index e2a65da8b9b..3506186fdc8 100644 --- a/src/policies/roleManagementPolicyAssignments/count/index.ts +++ b/src/policies/roleManagementPolicyAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/roleManagementPolicyAssignments/index.ts b/src/policies/roleManagementPolicyAssignments/index.ts index 3d1b35a7f40..57d68748da6 100644 --- a/src/policies/roleManagementPolicyAssignments/index.ts +++ b/src/policies/roleManagementPolicyAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleManagementPolicyAssignmentCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type UnifiedRoleManagementPolicyAssignmentCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyAssignmentFromDiscriminatorValue, deserializeIntoUnifiedRoleManagementPolicyAssignment, serializeUnifiedRoleManagementPolicyAssignment, type UnifiedRoleManagementPolicyAssignment } from '../../models/unifiedRoleManagementPolicyAssignment'; import { createUnifiedRoleManagementPolicyAssignmentCollectionResponseFromDiscriminatorValue } from '../../models/unifiedRoleManagementPolicyAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleManagementPolicyAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleManagementPolicyAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleManagementPolicyAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/policies/roleManagementPolicyAssignments/item/index.ts b/src/policies/roleManagementPolicyAssignments/item/index.ts index 11fd766aa77..8706074769e 100644 --- a/src/policies/roleManagementPolicyAssignments/item/index.ts +++ b/src/policies/roleManagementPolicyAssignments/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyAssignmentFromDiscriminatorValue, deserializeIntoUnifiedRoleManagementPolicyAssignment, serializeUnifiedRoleManagementPolicyAssignment, type UnifiedRoleManagementPolicyAssignment } from '../../../models/unifiedRoleManagementPolicyAssignment'; -import { PolicyRequestBuilder } from './policy/'; +import { PolicyRequestBuilder } from './policy'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/policies/roleManagementPolicyAssignments/item/policy/index.ts b/src/policies/roleManagementPolicyAssignments/item/policy/index.ts index 995c40d6cb7..81527dec542 100644 --- a/src/policies/roleManagementPolicyAssignments/item/policy/index.ts +++ b/src/policies/roleManagementPolicyAssignments/item/policy/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleManagementPolicy } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UnifiedRoleManagementPolicy } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleManagementPolicyFromDiscriminatorValue } from '../../../../models/unifiedRoleManagementPolicy'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/tokenIssuancePolicies/count/index.ts b/src/policies/tokenIssuancePolicies/count/index.ts index fea83f1ba3a..4c7a2f6b940 100644 --- a/src/policies/tokenIssuancePolicies/count/index.ts +++ b/src/policies/tokenIssuancePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/tokenIssuancePolicies/index.ts b/src/policies/tokenIssuancePolicies/index.ts index 5725a567af2..de761d81cc8 100644 --- a/src/policies/tokenIssuancePolicies/index.ts +++ b/src/policies/tokenIssuancePolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TokenIssuancePolicyCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type TokenIssuancePolicyCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTokenIssuancePolicyFromDiscriminatorValue, deserializeIntoTokenIssuancePolicy, serializeTokenIssuancePolicy, type TokenIssuancePolicy } from '../../models/tokenIssuancePolicy'; import { createTokenIssuancePolicyCollectionResponseFromDiscriminatorValue } from '../../models/tokenIssuancePolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TokenIssuancePolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TokenIssuancePolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TokenIssuancePoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/tokenIssuancePolicies/item/appliesTo/count/index.ts b/src/policies/tokenIssuancePolicies/item/appliesTo/count/index.ts index 50e0e044bfa..0e7a5e35103 100644 --- a/src/policies/tokenIssuancePolicies/item/appliesTo/count/index.ts +++ b/src/policies/tokenIssuancePolicies/item/appliesTo/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/tokenIssuancePolicies/item/appliesTo/index.ts b/src/policies/tokenIssuancePolicies/item/appliesTo/index.ts index c7a7ffcca02..ffe6f9deb15 100644 --- a/src/policies/tokenIssuancePolicies/item/appliesTo/index.ts +++ b/src/policies/tokenIssuancePolicies/item/appliesTo/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppliesToRequestBuilderGetQueryParameters { diff --git a/src/policies/tokenIssuancePolicies/item/appliesTo/item/index.ts b/src/policies/tokenIssuancePolicies/item/appliesTo/item/index.ts index ab5017b4887..781e7277e91 100644 --- a/src/policies/tokenIssuancePolicies/item/appliesTo/item/index.ts +++ b/src/policies/tokenIssuancePolicies/item/appliesTo/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/tokenIssuancePolicies/item/index.ts b/src/policies/tokenIssuancePolicies/item/index.ts index ef04d6bffc5..9309452519b 100644 --- a/src/policies/tokenIssuancePolicies/item/index.ts +++ b/src/policies/tokenIssuancePolicies/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTokenIssuancePolicyFromDiscriminatorValue, deserializeIntoTokenIssuancePolicy, serializeTokenIssuancePolicy, type TokenIssuancePolicy } from '../../../models/tokenIssuancePolicy'; -import { AppliesToRequestBuilder } from './appliesTo/'; +import { AppliesToRequestBuilder } from './appliesTo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TokenIssuancePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/policies/tokenLifetimePolicies/count/index.ts b/src/policies/tokenLifetimePolicies/count/index.ts index 2fe8426de80..506f5f6dd08 100644 --- a/src/policies/tokenLifetimePolicies/count/index.ts +++ b/src/policies/tokenLifetimePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/tokenLifetimePolicies/index.ts b/src/policies/tokenLifetimePolicies/index.ts index cf4c05d0bc7..4100914deef 100644 --- a/src/policies/tokenLifetimePolicies/index.ts +++ b/src/policies/tokenLifetimePolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TokenLifetimePolicyCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type TokenLifetimePolicyCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTokenLifetimePolicyFromDiscriminatorValue, deserializeIntoTokenLifetimePolicy, serializeTokenLifetimePolicy, type TokenLifetimePolicy } from '../../models/tokenLifetimePolicy'; import { createTokenLifetimePolicyCollectionResponseFromDiscriminatorValue } from '../../models/tokenLifetimePolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TokenLifetimePolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TokenLifetimePolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TokenLifetimePoliciesRequestBuilderGetQueryParameters { diff --git a/src/policies/tokenLifetimePolicies/item/appliesTo/count/index.ts b/src/policies/tokenLifetimePolicies/item/appliesTo/count/index.ts index 2ed42c957fb..deda4a441d9 100644 --- a/src/policies/tokenLifetimePolicies/item/appliesTo/count/index.ts +++ b/src/policies/tokenLifetimePolicies/item/appliesTo/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/tokenLifetimePolicies/item/appliesTo/index.ts b/src/policies/tokenLifetimePolicies/item/appliesTo/index.ts index 14b3ed4e3be..42226239d12 100644 --- a/src/policies/tokenLifetimePolicies/item/appliesTo/index.ts +++ b/src/policies/tokenLifetimePolicies/item/appliesTo/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppliesToRequestBuilderGetQueryParameters { diff --git a/src/policies/tokenLifetimePolicies/item/appliesTo/item/index.ts b/src/policies/tokenLifetimePolicies/item/appliesTo/item/index.ts index 6023642d981..107cb7b3e84 100644 --- a/src/policies/tokenLifetimePolicies/item/appliesTo/item/index.ts +++ b/src/policies/tokenLifetimePolicies/item/appliesTo/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/policies/tokenLifetimePolicies/item/index.ts b/src/policies/tokenLifetimePolicies/item/index.ts index 88f31601003..82ea8a1fdfa 100644 --- a/src/policies/tokenLifetimePolicies/item/index.ts +++ b/src/policies/tokenLifetimePolicies/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTokenLifetimePolicyFromDiscriminatorValue, deserializeIntoTokenLifetimePolicy, serializeTokenLifetimePolicy, type TokenLifetimePolicy } from '../../../models/tokenLifetimePolicy'; -import { AppliesToRequestBuilder } from './appliesTo/'; +import { AppliesToRequestBuilder } from './appliesTo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TokenLifetimePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/print/connectors/count/index.ts b/src/print/connectors/count/index.ts index 82a51c5f718..72f9a37cf81 100644 --- a/src/print/connectors/count/index.ts +++ b/src/print/connectors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/connectors/index.ts b/src/print/connectors/index.ts index 03c4f66415e..9390562b6fb 100644 --- a/src/print/connectors/index.ts +++ b/src/print/connectors/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintConnectorCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrintConnectorCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrintConnectorFromDiscriminatorValue, deserializeIntoPrintConnector, serializePrintConnector, type PrintConnector } from '../../models/printConnector'; import { createPrintConnectorCollectionResponseFromDiscriminatorValue } from '../../models/printConnectorCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintConnectorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintConnectorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConnectorsRequestBuilderGetQueryParameters { diff --git a/src/print/connectors/item/index.ts b/src/print/connectors/item/index.ts index 63f6f3c2064..3ab5e6a83c5 100644 --- a/src/print/connectors/item/index.ts +++ b/src/print/connectors/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrintConnectorFromDiscriminatorValue, deserializeIntoPrintConnector, serializePrintConnector, type PrintConnector } from '../../../models/printConnector'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/index.ts b/src/print/index.ts index aded4e2dfa2..37b807e0379 100644 --- a/src/print/index.ts +++ b/src/print/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createPrintFromDiscriminatorValue, deserializeIntoPrint, serializePrint, type Print } from '../models/print'; -import { ConnectorsRequestBuilder } from './connectors/'; -import { OperationsRequestBuilder } from './operations/'; -import { PrintersRequestBuilder } from './printers/'; -import { ServicesRequestBuilder } from './services/'; -import { SharesRequestBuilder } from './shares/'; -import { TaskDefinitionsRequestBuilder } from './taskDefinitions/'; +import { ConnectorsRequestBuilder } from './connectors'; +import { OperationsRequestBuilder } from './operations'; +import { PrintersRequestBuilder } from './printers'; +import { ServicesRequestBuilder } from './services'; +import { SharesRequestBuilder } from './shares'; +import { TaskDefinitionsRequestBuilder } from './taskDefinitions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintRequestBuilderGetQueryParameters { diff --git a/src/print/operations/count/index.ts b/src/print/operations/count/index.ts index e26763a5f5b..78c58cda464 100644 --- a/src/print/operations/count/index.ts +++ b/src/print/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/operations/index.ts b/src/print/operations/index.ts index 4d8ce70a6dd..813cd2c3a57 100644 --- a/src/print/operations/index.ts +++ b/src/print/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintOperationCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrintOperationCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrintOperationFromDiscriminatorValue, deserializeIntoPrintOperation, serializePrintOperation, type PrintOperation } from '../../models/printOperation'; import { createPrintOperationCollectionResponseFromDiscriminatorValue } from '../../models/printOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/print/operations/item/index.ts b/src/print/operations/item/index.ts index 1bc393b4593..fb5f9ac94d4 100644 --- a/src/print/operations/item/index.ts +++ b/src/print/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrintOperationFromDiscriminatorValue, deserializeIntoPrintOperation, serializePrintOperation, type PrintOperation } from '../../../models/printOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/count/index.ts b/src/print/printers/count/index.ts index 81d6208e00c..40318835998 100644 --- a/src/print/printers/count/index.ts +++ b/src/print/printers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/create/createPostRequestBody.ts b/src/print/printers/create/createPostRequestBody.ts deleted file mode 100644 index 26ae01dcaea..00000000000 --- a/src/print/printers/create/createPostRequestBody.ts +++ /dev/null @@ -1,67 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPrintCertificateSigningRequestFromDiscriminatorValue, serializePrintCertificateSigningRequest, type PrintCertificateSigningRequest } from '../../../models/printCertificateSigningRequest'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCreatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCreatePostRequestBody; -} -export interface CreatePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The certificateSigningRequest property - */ - certificateSigningRequest?: PrintCertificateSigningRequest; - /** - * The connectorId property - */ - connectorId?: string; - /** - * The displayName property - */ - displayName?: string; - /** - * The hasPhysicalDevice property - */ - hasPhysicalDevice?: boolean; - /** - * The manufacturer property - */ - manufacturer?: string; - /** - * The model property - */ - model?: string; - /** - * The physicalDeviceId property - */ - physicalDeviceId?: string; -} -export function deserializeIntoCreatePostRequestBody(createPostRequestBody: CreatePostRequestBody | undefined = {} as CreatePostRequestBody) : Record void> { - return { - "certificateSigningRequest": n => { createPostRequestBody.certificateSigningRequest = n.getObjectValue(createPrintCertificateSigningRequestFromDiscriminatorValue); }, - "connectorId": n => { createPostRequestBody.connectorId = n.getStringValue(); }, - "displayName": n => { createPostRequestBody.displayName = n.getStringValue(); }, - "hasPhysicalDevice": n => { createPostRequestBody.hasPhysicalDevice = n.getBooleanValue(); }, - "manufacturer": n => { createPostRequestBody.manufacturer = n.getStringValue(); }, - "model": n => { createPostRequestBody.model = n.getStringValue(); }, - "physicalDeviceId": n => { createPostRequestBody.physicalDeviceId = n.getStringValue(); }, - } -} -export function serializeCreatePostRequestBody(writer: SerializationWriter, createPostRequestBody: CreatePostRequestBody | undefined = {} as CreatePostRequestBody) : void { - writer.writeObjectValue("certificateSigningRequest", createPostRequestBody.certificateSigningRequest, serializePrintCertificateSigningRequest); - writer.writeStringValue("connectorId", createPostRequestBody.connectorId); - writer.writeStringValue("displayName", createPostRequestBody.displayName); - writer.writeBooleanValue("hasPhysicalDevice", createPostRequestBody.hasPhysicalDevice); - writer.writeStringValue("manufacturer", createPostRequestBody.manufacturer); - writer.writeStringValue("model", createPostRequestBody.model); - writer.writeStringValue("physicalDeviceId", createPostRequestBody.physicalDeviceId); - writer.writeAdditionalData(createPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/print/printers/create/index.ts b/src/print/printers/create/index.ts index 8b22154d094..5c887182117 100644 --- a/src/print/printers/create/index.ts +++ b/src/print/printers/create/index.ts @@ -1,11 +1,70 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCreatePostRequestBody, serializeCreatePostRequestBody, type CreatePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrintCertificateSigningRequestFromDiscriminatorValue, serializePrintCertificateSigningRequest, type PrintCertificateSigningRequest } from '../../../models/printCertificateSigningRequest'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createCreatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCreatePostRequestBody; +} +export interface CreatePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The certificateSigningRequest property + */ + certificateSigningRequest?: PrintCertificateSigningRequest; + /** + * The connectorId property + */ + connectorId?: string; + /** + * The displayName property + */ + displayName?: string; + /** + * The hasPhysicalDevice property + */ + hasPhysicalDevice?: boolean; + /** + * The manufacturer property + */ + manufacturer?: string; + /** + * The model property + */ + model?: string; + /** + * The physicalDeviceId property + */ + physicalDeviceId?: string; +} +export function deserializeIntoCreatePostRequestBody(createPostRequestBody: CreatePostRequestBody | undefined = {} as CreatePostRequestBody) : Record void> { + return { + "certificateSigningRequest": n => { createPostRequestBody.certificateSigningRequest = n.getObjectValue(createPrintCertificateSigningRequestFromDiscriminatorValue); }, + "connectorId": n => { createPostRequestBody.connectorId = n.getStringValue(); }, + "displayName": n => { createPostRequestBody.displayName = n.getStringValue(); }, + "hasPhysicalDevice": n => { createPostRequestBody.hasPhysicalDevice = n.getBooleanValue(); }, + "manufacturer": n => { createPostRequestBody.manufacturer = n.getStringValue(); }, + "model": n => { createPostRequestBody.model = n.getStringValue(); }, + "physicalDeviceId": n => { createPostRequestBody.physicalDeviceId = n.getStringValue(); }, + } +} +export function serializeCreatePostRequestBody(writer: SerializationWriter, createPostRequestBody: CreatePostRequestBody | undefined = {} as CreatePostRequestBody) : void { + writer.writeObjectValue("certificateSigningRequest", createPostRequestBody.certificateSigningRequest, serializePrintCertificateSigningRequest); + writer.writeStringValue("connectorId", createPostRequestBody.connectorId); + writer.writeStringValue("displayName", createPostRequestBody.displayName); + writer.writeBooleanValue("hasPhysicalDevice", createPostRequestBody.hasPhysicalDevice); + writer.writeStringValue("manufacturer", createPostRequestBody.manufacturer); + writer.writeStringValue("model", createPostRequestBody.model); + writer.writeStringValue("physicalDeviceId", createPostRequestBody.physicalDeviceId); + writer.writeAdditionalData(createPostRequestBody.additionalData); +} /** * Provides operations to call the create method. */ diff --git a/src/print/printers/index.ts b/src/print/printers/index.ts index f536ef902e4..1af108506c2 100644 --- a/src/print/printers/index.ts +++ b/src/print/printers/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrinterCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrinterCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrinterFromDiscriminatorValue, deserializeIntoPrinter, serializePrinter, type Printer } from '../../models/printer'; import { createPrinterCollectionResponseFromDiscriminatorValue } from '../../models/printerCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { CreateRequestBuilder } from './create/'; -import { PrinterItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateRequestBuilder } from './create'; +import { PrinterItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintersRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/connectors/count/index.ts b/src/print/printers/item/connectors/count/index.ts index 04464a9a243..774c456def3 100644 --- a/src/print/printers/item/connectors/count/index.ts +++ b/src/print/printers/item/connectors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/connectors/index.ts b/src/print/printers/item/connectors/index.ts index 20c62b36ff2..5e5fb3d5eff 100644 --- a/src/print/printers/item/connectors/index.ts +++ b/src/print/printers/item/connectors/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintConnectorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrintConnectorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrintConnectorCollectionResponseFromDiscriminatorValue } from '../../../../models/printConnectorCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintConnectorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintConnectorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ConnectorsRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/connectors/item/index.ts b/src/print/printers/item/connectors/item/index.ts index 3275d16844f..e27c8b2bd01 100644 --- a/src/print/printers/item/connectors/item/index.ts +++ b/src/print/printers/item/connectors/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintConnector } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type PrintConnector } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrintConnectorFromDiscriminatorValue } from '../../../../../models/printConnector'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/index.ts b/src/print/printers/item/index.ts index 3428f8d4b3c..7026bba0837 100644 --- a/src/print/printers/item/index.ts +++ b/src/print/printers/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrinterFromDiscriminatorValue, deserializeIntoPrinter, serializePrinter, type Printer } from '../../../models/printer'; -import { ConnectorsRequestBuilder } from './connectors/'; -import { JobsRequestBuilder } from './jobs/'; -import { RestoreFactoryDefaultsRequestBuilder } from './restoreFactoryDefaults/'; -import { SharesRequestBuilder } from './shares/'; -import { TaskTriggersRequestBuilder } from './taskTriggers/'; +import { ConnectorsRequestBuilder } from './connectors'; +import { JobsRequestBuilder } from './jobs'; +import { RestoreFactoryDefaultsRequestBuilder } from './restoreFactoryDefaults'; +import { SharesRequestBuilder } from './shares'; +import { TaskTriggersRequestBuilder } from './taskTriggers'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrinterItemRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/jobs/count/index.ts b/src/print/printers/item/jobs/count/index.ts index 3b849eee852..11d38eb96dc 100644 --- a/src/print/printers/item/jobs/count/index.ts +++ b/src/print/printers/item/jobs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/jobs/index.ts b/src/print/printers/item/jobs/index.ts index 970ab589a52..d834b1d00f0 100644 --- a/src/print/printers/item/jobs/index.ts +++ b/src/print/printers/item/jobs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintJobCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrintJobCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrintJobFromDiscriminatorValue, deserializeIntoPrintJob, serializePrintJob, type PrintJob } from '../../../../models/printJob'; import { createPrintJobCollectionResponseFromDiscriminatorValue } from '../../../../models/printJobCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintJobItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintJobItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface JobsRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/jobs/item/abort/index.ts b/src/print/printers/item/jobs/item/abort/index.ts index 9ce3466eefa..492152f4b94 100644 --- a/src/print/printers/item/jobs/item/abort/index.ts +++ b/src/print/printers/item/jobs/item/abort/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AbortPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,57 +26,5 @@ export function serializeAbortPostRequestBody(writer: SerializationWriter, abort writer.writeStringValue("reason", abortPostRequestBody.reason); writer.writeAdditionalData(abortPostRequestBody.additionalData); } -/** - * Provides operations to call the abort method. - */ -export class AbortRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AbortRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/jobs/{printJob%2Did}/abort"); - }; - /** - * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/printjob-abort?view=graph-rest-1.0|Find more info here} - */ - public post(body: AbortPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AbortPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAbortPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a abortRequestBuilder - */ - public withUrl(rawUrl: string) : AbortRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AbortRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/print/printers/item/jobs/item/cancel/index.ts b/src/print/printers/item/jobs/item/cancel/index.ts index b441e1ed713..33bf1520a15 100644 --- a/src/print/printers/item/jobs/item/cancel/index.ts +++ b/src/print/printers/item/jobs/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/jobs/item/documents/count/index.ts b/src/print/printers/item/jobs/item/documents/count/index.ts index 2af0ee0cc56..aa24f2e8b27 100644 --- a/src/print/printers/item/jobs/item/documents/count/index.ts +++ b/src/print/printers/item/jobs/item/documents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/jobs/item/documents/index.ts b/src/print/printers/item/jobs/item/documents/index.ts index 0eb45621f57..03054dc28e5 100644 --- a/src/print/printers/item/jobs/item/documents/index.ts +++ b/src/print/printers/item/jobs/item/documents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintDocumentCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintDocumentCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintDocumentFromDiscriminatorValue, deserializeIntoPrintDocument, serializePrintDocument, type PrintDocument } from '../../../../../../models/printDocument'; import { createPrintDocumentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/printDocumentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintDocumentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintDocumentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentsRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/jobs/item/documents/item/createUploadSession/index.ts b/src/print/printers/item/jobs/item/documents/item/createUploadSession/index.ts index 7d45d273c93..111167be6be 100644 --- a/src/print/printers/item/jobs/item/documents/item/createUploadSession/index.ts +++ b/src/print/printers/item/jobs/item/documents/item/createUploadSession/index.ts @@ -1,11 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPrintDocumentUploadPropertiesFromDiscriminatorValue, serializePrintDocumentUploadProperties, type PrintDocumentUploadProperties } from '../../../../../../../../models/printDocumentUploadProperties'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("properties", createUploadSessionPostRequestBody.properties, serializePrintDocumentUploadProperties); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/jobs/{printJob%2Did}/documents/{printDocument%2Did}/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/printdocument-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/print/printers/item/jobs/item/documents/item/index.ts b/src/print/printers/item/jobs/item/documents/item/index.ts index 25e24bc1bf4..c1859bc430c 100644 --- a/src/print/printers/item/jobs/item/documents/item/index.ts +++ b/src/print/printers/item/jobs/item/documents/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPrintDocumentFromDiscriminatorValue, deserializeIntoPrintDocument, serializePrintDocument, type PrintDocument } from '../../../../../../../models/printDocument'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { ContentRequestBuilder } from './value/'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintDocumentItemRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/jobs/item/documents/item/value/index.ts b/src/print/printers/item/jobs/item/documents/item/value/index.ts index 908b9a8e975..fbb8bf36ca1 100644 --- a/src/print/printers/item/jobs/item/documents/item/value/index.ts +++ b/src/print/printers/item/jobs/item/documents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/jobs/item/index.ts b/src/print/printers/item/jobs/item/index.ts index e56db1649b0..a36ab45c8d4 100644 --- a/src/print/printers/item/jobs/item/index.ts +++ b/src/print/printers/item/jobs/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrintJobFromDiscriminatorValue, deserializeIntoPrintJob, serializePrintJob, type PrintJob } from '../../../../../models/printJob'; -import { AbortRequestBuilder } from './abort/'; -import { CancelRequestBuilder } from './cancel/'; -import { DocumentsRequestBuilder } from './documents/'; -import { RedirectRequestBuilder } from './redirect/'; -import { StartRequestBuilder } from './start/'; -import { TasksRequestBuilder } from './tasks/'; +import { AbortRequestBuilder } from './abort'; +import { CancelRequestBuilder } from './cancel'; +import { DocumentsRequestBuilder } from './documents'; +import { RedirectRequestBuilder } from './redirect'; +import { StartRequestBuilder } from './start'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintJobItemRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/jobs/item/redirect/index.ts b/src/print/printers/item/jobs/item/redirect/index.ts index f40dafd7f01..23bed338b77 100644 --- a/src/print/printers/item/jobs/item/redirect/index.ts +++ b/src/print/printers/item/jobs/item/redirect/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintJobFromDiscriminatorValue, deserializeIntoPrintJob, serializePrintJob, type PrintJob } from '../../../../../../models/printJob'; -import { deserializeIntoRedirectPostRequestBody, serializeRedirectPostRequestBody, type RedirectPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrintJobConfigurationFromDiscriminatorValue, serializePrintJobConfiguration, type PrintJobConfiguration } from '../../../../../../models/printJobConfiguration'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRedirectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRedirectPostRequestBody; +} +export function deserializeIntoRedirectPostRequestBody(redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : Record void> { + return { + "configuration": n => { redirectPostRequestBody.configuration = n.getObjectValue(createPrintJobConfigurationFromDiscriminatorValue); }, + "destinationPrinterId": n => { redirectPostRequestBody.destinationPrinterId = n.getStringValue(); }, + } +} +export interface RedirectPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The configuration property + */ + configuration?: PrintJobConfiguration; + /** + * The destinationPrinterId property + */ + destinationPrinterId?: string; +} +export function serializeRedirectPostRequestBody(writer: SerializationWriter, redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : void { + writer.writeObjectValue("configuration", redirectPostRequestBody.configuration, serializePrintJobConfiguration); + writer.writeStringValue("destinationPrinterId", redirectPostRequestBody.destinationPrinterId); + writer.writeAdditionalData(redirectPostRequestBody.additionalData); +} /** * Provides operations to call the redirect method. */ diff --git a/src/print/printers/item/jobs/item/redirect/redirectPostRequestBody.ts b/src/print/printers/item/jobs/item/redirect/redirectPostRequestBody.ts deleted file mode 100644 index c137a44523f..00000000000 --- a/src/print/printers/item/jobs/item/redirect/redirectPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPrintJobConfigurationFromDiscriminatorValue, serializePrintJobConfiguration, type PrintJobConfiguration } from '../../../../../../models/printJobConfiguration'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRedirectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRedirectPostRequestBody; -} -export function deserializeIntoRedirectPostRequestBody(redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : Record void> { - return { - "configuration": n => { redirectPostRequestBody.configuration = n.getObjectValue(createPrintJobConfigurationFromDiscriminatorValue); }, - "destinationPrinterId": n => { redirectPostRequestBody.destinationPrinterId = n.getStringValue(); }, - } -} -export interface RedirectPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The configuration property - */ - configuration?: PrintJobConfiguration; - /** - * The destinationPrinterId property - */ - destinationPrinterId?: string; -} -export function serializeRedirectPostRequestBody(writer: SerializationWriter, redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : void { - writer.writeObjectValue("configuration", redirectPostRequestBody.configuration, serializePrintJobConfiguration); - writer.writeStringValue("destinationPrinterId", redirectPostRequestBody.destinationPrinterId); - writer.writeAdditionalData(redirectPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/print/printers/item/jobs/item/start/index.ts b/src/print/printers/item/jobs/item/start/index.ts index 092e31b3de6..243f8c33b3a 100644 --- a/src/print/printers/item/jobs/item/start/index.ts +++ b/src/print/printers/item/jobs/item/start/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintJobStatus } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintJobStatus } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintJobStatusFromDiscriminatorValue } from '../../../../../../models/printJobStatus'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/jobs/item/tasks/count/index.ts b/src/print/printers/item/jobs/item/tasks/count/index.ts index cfcfac184c0..075056dd4d8 100644 --- a/src/print/printers/item/jobs/item/tasks/count/index.ts +++ b/src/print/printers/item/jobs/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/jobs/item/tasks/index.ts b/src/print/printers/item/jobs/item/tasks/index.ts index c4f958813dc..569f8a03953 100644 --- a/src/print/printers/item/jobs/item/tasks/index.ts +++ b/src/print/printers/item/jobs/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintTaskCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskFromDiscriminatorValue, deserializeIntoPrintTask, serializePrintTask, type PrintTask } from '../../../../../../models/printTask'; import { createPrintTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../models/printTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/jobs/item/tasks/item/definition/index.ts b/src/print/printers/item/jobs/item/tasks/item/definition/index.ts index 9dde74e6b7a..a78075ec194 100644 --- a/src/print/printers/item/jobs/item/tasks/item/definition/index.ts +++ b/src/print/printers/item/jobs/item/tasks/item/definition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskDefinition } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type PrintTaskDefinition } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskDefinitionFromDiscriminatorValue } from '../../../../../../../../models/printTaskDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/jobs/item/tasks/item/index.ts b/src/print/printers/item/jobs/item/tasks/item/index.ts index a5f9149e5c4..4c9edd2623c 100644 --- a/src/print/printers/item/jobs/item/tasks/item/index.ts +++ b/src/print/printers/item/jobs/item/tasks/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskFromDiscriminatorValue, deserializeIntoPrintTask, serializePrintTask, type PrintTask } from '../../../../../../../models/printTask'; -import { DefinitionRequestBuilder } from './definition/'; -import { TriggerRequestBuilder } from './trigger/'; +import { DefinitionRequestBuilder } from './definition'; +import { TriggerRequestBuilder } from './trigger'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintTaskItemRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/jobs/item/tasks/item/trigger/index.ts b/src/print/printers/item/jobs/item/tasks/item/trigger/index.ts index da32d4f297d..95492cd8f82 100644 --- a/src/print/printers/item/jobs/item/tasks/item/trigger/index.ts +++ b/src/print/printers/item/jobs/item/tasks/item/trigger/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskTrigger } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type PrintTaskTrigger } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskTriggerFromDiscriminatorValue } from '../../../../../../../../models/printTaskTrigger'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/restoreFactoryDefaults/index.ts b/src/print/printers/item/restoreFactoryDefaults/index.ts index f6a179673be..c35704f390c 100644 --- a/src/print/printers/item/restoreFactoryDefaults/index.ts +++ b/src/print/printers/item/restoreFactoryDefaults/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/shares/count/index.ts b/src/print/printers/item/shares/count/index.ts index be4cf34b070..c2c972aaa4f 100644 --- a/src/print/printers/item/shares/count/index.ts +++ b/src/print/printers/item/shares/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/shares/index.ts b/src/print/printers/item/shares/index.ts index a25c0001def..f7edc806a37 100644 --- a/src/print/printers/item/shares/index.ts +++ b/src/print/printers/item/shares/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrinterShareCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrinterShareCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrinterShareCollectionResponseFromDiscriminatorValue } from '../../../../models/printerShareCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrinterShareItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrinterShareItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharesRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/shares/item/index.ts b/src/print/printers/item/shares/item/index.ts index 640edc6052b..be52f599b45 100644 --- a/src/print/printers/item/shares/item/index.ts +++ b/src/print/printers/item/shares/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrinterShare } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type PrinterShare } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrinterShareFromDiscriminatorValue } from '../../../../../models/printerShare'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/taskTriggers/count/index.ts b/src/print/printers/item/taskTriggers/count/index.ts index a6748470760..5a3e5f2064f 100644 --- a/src/print/printers/item/taskTriggers/count/index.ts +++ b/src/print/printers/item/taskTriggers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/taskTriggers/index.ts b/src/print/printers/item/taskTriggers/index.ts index f55184c709c..bd37159adb5 100644 --- a/src/print/printers/item/taskTriggers/index.ts +++ b/src/print/printers/item/taskTriggers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskTriggerCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrintTaskTriggerCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrintTaskTriggerFromDiscriminatorValue, deserializeIntoPrintTaskTrigger, serializePrintTaskTrigger, type PrintTaskTrigger } from '../../../../models/printTaskTrigger'; import { createPrintTaskTriggerCollectionResponseFromDiscriminatorValue } from '../../../../models/printTaskTriggerCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintTaskTriggerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintTaskTriggerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskTriggersRequestBuilderGetQueryParameters { diff --git a/src/print/printers/item/taskTriggers/item/definition/index.ts b/src/print/printers/item/taskTriggers/item/definition/index.ts index 39361e4de03..964cb4cb803 100644 --- a/src/print/printers/item/taskTriggers/item/definition/index.ts +++ b/src/print/printers/item/taskTriggers/item/definition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskDefinition } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintTaskDefinition } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskDefinitionFromDiscriminatorValue } from '../../../../../../models/printTaskDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/printers/item/taskTriggers/item/index.ts b/src/print/printers/item/taskTriggers/item/index.ts index dc9229941bb..b64558af139 100644 --- a/src/print/printers/item/taskTriggers/item/index.ts +++ b/src/print/printers/item/taskTriggers/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrintTaskTriggerFromDiscriminatorValue, deserializeIntoPrintTaskTrigger, serializePrintTaskTrigger, type PrintTaskTrigger } from '../../../../../models/printTaskTrigger'; -import { DefinitionRequestBuilder } from './definition/'; +import { DefinitionRequestBuilder } from './definition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintTaskTriggerItemRequestBuilderGetQueryParameters { diff --git a/src/print/services/count/index.ts b/src/print/services/count/index.ts index 1050778cddd..97597b1a739 100644 --- a/src/print/services/count/index.ts +++ b/src/print/services/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/services/index.ts b/src/print/services/index.ts index d4ee4367aa8..546d4c845d7 100644 --- a/src/print/services/index.ts +++ b/src/print/services/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintServiceCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrintServiceCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrintServiceFromDiscriminatorValue, deserializeIntoPrintService, serializePrintService, type PrintService } from '../../models/printService'; import { createPrintServiceCollectionResponseFromDiscriminatorValue } from '../../models/printServiceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintServiceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintServiceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServicesRequestBuilderGetQueryParameters { diff --git a/src/print/services/item/endpoints/count/index.ts b/src/print/services/item/endpoints/count/index.ts index 6972999d14d..785abb8f049 100644 --- a/src/print/services/item/endpoints/count/index.ts +++ b/src/print/services/item/endpoints/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/services/item/endpoints/index.ts b/src/print/services/item/endpoints/index.ts index 7c74125a7c9..ba253c961c3 100644 --- a/src/print/services/item/endpoints/index.ts +++ b/src/print/services/item/endpoints/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintServiceEndpointCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrintServiceEndpointCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrintServiceEndpointFromDiscriminatorValue, deserializeIntoPrintServiceEndpoint, serializePrintServiceEndpoint, type PrintServiceEndpoint } from '../../../../models/printServiceEndpoint'; import { createPrintServiceEndpointCollectionResponseFromDiscriminatorValue } from '../../../../models/printServiceEndpointCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintServiceEndpointItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintServiceEndpointItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EndpointsRequestBuilderGetQueryParameters { diff --git a/src/print/services/item/endpoints/item/index.ts b/src/print/services/item/endpoints/item/index.ts index 74443ff2107..7cdc057d418 100644 --- a/src/print/services/item/endpoints/item/index.ts +++ b/src/print/services/item/endpoints/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrintServiceEndpointFromDiscriminatorValue, deserializeIntoPrintServiceEndpoint, serializePrintServiceEndpoint, type PrintServiceEndpoint } from '../../../../../models/printServiceEndpoint'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/services/item/index.ts b/src/print/services/item/index.ts index f5180b82e31..693114abb56 100644 --- a/src/print/services/item/index.ts +++ b/src/print/services/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrintServiceFromDiscriminatorValue, deserializeIntoPrintService, serializePrintService, type PrintService } from '../../../models/printService'; -import { EndpointsRequestBuilder } from './endpoints/'; +import { EndpointsRequestBuilder } from './endpoints'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintServiceItemRequestBuilderGetQueryParameters { diff --git a/src/print/shares/count/index.ts b/src/print/shares/count/index.ts index 739a8c9c370..0444c847788 100644 --- a/src/print/shares/count/index.ts +++ b/src/print/shares/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/index.ts b/src/print/shares/index.ts index 8f396809242..6ae3774ba17 100644 --- a/src/print/shares/index.ts +++ b/src/print/shares/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrinterShareCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrinterShareCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrinterShareFromDiscriminatorValue, deserializeIntoPrinterShare, serializePrinterShare, type PrinterShare } from '../../models/printerShare'; import { createPrinterShareCollectionResponseFromDiscriminatorValue } from '../../models/printerShareCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrinterShareItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrinterShareItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharesRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/allowedGroups/count/index.ts b/src/print/shares/item/allowedGroups/count/index.ts index 8ff4c74de5b..d84f5b8123d 100644 --- a/src/print/shares/item/allowedGroups/count/index.ts +++ b/src/print/shares/item/allowedGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/allowedGroups/index.ts b/src/print/shares/item/allowedGroups/index.ts index 037f7b547e6..d8561ca886c 100644 --- a/src/print/shares/item/allowedGroups/index.ts +++ b/src/print/shares/item/allowedGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GroupItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GroupItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedGroupsRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/allowedGroups/item/index.ts b/src/print/shares/item/allowedGroups/item/index.ts index be18f561539..cce0d96c667 100644 --- a/src/print/shares/item/allowedGroups/item/index.ts +++ b/src/print/shares/item/allowedGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { RefRequestBuilder } from './ref'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/print/shares/item/allowedGroups/item/ref/index.ts b/src/print/shares/item/allowedGroups/item/ref/index.ts index 3b8410a0aa2..7f4af6e02b7 100644 --- a/src/print/shares/item/allowedGroups/item/ref/index.ts +++ b/src/print/shares/item/allowedGroups/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/allowedGroups/item/serviceProvisioningErrors/count/index.ts b/src/print/shares/item/allowedGroups/item/serviceProvisioningErrors/count/index.ts index e9e597d2387..556e6211096 100644 --- a/src/print/shares/item/allowedGroups/item/serviceProvisioningErrors/count/index.ts +++ b/src/print/shares/item/allowedGroups/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/allowedGroups/item/serviceProvisioningErrors/index.ts b/src/print/shares/item/allowedGroups/item/serviceProvisioningErrors/index.ts index cf2f3f102ba..c4ea396df8d 100644 --- a/src/print/shares/item/allowedGroups/item/serviceProvisioningErrors/index.ts +++ b/src/print/shares/item/allowedGroups/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/allowedGroups/ref/index.ts b/src/print/shares/item/allowedGroups/ref/index.ts index 94ae65eb6fa..b6a712b7223 100644 --- a/src/print/shares/item/allowedGroups/ref/index.ts +++ b/src/print/shares/item/allowedGroups/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/print/shares/item/allowedUsers/count/index.ts b/src/print/shares/item/allowedUsers/count/index.ts index a9cb5dd3474..44f1c7d4c3a 100644 --- a/src/print/shares/item/allowedUsers/count/index.ts +++ b/src/print/shares/item/allowedUsers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/allowedUsers/index.ts b/src/print/shares/item/allowedUsers/index.ts index cc875b0f286..2393b2746f5 100644 --- a/src/print/shares/item/allowedUsers/index.ts +++ b/src/print/shares/item/allowedUsers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { UserItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedUsersRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/allowedUsers/item/index.ts b/src/print/shares/item/allowedUsers/item/index.ts index 72318dae947..3a0de4058f2 100644 --- a/src/print/shares/item/allowedUsers/item/index.ts +++ b/src/print/shares/item/allowedUsers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { RefRequestBuilder } from './ref/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { RefRequestBuilder } from './ref'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/print/shares/item/allowedUsers/item/mailboxSettings/index.ts b/src/print/shares/item/allowedUsers/item/mailboxSettings/index.ts index 8f9c78c4f9d..e90b6f9ecf7 100644 --- a/src/print/shares/item/allowedUsers/item/mailboxSettings/index.ts +++ b/src/print/shares/item/allowedUsers/item/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/allowedUsers/item/ref/index.ts b/src/print/shares/item/allowedUsers/item/ref/index.ts index 1a5f73ea7f5..364516aa62d 100644 --- a/src/print/shares/item/allowedUsers/item/ref/index.ts +++ b/src/print/shares/item/allowedUsers/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/allowedUsers/item/serviceProvisioningErrors/count/index.ts b/src/print/shares/item/allowedUsers/item/serviceProvisioningErrors/count/index.ts index ba3a5fd7d44..00db5d5190e 100644 --- a/src/print/shares/item/allowedUsers/item/serviceProvisioningErrors/count/index.ts +++ b/src/print/shares/item/allowedUsers/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/allowedUsers/item/serviceProvisioningErrors/index.ts b/src/print/shares/item/allowedUsers/item/serviceProvisioningErrors/index.ts index 48145e5fa75..ed33be050f4 100644 --- a/src/print/shares/item/allowedUsers/item/serviceProvisioningErrors/index.ts +++ b/src/print/shares/item/allowedUsers/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/allowedUsers/ref/index.ts b/src/print/shares/item/allowedUsers/ref/index.ts index 655f43c8b4d..4708286750b 100644 --- a/src/print/shares/item/allowedUsers/ref/index.ts +++ b/src/print/shares/item/allowedUsers/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../../models/stringCollectionResponse'; diff --git a/src/print/shares/item/index.ts b/src/print/shares/item/index.ts index e18aa911a1c..c6fa5620d79 100644 --- a/src/print/shares/item/index.ts +++ b/src/print/shares/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrinterShareFromDiscriminatorValue, deserializeIntoPrinterShare, serializePrinterShare, type PrinterShare } from '../../../models/printerShare'; -import { AllowedGroupsRequestBuilder } from './allowedGroups/'; -import { AllowedUsersRequestBuilder } from './allowedUsers/'; -import { JobsRequestBuilder } from './jobs/'; -import { PrinterRequestBuilder } from './printer/'; +import { AllowedGroupsRequestBuilder } from './allowedGroups'; +import { AllowedUsersRequestBuilder } from './allowedUsers'; +import { JobsRequestBuilder } from './jobs'; +import { PrinterRequestBuilder } from './printer'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrinterShareItemRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/jobs/count/index.ts b/src/print/shares/item/jobs/count/index.ts index 8f5cc77e100..8e25e38ef9e 100644 --- a/src/print/shares/item/jobs/count/index.ts +++ b/src/print/shares/item/jobs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/jobs/index.ts b/src/print/shares/item/jobs/index.ts index daa04edfa21..ab03a030475 100644 --- a/src/print/shares/item/jobs/index.ts +++ b/src/print/shares/item/jobs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintJobCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrintJobCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrintJobFromDiscriminatorValue, deserializeIntoPrintJob, serializePrintJob, type PrintJob } from '../../../../models/printJob'; import { createPrintJobCollectionResponseFromDiscriminatorValue } from '../../../../models/printJobCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintJobItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintJobItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface JobsRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/jobs/item/abort/index.ts b/src/print/shares/item/jobs/item/abort/index.ts index 759e1b60085..492152f4b94 100644 --- a/src/print/shares/item/jobs/item/abort/index.ts +++ b/src/print/shares/item/jobs/item/abort/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AbortPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,57 +26,5 @@ export function serializeAbortPostRequestBody(writer: SerializationWriter, abort writer.writeStringValue("reason", abortPostRequestBody.reason); writer.writeAdditionalData(abortPostRequestBody.additionalData); } -/** - * Provides operations to call the abort method. - */ -export class AbortRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AbortRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/jobs/{printJob%2Did}/abort"); - }; - /** - * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/printjob-abort?view=graph-rest-1.0|Find more info here} - */ - public post(body: AbortPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AbortPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAbortPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a abortRequestBuilder - */ - public withUrl(rawUrl: string) : AbortRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AbortRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/print/shares/item/jobs/item/cancel/index.ts b/src/print/shares/item/jobs/item/cancel/index.ts index d26ca1ef396..286c5598d3f 100644 --- a/src/print/shares/item/jobs/item/cancel/index.ts +++ b/src/print/shares/item/jobs/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/jobs/item/documents/count/index.ts b/src/print/shares/item/jobs/item/documents/count/index.ts index b3933546fcd..951fa212abf 100644 --- a/src/print/shares/item/jobs/item/documents/count/index.ts +++ b/src/print/shares/item/jobs/item/documents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/jobs/item/documents/index.ts b/src/print/shares/item/jobs/item/documents/index.ts index 28d6c4a0fe3..18dd2e91f99 100644 --- a/src/print/shares/item/jobs/item/documents/index.ts +++ b/src/print/shares/item/jobs/item/documents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintDocumentCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintDocumentCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintDocumentFromDiscriminatorValue, deserializeIntoPrintDocument, serializePrintDocument, type PrintDocument } from '../../../../../../models/printDocument'; import { createPrintDocumentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/printDocumentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintDocumentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintDocumentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentsRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/jobs/item/documents/item/createUploadSession/index.ts b/src/print/shares/item/jobs/item/documents/item/createUploadSession/index.ts index f93c5ae7b94..111167be6be 100644 --- a/src/print/shares/item/jobs/item/documents/item/createUploadSession/index.ts +++ b/src/print/shares/item/jobs/item/documents/item/createUploadSession/index.ts @@ -1,11 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPrintDocumentUploadPropertiesFromDiscriminatorValue, serializePrintDocumentUploadProperties, type PrintDocumentUploadProperties } from '../../../../../../../../models/printDocumentUploadProperties'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("properties", createUploadSessionPostRequestBody.properties, serializePrintDocumentUploadProperties); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/jobs/{printJob%2Did}/documents/{printDocument%2Did}/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/printdocument-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/print/shares/item/jobs/item/documents/item/index.ts b/src/print/shares/item/jobs/item/documents/item/index.ts index 800a04431cd..1a69421321d 100644 --- a/src/print/shares/item/jobs/item/documents/item/index.ts +++ b/src/print/shares/item/jobs/item/documents/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPrintDocumentFromDiscriminatorValue, deserializeIntoPrintDocument, serializePrintDocument, type PrintDocument } from '../../../../../../../models/printDocument'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { ContentRequestBuilder } from './value/'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintDocumentItemRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/jobs/item/documents/item/value/index.ts b/src/print/shares/item/jobs/item/documents/item/value/index.ts index 68fedb23410..a318bb187e0 100644 --- a/src/print/shares/item/jobs/item/documents/item/value/index.ts +++ b/src/print/shares/item/jobs/item/documents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/jobs/item/index.ts b/src/print/shares/item/jobs/item/index.ts index ebd292a4711..a6e2b4856dc 100644 --- a/src/print/shares/item/jobs/item/index.ts +++ b/src/print/shares/item/jobs/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrintJobFromDiscriminatorValue, deserializeIntoPrintJob, serializePrintJob, type PrintJob } from '../../../../../models/printJob'; -import { AbortRequestBuilder } from './abort/'; -import { CancelRequestBuilder } from './cancel/'; -import { DocumentsRequestBuilder } from './documents/'; -import { RedirectRequestBuilder } from './redirect/'; -import { StartRequestBuilder } from './start/'; -import { TasksRequestBuilder } from './tasks/'; +import { AbortRequestBuilder } from './abort'; +import { CancelRequestBuilder } from './cancel'; +import { DocumentsRequestBuilder } from './documents'; +import { RedirectRequestBuilder } from './redirect'; +import { StartRequestBuilder } from './start'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintJobItemRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/jobs/item/redirect/index.ts b/src/print/shares/item/jobs/item/redirect/index.ts index e4aaf93d9b9..bd56cf7dcfc 100644 --- a/src/print/shares/item/jobs/item/redirect/index.ts +++ b/src/print/shares/item/jobs/item/redirect/index.ts @@ -1,12 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintJobFromDiscriminatorValue, deserializeIntoPrintJob, serializePrintJob, type PrintJob } from '../../../../../../models/printJob'; -import { deserializeIntoRedirectPostRequestBody, serializeRedirectPostRequestBody, type RedirectPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createPrintJobConfigurationFromDiscriminatorValue, serializePrintJobConfiguration, type PrintJobConfiguration } from '../../../../../../models/printJobConfiguration'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRedirectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRedirectPostRequestBody; +} +export function deserializeIntoRedirectPostRequestBody(redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : Record void> { + return { + "configuration": n => { redirectPostRequestBody.configuration = n.getObjectValue(createPrintJobConfigurationFromDiscriminatorValue); }, + "destinationPrinterId": n => { redirectPostRequestBody.destinationPrinterId = n.getStringValue(); }, + } +} +export interface RedirectPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The configuration property + */ + configuration?: PrintJobConfiguration; + /** + * The destinationPrinterId property + */ + destinationPrinterId?: string; +} +export function serializeRedirectPostRequestBody(writer: SerializationWriter, redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : void { + writer.writeObjectValue("configuration", redirectPostRequestBody.configuration, serializePrintJobConfiguration); + writer.writeStringValue("destinationPrinterId", redirectPostRequestBody.destinationPrinterId); + writer.writeAdditionalData(redirectPostRequestBody.additionalData); +} /** * Provides operations to call the redirect method. */ diff --git a/src/print/shares/item/jobs/item/redirect/redirectPostRequestBody.ts b/src/print/shares/item/jobs/item/redirect/redirectPostRequestBody.ts deleted file mode 100644 index c137a44523f..00000000000 --- a/src/print/shares/item/jobs/item/redirect/redirectPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createPrintJobConfigurationFromDiscriminatorValue, serializePrintJobConfiguration, type PrintJobConfiguration } from '../../../../../../models/printJobConfiguration'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRedirectPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRedirectPostRequestBody; -} -export function deserializeIntoRedirectPostRequestBody(redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : Record void> { - return { - "configuration": n => { redirectPostRequestBody.configuration = n.getObjectValue(createPrintJobConfigurationFromDiscriminatorValue); }, - "destinationPrinterId": n => { redirectPostRequestBody.destinationPrinterId = n.getStringValue(); }, - } -} -export interface RedirectPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The configuration property - */ - configuration?: PrintJobConfiguration; - /** - * The destinationPrinterId property - */ - destinationPrinterId?: string; -} -export function serializeRedirectPostRequestBody(writer: SerializationWriter, redirectPostRequestBody: RedirectPostRequestBody | undefined = {} as RedirectPostRequestBody) : void { - writer.writeObjectValue("configuration", redirectPostRequestBody.configuration, serializePrintJobConfiguration); - writer.writeStringValue("destinationPrinterId", redirectPostRequestBody.destinationPrinterId); - writer.writeAdditionalData(redirectPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/print/shares/item/jobs/item/start/index.ts b/src/print/shares/item/jobs/item/start/index.ts index 6bcc721b5ed..2a7510a8729 100644 --- a/src/print/shares/item/jobs/item/start/index.ts +++ b/src/print/shares/item/jobs/item/start/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintJobStatus } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintJobStatus } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintJobStatusFromDiscriminatorValue } from '../../../../../../models/printJobStatus'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/jobs/item/tasks/count/index.ts b/src/print/shares/item/jobs/item/tasks/count/index.ts index 9d0bcd1f739..977d2994de4 100644 --- a/src/print/shares/item/jobs/item/tasks/count/index.ts +++ b/src/print/shares/item/jobs/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/jobs/item/tasks/index.ts b/src/print/shares/item/jobs/item/tasks/index.ts index d8ff2850451..2e0ef9bffc3 100644 --- a/src/print/shares/item/jobs/item/tasks/index.ts +++ b/src/print/shares/item/jobs/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintTaskCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskFromDiscriminatorValue, deserializeIntoPrintTask, serializePrintTask, type PrintTask } from '../../../../../../models/printTask'; import { createPrintTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../models/printTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/jobs/item/tasks/item/definition/index.ts b/src/print/shares/item/jobs/item/tasks/item/definition/index.ts index 6f50149bcea..df7b0f7acd8 100644 --- a/src/print/shares/item/jobs/item/tasks/item/definition/index.ts +++ b/src/print/shares/item/jobs/item/tasks/item/definition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskDefinition } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type PrintTaskDefinition } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskDefinitionFromDiscriminatorValue } from '../../../../../../../../models/printTaskDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/jobs/item/tasks/item/index.ts b/src/print/shares/item/jobs/item/tasks/item/index.ts index dac27a4bf44..a6355e52b69 100644 --- a/src/print/shares/item/jobs/item/tasks/item/index.ts +++ b/src/print/shares/item/jobs/item/tasks/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskFromDiscriminatorValue, deserializeIntoPrintTask, serializePrintTask, type PrintTask } from '../../../../../../../models/printTask'; -import { DefinitionRequestBuilder } from './definition/'; -import { TriggerRequestBuilder } from './trigger/'; +import { DefinitionRequestBuilder } from './definition'; +import { TriggerRequestBuilder } from './trigger'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintTaskItemRequestBuilderGetQueryParameters { diff --git a/src/print/shares/item/jobs/item/tasks/item/trigger/index.ts b/src/print/shares/item/jobs/item/tasks/item/trigger/index.ts index 0a06fe8f1fa..89d9600da51 100644 --- a/src/print/shares/item/jobs/item/tasks/item/trigger/index.ts +++ b/src/print/shares/item/jobs/item/tasks/item/trigger/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskTrigger } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type PrintTaskTrigger } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskTriggerFromDiscriminatorValue } from '../../../../../../../../models/printTaskTrigger'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/shares/item/printer/index.ts b/src/print/shares/item/printer/index.ts index f1b546f7d60..fb382394d14 100644 --- a/src/print/shares/item/printer/index.ts +++ b/src/print/shares/item/printer/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Printer } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type Printer } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrinterFromDiscriminatorValue } from '../../../../models/printer'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/taskDefinitions/count/index.ts b/src/print/taskDefinitions/count/index.ts index e9f94fd92a0..c31edf1cf2d 100644 --- a/src/print/taskDefinitions/count/index.ts +++ b/src/print/taskDefinitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/taskDefinitions/index.ts b/src/print/taskDefinitions/index.ts index 8b3a85f59ca..513eee1f45c 100644 --- a/src/print/taskDefinitions/index.ts +++ b/src/print/taskDefinitions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskDefinitionCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrintTaskDefinitionCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrintTaskDefinitionFromDiscriminatorValue, deserializeIntoPrintTaskDefinition, serializePrintTaskDefinition, type PrintTaskDefinition } from '../../models/printTaskDefinition'; import { createPrintTaskDefinitionCollectionResponseFromDiscriminatorValue } from '../../models/printTaskDefinitionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintTaskDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintTaskDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TaskDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/print/taskDefinitions/item/index.ts b/src/print/taskDefinitions/item/index.ts index 8a3bfc81a21..998f50ebb3c 100644 --- a/src/print/taskDefinitions/item/index.ts +++ b/src/print/taskDefinitions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrintTaskDefinitionFromDiscriminatorValue, deserializeIntoPrintTaskDefinition, serializePrintTaskDefinition, type PrintTaskDefinition } from '../../../models/printTaskDefinition'; -import { TasksRequestBuilder } from './tasks/'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintTaskDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/print/taskDefinitions/item/tasks/count/index.ts b/src/print/taskDefinitions/item/tasks/count/index.ts index 0d506aff7cf..52c3d516df2 100644 --- a/src/print/taskDefinitions/item/tasks/count/index.ts +++ b/src/print/taskDefinitions/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/taskDefinitions/item/tasks/index.ts b/src/print/taskDefinitions/item/tasks/index.ts index b787bfaafef..5641162a002 100644 --- a/src/print/taskDefinitions/item/tasks/index.ts +++ b/src/print/taskDefinitions/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PrintTaskCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPrintTaskFromDiscriminatorValue, deserializeIntoPrintTask, serializePrintTask, type PrintTask } from '../../../../models/printTask'; import { createPrintTaskCollectionResponseFromDiscriminatorValue } from '../../../../models/printTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/print/taskDefinitions/item/tasks/item/definition/index.ts b/src/print/taskDefinitions/item/tasks/item/definition/index.ts index 7fde49be039..f0ede1c3956 100644 --- a/src/print/taskDefinitions/item/tasks/item/definition/index.ts +++ b/src/print/taskDefinitions/item/tasks/item/definition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskDefinition } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintTaskDefinition } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskDefinitionFromDiscriminatorValue } from '../../../../../../models/printTaskDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/print/taskDefinitions/item/tasks/item/index.ts b/src/print/taskDefinitions/item/tasks/item/index.ts index 7bccafde4b5..b61b54f7fb7 100644 --- a/src/print/taskDefinitions/item/tasks/item/index.ts +++ b/src/print/taskDefinitions/item/tasks/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPrintTaskFromDiscriminatorValue, deserializeIntoPrintTask, serializePrintTask, type PrintTask } from '../../../../../models/printTask'; -import { DefinitionRequestBuilder } from './definition/'; -import { TriggerRequestBuilder } from './trigger/'; +import { DefinitionRequestBuilder } from './definition'; +import { TriggerRequestBuilder } from './trigger'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrintTaskItemRequestBuilderGetQueryParameters { diff --git a/src/print/taskDefinitions/item/tasks/item/trigger/index.ts b/src/print/taskDefinitions/item/tasks/item/trigger/index.ts index b5c2318e418..222979585de 100644 --- a/src/print/taskDefinitions/item/tasks/item/trigger/index.ts +++ b/src/print/taskDefinitions/item/tasks/item/trigger/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintTaskTrigger } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PrintTaskTrigger } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPrintTaskTriggerFromDiscriminatorValue } from '../../../../../../models/printTaskTrigger'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/index.ts b/src/privacy/index.ts index 23c41eb6f92..e0bf82e2b08 100644 --- a/src/privacy/index.ts +++ b/src/privacy/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createPrivacyFromDiscriminatorValue, deserializeIntoPrivacy, serializePrivacy, type Privacy } from '../models/privacy'; -import { SubjectRightsRequestsRequestBuilder } from './subjectRightsRequests/'; +import { SubjectRightsRequestsRequestBuilder } from './subjectRightsRequests'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrivacyRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/count/index.ts b/src/privacy/subjectRightsRequests/count/index.ts index 24c4b8c478d..489510ae307 100644 --- a/src/privacy/subjectRightsRequests/count/index.ts +++ b/src/privacy/subjectRightsRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/index.ts b/src/privacy/subjectRightsRequests/index.ts index 5b7f5760045..18d9f1dec09 100644 --- a/src/privacy/subjectRightsRequests/index.ts +++ b/src/privacy/subjectRightsRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubjectRightsRequestCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type SubjectRightsRequestCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSubjectRightsRequestFromDiscriminatorValue, deserializeIntoSubjectRightsRequest, serializeSubjectRightsRequest, type SubjectRightsRequest } from '../../models/subjectRightsRequest'; import { createSubjectRightsRequestCollectionResponseFromDiscriminatorValue } from '../../models/subjectRightsRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubjectRightsRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubjectRightsRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRightsRequestsRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/approvers/count/index.ts b/src/privacy/subjectRightsRequests/item/approvers/count/index.ts index cd549b09b00..e9bb5c12dce 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/approvers/index.ts b/src/privacy/subjectRightsRequests/item/approvers/index.ts index 08e7cd0d3df..c5e39a3c314 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApproversRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/approvers/item/index.ts b/src/privacy/subjectRightsRequests/item/approvers/item/index.ts index 974ba283fbf..ab45d9ae02f 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/item/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserItemRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts b/src/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts index 962d0518ab6..8012bea2d3f 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts b/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts index 10d430d9ff8..42850d453f8 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts b/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts index ae8018c9233..ceab091d58d 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/collaborators/count/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/count/index.ts index 652bddc684f..43e14ea340d 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/collaborators/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/index.ts index e84fc1c1834..88d17a3b5f9 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CollaboratorsRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/collaborators/item/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/item/index.ts index 0c7230af0e8..dd15b502c4c 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/item/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserItemRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts index a4967302f1d..8fc174648e8 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts index be30eb6e471..6399aab5fa6 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts index 900912fe5aa..0f3dd6b5f29 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/getFinalAttachment/index.ts b/src/privacy/subjectRightsRequests/item/getFinalAttachment/index.ts index 9192bd28e69..76badda3220 100644 --- a/src/privacy/subjectRightsRequests/item/getFinalAttachment/index.ts +++ b/src/privacy/subjectRightsRequests/item/getFinalAttachment/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/getFinalReport/index.ts b/src/privacy/subjectRightsRequests/item/getFinalReport/index.ts index 8129c021485..690795c985b 100644 --- a/src/privacy/subjectRightsRequests/item/getFinalReport/index.ts +++ b/src/privacy/subjectRightsRequests/item/getFinalReport/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/index.ts b/src/privacy/subjectRightsRequests/item/index.ts index 2e1d7c88aef..f0179914ddd 100644 --- a/src/privacy/subjectRightsRequests/item/index.ts +++ b/src/privacy/subjectRightsRequests/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSubjectRightsRequestFromDiscriminatorValue, deserializeIntoSubjectRightsRequest, serializeSubjectRightsRequest, type SubjectRightsRequest } from '../../../models/subjectRightsRequest'; -import { ApproversRequestBuilder } from './approvers/'; -import { CollaboratorsRequestBuilder } from './collaborators/'; -import { GetFinalAttachmentRequestBuilder } from './getFinalAttachment/'; -import { GetFinalReportRequestBuilder } from './getFinalReport/'; -import { NotesRequestBuilder } from './notes/'; -import { TeamRequestBuilder } from './team/'; +import { ApproversRequestBuilder } from './approvers'; +import { CollaboratorsRequestBuilder } from './collaborators'; +import { GetFinalAttachmentRequestBuilder } from './getFinalAttachment'; +import { GetFinalReportRequestBuilder } from './getFinalReport'; +import { NotesRequestBuilder } from './notes'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRightsRequestItemRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/notes/count/index.ts b/src/privacy/subjectRightsRequests/item/notes/count/index.ts index 3151d0f9ae6..07e83c9d005 100644 --- a/src/privacy/subjectRightsRequests/item/notes/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/notes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/notes/index.ts b/src/privacy/subjectRightsRequests/item/notes/index.ts index d98eb5ecc5d..16c2dddd2e8 100644 --- a/src/privacy/subjectRightsRequests/item/notes/index.ts +++ b/src/privacy/subjectRightsRequests/item/notes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthoredNoteCollectionResponse } from '../../../../models/'; +import { type AuthoredNoteCollectionResponse } from '../../../../models'; import { createAuthoredNoteFromDiscriminatorValue, deserializeIntoAuthoredNote, serializeAuthoredNote, type AuthoredNote } from '../../../../models/authoredNote'; import { createAuthoredNoteCollectionResponseFromDiscriminatorValue } from '../../../../models/authoredNoteCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthoredNoteItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthoredNoteItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotesRequestBuilderGetQueryParameters { diff --git a/src/privacy/subjectRightsRequests/item/notes/item/index.ts b/src/privacy/subjectRightsRequests/item/notes/item/index.ts index 2036bb3f440..66b33a81789 100644 --- a/src/privacy/subjectRightsRequests/item/notes/item/index.ts +++ b/src/privacy/subjectRightsRequests/item/notes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthoredNoteFromDiscriminatorValue, deserializeIntoAuthoredNote, serializeAuthoredNote, type AuthoredNote } from '../../../../../models/authoredNote'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/privacy/subjectRightsRequests/item/team/index.ts b/src/privacy/subjectRightsRequests/item/team/index.ts index 429b4d2db0c..0aeb97c5757 100644 --- a/src/privacy/subjectRightsRequests/item/team/index.ts +++ b/src/privacy/subjectRightsRequests/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type Team } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/authenticationMethods/index.ts b/src/reports/authenticationMethods/index.ts index 200480d36e3..3aeb946e64b 100644 --- a/src/reports/authenticationMethods/index.ts +++ b/src/reports/authenticationMethods/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationMethodsRootFromDiscriminatorValue, deserializeIntoAuthenticationMethodsRoot, serializeAuthenticationMethodsRoot, type AuthenticationMethodsRoot } from '../../models/authenticationMethodsRoot'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { UserRegistrationDetailsRequestBuilder } from './userRegistrationDetails/'; -import { UsersRegisteredByFeatureRequestBuilder } from './usersRegisteredByFeature/'; -import { UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder } from './usersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/'; -import { UsersRegisteredByMethodRequestBuilder } from './usersRegisteredByMethod/'; -import { UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder } from './usersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/'; +import { UserRegistrationDetailsRequestBuilder } from './userRegistrationDetails'; +import { UsersRegisteredByFeatureRequestBuilder } from './usersRegisteredByFeature'; +import { UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder } from './usersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles'; +import { UsersRegisteredByMethodRequestBuilder } from './usersRegisteredByMethod'; +import { UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder } from './usersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationMethodsRequestBuilderGetQueryParameters { diff --git a/src/reports/authenticationMethods/userRegistrationDetails/count/index.ts b/src/reports/authenticationMethods/userRegistrationDetails/count/index.ts index dd09628ed15..86f8602b83c 100644 --- a/src/reports/authenticationMethods/userRegistrationDetails/count/index.ts +++ b/src/reports/authenticationMethods/userRegistrationDetails/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/authenticationMethods/userRegistrationDetails/index.ts b/src/reports/authenticationMethods/userRegistrationDetails/index.ts index 548f7cdec41..547f0722f88 100644 --- a/src/reports/authenticationMethods/userRegistrationDetails/index.ts +++ b/src/reports/authenticationMethods/userRegistrationDetails/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserRegistrationDetailsCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UserRegistrationDetailsCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserRegistrationDetailsFromDiscriminatorValue, deserializeIntoUserRegistrationDetails, serializeUserRegistrationDetails, type UserRegistrationDetails } from '../../../models/userRegistrationDetails'; import { createUserRegistrationDetailsCollectionResponseFromDiscriminatorValue } from '../../../models/userRegistrationDetailsCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserRegistrationDetailsItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserRegistrationDetailsItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserRegistrationDetailsRequestBuilderGetQueryParameters { diff --git a/src/reports/authenticationMethods/userRegistrationDetails/item/index.ts b/src/reports/authenticationMethods/userRegistrationDetails/item/index.ts index c9f48749d02..3cba2f1f9f2 100644 --- a/src/reports/authenticationMethods/userRegistrationDetails/item/index.ts +++ b/src/reports/authenticationMethods/userRegistrationDetails/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserRegistrationDetailsFromDiscriminatorValue, deserializeIntoUserRegistrationDetails, serializeUserRegistrationDetails, type UserRegistrationDetails } from '../../../../models/userRegistrationDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/authenticationMethods/usersRegisteredByFeature/index.ts b/src/reports/authenticationMethods/usersRegisteredByFeature/index.ts index c09215f930c..30f8988ede5 100644 --- a/src/reports/authenticationMethods/usersRegisteredByFeature/index.ts +++ b/src/reports/authenticationMethods/usersRegisteredByFeature/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserRegistrationFeatureSummary } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UserRegistrationFeatureSummary } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserRegistrationFeatureSummaryFromDiscriminatorValue } from '../../../models/userRegistrationFeatureSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/authenticationMethods/usersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/index.ts b/src/reports/authenticationMethods/usersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/index.ts index 0db4e5ea3b7..5f1bc7a08fc 100644 --- a/src/reports/authenticationMethods/usersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/index.ts +++ b/src/reports/authenticationMethods/usersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserRegistrationFeatureSummary } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UserRegistrationFeatureSummary } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserRegistrationFeatureSummaryFromDiscriminatorValue } from '../../../models/userRegistrationFeatureSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/authenticationMethods/usersRegisteredByMethod/index.ts b/src/reports/authenticationMethods/usersRegisteredByMethod/index.ts index 1df389062e7..182e3fe3ff6 100644 --- a/src/reports/authenticationMethods/usersRegisteredByMethod/index.ts +++ b/src/reports/authenticationMethods/usersRegisteredByMethod/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserRegistrationMethodSummary } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UserRegistrationMethodSummary } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserRegistrationMethodSummaryFromDiscriminatorValue } from '../../../models/userRegistrationMethodSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/authenticationMethods/usersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/index.ts b/src/reports/authenticationMethods/usersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/index.ts index 93eaff23cc9..e6d6509573f 100644 --- a/src/reports/authenticationMethods/usersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/index.ts +++ b/src/reports/authenticationMethods/usersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserRegistrationMethodSummary } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UserRegistrationMethodSummary } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserRegistrationMethodSummaryFromDiscriminatorValue } from '../../../models/userRegistrationMethodSummary'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/dailyPrintUsageByPrinter/count/index.ts b/src/reports/dailyPrintUsageByPrinter/count/index.ts index b6a2dcc1921..90a52360b21 100644 --- a/src/reports/dailyPrintUsageByPrinter/count/index.ts +++ b/src/reports/dailyPrintUsageByPrinter/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/dailyPrintUsageByPrinter/index.ts b/src/reports/dailyPrintUsageByPrinter/index.ts index 54512bf3d00..9107d34f07d 100644 --- a/src/reports/dailyPrintUsageByPrinter/index.ts +++ b/src/reports/dailyPrintUsageByPrinter/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintUsageByPrinterCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrintUsageByPrinterCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrintUsageByPrinterFromDiscriminatorValue, deserializeIntoPrintUsageByPrinter, serializePrintUsageByPrinter, type PrintUsageByPrinter } from '../../models/printUsageByPrinter'; import { createPrintUsageByPrinterCollectionResponseFromDiscriminatorValue } from '../../models/printUsageByPrinterCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintUsageByPrinterItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintUsageByPrinterItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DailyPrintUsageByPrinterRequestBuilderGetQueryParameters { diff --git a/src/reports/dailyPrintUsageByPrinter/item/index.ts b/src/reports/dailyPrintUsageByPrinter/item/index.ts index d718b18a0a2..494f9c322cc 100644 --- a/src/reports/dailyPrintUsageByPrinter/item/index.ts +++ b/src/reports/dailyPrintUsageByPrinter/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrintUsageByPrinterFromDiscriminatorValue, deserializeIntoPrintUsageByPrinter, serializePrintUsageByPrinter, type PrintUsageByPrinter } from '../../../models/printUsageByPrinter'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/dailyPrintUsageByUser/count/index.ts b/src/reports/dailyPrintUsageByUser/count/index.ts index 8b2a82fa33d..c87f3b53772 100644 --- a/src/reports/dailyPrintUsageByUser/count/index.ts +++ b/src/reports/dailyPrintUsageByUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/dailyPrintUsageByUser/index.ts b/src/reports/dailyPrintUsageByUser/index.ts index 3d99b72af2f..1e9ed159e39 100644 --- a/src/reports/dailyPrintUsageByUser/index.ts +++ b/src/reports/dailyPrintUsageByUser/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintUsageByUserCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrintUsageByUserCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrintUsageByUserFromDiscriminatorValue, deserializeIntoPrintUsageByUser, serializePrintUsageByUser, type PrintUsageByUser } from '../../models/printUsageByUser'; import { createPrintUsageByUserCollectionResponseFromDiscriminatorValue } from '../../models/printUsageByUserCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintUsageByUserItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintUsageByUserItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DailyPrintUsageByUserRequestBuilderGetQueryParameters { diff --git a/src/reports/dailyPrintUsageByUser/item/index.ts b/src/reports/dailyPrintUsageByUser/item/index.ts index fc7fa1460a0..00e6f1bcb56 100644 --- a/src/reports/dailyPrintUsageByUser/item/index.ts +++ b/src/reports/dailyPrintUsageByUser/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrintUsageByUserFromDiscriminatorValue, deserializeIntoPrintUsageByUser, serializePrintUsageByUser, type PrintUsageByUser } from '../../../models/printUsageByUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/deviceConfigurationDeviceActivity/index.ts b/src/reports/deviceConfigurationDeviceActivity/index.ts index 834a59f884d..c52097bce34 100644 --- a/src/reports/deviceConfigurationDeviceActivity/index.ts +++ b/src/reports/deviceConfigurationDeviceActivity/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Report } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type Report } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createReportFromDiscriminatorValue } from '../../models/report'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/deviceConfigurationUserActivity/index.ts b/src/reports/deviceConfigurationUserActivity/index.ts index 9449d3cdb6c..9ef59e22e80 100644 --- a/src/reports/deviceConfigurationUserActivity/index.ts +++ b/src/reports/deviceConfigurationUserActivity/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Report } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type Report } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createReportFromDiscriminatorValue } from '../../models/report'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailActivityCountsWithPeriod/index.ts b/src/reports/getEmailActivityCountsWithPeriod/index.ts index c0ea3a179e3..e33571050e8 100644 --- a/src/reports/getEmailActivityCountsWithPeriod/index.ts +++ b/src/reports/getEmailActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailActivityUserCountsWithPeriod/index.ts b/src/reports/getEmailActivityUserCountsWithPeriod/index.ts index ff364fd86f9..3bee51fafc4 100644 --- a/src/reports/getEmailActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getEmailActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailActivityUserDetailWithDate/index.ts b/src/reports/getEmailActivityUserDetailWithDate/index.ts index 591f81ce671..a1a4ada6f2e 100644 --- a/src/reports/getEmailActivityUserDetailWithDate/index.ts +++ b/src/reports/getEmailActivityUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailActivityUserDetailWithPeriod/index.ts b/src/reports/getEmailActivityUserDetailWithPeriod/index.ts index 0491e442522..1bf476f8f8d 100644 --- a/src/reports/getEmailActivityUserDetailWithPeriod/index.ts +++ b/src/reports/getEmailActivityUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailAppUsageAppsUserCountsWithPeriod/index.ts b/src/reports/getEmailAppUsageAppsUserCountsWithPeriod/index.ts index 2f0d3fe7d0f..8faaae13736 100644 --- a/src/reports/getEmailAppUsageAppsUserCountsWithPeriod/index.ts +++ b/src/reports/getEmailAppUsageAppsUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailAppUsageUserCountsWithPeriod/index.ts b/src/reports/getEmailAppUsageUserCountsWithPeriod/index.ts index 0a9fb0f103e..47895cc6e28 100644 --- a/src/reports/getEmailAppUsageUserCountsWithPeriod/index.ts +++ b/src/reports/getEmailAppUsageUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailAppUsageUserDetailWithDate/index.ts b/src/reports/getEmailAppUsageUserDetailWithDate/index.ts index 23e3dc90ba5..9e2fb4acf8d 100644 --- a/src/reports/getEmailAppUsageUserDetailWithDate/index.ts +++ b/src/reports/getEmailAppUsageUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailAppUsageUserDetailWithPeriod/index.ts b/src/reports/getEmailAppUsageUserDetailWithPeriod/index.ts index 5d582c382e5..f4d7ecfaff3 100644 --- a/src/reports/getEmailAppUsageUserDetailWithPeriod/index.ts +++ b/src/reports/getEmailAppUsageUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getEmailAppUsageVersionsUserCountsWithPeriod/index.ts b/src/reports/getEmailAppUsageVersionsUserCountsWithPeriod/index.ts index f3d9ff805bf..ae00458eb7e 100644 --- a/src/reports/getEmailAppUsageVersionsUserCountsWithPeriod/index.ts +++ b/src/reports/getEmailAppUsageVersionsUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.ts b/src/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.ts deleted file mode 100644 index 41202ddf2e4..00000000000 --- a/src/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createArchivedPrintJobFromDiscriminatorValue, serializeArchivedPrintJob, type ArchivedPrintJob } from '../../models/archivedPrintJob'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse; -} -export function deserializeIntoGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse(getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse: GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse), - "value": n => { getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.value = n.getCollectionOfObjectValues(createArchivedPrintJobFromDiscriminatorValue); }, - } -} -export interface GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ArchivedPrintJob[]; -} -export function serializeGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse(writer: SerializationWriter, getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse: GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse) - writer.writeCollectionOfObjectValues("value", getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.value, serializeArchivedPrintJob); -} -// tslint:enable -// eslint-enable diff --git a/src/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/index.ts b/src/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/index.ts index e423d882c65..f79c36e4451 100644 --- a/src/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/index.ts +++ b/src/reports/getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { createArchivedPrintJobFromDiscriminatorValue, serializeArchivedPrintJob, type ArchivedPrintJob } from '../../models/archivedPrintJob'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { createGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue } from './'; -import { type GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse; +} +export function deserializeIntoGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse(getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse: GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse), + "value": n => { getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.value = n.getCollectionOfObjectValues(createArchivedPrintJobFromDiscriminatorValue); }, + } +} +export interface GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ArchivedPrintJob[]; +} export interface GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDat */ top?: number; } +export function serializeGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse(writer: SerializationWriter, getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse: GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse) + writer.writeCollectionOfObjectValues("value", getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.value, serializeArchivedPrintJob); +} /** * Provides operations to call the getGroupArchivedPrintJobs method. */ diff --git a/src/reports/getM365AppPlatformUserCountsWithPeriod/index.ts b/src/reports/getM365AppPlatformUserCountsWithPeriod/index.ts index f48397cf883..b7008da16d9 100644 --- a/src/reports/getM365AppPlatformUserCountsWithPeriod/index.ts +++ b/src/reports/getM365AppPlatformUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getM365AppUserCountsWithPeriod/index.ts b/src/reports/getM365AppUserCountsWithPeriod/index.ts index c436abb5c5b..9b45c8fc61b 100644 --- a/src/reports/getM365AppUserCountsWithPeriod/index.ts +++ b/src/reports/getM365AppUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getM365AppUserDetailWithDate/index.ts b/src/reports/getM365AppUserDetailWithDate/index.ts index bb47151d9e6..d9a6dc1cec3 100644 --- a/src/reports/getM365AppUserDetailWithDate/index.ts +++ b/src/reports/getM365AppUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getM365AppUserDetailWithPeriod/index.ts b/src/reports/getM365AppUserDetailWithPeriod/index.ts index 17ceb0dd2d6..672cacf0904 100644 --- a/src/reports/getM365AppUserDetailWithPeriod/index.ts +++ b/src/reports/getM365AppUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getMailboxUsageDetailWithPeriod/index.ts b/src/reports/getMailboxUsageDetailWithPeriod/index.ts index 600ecc7c86b..cae7829829b 100644 --- a/src/reports/getMailboxUsageDetailWithPeriod/index.ts +++ b/src/reports/getMailboxUsageDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getMailboxUsageMailboxCountsWithPeriod/index.ts b/src/reports/getMailboxUsageMailboxCountsWithPeriod/index.ts index 2a6145b19f2..951db0846dc 100644 --- a/src/reports/getMailboxUsageMailboxCountsWithPeriod/index.ts +++ b/src/reports/getMailboxUsageMailboxCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getMailboxUsageQuotaStatusMailboxCountsWithPeriod/index.ts b/src/reports/getMailboxUsageQuotaStatusMailboxCountsWithPeriod/index.ts index a3dfc01912b..dc80d2b1c0c 100644 --- a/src/reports/getMailboxUsageQuotaStatusMailboxCountsWithPeriod/index.ts +++ b/src/reports/getMailboxUsageQuotaStatusMailboxCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getMailboxUsageStorageWithPeriod/index.ts b/src/reports/getMailboxUsageStorageWithPeriod/index.ts index 514f1c2d2ff..7621a046af0 100644 --- a/src/reports/getMailboxUsageStorageWithPeriod/index.ts +++ b/src/reports/getMailboxUsageStorageWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365ActivationCounts/index.ts b/src/reports/getOffice365ActivationCounts/index.ts index 4cb4d97609e..2b494388a09 100644 --- a/src/reports/getOffice365ActivationCounts/index.ts +++ b/src/reports/getOffice365ActivationCounts/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365ActivationsUserCounts/index.ts b/src/reports/getOffice365ActivationsUserCounts/index.ts index 16a183768b1..5d88e9bd6de 100644 --- a/src/reports/getOffice365ActivationsUserCounts/index.ts +++ b/src/reports/getOffice365ActivationsUserCounts/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365ActivationsUserDetail/index.ts b/src/reports/getOffice365ActivationsUserDetail/index.ts index 64bc345a619..90c1690fcbf 100644 --- a/src/reports/getOffice365ActivationsUserDetail/index.ts +++ b/src/reports/getOffice365ActivationsUserDetail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365ActiveUserCountsWithPeriod/index.ts b/src/reports/getOffice365ActiveUserCountsWithPeriod/index.ts index fe401d5b74e..8053741f709 100644 --- a/src/reports/getOffice365ActiveUserCountsWithPeriod/index.ts +++ b/src/reports/getOffice365ActiveUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365ActiveUserDetailWithDate/index.ts b/src/reports/getOffice365ActiveUserDetailWithDate/index.ts index 92fc3161af3..b04209d7d29 100644 --- a/src/reports/getOffice365ActiveUserDetailWithDate/index.ts +++ b/src/reports/getOffice365ActiveUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365ActiveUserDetailWithPeriod/index.ts b/src/reports/getOffice365ActiveUserDetailWithPeriod/index.ts index 505000df2f7..f29ccf47176 100644 --- a/src/reports/getOffice365ActiveUserDetailWithPeriod/index.ts +++ b/src/reports/getOffice365ActiveUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365GroupsActivityCountsWithPeriod/index.ts b/src/reports/getOffice365GroupsActivityCountsWithPeriod/index.ts index 1f8a4e67e4e..fd96c3c5808 100644 --- a/src/reports/getOffice365GroupsActivityCountsWithPeriod/index.ts +++ b/src/reports/getOffice365GroupsActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365GroupsActivityDetailWithDate/index.ts b/src/reports/getOffice365GroupsActivityDetailWithDate/index.ts index c8cfc6840e6..880b8787de8 100644 --- a/src/reports/getOffice365GroupsActivityDetailWithDate/index.ts +++ b/src/reports/getOffice365GroupsActivityDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365GroupsActivityDetailWithPeriod/index.ts b/src/reports/getOffice365GroupsActivityDetailWithPeriod/index.ts index 6650cbd276f..0acb5f10895 100644 --- a/src/reports/getOffice365GroupsActivityDetailWithPeriod/index.ts +++ b/src/reports/getOffice365GroupsActivityDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365GroupsActivityFileCountsWithPeriod/index.ts b/src/reports/getOffice365GroupsActivityFileCountsWithPeriod/index.ts index 5e6f24f93c4..db97d73a3bb 100644 --- a/src/reports/getOffice365GroupsActivityFileCountsWithPeriod/index.ts +++ b/src/reports/getOffice365GroupsActivityFileCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365GroupsActivityGroupCountsWithPeriod/index.ts b/src/reports/getOffice365GroupsActivityGroupCountsWithPeriod/index.ts index 1a93994e54a..1af8a6367dc 100644 --- a/src/reports/getOffice365GroupsActivityGroupCountsWithPeriod/index.ts +++ b/src/reports/getOffice365GroupsActivityGroupCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365GroupsActivityStorageWithPeriod/index.ts b/src/reports/getOffice365GroupsActivityStorageWithPeriod/index.ts index 897cedba466..44e9e3d2e93 100644 --- a/src/reports/getOffice365GroupsActivityStorageWithPeriod/index.ts +++ b/src/reports/getOffice365GroupsActivityStorageWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOffice365ServicesUserCountsWithPeriod/index.ts b/src/reports/getOffice365ServicesUserCountsWithPeriod/index.ts index 3e9a1ba4e0f..db11a467a05 100644 --- a/src/reports/getOffice365ServicesUserCountsWithPeriod/index.ts +++ b/src/reports/getOffice365ServicesUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveActivityFileCountsWithPeriod/index.ts b/src/reports/getOneDriveActivityFileCountsWithPeriod/index.ts index a774c8ecb7b..bcaee20f320 100644 --- a/src/reports/getOneDriveActivityFileCountsWithPeriod/index.ts +++ b/src/reports/getOneDriveActivityFileCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveActivityUserCountsWithPeriod/index.ts b/src/reports/getOneDriveActivityUserCountsWithPeriod/index.ts index 32d4ccbdb97..8124e73fced 100644 --- a/src/reports/getOneDriveActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getOneDriveActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveActivityUserDetailWithDate/index.ts b/src/reports/getOneDriveActivityUserDetailWithDate/index.ts index 51cee76f554..0c21ff97dd1 100644 --- a/src/reports/getOneDriveActivityUserDetailWithDate/index.ts +++ b/src/reports/getOneDriveActivityUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveActivityUserDetailWithPeriod/index.ts b/src/reports/getOneDriveActivityUserDetailWithPeriod/index.ts index 23e6c493218..68bb2f93af0 100644 --- a/src/reports/getOneDriveActivityUserDetailWithPeriod/index.ts +++ b/src/reports/getOneDriveActivityUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveUsageAccountCountsWithPeriod/index.ts b/src/reports/getOneDriveUsageAccountCountsWithPeriod/index.ts index 970a1999983..097fbd92f13 100644 --- a/src/reports/getOneDriveUsageAccountCountsWithPeriod/index.ts +++ b/src/reports/getOneDriveUsageAccountCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveUsageAccountDetailWithDate/index.ts b/src/reports/getOneDriveUsageAccountDetailWithDate/index.ts index ca22445df70..5d115471d75 100644 --- a/src/reports/getOneDriveUsageAccountDetailWithDate/index.ts +++ b/src/reports/getOneDriveUsageAccountDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveUsageAccountDetailWithPeriod/index.ts b/src/reports/getOneDriveUsageAccountDetailWithPeriod/index.ts index 7f0f8babb5f..c747a850f8e 100644 --- a/src/reports/getOneDriveUsageAccountDetailWithPeriod/index.ts +++ b/src/reports/getOneDriveUsageAccountDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveUsageFileCountsWithPeriod/index.ts b/src/reports/getOneDriveUsageFileCountsWithPeriod/index.ts index cbf0cd5bde1..849e176093e 100644 --- a/src/reports/getOneDriveUsageFileCountsWithPeriod/index.ts +++ b/src/reports/getOneDriveUsageFileCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getOneDriveUsageStorageWithPeriod/index.ts b/src/reports/getOneDriveUsageStorageWithPeriod/index.ts index a49042ee85c..9fc98be8d1c 100644 --- a/src/reports/getOneDriveUsageStorageWithPeriod/index.ts +++ b/src/reports/getOneDriveUsageStorageWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/index.ts b/src/reports/getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/index.ts index 26559da4b8b..7ad121e3d97 100644 --- a/src/reports/getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/index.ts +++ b/src/reports/getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { createArchivedPrintJobFromDiscriminatorValue, serializeArchivedPrintJob, type ArchivedPrintJob } from '../../models/archivedPrintJob'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,92 +21,9 @@ export interface GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEn */ value?: ArchivedPrintJob[]; } -export interface GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function serializeGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse(writer: SerializationWriter, getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse: GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse) writer.writeCollectionOfObjectValues("value", getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.value, serializeArchivedPrintJob); } -/** - * Provides operations to call the getPrinterArchivedPrintJobs method. - */ -export class GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime={endDateTime} - * @param pathParameters The raw url or the Url template parameters for the request. - * @param printerId Usage: printerId='{printerId}' - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime={startDateTime} - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: Date | undefined, printerId?: string | undefined, startDateTime?: Date | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/reports/getPrinterArchivedPrintJobs(printerId='{printerId}',startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["printerId"] = printerId - this.pathParameters["startDateTime"] = startDateTime - }; - /** - * Invoke function getPrinterArchivedPrintJobs - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getPrinterArchivedPrintJobs - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder - */ - public withUrl(rawUrl: string) : GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/reports/getSharePointActivityFileCountsWithPeriod/index.ts b/src/reports/getSharePointActivityFileCountsWithPeriod/index.ts index 70d5e7c7639..55de40480d7 100644 --- a/src/reports/getSharePointActivityFileCountsWithPeriod/index.ts +++ b/src/reports/getSharePointActivityFileCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointActivityPagesWithPeriod/index.ts b/src/reports/getSharePointActivityPagesWithPeriod/index.ts index 123f55f8e83..4bb0d7b3213 100644 --- a/src/reports/getSharePointActivityPagesWithPeriod/index.ts +++ b/src/reports/getSharePointActivityPagesWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointActivityUserCountsWithPeriod/index.ts b/src/reports/getSharePointActivityUserCountsWithPeriod/index.ts index 97167228db0..82781f82ae2 100644 --- a/src/reports/getSharePointActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getSharePointActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointActivityUserDetailWithDate/index.ts b/src/reports/getSharePointActivityUserDetailWithDate/index.ts index 53d6068fc3c..c5e814b4c47 100644 --- a/src/reports/getSharePointActivityUserDetailWithDate/index.ts +++ b/src/reports/getSharePointActivityUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointActivityUserDetailWithPeriod/index.ts b/src/reports/getSharePointActivityUserDetailWithPeriod/index.ts index 188476d4300..1e922b3784b 100644 --- a/src/reports/getSharePointActivityUserDetailWithPeriod/index.ts +++ b/src/reports/getSharePointActivityUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointSiteUsageDetailWithDate/index.ts b/src/reports/getSharePointSiteUsageDetailWithDate/index.ts index 1e438866aa9..992693fdafe 100644 --- a/src/reports/getSharePointSiteUsageDetailWithDate/index.ts +++ b/src/reports/getSharePointSiteUsageDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointSiteUsageDetailWithPeriod/index.ts b/src/reports/getSharePointSiteUsageDetailWithPeriod/index.ts index 4c764568b87..58b052a6e75 100644 --- a/src/reports/getSharePointSiteUsageDetailWithPeriod/index.ts +++ b/src/reports/getSharePointSiteUsageDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointSiteUsageFileCountsWithPeriod/index.ts b/src/reports/getSharePointSiteUsageFileCountsWithPeriod/index.ts index ae1505ccc1f..89a01a3c8f8 100644 --- a/src/reports/getSharePointSiteUsageFileCountsWithPeriod/index.ts +++ b/src/reports/getSharePointSiteUsageFileCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointSiteUsagePagesWithPeriod/index.ts b/src/reports/getSharePointSiteUsagePagesWithPeriod/index.ts index ccfb51a95c8..3c0b946a2aa 100644 --- a/src/reports/getSharePointSiteUsagePagesWithPeriod/index.ts +++ b/src/reports/getSharePointSiteUsagePagesWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointSiteUsageSiteCountsWithPeriod/index.ts b/src/reports/getSharePointSiteUsageSiteCountsWithPeriod/index.ts index d9805f43c14..d4781a1ea47 100644 --- a/src/reports/getSharePointSiteUsageSiteCountsWithPeriod/index.ts +++ b/src/reports/getSharePointSiteUsageSiteCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSharePointSiteUsageStorageWithPeriod/index.ts b/src/reports/getSharePointSiteUsageStorageWithPeriod/index.ts index 34f1eafa0be..8598945ff05 100644 --- a/src/reports/getSharePointSiteUsageStorageWithPeriod/index.ts +++ b/src/reports/getSharePointSiteUsageStorageWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessActivityCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessActivityCountsWithPeriod/index.ts index e42fdd2ff50..e31ad38f138 100644 --- a/src/reports/getSkypeForBusinessActivityCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessActivityUserCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessActivityUserCountsWithPeriod/index.ts index f4c5d6f720b..979c12c2cf9 100644 --- a/src/reports/getSkypeForBusinessActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessActivityUserDetailWithDate/index.ts b/src/reports/getSkypeForBusinessActivityUserDetailWithDate/index.ts index 8e521a54b55..a2723207c3a 100644 --- a/src/reports/getSkypeForBusinessActivityUserDetailWithDate/index.ts +++ b/src/reports/getSkypeForBusinessActivityUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessActivityUserDetailWithPeriod/index.ts b/src/reports/getSkypeForBusinessActivityUserDetailWithPeriod/index.ts index aaaa50a58b9..8b2e345d63c 100644 --- a/src/reports/getSkypeForBusinessActivityUserDetailWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessActivityUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/index.ts index b978d7cae50..30eaee2510a 100644 --- a/src/reports/getSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessDeviceUsageUserCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessDeviceUsageUserCountsWithPeriod/index.ts index d9ac064b882..37cdd008e6a 100644 --- a/src/reports/getSkypeForBusinessDeviceUsageUserCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessDeviceUsageUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessDeviceUsageUserDetailWithDate/index.ts b/src/reports/getSkypeForBusinessDeviceUsageUserDetailWithDate/index.ts index 4854d1629c4..00ad28d2c93 100644 --- a/src/reports/getSkypeForBusinessDeviceUsageUserDetailWithDate/index.ts +++ b/src/reports/getSkypeForBusinessDeviceUsageUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessDeviceUsageUserDetailWithPeriod/index.ts b/src/reports/getSkypeForBusinessDeviceUsageUserDetailWithPeriod/index.ts index aafc6d3d0a6..b34e60200fe 100644 --- a/src/reports/getSkypeForBusinessDeviceUsageUserDetailWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessDeviceUsageUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessOrganizerActivityCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessOrganizerActivityCountsWithPeriod/index.ts index 3452341b2d2..a5ea16a23bd 100644 --- a/src/reports/getSkypeForBusinessOrganizerActivityCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessOrganizerActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/index.ts index a8b788881da..994c3b24093 100644 --- a/src/reports/getSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessOrganizerActivityUserCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessOrganizerActivityUserCountsWithPeriod/index.ts index 2708f9fe42b..6f6f2db8e82 100644 --- a/src/reports/getSkypeForBusinessOrganizerActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessOrganizerActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessParticipantActivityCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessParticipantActivityCountsWithPeriod/index.ts index 9b12d38146d..253450cc5cc 100644 --- a/src/reports/getSkypeForBusinessParticipantActivityCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessParticipantActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/index.ts index 3fffde2225f..f9269cc7fee 100644 --- a/src/reports/getSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessParticipantActivityUserCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessParticipantActivityUserCountsWithPeriod/index.ts index b8c6d2f4ee9..1c8897ba682 100644 --- a/src/reports/getSkypeForBusinessParticipantActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessParticipantActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessPeerToPeerActivityCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessPeerToPeerActivityCountsWithPeriod/index.ts index dc28704da4f..2bd90afb69d 100644 --- a/src/reports/getSkypeForBusinessPeerToPeerActivityCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessPeerToPeerActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/index.ts index ad6970e565d..7815014e8ac 100644 --- a/src/reports/getSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/index.ts b/src/reports/getSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/index.ts index 5ae0394daf9..0b38065ee0c 100644 --- a/src/reports/getSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsDeviceUsageDistributionUserCountsWithPeriod/index.ts b/src/reports/getTeamsDeviceUsageDistributionUserCountsWithPeriod/index.ts index a330237a08a..c0785b10003 100644 --- a/src/reports/getTeamsDeviceUsageDistributionUserCountsWithPeriod/index.ts +++ b/src/reports/getTeamsDeviceUsageDistributionUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsDeviceUsageUserCountsWithPeriod/index.ts b/src/reports/getTeamsDeviceUsageUserCountsWithPeriod/index.ts index 0bb0b7f6df0..df9188e954d 100644 --- a/src/reports/getTeamsDeviceUsageUserCountsWithPeriod/index.ts +++ b/src/reports/getTeamsDeviceUsageUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsDeviceUsageUserDetailWithDate/index.ts b/src/reports/getTeamsDeviceUsageUserDetailWithDate/index.ts index e8972fcee1d..dd62f7774cb 100644 --- a/src/reports/getTeamsDeviceUsageUserDetailWithDate/index.ts +++ b/src/reports/getTeamsDeviceUsageUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsDeviceUsageUserDetailWithPeriod/index.ts b/src/reports/getTeamsDeviceUsageUserDetailWithPeriod/index.ts index 416490a0b73..36b57890e20 100644 --- a/src/reports/getTeamsDeviceUsageUserDetailWithPeriod/index.ts +++ b/src/reports/getTeamsDeviceUsageUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsTeamActivityCountsWithPeriod/index.ts b/src/reports/getTeamsTeamActivityCountsWithPeriod/index.ts index a8d454ae94e..2aa466c80f0 100644 --- a/src/reports/getTeamsTeamActivityCountsWithPeriod/index.ts +++ b/src/reports/getTeamsTeamActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsTeamActivityDetailWithDate/index.ts b/src/reports/getTeamsTeamActivityDetailWithDate/index.ts index fb4bc88b6e2..824a7c6a761 100644 --- a/src/reports/getTeamsTeamActivityDetailWithDate/index.ts +++ b/src/reports/getTeamsTeamActivityDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsTeamActivityDetailWithPeriod/index.ts b/src/reports/getTeamsTeamActivityDetailWithPeriod/index.ts index 090e35f4915..6e2e2e576bd 100644 --- a/src/reports/getTeamsTeamActivityDetailWithPeriod/index.ts +++ b/src/reports/getTeamsTeamActivityDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsTeamActivityDistributionCountsWithPeriod/index.ts b/src/reports/getTeamsTeamActivityDistributionCountsWithPeriod/index.ts index cca40d2890f..e248322c0c0 100644 --- a/src/reports/getTeamsTeamActivityDistributionCountsWithPeriod/index.ts +++ b/src/reports/getTeamsTeamActivityDistributionCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsTeamCountsWithPeriod/index.ts b/src/reports/getTeamsTeamCountsWithPeriod/index.ts index 3ba070a2349..b3300e11a8a 100644 --- a/src/reports/getTeamsTeamCountsWithPeriod/index.ts +++ b/src/reports/getTeamsTeamCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsUserActivityCountsWithPeriod/index.ts b/src/reports/getTeamsUserActivityCountsWithPeriod/index.ts index 4e4b84c1b7e..26f862ffe28 100644 --- a/src/reports/getTeamsUserActivityCountsWithPeriod/index.ts +++ b/src/reports/getTeamsUserActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsUserActivityUserCountsWithPeriod/index.ts b/src/reports/getTeamsUserActivityUserCountsWithPeriod/index.ts index 42b06ab0034..3700a205525 100644 --- a/src/reports/getTeamsUserActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getTeamsUserActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsUserActivityUserDetailWithDate/index.ts b/src/reports/getTeamsUserActivityUserDetailWithDate/index.ts index cd1634ae72e..af40045d68d 100644 --- a/src/reports/getTeamsUserActivityUserDetailWithDate/index.ts +++ b/src/reports/getTeamsUserActivityUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getTeamsUserActivityUserDetailWithPeriod/index.ts b/src/reports/getTeamsUserActivityUserDetailWithPeriod/index.ts index 42cea01dfb8..cad374c82e9 100644 --- a/src/reports/getTeamsUserActivityUserDetailWithPeriod/index.ts +++ b/src/reports/getTeamsUserActivityUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/index.ts b/src/reports/getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/index.ts index 3bf8ba621d9..8836b6e2992 100644 --- a/src/reports/getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/index.ts +++ b/src/reports/getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { createArchivedPrintJobFromDiscriminatorValue, serializeArchivedPrintJob, type ArchivedPrintJob } from '../../models/archivedPrintJob'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,92 +21,9 @@ export interface GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateT */ value?: ArchivedPrintJob[]; } -export interface GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function serializeGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse(writer: SerializationWriter, getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse: GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse) writer.writeCollectionOfObjectValues("value", getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.value, serializeArchivedPrintJob); } -/** - * Provides operations to call the getUserArchivedPrintJobs method. - */ -export class GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime={endDateTime} - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime={startDateTime} - * @param userId Usage: userId='{userId}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: Date | undefined, startDateTime?: Date | undefined, userId?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/reports/getUserArchivedPrintJobs(userId='{userId}',startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["startDateTime"] = startDateTime - this.pathParameters["userId"] = userId - }; - /** - * Invoke function getUserArchivedPrintJobs - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getUserArchivedPrintJobs - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder - */ - public withUrl(rawUrl: string) : GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/reports/getYammerActivityCountsWithPeriod/index.ts b/src/reports/getYammerActivityCountsWithPeriod/index.ts index f18bc39bddf..73e0229378d 100644 --- a/src/reports/getYammerActivityCountsWithPeriod/index.ts +++ b/src/reports/getYammerActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerActivityUserCountsWithPeriod/index.ts b/src/reports/getYammerActivityUserCountsWithPeriod/index.ts index 27d384dcab0..1471e9b8aa2 100644 --- a/src/reports/getYammerActivityUserCountsWithPeriod/index.ts +++ b/src/reports/getYammerActivityUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerActivityUserDetailWithDate/index.ts b/src/reports/getYammerActivityUserDetailWithDate/index.ts index 1bbe0db97b4..05b2f519b96 100644 --- a/src/reports/getYammerActivityUserDetailWithDate/index.ts +++ b/src/reports/getYammerActivityUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerActivityUserDetailWithPeriod/index.ts b/src/reports/getYammerActivityUserDetailWithPeriod/index.ts index 127f367caa6..2853a245260 100644 --- a/src/reports/getYammerActivityUserDetailWithPeriod/index.ts +++ b/src/reports/getYammerActivityUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerDeviceUsageDistributionUserCountsWithPeriod/index.ts b/src/reports/getYammerDeviceUsageDistributionUserCountsWithPeriod/index.ts index 4f7319e65da..0647058b132 100644 --- a/src/reports/getYammerDeviceUsageDistributionUserCountsWithPeriod/index.ts +++ b/src/reports/getYammerDeviceUsageDistributionUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerDeviceUsageUserCountsWithPeriod/index.ts b/src/reports/getYammerDeviceUsageUserCountsWithPeriod/index.ts index d7d3dab82e0..ae03551d8fe 100644 --- a/src/reports/getYammerDeviceUsageUserCountsWithPeriod/index.ts +++ b/src/reports/getYammerDeviceUsageUserCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerDeviceUsageUserDetailWithDate/index.ts b/src/reports/getYammerDeviceUsageUserDetailWithDate/index.ts index a7e493a78e6..8afb2de9882 100644 --- a/src/reports/getYammerDeviceUsageUserDetailWithDate/index.ts +++ b/src/reports/getYammerDeviceUsageUserDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerDeviceUsageUserDetailWithPeriod/index.ts b/src/reports/getYammerDeviceUsageUserDetailWithPeriod/index.ts index f736f94e341..3e40a517b87 100644 --- a/src/reports/getYammerDeviceUsageUserDetailWithPeriod/index.ts +++ b/src/reports/getYammerDeviceUsageUserDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerGroupsActivityCountsWithPeriod/index.ts b/src/reports/getYammerGroupsActivityCountsWithPeriod/index.ts index 4773039d2db..cbf097df540 100644 --- a/src/reports/getYammerGroupsActivityCountsWithPeriod/index.ts +++ b/src/reports/getYammerGroupsActivityCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerGroupsActivityDetailWithDate/index.ts b/src/reports/getYammerGroupsActivityDetailWithDate/index.ts index 93db7fe94dc..ff2f59cada9 100644 --- a/src/reports/getYammerGroupsActivityDetailWithDate/index.ts +++ b/src/reports/getYammerGroupsActivityDetailWithDate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerGroupsActivityDetailWithPeriod/index.ts b/src/reports/getYammerGroupsActivityDetailWithPeriod/index.ts index 9e2e155390f..ab2b45ea80c 100644 --- a/src/reports/getYammerGroupsActivityDetailWithPeriod/index.ts +++ b/src/reports/getYammerGroupsActivityDetailWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/getYammerGroupsActivityGroupCountsWithPeriod/index.ts b/src/reports/getYammerGroupsActivityGroupCountsWithPeriod/index.ts index 0239c5f2505..9227dafe3d3 100644 --- a/src/reports/getYammerGroupsActivityGroupCountsWithPeriod/index.ts +++ b/src/reports/getYammerGroupsActivityGroupCountsWithPeriod/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/index.ts b/src/reports/index.ts index af80b97f6a9..ee8e8144554 100644 --- a/src/reports/index.ts +++ b/src/reports/index.ts @@ -1,116 +1,116 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createReportRootFromDiscriminatorValue, deserializeIntoReportRoot, serializeReportRoot, type ReportRoot } from '../models/reportRoot'; -import { AuthenticationMethodsRequestBuilder } from './authenticationMethods/'; -import { DailyPrintUsageByPrinterRequestBuilder } from './dailyPrintUsageByPrinter/'; -import { DailyPrintUsageByUserRequestBuilder } from './dailyPrintUsageByUser/'; -import { DeviceConfigurationDeviceActivityRequestBuilder } from './deviceConfigurationDeviceActivity/'; -import { DeviceConfigurationUserActivityRequestBuilder } from './deviceConfigurationUserActivity/'; -import { GetEmailActivityCountsWithPeriodRequestBuilder } from './getEmailActivityCountsWithPeriod/'; -import { GetEmailActivityUserCountsWithPeriodRequestBuilder } from './getEmailActivityUserCountsWithPeriod/'; -import { GetEmailActivityUserDetailWithDateRequestBuilder } from './getEmailActivityUserDetailWithDate/'; -import { GetEmailActivityUserDetailWithPeriodRequestBuilder } from './getEmailActivityUserDetailWithPeriod/'; -import { GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder } from './getEmailAppUsageAppsUserCountsWithPeriod/'; -import { GetEmailAppUsageUserCountsWithPeriodRequestBuilder } from './getEmailAppUsageUserCountsWithPeriod/'; -import { GetEmailAppUsageUserDetailWithDateRequestBuilder } from './getEmailAppUsageUserDetailWithDate/'; -import { GetEmailAppUsageUserDetailWithPeriodRequestBuilder } from './getEmailAppUsageUserDetailWithPeriod/'; -import { GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder } from './getEmailAppUsageVersionsUserCountsWithPeriod/'; -import { GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder } from './getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/'; -import { GetM365AppPlatformUserCountsWithPeriodRequestBuilder } from './getM365AppPlatformUserCountsWithPeriod/'; -import { GetM365AppUserCountsWithPeriodRequestBuilder } from './getM365AppUserCountsWithPeriod/'; -import { GetM365AppUserDetailWithDateRequestBuilder } from './getM365AppUserDetailWithDate/'; -import { GetM365AppUserDetailWithPeriodRequestBuilder } from './getM365AppUserDetailWithPeriod/'; -import { GetMailboxUsageDetailWithPeriodRequestBuilder } from './getMailboxUsageDetailWithPeriod/'; -import { GetMailboxUsageMailboxCountsWithPeriodRequestBuilder } from './getMailboxUsageMailboxCountsWithPeriod/'; -import { GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder } from './getMailboxUsageQuotaStatusMailboxCountsWithPeriod/'; -import { GetMailboxUsageStorageWithPeriodRequestBuilder } from './getMailboxUsageStorageWithPeriod/'; -import { GetOffice365ActivationCountsRequestBuilder } from './getOffice365ActivationCounts/'; -import { GetOffice365ActivationsUserCountsRequestBuilder } from './getOffice365ActivationsUserCounts/'; -import { GetOffice365ActivationsUserDetailRequestBuilder } from './getOffice365ActivationsUserDetail/'; -import { GetOffice365ActiveUserCountsWithPeriodRequestBuilder } from './getOffice365ActiveUserCountsWithPeriod/'; -import { GetOffice365ActiveUserDetailWithDateRequestBuilder } from './getOffice365ActiveUserDetailWithDate/'; -import { GetOffice365ActiveUserDetailWithPeriodRequestBuilder } from './getOffice365ActiveUserDetailWithPeriod/'; -import { GetOffice365GroupsActivityCountsWithPeriodRequestBuilder } from './getOffice365GroupsActivityCountsWithPeriod/'; -import { GetOffice365GroupsActivityDetailWithDateRequestBuilder } from './getOffice365GroupsActivityDetailWithDate/'; -import { GetOffice365GroupsActivityDetailWithPeriodRequestBuilder } from './getOffice365GroupsActivityDetailWithPeriod/'; -import { GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder } from './getOffice365GroupsActivityFileCountsWithPeriod/'; -import { GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder } from './getOffice365GroupsActivityGroupCountsWithPeriod/'; -import { GetOffice365GroupsActivityStorageWithPeriodRequestBuilder } from './getOffice365GroupsActivityStorageWithPeriod/'; -import { GetOffice365ServicesUserCountsWithPeriodRequestBuilder } from './getOffice365ServicesUserCountsWithPeriod/'; -import { GetOneDriveActivityFileCountsWithPeriodRequestBuilder } from './getOneDriveActivityFileCountsWithPeriod/'; -import { GetOneDriveActivityUserCountsWithPeriodRequestBuilder } from './getOneDriveActivityUserCountsWithPeriod/'; -import { GetOneDriveActivityUserDetailWithDateRequestBuilder } from './getOneDriveActivityUserDetailWithDate/'; -import { GetOneDriveActivityUserDetailWithPeriodRequestBuilder } from './getOneDriveActivityUserDetailWithPeriod/'; -import { GetOneDriveUsageAccountCountsWithPeriodRequestBuilder } from './getOneDriveUsageAccountCountsWithPeriod/'; -import { GetOneDriveUsageAccountDetailWithDateRequestBuilder } from './getOneDriveUsageAccountDetailWithDate/'; -import { GetOneDriveUsageAccountDetailWithPeriodRequestBuilder } from './getOneDriveUsageAccountDetailWithPeriod/'; -import { GetOneDriveUsageFileCountsWithPeriodRequestBuilder } from './getOneDriveUsageFileCountsWithPeriod/'; -import { GetOneDriveUsageStorageWithPeriodRequestBuilder } from './getOneDriveUsageStorageWithPeriod/'; -import { GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder } from './getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/'; -import { GetSharePointActivityFileCountsWithPeriodRequestBuilder } from './getSharePointActivityFileCountsWithPeriod/'; -import { GetSharePointActivityPagesWithPeriodRequestBuilder } from './getSharePointActivityPagesWithPeriod/'; -import { GetSharePointActivityUserCountsWithPeriodRequestBuilder } from './getSharePointActivityUserCountsWithPeriod/'; -import { GetSharePointActivityUserDetailWithDateRequestBuilder } from './getSharePointActivityUserDetailWithDate/'; -import { GetSharePointActivityUserDetailWithPeriodRequestBuilder } from './getSharePointActivityUserDetailWithPeriod/'; -import { GetSharePointSiteUsageDetailWithDateRequestBuilder } from './getSharePointSiteUsageDetailWithDate/'; -import { GetSharePointSiteUsageDetailWithPeriodRequestBuilder } from './getSharePointSiteUsageDetailWithPeriod/'; -import { GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder } from './getSharePointSiteUsageFileCountsWithPeriod/'; -import { GetSharePointSiteUsagePagesWithPeriodRequestBuilder } from './getSharePointSiteUsagePagesWithPeriod/'; -import { GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder } from './getSharePointSiteUsageSiteCountsWithPeriod/'; -import { GetSharePointSiteUsageStorageWithPeriodRequestBuilder } from './getSharePointSiteUsageStorageWithPeriod/'; -import { GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder } from './getSkypeForBusinessActivityCountsWithPeriod/'; -import { GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessActivityUserCountsWithPeriod/'; -import { GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder } from './getSkypeForBusinessActivityUserDetailWithDate/'; -import { GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder } from './getSkypeForBusinessActivityUserDetailWithPeriod/'; -import { GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/'; -import { GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessDeviceUsageUserCountsWithPeriod/'; -import { GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder } from './getSkypeForBusinessDeviceUsageUserDetailWithDate/'; -import { GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder } from './getSkypeForBusinessDeviceUsageUserDetailWithPeriod/'; -import { GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder } from './getSkypeForBusinessOrganizerActivityCountsWithPeriod/'; -import { GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder } from './getSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/'; -import { GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessOrganizerActivityUserCountsWithPeriod/'; -import { GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder } from './getSkypeForBusinessParticipantActivityCountsWithPeriod/'; -import { GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder } from './getSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/'; -import { GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessParticipantActivityUserCountsWithPeriod/'; -import { GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder } from './getSkypeForBusinessPeerToPeerActivityCountsWithPeriod/'; -import { GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder } from './getSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/'; -import { GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/'; -import { GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder } from './getTeamsDeviceUsageDistributionUserCountsWithPeriod/'; -import { GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder } from './getTeamsDeviceUsageUserCountsWithPeriod/'; -import { GetTeamsDeviceUsageUserDetailWithDateRequestBuilder } from './getTeamsDeviceUsageUserDetailWithDate/'; -import { GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder } from './getTeamsDeviceUsageUserDetailWithPeriod/'; -import { GetTeamsTeamActivityCountsWithPeriodRequestBuilder } from './getTeamsTeamActivityCountsWithPeriod/'; -import { GetTeamsTeamActivityDetailWithDateRequestBuilder } from './getTeamsTeamActivityDetailWithDate/'; -import { GetTeamsTeamActivityDetailWithPeriodRequestBuilder } from './getTeamsTeamActivityDetailWithPeriod/'; -import { GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder } from './getTeamsTeamActivityDistributionCountsWithPeriod/'; -import { GetTeamsTeamCountsWithPeriodRequestBuilder } from './getTeamsTeamCountsWithPeriod/'; -import { GetTeamsUserActivityCountsWithPeriodRequestBuilder } from './getTeamsUserActivityCountsWithPeriod/'; -import { GetTeamsUserActivityUserCountsWithPeriodRequestBuilder } from './getTeamsUserActivityUserCountsWithPeriod/'; -import { GetTeamsUserActivityUserDetailWithDateRequestBuilder } from './getTeamsUserActivityUserDetailWithDate/'; -import { GetTeamsUserActivityUserDetailWithPeriodRequestBuilder } from './getTeamsUserActivityUserDetailWithPeriod/'; -import { GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder } from './getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/'; -import { GetYammerActivityCountsWithPeriodRequestBuilder } from './getYammerActivityCountsWithPeriod/'; -import { GetYammerActivityUserCountsWithPeriodRequestBuilder } from './getYammerActivityUserCountsWithPeriod/'; -import { GetYammerActivityUserDetailWithDateRequestBuilder } from './getYammerActivityUserDetailWithDate/'; -import { GetYammerActivityUserDetailWithPeriodRequestBuilder } from './getYammerActivityUserDetailWithPeriod/'; -import { GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder } from './getYammerDeviceUsageDistributionUserCountsWithPeriod/'; -import { GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder } from './getYammerDeviceUsageUserCountsWithPeriod/'; -import { GetYammerDeviceUsageUserDetailWithDateRequestBuilder } from './getYammerDeviceUsageUserDetailWithDate/'; -import { GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder } from './getYammerDeviceUsageUserDetailWithPeriod/'; -import { GetYammerGroupsActivityCountsWithPeriodRequestBuilder } from './getYammerGroupsActivityCountsWithPeriod/'; -import { GetYammerGroupsActivityDetailWithDateRequestBuilder } from './getYammerGroupsActivityDetailWithDate/'; -import { GetYammerGroupsActivityDetailWithPeriodRequestBuilder } from './getYammerGroupsActivityDetailWithPeriod/'; -import { GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder } from './getYammerGroupsActivityGroupCountsWithPeriod/'; -import { ManagedDeviceEnrollmentFailureDetailsRequestBuilder } from './managedDeviceEnrollmentFailureDetails/'; -import { ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder } from './managedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/'; -import { ManagedDeviceEnrollmentTopFailuresRequestBuilder } from './managedDeviceEnrollmentTopFailures/'; -import { ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder } from './managedDeviceEnrollmentTopFailuresWithPeriod/'; -import { MonthlyPrintUsageByPrinterRequestBuilder } from './monthlyPrintUsageByPrinter/'; -import { MonthlyPrintUsageByUserRequestBuilder } from './monthlyPrintUsageByUser/'; -import { SecurityRequestBuilder } from './security/'; +import { AuthenticationMethodsRequestBuilder } from './authenticationMethods'; +import { DailyPrintUsageByPrinterRequestBuilder } from './dailyPrintUsageByPrinter'; +import { DailyPrintUsageByUserRequestBuilder } from './dailyPrintUsageByUser'; +import { DeviceConfigurationDeviceActivityRequestBuilder } from './deviceConfigurationDeviceActivity'; +import { DeviceConfigurationUserActivityRequestBuilder } from './deviceConfigurationUserActivity'; +import { GetEmailActivityCountsWithPeriodRequestBuilder } from './getEmailActivityCountsWithPeriod'; +import { GetEmailActivityUserCountsWithPeriodRequestBuilder } from './getEmailActivityUserCountsWithPeriod'; +import { GetEmailActivityUserDetailWithDateRequestBuilder } from './getEmailActivityUserDetailWithDate'; +import { GetEmailActivityUserDetailWithPeriodRequestBuilder } from './getEmailActivityUserDetailWithPeriod'; +import { GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder } from './getEmailAppUsageAppsUserCountsWithPeriod'; +import { GetEmailAppUsageUserCountsWithPeriodRequestBuilder } from './getEmailAppUsageUserCountsWithPeriod'; +import { GetEmailAppUsageUserDetailWithDateRequestBuilder } from './getEmailAppUsageUserDetailWithDate'; +import { GetEmailAppUsageUserDetailWithPeriodRequestBuilder } from './getEmailAppUsageUserDetailWithPeriod'; +import { GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder } from './getEmailAppUsageVersionsUserCountsWithPeriod'; +import { GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder } from './getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime'; +import { GetM365AppPlatformUserCountsWithPeriodRequestBuilder } from './getM365AppPlatformUserCountsWithPeriod'; +import { GetM365AppUserCountsWithPeriodRequestBuilder } from './getM365AppUserCountsWithPeriod'; +import { GetM365AppUserDetailWithDateRequestBuilder } from './getM365AppUserDetailWithDate'; +import { GetM365AppUserDetailWithPeriodRequestBuilder } from './getM365AppUserDetailWithPeriod'; +import { GetMailboxUsageDetailWithPeriodRequestBuilder } from './getMailboxUsageDetailWithPeriod'; +import { GetMailboxUsageMailboxCountsWithPeriodRequestBuilder } from './getMailboxUsageMailboxCountsWithPeriod'; +import { GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder } from './getMailboxUsageQuotaStatusMailboxCountsWithPeriod'; +import { GetMailboxUsageStorageWithPeriodRequestBuilder } from './getMailboxUsageStorageWithPeriod'; +import { GetOffice365ActivationCountsRequestBuilder } from './getOffice365ActivationCounts'; +import { GetOffice365ActivationsUserCountsRequestBuilder } from './getOffice365ActivationsUserCounts'; +import { GetOffice365ActivationsUserDetailRequestBuilder } from './getOffice365ActivationsUserDetail'; +import { GetOffice365ActiveUserCountsWithPeriodRequestBuilder } from './getOffice365ActiveUserCountsWithPeriod'; +import { GetOffice365ActiveUserDetailWithDateRequestBuilder } from './getOffice365ActiveUserDetailWithDate'; +import { GetOffice365ActiveUserDetailWithPeriodRequestBuilder } from './getOffice365ActiveUserDetailWithPeriod'; +import { GetOffice365GroupsActivityCountsWithPeriodRequestBuilder } from './getOffice365GroupsActivityCountsWithPeriod'; +import { GetOffice365GroupsActivityDetailWithDateRequestBuilder } from './getOffice365GroupsActivityDetailWithDate'; +import { GetOffice365GroupsActivityDetailWithPeriodRequestBuilder } from './getOffice365GroupsActivityDetailWithPeriod'; +import { GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder } from './getOffice365GroupsActivityFileCountsWithPeriod'; +import { GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder } from './getOffice365GroupsActivityGroupCountsWithPeriod'; +import { GetOffice365GroupsActivityStorageWithPeriodRequestBuilder } from './getOffice365GroupsActivityStorageWithPeriod'; +import { GetOffice365ServicesUserCountsWithPeriodRequestBuilder } from './getOffice365ServicesUserCountsWithPeriod'; +import { GetOneDriveActivityFileCountsWithPeriodRequestBuilder } from './getOneDriveActivityFileCountsWithPeriod'; +import { GetOneDriveActivityUserCountsWithPeriodRequestBuilder } from './getOneDriveActivityUserCountsWithPeriod'; +import { GetOneDriveActivityUserDetailWithDateRequestBuilder } from './getOneDriveActivityUserDetailWithDate'; +import { GetOneDriveActivityUserDetailWithPeriodRequestBuilder } from './getOneDriveActivityUserDetailWithPeriod'; +import { GetOneDriveUsageAccountCountsWithPeriodRequestBuilder } from './getOneDriveUsageAccountCountsWithPeriod'; +import { GetOneDriveUsageAccountDetailWithDateRequestBuilder } from './getOneDriveUsageAccountDetailWithDate'; +import { GetOneDriveUsageAccountDetailWithPeriodRequestBuilder } from './getOneDriveUsageAccountDetailWithPeriod'; +import { GetOneDriveUsageFileCountsWithPeriodRequestBuilder } from './getOneDriveUsageFileCountsWithPeriod'; +import { GetOneDriveUsageStorageWithPeriodRequestBuilder } from './getOneDriveUsageStorageWithPeriod'; +import { GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder } from './getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime'; +import { GetSharePointActivityFileCountsWithPeriodRequestBuilder } from './getSharePointActivityFileCountsWithPeriod'; +import { GetSharePointActivityPagesWithPeriodRequestBuilder } from './getSharePointActivityPagesWithPeriod'; +import { GetSharePointActivityUserCountsWithPeriodRequestBuilder } from './getSharePointActivityUserCountsWithPeriod'; +import { GetSharePointActivityUserDetailWithDateRequestBuilder } from './getSharePointActivityUserDetailWithDate'; +import { GetSharePointActivityUserDetailWithPeriodRequestBuilder } from './getSharePointActivityUserDetailWithPeriod'; +import { GetSharePointSiteUsageDetailWithDateRequestBuilder } from './getSharePointSiteUsageDetailWithDate'; +import { GetSharePointSiteUsageDetailWithPeriodRequestBuilder } from './getSharePointSiteUsageDetailWithPeriod'; +import { GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder } from './getSharePointSiteUsageFileCountsWithPeriod'; +import { GetSharePointSiteUsagePagesWithPeriodRequestBuilder } from './getSharePointSiteUsagePagesWithPeriod'; +import { GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder } from './getSharePointSiteUsageSiteCountsWithPeriod'; +import { GetSharePointSiteUsageStorageWithPeriodRequestBuilder } from './getSharePointSiteUsageStorageWithPeriod'; +import { GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder } from './getSkypeForBusinessActivityCountsWithPeriod'; +import { GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessActivityUserCountsWithPeriod'; +import { GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder } from './getSkypeForBusinessActivityUserDetailWithDate'; +import { GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder } from './getSkypeForBusinessActivityUserDetailWithPeriod'; +import { GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod'; +import { GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessDeviceUsageUserCountsWithPeriod'; +import { GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder } from './getSkypeForBusinessDeviceUsageUserDetailWithDate'; +import { GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder } from './getSkypeForBusinessDeviceUsageUserDetailWithPeriod'; +import { GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder } from './getSkypeForBusinessOrganizerActivityCountsWithPeriod'; +import { GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder } from './getSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod'; +import { GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessOrganizerActivityUserCountsWithPeriod'; +import { GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder } from './getSkypeForBusinessParticipantActivityCountsWithPeriod'; +import { GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder } from './getSkypeForBusinessParticipantActivityMinuteCountsWithPeriod'; +import { GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessParticipantActivityUserCountsWithPeriod'; +import { GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder } from './getSkypeForBusinessPeerToPeerActivityCountsWithPeriod'; +import { GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder } from './getSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod'; +import { GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder } from './getSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod'; +import { GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder } from './getTeamsDeviceUsageDistributionUserCountsWithPeriod'; +import { GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder } from './getTeamsDeviceUsageUserCountsWithPeriod'; +import { GetTeamsDeviceUsageUserDetailWithDateRequestBuilder } from './getTeamsDeviceUsageUserDetailWithDate'; +import { GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder } from './getTeamsDeviceUsageUserDetailWithPeriod'; +import { GetTeamsTeamActivityCountsWithPeriodRequestBuilder } from './getTeamsTeamActivityCountsWithPeriod'; +import { GetTeamsTeamActivityDetailWithDateRequestBuilder } from './getTeamsTeamActivityDetailWithDate'; +import { GetTeamsTeamActivityDetailWithPeriodRequestBuilder } from './getTeamsTeamActivityDetailWithPeriod'; +import { GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder } from './getTeamsTeamActivityDistributionCountsWithPeriod'; +import { GetTeamsTeamCountsWithPeriodRequestBuilder } from './getTeamsTeamCountsWithPeriod'; +import { GetTeamsUserActivityCountsWithPeriodRequestBuilder } from './getTeamsUserActivityCountsWithPeriod'; +import { GetTeamsUserActivityUserCountsWithPeriodRequestBuilder } from './getTeamsUserActivityUserCountsWithPeriod'; +import { GetTeamsUserActivityUserDetailWithDateRequestBuilder } from './getTeamsUserActivityUserDetailWithDate'; +import { GetTeamsUserActivityUserDetailWithPeriodRequestBuilder } from './getTeamsUserActivityUserDetailWithPeriod'; +import { GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder } from './getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime'; +import { GetYammerActivityCountsWithPeriodRequestBuilder } from './getYammerActivityCountsWithPeriod'; +import { GetYammerActivityUserCountsWithPeriodRequestBuilder } from './getYammerActivityUserCountsWithPeriod'; +import { GetYammerActivityUserDetailWithDateRequestBuilder } from './getYammerActivityUserDetailWithDate'; +import { GetYammerActivityUserDetailWithPeriodRequestBuilder } from './getYammerActivityUserDetailWithPeriod'; +import { GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder } from './getYammerDeviceUsageDistributionUserCountsWithPeriod'; +import { GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder } from './getYammerDeviceUsageUserCountsWithPeriod'; +import { GetYammerDeviceUsageUserDetailWithDateRequestBuilder } from './getYammerDeviceUsageUserDetailWithDate'; +import { GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder } from './getYammerDeviceUsageUserDetailWithPeriod'; +import { GetYammerGroupsActivityCountsWithPeriodRequestBuilder } from './getYammerGroupsActivityCountsWithPeriod'; +import { GetYammerGroupsActivityDetailWithDateRequestBuilder } from './getYammerGroupsActivityDetailWithDate'; +import { GetYammerGroupsActivityDetailWithPeriodRequestBuilder } from './getYammerGroupsActivityDetailWithPeriod'; +import { GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder } from './getYammerGroupsActivityGroupCountsWithPeriod'; +import { ManagedDeviceEnrollmentFailureDetailsRequestBuilder } from './managedDeviceEnrollmentFailureDetails'; +import { ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder } from './managedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken'; +import { ManagedDeviceEnrollmentTopFailuresRequestBuilder } from './managedDeviceEnrollmentTopFailures'; +import { ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder } from './managedDeviceEnrollmentTopFailuresWithPeriod'; +import { MonthlyPrintUsageByPrinterRequestBuilder } from './monthlyPrintUsageByPrinter'; +import { MonthlyPrintUsageByUserRequestBuilder } from './monthlyPrintUsageByUser'; +import { SecurityRequestBuilder } from './security'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type DateOnly, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ReportsRequestBuilderGetQueryParameters { diff --git a/src/reports/managedDeviceEnrollmentFailureDetails/index.ts b/src/reports/managedDeviceEnrollmentFailureDetails/index.ts index e9083a0a2b6..f1eb8dfed27 100644 --- a/src/reports/managedDeviceEnrollmentFailureDetails/index.ts +++ b/src/reports/managedDeviceEnrollmentFailureDetails/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Report } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type Report } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createReportFromDiscriminatorValue } from '../../models/report'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/managedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/index.ts b/src/reports/managedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/index.ts index 7cb4292fbd6..966a52de9cd 100644 --- a/src/reports/managedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/index.ts +++ b/src/reports/managedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Report } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type Report } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createReportFromDiscriminatorValue } from '../../models/report'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/managedDeviceEnrollmentTopFailures/index.ts b/src/reports/managedDeviceEnrollmentTopFailures/index.ts index 6f775faa85e..70e1aa1771d 100644 --- a/src/reports/managedDeviceEnrollmentTopFailures/index.ts +++ b/src/reports/managedDeviceEnrollmentTopFailures/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Report } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type Report } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createReportFromDiscriminatorValue } from '../../models/report'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/managedDeviceEnrollmentTopFailuresWithPeriod/index.ts b/src/reports/managedDeviceEnrollmentTopFailuresWithPeriod/index.ts index a97a473b1bb..945e0dd91ad 100644 --- a/src/reports/managedDeviceEnrollmentTopFailuresWithPeriod/index.ts +++ b/src/reports/managedDeviceEnrollmentTopFailuresWithPeriod/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Report } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type Report } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createReportFromDiscriminatorValue } from '../../models/report'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/monthlyPrintUsageByPrinter/count/index.ts b/src/reports/monthlyPrintUsageByPrinter/count/index.ts index 2be9bc99816..e30a2c78d3c 100644 --- a/src/reports/monthlyPrintUsageByPrinter/count/index.ts +++ b/src/reports/monthlyPrintUsageByPrinter/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/monthlyPrintUsageByPrinter/index.ts b/src/reports/monthlyPrintUsageByPrinter/index.ts index 655d1c70179..eeb24b8c057 100644 --- a/src/reports/monthlyPrintUsageByPrinter/index.ts +++ b/src/reports/monthlyPrintUsageByPrinter/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintUsageByPrinterCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrintUsageByPrinterCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrintUsageByPrinterFromDiscriminatorValue, deserializeIntoPrintUsageByPrinter, serializePrintUsageByPrinter, type PrintUsageByPrinter } from '../../models/printUsageByPrinter'; import { createPrintUsageByPrinterCollectionResponseFromDiscriminatorValue } from '../../models/printUsageByPrinterCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintUsageByPrinterItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintUsageByPrinterItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MonthlyPrintUsageByPrinterRequestBuilderGetQueryParameters { diff --git a/src/reports/monthlyPrintUsageByPrinter/item/index.ts b/src/reports/monthlyPrintUsageByPrinter/item/index.ts index 80e42ee5340..48c94dec618 100644 --- a/src/reports/monthlyPrintUsageByPrinter/item/index.ts +++ b/src/reports/monthlyPrintUsageByPrinter/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrintUsageByPrinterFromDiscriminatorValue, deserializeIntoPrintUsageByPrinter, serializePrintUsageByPrinter, type PrintUsageByPrinter } from '../../../models/printUsageByPrinter'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/monthlyPrintUsageByUser/count/index.ts b/src/reports/monthlyPrintUsageByUser/count/index.ts index c09b41e59ac..73c3245002a 100644 --- a/src/reports/monthlyPrintUsageByUser/count/index.ts +++ b/src/reports/monthlyPrintUsageByUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/monthlyPrintUsageByUser/index.ts b/src/reports/monthlyPrintUsageByUser/index.ts index 7b8789b647c..39923fd4abc 100644 --- a/src/reports/monthlyPrintUsageByUser/index.ts +++ b/src/reports/monthlyPrintUsageByUser/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PrintUsageByUserCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type PrintUsageByUserCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createPrintUsageByUserFromDiscriminatorValue, deserializeIntoPrintUsageByUser, serializePrintUsageByUser, type PrintUsageByUser } from '../../models/printUsageByUser'; import { createPrintUsageByUserCollectionResponseFromDiscriminatorValue } from '../../models/printUsageByUserCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PrintUsageByUserItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PrintUsageByUserItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MonthlyPrintUsageByUserRequestBuilderGetQueryParameters { diff --git a/src/reports/monthlyPrintUsageByUser/item/index.ts b/src/reports/monthlyPrintUsageByUser/item/index.ts index e0c4c996198..0f3936abe6a 100644 --- a/src/reports/monthlyPrintUsageByUser/item/index.ts +++ b/src/reports/monthlyPrintUsageByUser/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPrintUsageByUserFromDiscriminatorValue, deserializeIntoPrintUsageByUser, serializePrintUsageByUser, type PrintUsageByUser } from '../../../models/printUsageByUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/reports/security/getAttackSimulationRepeatOffenders/getAttackSimulationRepeatOffendersGetResponse.ts b/src/reports/security/getAttackSimulationRepeatOffenders/getAttackSimulationRepeatOffendersGetResponse.ts deleted file mode 100644 index a67bb91bd92..00000000000 --- a/src/reports/security/getAttackSimulationRepeatOffenders/getAttackSimulationRepeatOffendersGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttackSimulationRepeatOffenderFromDiscriminatorValue, serializeAttackSimulationRepeatOffender, type AttackSimulationRepeatOffender } from '../../../models/attackSimulationRepeatOffender'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetAttackSimulationRepeatOffendersGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAttackSimulationRepeatOffendersGetResponse; -} -export function deserializeIntoGetAttackSimulationRepeatOffendersGetResponse(getAttackSimulationRepeatOffendersGetResponse: GetAttackSimulationRepeatOffendersGetResponse | undefined = {} as GetAttackSimulationRepeatOffendersGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAttackSimulationRepeatOffendersGetResponse), - "value": n => { getAttackSimulationRepeatOffendersGetResponse.value = n.getCollectionOfObjectValues(createAttackSimulationRepeatOffenderFromDiscriminatorValue); }, - } -} -export interface GetAttackSimulationRepeatOffendersGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AttackSimulationRepeatOffender[]; -} -export function serializeGetAttackSimulationRepeatOffendersGetResponse(writer: SerializationWriter, getAttackSimulationRepeatOffendersGetResponse: GetAttackSimulationRepeatOffendersGetResponse | undefined = {} as GetAttackSimulationRepeatOffendersGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAttackSimulationRepeatOffendersGetResponse) - writer.writeCollectionOfObjectValues("value", getAttackSimulationRepeatOffendersGetResponse.value, serializeAttackSimulationRepeatOffender); -} -// tslint:enable -// eslint-enable diff --git a/src/reports/security/getAttackSimulationRepeatOffenders/index.ts b/src/reports/security/getAttackSimulationRepeatOffenders/index.ts index ff055b5d588..812037bea26 100644 --- a/src/reports/security/getAttackSimulationRepeatOffenders/index.ts +++ b/src/reports/security/getAttackSimulationRepeatOffenders/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { createAttackSimulationRepeatOffenderFromDiscriminatorValue, serializeAttackSimulationRepeatOffender, type AttackSimulationRepeatOffender } from '../../../models/attackSimulationRepeatOffender'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetAttackSimulationRepeatOffendersGetResponseFromDiscriminatorValue } from './'; -import { type GetAttackSimulationRepeatOffendersGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetAttackSimulationRepeatOffendersGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetAttackSimulationRepeatOffendersGetResponse; +} +export function deserializeIntoGetAttackSimulationRepeatOffendersGetResponse(getAttackSimulationRepeatOffendersGetResponse: GetAttackSimulationRepeatOffendersGetResponse | undefined = {} as GetAttackSimulationRepeatOffendersGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAttackSimulationRepeatOffendersGetResponse), + "value": n => { getAttackSimulationRepeatOffendersGetResponse.value = n.getCollectionOfObjectValues(createAttackSimulationRepeatOffenderFromDiscriminatorValue); }, + } +} +export interface GetAttackSimulationRepeatOffendersGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AttackSimulationRepeatOffender[]; +} export interface GetAttackSimulationRepeatOffendersRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface GetAttackSimulationRepeatOffendersRequestBuilderGetQueryParamet */ top?: number; } +export function serializeGetAttackSimulationRepeatOffendersGetResponse(writer: SerializationWriter, getAttackSimulationRepeatOffendersGetResponse: GetAttackSimulationRepeatOffendersGetResponse | undefined = {} as GetAttackSimulationRepeatOffendersGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAttackSimulationRepeatOffendersGetResponse) + writer.writeCollectionOfObjectValues("value", getAttackSimulationRepeatOffendersGetResponse.value, serializeAttackSimulationRepeatOffender); +} /** * Provides operations to call the getAttackSimulationRepeatOffenders method. */ diff --git a/src/reports/security/getAttackSimulationSimulationUserCoverage/getAttackSimulationSimulationUserCoverageGetResponse.ts b/src/reports/security/getAttackSimulationSimulationUserCoverage/getAttackSimulationSimulationUserCoverageGetResponse.ts deleted file mode 100644 index 8a16ae21dd1..00000000000 --- a/src/reports/security/getAttackSimulationSimulationUserCoverage/getAttackSimulationSimulationUserCoverageGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttackSimulationSimulationUserCoverageFromDiscriminatorValue, serializeAttackSimulationSimulationUserCoverage, type AttackSimulationSimulationUserCoverage } from '../../../models/attackSimulationSimulationUserCoverage'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetAttackSimulationSimulationUserCoverageGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAttackSimulationSimulationUserCoverageGetResponse; -} -export function deserializeIntoGetAttackSimulationSimulationUserCoverageGetResponse(getAttackSimulationSimulationUserCoverageGetResponse: GetAttackSimulationSimulationUserCoverageGetResponse | undefined = {} as GetAttackSimulationSimulationUserCoverageGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAttackSimulationSimulationUserCoverageGetResponse), - "value": n => { getAttackSimulationSimulationUserCoverageGetResponse.value = n.getCollectionOfObjectValues(createAttackSimulationSimulationUserCoverageFromDiscriminatorValue); }, - } -} -export interface GetAttackSimulationSimulationUserCoverageGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AttackSimulationSimulationUserCoverage[]; -} -export function serializeGetAttackSimulationSimulationUserCoverageGetResponse(writer: SerializationWriter, getAttackSimulationSimulationUserCoverageGetResponse: GetAttackSimulationSimulationUserCoverageGetResponse | undefined = {} as GetAttackSimulationSimulationUserCoverageGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAttackSimulationSimulationUserCoverageGetResponse) - writer.writeCollectionOfObjectValues("value", getAttackSimulationSimulationUserCoverageGetResponse.value, serializeAttackSimulationSimulationUserCoverage); -} -// tslint:enable -// eslint-enable diff --git a/src/reports/security/getAttackSimulationSimulationUserCoverage/index.ts b/src/reports/security/getAttackSimulationSimulationUserCoverage/index.ts index 6e7d7365f4c..5d4276d1fc3 100644 --- a/src/reports/security/getAttackSimulationSimulationUserCoverage/index.ts +++ b/src/reports/security/getAttackSimulationSimulationUserCoverage/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { createAttackSimulationSimulationUserCoverageFromDiscriminatorValue, serializeAttackSimulationSimulationUserCoverage, type AttackSimulationSimulationUserCoverage } from '../../../models/attackSimulationSimulationUserCoverage'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetAttackSimulationSimulationUserCoverageGetResponseFromDiscriminatorValue } from './'; -import { type GetAttackSimulationSimulationUserCoverageGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetAttackSimulationSimulationUserCoverageGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetAttackSimulationSimulationUserCoverageGetResponse; +} +export function deserializeIntoGetAttackSimulationSimulationUserCoverageGetResponse(getAttackSimulationSimulationUserCoverageGetResponse: GetAttackSimulationSimulationUserCoverageGetResponse | undefined = {} as GetAttackSimulationSimulationUserCoverageGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAttackSimulationSimulationUserCoverageGetResponse), + "value": n => { getAttackSimulationSimulationUserCoverageGetResponse.value = n.getCollectionOfObjectValues(createAttackSimulationSimulationUserCoverageFromDiscriminatorValue); }, + } +} +export interface GetAttackSimulationSimulationUserCoverageGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AttackSimulationSimulationUserCoverage[]; +} export interface GetAttackSimulationSimulationUserCoverageRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface GetAttackSimulationSimulationUserCoverageRequestBuilderGetQuery */ top?: number; } +export function serializeGetAttackSimulationSimulationUserCoverageGetResponse(writer: SerializationWriter, getAttackSimulationSimulationUserCoverageGetResponse: GetAttackSimulationSimulationUserCoverageGetResponse | undefined = {} as GetAttackSimulationSimulationUserCoverageGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAttackSimulationSimulationUserCoverageGetResponse) + writer.writeCollectionOfObjectValues("value", getAttackSimulationSimulationUserCoverageGetResponse.value, serializeAttackSimulationSimulationUserCoverage); +} /** * Provides operations to call the getAttackSimulationSimulationUserCoverage method. */ diff --git a/src/reports/security/getAttackSimulationTrainingUserCoverage/index.ts b/src/reports/security/getAttackSimulationTrainingUserCoverage/index.ts index c7bc4c9ebc4..e0ba3dcceb7 100644 --- a/src/reports/security/getAttackSimulationTrainingUserCoverage/index.ts +++ b/src/reports/security/getAttackSimulationTrainingUserCoverage/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { createAttackSimulationTrainingUserCoverageFromDiscriminatorValue, serializeAttackSimulationTrainingUserCoverage, type AttackSimulationTrainingUserCoverage } from '../../../models/attackSimulationTrainingUserCoverage'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAttackSimulationTrainingUserCoverageGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,86 +21,9 @@ export interface GetAttackSimulationTrainingUserCoverageGetResponse extends Base */ value?: AttackSimulationTrainingUserCoverage[]; } -export interface GetAttackSimulationTrainingUserCoverageRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function serializeGetAttackSimulationTrainingUserCoverageGetResponse(writer: SerializationWriter, getAttackSimulationTrainingUserCoverageGetResponse: GetAttackSimulationTrainingUserCoverageGetResponse | undefined = {} as GetAttackSimulationTrainingUserCoverageGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAttackSimulationTrainingUserCoverageGetResponse) writer.writeCollectionOfObjectValues("value", getAttackSimulationTrainingUserCoverageGetResponse.value, serializeAttackSimulationTrainingUserCoverage); } -/** - * Provides operations to call the getAttackSimulationTrainingUserCoverage method. - */ -export class GetAttackSimulationTrainingUserCoverageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAttackSimulationTrainingUserCoverageRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/reports/security/getAttackSimulationTrainingUserCoverage(){?%24top,%24skip,%24search,%24filter,%24count}"); - }; - /** - * Invoke function getAttackSimulationTrainingUserCoverage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAttackSimulationTrainingUserCoverageGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAttackSimulationTrainingUserCoverageGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAttackSimulationTrainingUserCoverage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAttackSimulationTrainingUserCoverageRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAttackSimulationTrainingUserCoverageRequestBuilder - */ - public withUrl(rawUrl: string) : GetAttackSimulationTrainingUserCoverageRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAttackSimulationTrainingUserCoverageRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAttackSimulationTrainingUserCoverageRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/reports/security/index.ts b/src/reports/security/index.ts index 2dd00114b7e..8f787389eb8 100644 --- a/src/reports/security/index.ts +++ b/src/reports/security/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSecurityReportsRootFromDiscriminatorValue, deserializeIntoSecurityReportsRoot, serializeSecurityReportsRoot, type SecurityReportsRoot } from '../../models/securityReportsRoot'; -import { GetAttackSimulationRepeatOffendersRequestBuilder } from './getAttackSimulationRepeatOffenders/'; -import { GetAttackSimulationSimulationUserCoverageRequestBuilder } from './getAttackSimulationSimulationUserCoverage/'; -import { GetAttackSimulationTrainingUserCoverageRequestBuilder } from './getAttackSimulationTrainingUserCoverage/'; +import { GetAttackSimulationRepeatOffendersRequestBuilder } from './getAttackSimulationRepeatOffenders'; +import { GetAttackSimulationSimulationUserCoverageRequestBuilder } from './getAttackSimulationSimulationUserCoverage'; +import { GetAttackSimulationTrainingUserCoverageRequestBuilder } from './getAttackSimulationTrainingUserCoverage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SecurityRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/index.ts b/src/roleManagement/directory/index.ts index ea0ca8aa55f..44d28c1fad7 100644 --- a/src/roleManagement/directory/index.ts +++ b/src/roleManagement/directory/index.ts @@ -1,18 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRbacApplicationFromDiscriminatorValue, deserializeIntoRbacApplication, serializeRbacApplication, type RbacApplication } from '../../models/rbacApplication'; -import { ResourceNamespacesRequestBuilder } from './resourceNamespaces/'; -import { RoleAssignmentsRequestBuilder } from './roleAssignments/'; -import { RoleAssignmentScheduleInstancesRequestBuilder } from './roleAssignmentScheduleInstances/'; -import { RoleAssignmentScheduleRequestsRequestBuilder } from './roleAssignmentScheduleRequests/'; -import { RoleAssignmentSchedulesRequestBuilder } from './roleAssignmentSchedules/'; -import { RoleDefinitionsRequestBuilder } from './roleDefinitions/'; -import { RoleEligibilityScheduleInstancesRequestBuilder } from './roleEligibilityScheduleInstances/'; -import { RoleEligibilityScheduleRequestsRequestBuilder } from './roleEligibilityScheduleRequests/'; -import { RoleEligibilitySchedulesRequestBuilder } from './roleEligibilitySchedules/'; +import { ResourceNamespacesRequestBuilder } from './resourceNamespaces'; +import { RoleAssignmentsRequestBuilder } from './roleAssignments'; +import { RoleAssignmentScheduleInstancesRequestBuilder } from './roleAssignmentScheduleInstances'; +import { RoleAssignmentScheduleRequestsRequestBuilder } from './roleAssignmentScheduleRequests'; +import { RoleAssignmentSchedulesRequestBuilder } from './roleAssignmentSchedules'; +import { RoleDefinitionsRequestBuilder } from './roleDefinitions'; +import { RoleEligibilityScheduleInstancesRequestBuilder } from './roleEligibilityScheduleInstances'; +import { RoleEligibilityScheduleRequestsRequestBuilder } from './roleEligibilityScheduleRequests'; +import { RoleEligibilitySchedulesRequestBuilder } from './roleEligibilitySchedules'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/resourceNamespaces/count/index.ts b/src/roleManagement/directory/resourceNamespaces/count/index.ts index 3fc1cdd6fe3..6c53176c95a 100644 --- a/src/roleManagement/directory/resourceNamespaces/count/index.ts +++ b/src/roleManagement/directory/resourceNamespaces/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/resourceNamespaces/index.ts b/src/roleManagement/directory/resourceNamespaces/index.ts index a0dcc031a2e..109160065f3 100644 --- a/src/roleManagement/directory/resourceNamespaces/index.ts +++ b/src/roleManagement/directory/resourceNamespaces/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRbacResourceNamespaceCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRbacResourceNamespaceCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRbacResourceNamespaceFromDiscriminatorValue, deserializeIntoUnifiedRbacResourceNamespace, serializeUnifiedRbacResourceNamespace, type UnifiedRbacResourceNamespace } from '../../../models/unifiedRbacResourceNamespace'; import { createUnifiedRbacResourceNamespaceCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRbacResourceNamespaceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRbacResourceNamespaceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRbacResourceNamespaceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceNamespacesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/resourceNamespaces/item/index.ts b/src/roleManagement/directory/resourceNamespaces/item/index.ts index 2b5d83d9dcb..ca8e29adc8c 100644 --- a/src/roleManagement/directory/resourceNamespaces/item/index.ts +++ b/src/roleManagement/directory/resourceNamespaces/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRbacResourceNamespaceFromDiscriminatorValue, deserializeIntoUnifiedRbacResourceNamespace, serializeUnifiedRbacResourceNamespace, type UnifiedRbacResourceNamespace } from '../../../../models/unifiedRbacResourceNamespace'; -import { ResourceActionsRequestBuilder } from './resourceActions/'; +import { ResourceActionsRequestBuilder } from './resourceActions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRbacResourceNamespaceItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/resourceNamespaces/item/resourceActions/count/index.ts b/src/roleManagement/directory/resourceNamespaces/item/resourceActions/count/index.ts index daa4054eb88..b4ade57cd4b 100644 --- a/src/roleManagement/directory/resourceNamespaces/item/resourceActions/count/index.ts +++ b/src/roleManagement/directory/resourceNamespaces/item/resourceActions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/resourceNamespaces/item/resourceActions/index.ts b/src/roleManagement/directory/resourceNamespaces/item/resourceActions/index.ts index a91094c5910..5e82cd5570f 100644 --- a/src/roleManagement/directory/resourceNamespaces/item/resourceActions/index.ts +++ b/src/roleManagement/directory/resourceNamespaces/item/resourceActions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRbacResourceActionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRbacResourceActionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRbacResourceActionFromDiscriminatorValue, deserializeIntoUnifiedRbacResourceAction, serializeUnifiedRbacResourceAction, type UnifiedRbacResourceAction } from '../../../../../models/unifiedRbacResourceAction'; import { createUnifiedRbacResourceActionCollectionResponseFromDiscriminatorValue } from '../../../../../models/unifiedRbacResourceActionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRbacResourceActionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRbacResourceActionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceActionsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/resourceNamespaces/item/resourceActions/item/index.ts b/src/roleManagement/directory/resourceNamespaces/item/resourceActions/item/index.ts index d0223206943..a93e611eed8 100644 --- a/src/roleManagement/directory/resourceNamespaces/item/resourceActions/item/index.ts +++ b/src/roleManagement/directory/resourceNamespaces/item/resourceActions/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUnifiedRbacResourceActionFromDiscriminatorValue, deserializeIntoUnifiedRbacResourceAction, serializeUnifiedRbacResourceAction, type UnifiedRbacResourceAction } from '../../../../../../models/unifiedRbacResourceAction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/count/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/count/index.ts index f1eef9e0eff..e43a12aee8f 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/count/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 936a1426ca3..00000000000 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue, serializeUnifiedRoleAssignmentScheduleInstance, type UnifiedRoleAssignmentScheduleInstance } from '../../../../models/unifiedRoleAssignmentScheduleInstance'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleAssignmentScheduleInstance[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentScheduleInstance); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/index.ts index 2f25440d937..341d494621c 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue, serializeUnifiedRoleAssignmentScheduleInstance, type UnifiedRoleAssignmentScheduleInstance } from '../../../../models/unifiedRoleAssignmentScheduleInstance'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleAssignmentScheduleInstance[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentScheduleInstance); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/index.ts index 69b1618a09a..f2a8696cd44 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentScheduleInstanceCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentScheduleInstanceCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentScheduleInstance, serializeUnifiedRoleAssignmentScheduleInstance, type UnifiedRoleAssignmentScheduleInstance } from '../../../models/unifiedRoleAssignmentScheduleInstance'; import { createUnifiedRoleAssignmentScheduleInstanceCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleAssignmentScheduleInstanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentScheduleInstancesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/activatedUsing/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/activatedUsing/index.ts index 285f33d6ae7..6d97901bc9a 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/activatedUsing/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilityScheduleInstance } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilityScheduleInstance } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue } from '../../../../../models/unifiedRoleEligibilityScheduleInstance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/appScope/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/appScope/index.ts index cba255938b5..27d8131b9b2 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/appScope/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/directoryScope/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/directoryScope/index.ts index 9e297703f30..b94b5c6dad1 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/directoryScope/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/index.ts index a1127391c42..7bb3643fcf3 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentScheduleInstance, serializeUnifiedRoleAssignmentScheduleInstance, type UnifiedRoleAssignmentScheduleInstance } from '../../../../models/unifiedRoleAssignmentScheduleInstance'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/principal/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/principal/index.ts index 946de8c5e67..9ebf6df87ff 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/principal/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/roleDefinition/index.ts b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/roleDefinition/index.ts index f23f382bbb2..16c2f6c77d1 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleInstances/item/roleDefinition/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleInstances/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/count/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/count/index.ts index f7aca9ce9bd..566327c5d31 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/count/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 7a3800a9bfa..00000000000 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue, serializeUnifiedRoleAssignmentScheduleRequest, type UnifiedRoleAssignmentScheduleRequest } from '../../../../models/unifiedRoleAssignmentScheduleRequest'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleAssignmentScheduleRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentScheduleRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/index.ts index 5843203e995..03f83cce263 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue, serializeUnifiedRoleAssignmentScheduleRequest, type UnifiedRoleAssignmentScheduleRequest } from '../../../../models/unifiedRoleAssignmentScheduleRequest'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleAssignmentScheduleRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentScheduleRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/index.ts index 79a7cdbe1ba..1a4302afda6 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentScheduleRequestCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentScheduleRequestCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentScheduleRequest, serializeUnifiedRoleAssignmentScheduleRequest, type UnifiedRoleAssignmentScheduleRequest } from '../../../models/unifiedRoleAssignmentScheduleRequest'; import { createUnifiedRoleAssignmentScheduleRequestCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleAssignmentScheduleRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleAssignmentScheduleRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleAssignmentScheduleRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentScheduleRequestsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/activatedUsing/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/activatedUsing/index.ts index b16f5b340b0..5fd0c9e36d4 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/activatedUsing/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilitySchedule } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilitySchedule } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue } from '../../../../../models/unifiedRoleEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/appScope/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/appScope/index.ts index 2f858faf0c5..16b80deb36c 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/appScope/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/cancel/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/cancel/index.ts index 20efd7d16fb..74156982d0c 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/cancel/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/directoryScope/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/directoryScope/index.ts index 4a5917cf9d3..70191a3831b 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/directoryScope/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/index.ts index 009c5fbf651..adda9d938d6 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentScheduleRequest, serializeUnifiedRoleAssignmentScheduleRequest, type UnifiedRoleAssignmentScheduleRequest } from '../../../../models/unifiedRoleAssignmentScheduleRequest'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { AppScopeRequestBuilder } from './appScope/'; -import { CancelRequestBuilder } from './cancel/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; -import { TargetScheduleRequestBuilder } from './targetSchedule/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { AppScopeRequestBuilder } from './appScope'; +import { CancelRequestBuilder } from './cancel'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; +import { TargetScheduleRequestBuilder } from './targetSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/principal/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/principal/index.ts index 09ae74ca48a..850d1620b3d 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/principal/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/roleDefinition/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/roleDefinition/index.ts index 035e7e7a14d..848abfa05a8 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/roleDefinition/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/targetSchedule/index.ts b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/targetSchedule/index.ts index ee69cba1798..fa6e6870a6c 100644 --- a/src/roleManagement/directory/roleAssignmentScheduleRequests/item/targetSchedule/index.ts +++ b/src/roleManagement/directory/roleAssignmentScheduleRequests/item/targetSchedule/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentSchedule } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentSchedule } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue } from '../../../../../models/unifiedRoleAssignmentSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentSchedules/count/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/count/index.ts index 57237693836..15c899f9c9f 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/count/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/directory/roleAssignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index b6b187a0415..00000000000 --- a/src/roleManagement/directory/roleAssignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue, serializeUnifiedRoleAssignmentSchedule, type UnifiedRoleAssignmentSchedule } from '../../../../models/unifiedRoleAssignmentSchedule'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleAssignmentSchedule[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentSchedule); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/directory/roleAssignmentSchedules/filterByCurrentUserWithOn/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/filterByCurrentUserWithOn/index.ts index efd945012b6..278707b05b4 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue, serializeUnifiedRoleAssignmentSchedule, type UnifiedRoleAssignmentSchedule } from '../../../../models/unifiedRoleAssignmentSchedule'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleAssignmentSchedule[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentSchedule); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/directory/roleAssignmentSchedules/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/index.ts index 9734d831f46..b59fb908b53 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentScheduleCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentScheduleCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentSchedule, serializeUnifiedRoleAssignmentSchedule, type UnifiedRoleAssignmentSchedule } from '../../../models/unifiedRoleAssignmentSchedule'; import { createUnifiedRoleAssignmentScheduleCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleAssignmentScheduleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleAssignmentScheduleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleAssignmentScheduleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentSchedulesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleAssignmentSchedules/item/activatedUsing/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/item/activatedUsing/index.ts index 6350b7be2a6..c191565ddd5 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/item/activatedUsing/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilitySchedule } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilitySchedule } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue } from '../../../../../models/unifiedRoleEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentSchedules/item/appScope/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/item/appScope/index.ts index 90dc441ef3d..e52df129709 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/item/appScope/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentSchedules/item/directoryScope/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/item/directoryScope/index.ts index 6d8d408b919..e67c2446c7d 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/item/directoryScope/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentSchedules/item/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/item/index.ts index 536cf6d238b..10a62de19a3 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/item/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentSchedule, serializeUnifiedRoleAssignmentSchedule, type UnifiedRoleAssignmentSchedule } from '../../../../models/unifiedRoleAssignmentSchedule'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleAssignmentScheduleItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleAssignmentSchedules/item/principal/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/item/principal/index.ts index 0e5382ade78..c99d00edc8a 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/item/principal/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignmentSchedules/item/roleDefinition/index.ts b/src/roleManagement/directory/roleAssignmentSchedules/item/roleDefinition/index.ts index 9c7d26cf668..3879faae06a 100644 --- a/src/roleManagement/directory/roleAssignmentSchedules/item/roleDefinition/index.ts +++ b/src/roleManagement/directory/roleAssignmentSchedules/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignments/count/index.ts b/src/roleManagement/directory/roleAssignments/count/index.ts index f6b1a332184..a52af9d8c3d 100644 --- a/src/roleManagement/directory/roleAssignments/count/index.ts +++ b/src/roleManagement/directory/roleAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignments/index.ts b/src/roleManagement/directory/roleAssignments/index.ts index 01e6fa358fc..b4ba445164c 100644 --- a/src/roleManagement/directory/roleAssignments/index.ts +++ b/src/roleManagement/directory/roleAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignment, serializeUnifiedRoleAssignment, type UnifiedRoleAssignment } from '../../../models/unifiedRoleAssignment'; import { createUnifiedRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleAssignments/item/appScope/index.ts b/src/roleManagement/directory/roleAssignments/item/appScope/index.ts index a1ef7418384..acb2a8b4443 100644 --- a/src/roleManagement/directory/roleAssignments/item/appScope/index.ts +++ b/src/roleManagement/directory/roleAssignments/item/appScope/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppScopeFromDiscriminatorValue, deserializeIntoAppScope, serializeAppScope, type AppScope } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignments/item/directoryScope/index.ts b/src/roleManagement/directory/roleAssignments/item/directoryScope/index.ts index 909a60478f1..c5bea3ad39e 100644 --- a/src/roleManagement/directory/roleAssignments/item/directoryScope/index.ts +++ b/src/roleManagement/directory/roleAssignments/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignments/item/index.ts b/src/roleManagement/directory/roleAssignments/item/index.ts index 0b28c6cc6ca..dc854070353 100644 --- a/src/roleManagement/directory/roleAssignments/item/index.ts +++ b/src/roleManagement/directory/roleAssignments/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignment, serializeUnifiedRoleAssignment, type UnifiedRoleAssignment } from '../../../../models/unifiedRoleAssignment'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleAssignments/item/principal/index.ts b/src/roleManagement/directory/roleAssignments/item/principal/index.ts index 2461dbba5ec..759f0708899 100644 --- a/src/roleManagement/directory/roleAssignments/item/principal/index.ts +++ b/src/roleManagement/directory/roleAssignments/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleAssignments/item/roleDefinition/index.ts b/src/roleManagement/directory/roleAssignments/item/roleDefinition/index.ts index 4f6613cc401..276adaf644d 100644 --- a/src/roleManagement/directory/roleAssignments/item/roleDefinition/index.ts +++ b/src/roleManagement/directory/roleAssignments/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleDefinitions/count/index.ts b/src/roleManagement/directory/roleDefinitions/count/index.ts index 894ab145a08..d00fe00c5e2 100644 --- a/src/roleManagement/directory/roleDefinitions/count/index.ts +++ b/src/roleManagement/directory/roleDefinitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleDefinitions/index.ts b/src/roleManagement/directory/roleDefinitions/index.ts index 7050e4d4c50..afde5e4ff5a 100644 --- a/src/roleManagement/directory/roleDefinitions/index.ts +++ b/src/roleManagement/directory/roleDefinitions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinitionCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleDefinitionCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue, deserializeIntoUnifiedRoleDefinition, serializeUnifiedRoleDefinition, type UnifiedRoleDefinition } from '../../../models/unifiedRoleDefinition'; import { createUnifiedRoleDefinitionCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleDefinitionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleDefinitions/item/index.ts b/src/roleManagement/directory/roleDefinitions/item/index.ts index 2371528ce11..54bd8dcd7ee 100644 --- a/src/roleManagement/directory/roleDefinitions/item/index.ts +++ b/src/roleManagement/directory/roleDefinitions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue, deserializeIntoUnifiedRoleDefinition, serializeUnifiedRoleDefinition, type UnifiedRoleDefinition } from '../../../../models/unifiedRoleDefinition'; -import { InheritsPermissionsFromRequestBuilder } from './inheritsPermissionsFrom/'; +import { InheritsPermissionsFromRequestBuilder } from './inheritsPermissionsFrom'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/count/index.ts b/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/count/index.ts index caa46333083..2c4a1c31d64 100644 --- a/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/count/index.ts +++ b/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/index.ts b/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/index.ts index 9629a803ba2..c302f647c97 100644 --- a/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/index.ts +++ b/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinitionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinitionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue, deserializeIntoUnifiedRoleDefinition, serializeUnifiedRoleDefinition, type UnifiedRoleDefinition } from '../../../../../models/unifiedRoleDefinition'; import { createUnifiedRoleDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinitionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InheritsPermissionsFromRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/item/index.ts b/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/item/index.ts index 6649008ab3b..b769e3d16fd 100644 --- a/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/item/index.ts +++ b/src/roleManagement/directory/roleDefinitions/item/inheritsPermissionsFrom/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue, deserializeIntoUnifiedRoleDefinition, serializeUnifiedRoleDefinition, type UnifiedRoleDefinition } from '../../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/count/index.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/count/index.ts index 499c0047095..c1030a44e4d 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/count/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleInstances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 8137b6bbcc1..00000000000 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue, serializeUnifiedRoleEligibilityScheduleInstance, type UnifiedRoleEligibilityScheduleInstance } from '../../../../models/unifiedRoleEligibilityScheduleInstance'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleEligibilityScheduleInstance[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilityScheduleInstance); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts index 5b75d02b9d5..813a3a70e1c 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue, serializeUnifiedRoleEligibilityScheduleInstance, type UnifiedRoleEligibilityScheduleInstance } from '../../../../models/unifiedRoleEligibilityScheduleInstance'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleEligibilityScheduleInstance[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilityScheduleInstance); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/index.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/index.ts index 4e83e267561..27f7ff48bd3 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleInstances/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilityScheduleInstanceCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilityScheduleInstanceCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilityScheduleInstance, serializeUnifiedRoleEligibilityScheduleInstance, type UnifiedRoleEligibilityScheduleInstance } from '../../../models/unifiedRoleEligibilityScheduleInstance'; import { createUnifiedRoleEligibilityScheduleInstanceCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleEligibilityScheduleInstanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleEligibilityScheduleInstancesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/appScope/index.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/appScope/index.ts index 6b3f9a5b8bb..2d5fe072047 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/appScope/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/directoryScope/index.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/directoryScope/index.ts index 52ab5e7e489..3b38a0d0ef0 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/directoryScope/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/index.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/index.ts index 1025fccba79..2c2eea0d446 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilityScheduleInstance, serializeUnifiedRoleEligibilityScheduleInstance, type UnifiedRoleEligibilityScheduleInstance } from '../../../../models/unifiedRoleEligibilityScheduleInstance'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/principal/index.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/principal/index.ts index bc4ed3ced95..b7c4c95cd25 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/principal/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/roleDefinition/index.ts b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/roleDefinition/index.ts index 975b71a7afc..00387bb2c6b 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleInstances/item/roleDefinition/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleInstances/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/count/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/count/index.ts index 858efb3b411..622ddfdabb6 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/count/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index c4f42bf393d..00000000000 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue, serializeUnifiedRoleEligibilityScheduleRequest, type UnifiedRoleEligibilityScheduleRequest } from '../../../../models/unifiedRoleEligibilityScheduleRequest'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleEligibilityScheduleRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilityScheduleRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts index cf2ea50f823..be2e6912a7f 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue, serializeUnifiedRoleEligibilityScheduleRequest, type UnifiedRoleEligibilityScheduleRequest } from '../../../../models/unifiedRoleEligibilityScheduleRequest'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleEligibilityScheduleRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilityScheduleRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/index.ts index 29890d70e05..9336c57568c 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilityScheduleRequestCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilityScheduleRequestCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilityScheduleRequest, serializeUnifiedRoleEligibilityScheduleRequest, type UnifiedRoleEligibilityScheduleRequest } from '../../../models/unifiedRoleEligibilityScheduleRequest'; import { createUnifiedRoleEligibilityScheduleRequestCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleEligibilityScheduleRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleEligibilityScheduleRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleEligibilityScheduleRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleEligibilityScheduleRequestsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/appScope/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/appScope/index.ts index 801f50bc915..af184865099 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/appScope/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/cancel/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/cancel/index.ts index d19196a578d..eca5bc08e35 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/cancel/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/directoryScope/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/directoryScope/index.ts index 908f1fc0653..ea6a4372ef1 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/directoryScope/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/index.ts index 1de69be5f74..031ccbceb30 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilityScheduleRequest, serializeUnifiedRoleEligibilityScheduleRequest, type UnifiedRoleEligibilityScheduleRequest } from '../../../../models/unifiedRoleEligibilityScheduleRequest'; -import { AppScopeRequestBuilder } from './appScope/'; -import { CancelRequestBuilder } from './cancel/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; -import { TargetScheduleRequestBuilder } from './targetSchedule/'; +import { AppScopeRequestBuilder } from './appScope'; +import { CancelRequestBuilder } from './cancel'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; +import { TargetScheduleRequestBuilder } from './targetSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/principal/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/principal/index.ts index eb1a65497f0..6bfabca1cdf 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/principal/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/roleDefinition/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/roleDefinition/index.ts index 5e2d8ae1431..43eaed9993c 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/roleDefinition/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/targetSchedule/index.ts b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/targetSchedule/index.ts index e16a262541b..4dcf4268e60 100644 --- a/src/roleManagement/directory/roleEligibilityScheduleRequests/item/targetSchedule/index.ts +++ b/src/roleManagement/directory/roleEligibilityScheduleRequests/item/targetSchedule/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilitySchedule } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilitySchedule } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue } from '../../../../../models/unifiedRoleEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilitySchedules/count/index.ts b/src/roleManagement/directory/roleEligibilitySchedules/count/index.ts index 32b8faf7e17..b0bee59f17c 100644 --- a/src/roleManagement/directory/roleEligibilitySchedules/count/index.ts +++ b/src/roleManagement/directory/roleEligibilitySchedules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/directory/roleEligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 210eb06a9d7..00000000000 --- a/src/roleManagement/directory/roleEligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue, serializeUnifiedRoleEligibilitySchedule, type UnifiedRoleEligibilitySchedule } from '../../../../models/unifiedRoleEligibilitySchedule'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleEligibilitySchedule[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilitySchedule); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/directory/roleEligibilitySchedules/filterByCurrentUserWithOn/index.ts b/src/roleManagement/directory/roleEligibilitySchedules/filterByCurrentUserWithOn/index.ts index d5b5d2d44b1..a0be4486840 100644 --- a/src/roleManagement/directory/roleEligibilitySchedules/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/directory/roleEligibilitySchedules/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue, serializeUnifiedRoleEligibilitySchedule, type UnifiedRoleEligibilitySchedule } from '../../../../models/unifiedRoleEligibilitySchedule'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleEligibilitySchedule[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilitySchedule); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/directory/roleEligibilitySchedules/index.ts b/src/roleManagement/directory/roleEligibilitySchedules/index.ts index 70b36bac3a2..f072b94c33b 100644 --- a/src/roleManagement/directory/roleEligibilitySchedules/index.ts +++ b/src/roleManagement/directory/roleEligibilitySchedules/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilityScheduleCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilityScheduleCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilitySchedule, serializeUnifiedRoleEligibilitySchedule, type UnifiedRoleEligibilitySchedule } from '../../../models/unifiedRoleEligibilitySchedule'; import { createUnifiedRoleEligibilityScheduleCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleEligibilityScheduleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleEligibilityScheduleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleEligibilityScheduleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleEligibilitySchedulesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleEligibilitySchedules/item/appScope/index.ts b/src/roleManagement/directory/roleEligibilitySchedules/item/appScope/index.ts index 0c30533f4a6..ec72c89ee3d 100644 --- a/src/roleManagement/directory/roleEligibilitySchedules/item/appScope/index.ts +++ b/src/roleManagement/directory/roleEligibilitySchedules/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilitySchedules/item/directoryScope/index.ts b/src/roleManagement/directory/roleEligibilitySchedules/item/directoryScope/index.ts index e333fa58c9f..1dfeaa8fdaf 100644 --- a/src/roleManagement/directory/roleEligibilitySchedules/item/directoryScope/index.ts +++ b/src/roleManagement/directory/roleEligibilitySchedules/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilitySchedules/item/index.ts b/src/roleManagement/directory/roleEligibilitySchedules/item/index.ts index b6bd9dbf3a9..72eb68af941 100644 --- a/src/roleManagement/directory/roleEligibilitySchedules/item/index.ts +++ b/src/roleManagement/directory/roleEligibilitySchedules/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilitySchedule, serializeUnifiedRoleEligibilitySchedule, type UnifiedRoleEligibilitySchedule } from '../../../../models/unifiedRoleEligibilitySchedule'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleEligibilityScheduleItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/directory/roleEligibilitySchedules/item/principal/index.ts b/src/roleManagement/directory/roleEligibilitySchedules/item/principal/index.ts index 8f17173a24b..ed035d26165 100644 --- a/src/roleManagement/directory/roleEligibilitySchedules/item/principal/index.ts +++ b/src/roleManagement/directory/roleEligibilitySchedules/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/directory/roleEligibilitySchedules/item/roleDefinition/index.ts b/src/roleManagement/directory/roleEligibilitySchedules/item/roleDefinition/index.ts index 176cb2ed897..fcb69a76b16 100644 --- a/src/roleManagement/directory/roleEligibilitySchedules/item/roleDefinition/index.ts +++ b/src/roleManagement/directory/roleEligibilitySchedules/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/index.ts b/src/roleManagement/entitlementManagement/index.ts index b3550b77483..c8f521dc769 100644 --- a/src/roleManagement/entitlementManagement/index.ts +++ b/src/roleManagement/entitlementManagement/index.ts @@ -1,18 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createRbacApplicationFromDiscriminatorValue, deserializeIntoRbacApplication, serializeRbacApplication, type RbacApplication } from '../../models/rbacApplication'; -import { ResourceNamespacesRequestBuilder } from './resourceNamespaces/'; -import { RoleAssignmentsRequestBuilder } from './roleAssignments/'; -import { RoleAssignmentScheduleInstancesRequestBuilder } from './roleAssignmentScheduleInstances/'; -import { RoleAssignmentScheduleRequestsRequestBuilder } from './roleAssignmentScheduleRequests/'; -import { RoleAssignmentSchedulesRequestBuilder } from './roleAssignmentSchedules/'; -import { RoleDefinitionsRequestBuilder } from './roleDefinitions/'; -import { RoleEligibilityScheduleInstancesRequestBuilder } from './roleEligibilityScheduleInstances/'; -import { RoleEligibilityScheduleRequestsRequestBuilder } from './roleEligibilityScheduleRequests/'; -import { RoleEligibilitySchedulesRequestBuilder } from './roleEligibilitySchedules/'; +import { ResourceNamespacesRequestBuilder } from './resourceNamespaces'; +import { RoleAssignmentsRequestBuilder } from './roleAssignments'; +import { RoleAssignmentScheduleInstancesRequestBuilder } from './roleAssignmentScheduleInstances'; +import { RoleAssignmentScheduleRequestsRequestBuilder } from './roleAssignmentScheduleRequests'; +import { RoleAssignmentSchedulesRequestBuilder } from './roleAssignmentSchedules'; +import { RoleDefinitionsRequestBuilder } from './roleDefinitions'; +import { RoleEligibilityScheduleInstancesRequestBuilder } from './roleEligibilityScheduleInstances'; +import { RoleEligibilityScheduleRequestsRequestBuilder } from './roleEligibilityScheduleRequests'; +import { RoleEligibilitySchedulesRequestBuilder } from './roleEligibilitySchedules'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EntitlementManagementRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/resourceNamespaces/count/index.ts b/src/roleManagement/entitlementManagement/resourceNamespaces/count/index.ts index 7fa82d8d8c5..bd57dbd009f 100644 --- a/src/roleManagement/entitlementManagement/resourceNamespaces/count/index.ts +++ b/src/roleManagement/entitlementManagement/resourceNamespaces/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/resourceNamespaces/index.ts b/src/roleManagement/entitlementManagement/resourceNamespaces/index.ts index bb2aff4428e..53693d98846 100644 --- a/src/roleManagement/entitlementManagement/resourceNamespaces/index.ts +++ b/src/roleManagement/entitlementManagement/resourceNamespaces/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRbacResourceNamespaceCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRbacResourceNamespaceCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRbacResourceNamespaceFromDiscriminatorValue, deserializeIntoUnifiedRbacResourceNamespace, serializeUnifiedRbacResourceNamespace, type UnifiedRbacResourceNamespace } from '../../../models/unifiedRbacResourceNamespace'; import { createUnifiedRbacResourceNamespaceCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRbacResourceNamespaceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRbacResourceNamespaceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRbacResourceNamespaceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceNamespacesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/resourceNamespaces/item/index.ts b/src/roleManagement/entitlementManagement/resourceNamespaces/item/index.ts index 5f72cad5ed8..dce8a5c3b34 100644 --- a/src/roleManagement/entitlementManagement/resourceNamespaces/item/index.ts +++ b/src/roleManagement/entitlementManagement/resourceNamespaces/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRbacResourceNamespaceFromDiscriminatorValue, deserializeIntoUnifiedRbacResourceNamespace, serializeUnifiedRbacResourceNamespace, type UnifiedRbacResourceNamespace } from '../../../../models/unifiedRbacResourceNamespace'; -import { ResourceActionsRequestBuilder } from './resourceActions/'; +import { ResourceActionsRequestBuilder } from './resourceActions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRbacResourceNamespaceItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/count/index.ts b/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/count/index.ts index 396f83aec0d..081203dae36 100644 --- a/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/count/index.ts +++ b/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/index.ts b/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/index.ts index 903c3e9de58..64e817040e3 100644 --- a/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/index.ts +++ b/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRbacResourceActionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRbacResourceActionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRbacResourceActionFromDiscriminatorValue, deserializeIntoUnifiedRbacResourceAction, serializeUnifiedRbacResourceAction, type UnifiedRbacResourceAction } from '../../../../../models/unifiedRbacResourceAction'; import { createUnifiedRbacResourceActionCollectionResponseFromDiscriminatorValue } from '../../../../../models/unifiedRbacResourceActionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRbacResourceActionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRbacResourceActionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourceActionsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/item/index.ts b/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/item/index.ts index 48947a55523..4d10776eaf9 100644 --- a/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/item/index.ts +++ b/src/roleManagement/entitlementManagement/resourceNamespaces/item/resourceActions/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUnifiedRbacResourceActionFromDiscriminatorValue, deserializeIntoUnifiedRbacResourceAction, serializeUnifiedRbacResourceAction, type UnifiedRbacResourceAction } from '../../../../../../models/unifiedRbacResourceAction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/count/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/count/index.ts index a595b21d6c9..dcb581e337c 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 936a1426ca3..00000000000 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue, serializeUnifiedRoleAssignmentScheduleInstance, type UnifiedRoleAssignmentScheduleInstance } from '../../../../models/unifiedRoleAssignmentScheduleInstance'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleAssignmentScheduleInstance[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentScheduleInstance); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/index.ts index 15fee0996ce..e4da785ec93 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue, serializeUnifiedRoleAssignmentScheduleInstance, type UnifiedRoleAssignmentScheduleInstance } from '../../../../models/unifiedRoleAssignmentScheduleInstance'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleAssignmentScheduleInstance[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentScheduleInstance); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/index.ts index f204bfaf12e..1de3c4ebdec 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentScheduleInstanceCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentScheduleInstanceCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentScheduleInstance, serializeUnifiedRoleAssignmentScheduleInstance, type UnifiedRoleAssignmentScheduleInstance } from '../../../models/unifiedRoleAssignmentScheduleInstance'; import { createUnifiedRoleAssignmentScheduleInstanceCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleAssignmentScheduleInstanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentScheduleInstancesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/activatedUsing/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/activatedUsing/index.ts index 7e4e3334542..0a5418262e8 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/activatedUsing/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilityScheduleInstance } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilityScheduleInstance } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue } from '../../../../../models/unifiedRoleEligibilityScheduleInstance'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/appScope/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/appScope/index.ts index 74262c9a6c2..0ab204c789a 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/appScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/directoryScope/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/directoryScope/index.ts index 3f2fda085ca..63b115ea038 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/directoryScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/index.ts index 84534062d5a..5e5157f56bb 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleInstanceFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentScheduleInstance, serializeUnifiedRoleAssignmentScheduleInstance, type UnifiedRoleAssignmentScheduleInstance } from '../../../../models/unifiedRoleAssignmentScheduleInstance'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/principal/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/principal/index.ts index bee1a74dccf..0c97752cc42 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/principal/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/roleDefinition/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/roleDefinition/index.ts index c7137dc519a..9e0004e2466 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/roleDefinition/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleInstances/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/count/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/count/index.ts index dedbfcb55ab..7a39af6e7dc 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 7a3800a9bfa..00000000000 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue, serializeUnifiedRoleAssignmentScheduleRequest, type UnifiedRoleAssignmentScheduleRequest } from '../../../../models/unifiedRoleAssignmentScheduleRequest'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleAssignmentScheduleRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentScheduleRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/index.ts index ed5c3ee4833..219cfc775a3 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue, serializeUnifiedRoleAssignmentScheduleRequest, type UnifiedRoleAssignmentScheduleRequest } from '../../../../models/unifiedRoleAssignmentScheduleRequest'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleAssignmentScheduleRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentScheduleRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/index.ts index 96d48459a64..5e07eaad07f 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentScheduleRequestCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentScheduleRequestCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentScheduleRequest, serializeUnifiedRoleAssignmentScheduleRequest, type UnifiedRoleAssignmentScheduleRequest } from '../../../models/unifiedRoleAssignmentScheduleRequest'; import { createUnifiedRoleAssignmentScheduleRequestCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleAssignmentScheduleRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleAssignmentScheduleRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleAssignmentScheduleRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentScheduleRequestsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/activatedUsing/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/activatedUsing/index.ts index 889ab179eab..07ffe7bd4ca 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/activatedUsing/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilitySchedule } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilitySchedule } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue } from '../../../../../models/unifiedRoleEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/appScope/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/appScope/index.ts index df4aed73933..43c6890841c 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/appScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/cancel/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/cancel/index.ts index 9ae1f5eeabe..d7ce30f26b9 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/cancel/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/directoryScope/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/directoryScope/index.ts index 24cdc381cf6..4fcd1811956 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/directoryScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/index.ts index e9fd4bb7544..7ad8acfe82e 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleRequestFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentScheduleRequest, serializeUnifiedRoleAssignmentScheduleRequest, type UnifiedRoleAssignmentScheduleRequest } from '../../../../models/unifiedRoleAssignmentScheduleRequest'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { AppScopeRequestBuilder } from './appScope/'; -import { CancelRequestBuilder } from './cancel/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; -import { TargetScheduleRequestBuilder } from './targetSchedule/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { AppScopeRequestBuilder } from './appScope'; +import { CancelRequestBuilder } from './cancel'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; +import { TargetScheduleRequestBuilder } from './targetSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/principal/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/principal/index.ts index 265a20f5948..4033189b2ca 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/principal/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/roleDefinition/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/roleDefinition/index.ts index 52cdbfaad37..e56d3972bee 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/roleDefinition/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/targetSchedule/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/targetSchedule/index.ts index ba383d885f5..0c24588b52d 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/targetSchedule/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/item/targetSchedule/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentSchedule } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentSchedule } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue } from '../../../../../models/unifiedRoleAssignmentSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/count/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/count/index.ts index fa276dbbe3c..52b43ab15cf 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index b6b187a0415..00000000000 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue, serializeUnifiedRoleAssignmentSchedule, type UnifiedRoleAssignmentSchedule } from '../../../../models/unifiedRoleAssignmentSchedule'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleAssignmentSchedule[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentSchedule); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/filterByCurrentUserWithOn/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/filterByCurrentUserWithOn/index.ts index a5ecc5bfd2b..d3227b390e9 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue, serializeUnifiedRoleAssignmentSchedule, type UnifiedRoleAssignmentSchedule } from '../../../../models/unifiedRoleAssignmentSchedule'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleAssignmentScheduleFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleAssignmentSchedule[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleAssignmentSchedule); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/index.ts index 12141c32e94..f965f7fa00b 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentScheduleCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentScheduleCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentSchedule, serializeUnifiedRoleAssignmentSchedule, type UnifiedRoleAssignmentSchedule } from '../../../models/unifiedRoleAssignmentSchedule'; import { createUnifiedRoleAssignmentScheduleCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleAssignmentScheduleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleAssignmentScheduleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleAssignmentScheduleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentSchedulesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/activatedUsing/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/activatedUsing/index.ts index 709b07e4900..ea2969bf7f8 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/activatedUsing/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/activatedUsing/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilitySchedule } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilitySchedule } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue } from '../../../../../models/unifiedRoleEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/appScope/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/appScope/index.ts index f12cc2b7ae7..23f772cc1b6 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/appScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/directoryScope/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/directoryScope/index.ts index a7084220ee7..925c6cab9c8 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/directoryScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/index.ts index 4adf831342f..362d8fb02c6 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentScheduleFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignmentSchedule, serializeUnifiedRoleAssignmentSchedule, type UnifiedRoleAssignmentSchedule } from '../../../../models/unifiedRoleAssignmentSchedule'; -import { ActivatedUsingRequestBuilder } from './activatedUsing/'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { ActivatedUsingRequestBuilder } from './activatedUsing'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleAssignmentScheduleItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/principal/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/principal/index.ts index 53305e70f15..46fd913d4ae 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/principal/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/roleDefinition/index.ts b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/roleDefinition/index.ts index 72255b0dd41..3cf112b7fca 100644 --- a/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/roleDefinition/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignmentSchedules/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignments/count/index.ts b/src/roleManagement/entitlementManagement/roleAssignments/count/index.ts index 01e234d6580..db56bf51452 100644 --- a/src/roleManagement/entitlementManagement/roleAssignments/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignments/index.ts b/src/roleManagement/entitlementManagement/roleAssignments/index.ts index b303658d781..f9e0103e7c5 100644 --- a/src/roleManagement/entitlementManagement/roleAssignments/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleAssignmentCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleAssignmentCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignment, serializeUnifiedRoleAssignment, type UnifiedRoleAssignment } from '../../../models/unifiedRoleAssignment'; import { createUnifiedRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleAssignmentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleAssignments/item/appScope/index.ts b/src/roleManagement/entitlementManagement/roleAssignments/item/appScope/index.ts index 72ebb9a72b0..9cb1974cc7c 100644 --- a/src/roleManagement/entitlementManagement/roleAssignments/item/appScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignments/item/appScope/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppScopeFromDiscriminatorValue, deserializeIntoAppScope, serializeAppScope, type AppScope } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignments/item/directoryScope/index.ts b/src/roleManagement/entitlementManagement/roleAssignments/item/directoryScope/index.ts index 4378f557928..f99c66a2bca 100644 --- a/src/roleManagement/entitlementManagement/roleAssignments/item/directoryScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignments/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignments/item/index.ts b/src/roleManagement/entitlementManagement/roleAssignments/item/index.ts index 025c07a1848..0158766ddca 100644 --- a/src/roleManagement/entitlementManagement/roleAssignments/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignments/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleAssignmentFromDiscriminatorValue, deserializeIntoUnifiedRoleAssignment, serializeUnifiedRoleAssignment, type UnifiedRoleAssignment } from '../../../../models/unifiedRoleAssignment'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleAssignments/item/principal/index.ts b/src/roleManagement/entitlementManagement/roleAssignments/item/principal/index.ts index 20976ebc551..c7ba264c7e1 100644 --- a/src/roleManagement/entitlementManagement/roleAssignments/item/principal/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignments/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleAssignments/item/roleDefinition/index.ts b/src/roleManagement/entitlementManagement/roleAssignments/item/roleDefinition/index.ts index cfc91f1d214..2ecb2b67532 100644 --- a/src/roleManagement/entitlementManagement/roleAssignments/item/roleDefinition/index.ts +++ b/src/roleManagement/entitlementManagement/roleAssignments/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleDefinitions/count/index.ts b/src/roleManagement/entitlementManagement/roleDefinitions/count/index.ts index 7c374d6a484..2bbdc47eb27 100644 --- a/src/roleManagement/entitlementManagement/roleDefinitions/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleDefinitions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleDefinitions/index.ts b/src/roleManagement/entitlementManagement/roleDefinitions/index.ts index b04a20d4b29..349f0a18934 100644 --- a/src/roleManagement/entitlementManagement/roleDefinitions/index.ts +++ b/src/roleManagement/entitlementManagement/roleDefinitions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinitionCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleDefinitionCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue, deserializeIntoUnifiedRoleDefinition, serializeUnifiedRoleDefinition, type UnifiedRoleDefinition } from '../../../models/unifiedRoleDefinition'; import { createUnifiedRoleDefinitionCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleDefinitionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleDefinitions/item/index.ts b/src/roleManagement/entitlementManagement/roleDefinitions/item/index.ts index c2523dfa49d..e3313eaab00 100644 --- a/src/roleManagement/entitlementManagement/roleDefinitions/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleDefinitions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue, deserializeIntoUnifiedRoleDefinition, serializeUnifiedRoleDefinition, type UnifiedRoleDefinition } from '../../../../models/unifiedRoleDefinition'; -import { InheritsPermissionsFromRequestBuilder } from './inheritsPermissionsFrom/'; +import { InheritsPermissionsFromRequestBuilder } from './inheritsPermissionsFrom'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/count/index.ts b/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/count/index.ts index 6f1918eb42f..2b84069c935 100644 --- a/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/index.ts b/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/index.ts index 85681e83487..722d55c461c 100644 --- a/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/index.ts +++ b/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinitionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinitionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue, deserializeIntoUnifiedRoleDefinition, serializeUnifiedRoleDefinition, type UnifiedRoleDefinition } from '../../../../../models/unifiedRoleDefinition'; import { createUnifiedRoleDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinitionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedRoleDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedRoleDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InheritsPermissionsFromRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/item/index.ts b/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/item/index.ts index f5622faff6d..e89016aa5e9 100644 --- a/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleDefinitions/item/inheritsPermissionsFrom/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue, deserializeIntoUnifiedRoleDefinition, serializeUnifiedRoleDefinition, type UnifiedRoleDefinition } from '../../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/count/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/count/index.ts index 4f7ba5cc8f8..32b4908da61 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 8137b6bbcc1..00000000000 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue, serializeUnifiedRoleEligibilityScheduleInstance, type UnifiedRoleEligibilityScheduleInstance } from '../../../../models/unifiedRoleEligibilityScheduleInstance'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleEligibilityScheduleInstance[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilityScheduleInstance); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts index 390e777052b..78a14b4fd26 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue, serializeUnifiedRoleEligibilityScheduleInstance, type UnifiedRoleEligibilityScheduleInstance } from '../../../../models/unifiedRoleEligibilityScheduleInstance'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleEligibilityScheduleInstance[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilityScheduleInstance); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/index.ts index 7a4312b6d27..c6546c90642 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilityScheduleInstanceCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilityScheduleInstanceCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilityScheduleInstance, serializeUnifiedRoleEligibilityScheduleInstance, type UnifiedRoleEligibilityScheduleInstance } from '../../../models/unifiedRoleEligibilityScheduleInstance'; import { createUnifiedRoleEligibilityScheduleInstanceCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleEligibilityScheduleInstanceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleEligibilityScheduleInstancesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/appScope/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/appScope/index.ts index 66976c62991..576bfaa19f2 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/appScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/directoryScope/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/directoryScope/index.ts index fd96714fbf5..1d6d0459c35 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/directoryScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/index.ts index 6e77b3454af..22bbdeba25b 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleInstanceFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilityScheduleInstance, serializeUnifiedRoleEligibilityScheduleInstance, type UnifiedRoleEligibilityScheduleInstance } from '../../../../models/unifiedRoleEligibilityScheduleInstance'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/principal/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/principal/index.ts index 8c50885dfa2..b17dff51d83 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/principal/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/roleDefinition/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/roleDefinition/index.ts index 74bafaa3abb..595fe736ae1 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/roleDefinition/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleInstances/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/count/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/count/index.ts index 5a5c11afa7b..7be7243a2f1 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index c4f42bf393d..00000000000 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue, serializeUnifiedRoleEligibilityScheduleRequest, type UnifiedRoleEligibilityScheduleRequest } from '../../../../models/unifiedRoleEligibilityScheduleRequest'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleEligibilityScheduleRequest[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilityScheduleRequest); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts index d7e3c3cabf1..ac61bee1de6 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue, serializeUnifiedRoleEligibilityScheduleRequest, type UnifiedRoleEligibilityScheduleRequest } from '../../../../models/unifiedRoleEligibilityScheduleRequest'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleEligibilityScheduleRequest[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilityScheduleRequest); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/index.ts index f6daa7d347c..0bceb466ea2 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilityScheduleRequestCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilityScheduleRequestCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilityScheduleRequest, serializeUnifiedRoleEligibilityScheduleRequest, type UnifiedRoleEligibilityScheduleRequest } from '../../../models/unifiedRoleEligibilityScheduleRequest'; import { createUnifiedRoleEligibilityScheduleRequestCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleEligibilityScheduleRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleEligibilityScheduleRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleEligibilityScheduleRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleEligibilityScheduleRequestsRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/appScope/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/appScope/index.ts index 7865fbe0596..f0cb6936c25 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/appScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/cancel/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/cancel/index.ts index 4a68e2e1852..0da5140241f 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/cancel/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/cancel/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/directoryScope/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/directoryScope/index.ts index 02d4b54c27f..934c410f546 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/directoryScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/index.ts index b7a187cda83..b10fd40fa20 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleRequestFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilityScheduleRequest, serializeUnifiedRoleEligibilityScheduleRequest, type UnifiedRoleEligibilityScheduleRequest } from '../../../../models/unifiedRoleEligibilityScheduleRequest'; -import { AppScopeRequestBuilder } from './appScope/'; -import { CancelRequestBuilder } from './cancel/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; -import { TargetScheduleRequestBuilder } from './targetSchedule/'; +import { AppScopeRequestBuilder } from './appScope'; +import { CancelRequestBuilder } from './cancel'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; +import { TargetScheduleRequestBuilder } from './targetSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/principal/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/principal/index.ts index 2b427cfda50..7c3c4deb11b 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/principal/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/roleDefinition/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/roleDefinition/index.ts index 247e92a4fc8..fea0f081988 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/roleDefinition/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/targetSchedule/index.ts b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/targetSchedule/index.ts index 69854fcca8a..cce057e6a5f 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/targetSchedule/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/item/targetSchedule/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilitySchedule } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilitySchedule } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue } from '../../../../../models/unifiedRoleEligibilitySchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/count/index.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/count/index.ts index 4c1df604c20..0254d39771a 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/count/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts deleted file mode 100644 index 210eb06a9d7..00000000000 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/filterByCurrentUserWithOn/filterByCurrentUserWithOnGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue, serializeUnifiedRoleEligibilitySchedule, type UnifiedRoleEligibilitySchedule } from '../../../../models/unifiedRoleEligibilitySchedule'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFilterByCurrentUserWithOnGetResponse; -} -export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), - "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleFromDiscriminatorValue); }, - } -} -export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: UnifiedRoleEligibilitySchedule[]; -} -export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) - writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilitySchedule); -} -// tslint:enable -// eslint-enable diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/filterByCurrentUserWithOn/index.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/filterByCurrentUserWithOn/index.ts index 8be3f3a78c7..9a2185daee5 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/filterByCurrentUserWithOn/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/filterByCurrentUserWithOn/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue } from './'; -import { type FilterByCurrentUserWithOnGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue, serializeUnifiedRoleEligibilitySchedule, type UnifiedRoleEligibilitySchedule } from '../../../../models/unifiedRoleEligibilitySchedule'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFilterByCurrentUserWithOnGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFilterByCurrentUserWithOnGetResponse; +} +export function deserializeIntoFilterByCurrentUserWithOnGetResponse(filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(filterByCurrentUserWithOnGetResponse), + "value": n => { filterByCurrentUserWithOnGetResponse.value = n.getCollectionOfObjectValues(createUnifiedRoleEligibilityScheduleFromDiscriminatorValue); }, + } +} +export interface FilterByCurrentUserWithOnGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: UnifiedRoleEligibilitySchedule[]; +} export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFilterByCurrentUserWithOnGetResponse(writer: SerializationWriter, filterByCurrentUserWithOnGetResponse: FilterByCurrentUserWithOnGetResponse | undefined = {} as FilterByCurrentUserWithOnGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, filterByCurrentUserWithOnGetResponse) + writer.writeCollectionOfObjectValues("value", filterByCurrentUserWithOnGetResponse.value, serializeUnifiedRoleEligibilitySchedule); +} /** * Provides operations to call the filterByCurrentUser method. */ diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/index.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/index.ts index ffd721de255..150c967dac8 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleEligibilityScheduleCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UnifiedRoleEligibilityScheduleCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilitySchedule, serializeUnifiedRoleEligibilitySchedule, type UnifiedRoleEligibilitySchedule } from '../../../models/unifiedRoleEligibilitySchedule'; import { createUnifiedRoleEligibilityScheduleCollectionResponseFromDiscriminatorValue } from '../../../models/unifiedRoleEligibilityScheduleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn/'; -import { UnifiedRoleEligibilityScheduleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FilterByCurrentUserWithOnRequestBuilder } from './filterByCurrentUserWithOn'; +import { UnifiedRoleEligibilityScheduleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleEligibilitySchedulesRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/appScope/index.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/appScope/index.ts index 31e834c9816..abe362f126b 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/appScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/appScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppScope } from '../../../../../models/'; +import { type AppScope } from '../../../../../models'; import { createAppScopeFromDiscriminatorValue } from '../../../../../models/appScope'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/directoryScope/index.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/directoryScope/index.ts index 77a82d4f9f0..53574d362e3 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/directoryScope/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/directoryScope/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/index.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/index.ts index b68c999c2d6..04a8ff9039b 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleEligibilityScheduleFromDiscriminatorValue, deserializeIntoUnifiedRoleEligibilitySchedule, serializeUnifiedRoleEligibilitySchedule, type UnifiedRoleEligibilitySchedule } from '../../../../models/unifiedRoleEligibilitySchedule'; -import { AppScopeRequestBuilder } from './appScope/'; -import { DirectoryScopeRequestBuilder } from './directoryScope/'; -import { PrincipalRequestBuilder } from './principal/'; -import { RoleDefinitionRequestBuilder } from './roleDefinition/'; +import { AppScopeRequestBuilder } from './appScope'; +import { DirectoryScopeRequestBuilder } from './directoryScope'; +import { PrincipalRequestBuilder } from './principal'; +import { RoleDefinitionRequestBuilder } from './roleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedRoleEligibilityScheduleItemRequestBuilderGetQueryParameters { diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/principal/index.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/principal/index.ts index 488fe05fd78..7e87f52ac31 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/principal/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/principal/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../../models/'; +import { type DirectoryObject } from '../../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../../models/directoryObject'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/roleDefinition/index.ts b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/roleDefinition/index.ts index b93d6ce9958..67c383a60da 100644 --- a/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/roleDefinition/index.ts +++ b/src/roleManagement/entitlementManagement/roleEligibilitySchedules/item/roleDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UnifiedRoleDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UnifiedRoleDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUnifiedRoleDefinitionFromDiscriminatorValue } from '../../../../../models/unifiedRoleDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/roleManagement/index.ts b/src/roleManagement/index.ts index 8e833ad607d..83276ef41e6 100644 --- a/src/roleManagement/index.ts +++ b/src/roleManagement/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createRoleManagementFromDiscriminatorValue, deserializeIntoRoleManagement, serializeRoleManagement, type RoleManagement } from '../models/roleManagement'; -import { DirectoryRequestBuilder } from './directory/'; -import { EntitlementManagementRequestBuilder } from './entitlementManagement/'; +import { DirectoryRequestBuilder } from './directory'; +import { EntitlementManagementRequestBuilder } from './entitlementManagement'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RoleManagementRequestBuilderGetQueryParameters { diff --git a/src/schemaExtensions/count/index.ts b/src/schemaExtensions/count/index.ts index 998410f5510..08c512c8f6d 100644 --- a/src/schemaExtensions/count/index.ts +++ b/src/schemaExtensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/schemaExtensions/index.ts b/src/schemaExtensions/index.ts index 6844b190387..80a55eb9927 100644 --- a/src/schemaExtensions/index.ts +++ b/src/schemaExtensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SchemaExtensionCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type SchemaExtensionCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createSchemaExtensionFromDiscriminatorValue, deserializeIntoSchemaExtension, serializeSchemaExtension, type SchemaExtension } from '../models/schemaExtension'; import { createSchemaExtensionCollectionResponseFromDiscriminatorValue } from '../models/schemaExtensionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SchemaExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SchemaExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchemaExtensionsRequestBuilderGetQueryParameters { diff --git a/src/schemaExtensions/item/index.ts b/src/schemaExtensions/item/index.ts index edd7bf36222..07ae0691155 100644 --- a/src/schemaExtensions/item/index.ts +++ b/src/schemaExtensions/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSchemaExtensionFromDiscriminatorValue, deserializeIntoSchemaExtension, serializeSchemaExtension, type SchemaExtension } from '../../models/schemaExtension'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/scopedRoleMemberships/count/index.ts b/src/scopedRoleMemberships/count/index.ts index a0ff900f05b..e052984d0ad 100644 --- a/src/scopedRoleMemberships/count/index.ts +++ b/src/scopedRoleMemberships/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/scopedRoleMemberships/index.ts b/src/scopedRoleMemberships/index.ts index 374d6930519..f9e9e39db2f 100644 --- a/src/scopedRoleMemberships/index.ts +++ b/src/scopedRoleMemberships/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ScopedRoleMembershipCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ScopedRoleMembershipCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createScopedRoleMembershipFromDiscriminatorValue, deserializeIntoScopedRoleMembership, serializeScopedRoleMembership, type ScopedRoleMembership } from '../models/scopedRoleMembership'; import { createScopedRoleMembershipCollectionResponseFromDiscriminatorValue } from '../models/scopedRoleMembershipCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ScopedRoleMembershipItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ScopedRoleMembershipItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopedRoleMembershipsRequestBuilderGetQueryParameters { diff --git a/src/scopedRoleMemberships/item/index.ts b/src/scopedRoleMemberships/item/index.ts index 3609eb5d43c..37d77540cf2 100644 --- a/src/scopedRoleMemberships/item/index.ts +++ b/src/scopedRoleMemberships/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createScopedRoleMembershipFromDiscriminatorValue, deserializeIntoScopedRoleMembership, serializeScopedRoleMembership, type ScopedRoleMembership } from '../../models/scopedRoleMembership'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/search/index.ts b/src/search/index.ts index 14316a36127..45f7dcb3860 100644 --- a/src/search/index.ts +++ b/src/search/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createSearchEntityFromDiscriminatorValue, deserializeIntoSearchEntity, serializeSearchEntity, type SearchEntity } from '../models/searchEntity'; -import { QueryRequestBuilder } from './query/'; +import { QueryRequestBuilder } from './query'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SearchRequestBuilderGetQueryParameters { diff --git a/src/search/query/index.ts b/src/search/query/index.ts index e8cb5a8d025..c651b87b831 100644 --- a/src/search/query/index.ts +++ b/src/search/query/index.ts @@ -1,11 +1,56 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { createQueryPostResponseFromDiscriminatorValue, deserializeIntoQueryPostRequestBody, deserializeIntoQueryPostResponse, serializeQueryPostRequestBody, serializeQueryPostResponse, type QueryPostRequestBody, type QueryPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSearchRequestFromDiscriminatorValue, serializeSearchRequest, type SearchRequest } from '../../models/searchRequest'; +import { createSearchResponseFromDiscriminatorValue, serializeSearchResponse, type SearchResponse } from '../../models/searchResponse'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createQueryPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoQueryPostRequestBody; +} +export function createQueryPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoQueryPostResponse; +} +export function deserializeIntoQueryPostRequestBody(queryPostRequestBody: QueryPostRequestBody | undefined = {} as QueryPostRequestBody) : Record void> { + return { + "requests": n => { queryPostRequestBody.requests = n.getCollectionOfObjectValues(createSearchRequestFromDiscriminatorValue); }, + } +} +export function deserializeIntoQueryPostResponse(queryPostResponse: QueryPostResponse | undefined = {} as QueryPostResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(queryPostResponse), + "value": n => { queryPostResponse.value = n.getCollectionOfObjectValues(createSearchResponseFromDiscriminatorValue); }, + } +} +export interface QueryPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The requests property + */ + requests?: SearchRequest[]; +} +export interface QueryPostResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: SearchResponse[]; +} +export function serializeQueryPostRequestBody(writer: SerializationWriter, queryPostRequestBody: QueryPostRequestBody | undefined = {} as QueryPostRequestBody) : void { + writer.writeCollectionOfObjectValues("requests", queryPostRequestBody.requests, serializeSearchRequest); + writer.writeAdditionalData(queryPostRequestBody.additionalData); +} +export function serializeQueryPostResponse(writer: SerializationWriter, queryPostResponse: QueryPostResponse | undefined = {} as QueryPostResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, queryPostResponse) + writer.writeCollectionOfObjectValues("value", queryPostResponse.value, serializeSearchResponse); +} /** * Provides operations to call the query method. */ diff --git a/src/search/query/queryPostRequestBody.ts b/src/search/query/queryPostRequestBody.ts deleted file mode 100644 index 6341667b254..00000000000 --- a/src/search/query/queryPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSearchRequestFromDiscriminatorValue, serializeSearchRequest, type SearchRequest } from '../../models/searchRequest'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createQueryPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoQueryPostRequestBody; -} -export function deserializeIntoQueryPostRequestBody(queryPostRequestBody: QueryPostRequestBody | undefined = {} as QueryPostRequestBody) : Record void> { - return { - "requests": n => { queryPostRequestBody.requests = n.getCollectionOfObjectValues(createSearchRequestFromDiscriminatorValue); }, - } -} -export interface QueryPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The requests property - */ - requests?: SearchRequest[]; -} -export function serializeQueryPostRequestBody(writer: SerializationWriter, queryPostRequestBody: QueryPostRequestBody | undefined = {} as QueryPostRequestBody) : void { - writer.writeCollectionOfObjectValues("requests", queryPostRequestBody.requests, serializeSearchRequest); - writer.writeAdditionalData(queryPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/search/query/queryPostResponse.ts b/src/search/query/queryPostResponse.ts deleted file mode 100644 index fecd0f0f363..00000000000 --- a/src/search/query/queryPostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createSearchResponseFromDiscriminatorValue, serializeSearchResponse, type SearchResponse } from '../../models/searchResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createQueryPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoQueryPostResponse; -} -export function deserializeIntoQueryPostResponse(queryPostResponse: QueryPostResponse | undefined = {} as QueryPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(queryPostResponse), - "value": n => { queryPostResponse.value = n.getCollectionOfObjectValues(createSearchResponseFromDiscriminatorValue); }, - } -} -export interface QueryPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: SearchResponse[]; -} -export function serializeQueryPostResponse(writer: SerializationWriter, queryPostResponse: QueryPostResponse | undefined = {} as QueryPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, queryPostResponse) - writer.writeCollectionOfObjectValues("value", queryPostResponse.value, serializeSearchResponse); -} -// tslint:enable -// eslint-enable diff --git a/src/security/alerts/count/index.ts b/src/security/alerts/count/index.ts index 7617de93644..0da6f8a8f36 100644 --- a/src/security/alerts/count/index.ts +++ b/src/security/alerts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/alerts/index.ts b/src/security/alerts/index.ts index 207b05c3a18..2f9601105ca 100644 --- a/src/security/alerts/index.ts +++ b/src/security/alerts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AlertCollectionResponse } from '../../models/'; +import { type AlertCollectionResponse } from '../../models'; import { createAlertFromDiscriminatorValue, deserializeIntoAlert, serializeAlert, type Alert } from '../../models/alert'; import { createAlertCollectionResponseFromDiscriminatorValue } from '../../models/alertCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AlertItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AlertItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AlertsRequestBuilderGetQueryParameters { diff --git a/src/security/alerts/item/index.ts b/src/security/alerts/item/index.ts index 5e1a51c5009..7725b8801e2 100644 --- a/src/security/alerts/item/index.ts +++ b/src/security/alerts/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAlertFromDiscriminatorValue, deserializeIntoAlert, serializeAlert, type Alert } from '../../../models/alert'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/alerts_v2/count/index.ts b/src/security/alerts_v2/count/index.ts index bfd25276792..aa88a7fe38d 100644 --- a/src/security/alerts_v2/count/index.ts +++ b/src/security/alerts_v2/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/alerts_v2/index.ts b/src/security/alerts_v2/index.ts index 1102d90b2c8..c7290959348 100644 --- a/src/security/alerts_v2/index.ts +++ b/src/security/alerts_v2/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { type AlertCollectionResponse } from '../../models/security/'; +import { type AlertCollectionResponse } from '../../models/security'; import { createAlertFromDiscriminatorValue, deserializeIntoAlert, serializeAlert, type Alert } from '../../models/security/alert'; import { createAlertCollectionResponseFromDiscriminatorValue } from '../../models/security/alertCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { AlertItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AlertItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface Alerts_v2RequestBuilderGetQueryParameters { diff --git a/src/security/alerts_v2/item/comments/count/index.ts b/src/security/alerts_v2/item/comments/count/index.ts index d88f7301aff..9d6e3123c0e 100644 --- a/src/security/alerts_v2/item/comments/count/index.ts +++ b/src/security/alerts_v2/item/comments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/alerts_v2/item/comments/index.ts b/src/security/alerts_v2/item/comments/index.ts index 6e397815d01..34bdf188dde 100644 --- a/src/security/alerts_v2/item/comments/index.ts +++ b/src/security/alerts_v2/item/comments/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createAlertCommentFromDiscriminatorValue, deserializeIntoAlertComment, serializeAlertComment, type AlertComment } from '../../../../models/security/alertComment'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; /** diff --git a/src/security/alerts_v2/item/index.ts b/src/security/alerts_v2/item/index.ts index 270d6a8ea01..5882a5d005e 100644 --- a/src/security/alerts_v2/item/index.ts +++ b/src/security/alerts_v2/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createAlertFromDiscriminatorValue, deserializeIntoAlert, serializeAlert, type Alert } from '../../../models/security/alert'; -import { CommentsRequestBuilder } from './comments/'; +import { CommentsRequestBuilder } from './comments'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AlertItemRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/endUserNotifications/count/index.ts b/src/security/attackSimulation/endUserNotifications/count/index.ts index 5858f7c48be..f71419520e4 100644 --- a/src/security/attackSimulation/endUserNotifications/count/index.ts +++ b/src/security/attackSimulation/endUserNotifications/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/endUserNotifications/index.ts b/src/security/attackSimulation/endUserNotifications/index.ts index b5b0481a9f8..11093ccd8ac 100644 --- a/src/security/attackSimulation/endUserNotifications/index.ts +++ b/src/security/attackSimulation/endUserNotifications/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndUserNotificationCollectionResponse } from '../../../models/'; +import { type EndUserNotificationCollectionResponse } from '../../../models'; import { createEndUserNotificationFromDiscriminatorValue, deserializeIntoEndUserNotification, serializeEndUserNotification, type EndUserNotification } from '../../../models/endUserNotification'; import { createEndUserNotificationCollectionResponseFromDiscriminatorValue } from '../../../models/endUserNotificationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EndUserNotificationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EndUserNotificationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EndUserNotificationsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/endUserNotifications/item/details/count/index.ts b/src/security/attackSimulation/endUserNotifications/item/details/count/index.ts index ddc46c1272b..3c99364a83b 100644 --- a/src/security/attackSimulation/endUserNotifications/item/details/count/index.ts +++ b/src/security/attackSimulation/endUserNotifications/item/details/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/endUserNotifications/item/details/index.ts b/src/security/attackSimulation/endUserNotifications/item/details/index.ts index 3210acd1742..e3023f19739 100644 --- a/src/security/attackSimulation/endUserNotifications/item/details/index.ts +++ b/src/security/attackSimulation/endUserNotifications/item/details/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndUserNotificationDetailCollectionResponse } from '../../../../../models/'; +import { type EndUserNotificationDetailCollectionResponse } from '../../../../../models'; import { createEndUserNotificationDetailFromDiscriminatorValue, deserializeIntoEndUserNotificationDetail, serializeEndUserNotificationDetail, type EndUserNotificationDetail } from '../../../../../models/endUserNotificationDetail'; import { createEndUserNotificationDetailCollectionResponseFromDiscriminatorValue } from '../../../../../models/endUserNotificationDetailCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EndUserNotificationDetailItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EndUserNotificationDetailItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DetailsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/endUserNotifications/item/details/item/index.ts b/src/security/attackSimulation/endUserNotifications/item/details/item/index.ts index a83b6c542b8..0855ef5773c 100644 --- a/src/security/attackSimulation/endUserNotifications/item/details/item/index.ts +++ b/src/security/attackSimulation/endUserNotifications/item/details/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEndUserNotificationDetailFromDiscriminatorValue, deserializeIntoEndUserNotificationDetail, serializeEndUserNotificationDetail, type EndUserNotificationDetail } from '../../../../../../models/endUserNotificationDetail'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/endUserNotifications/item/index.ts b/src/security/attackSimulation/endUserNotifications/item/index.ts index 8bcbb91c3f1..52096d5255a 100644 --- a/src/security/attackSimulation/endUserNotifications/item/index.ts +++ b/src/security/attackSimulation/endUserNotifications/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createEndUserNotificationFromDiscriminatorValue, deserializeIntoEndUserNotification, serializeEndUserNotification, type EndUserNotification } from '../../../../models/endUserNotification'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { DetailsRequestBuilder } from './details/'; +import { DetailsRequestBuilder } from './details'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EndUserNotificationItemRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/index.ts b/src/security/attackSimulation/index.ts index de3be7cc563..5269bb4f632 100644 --- a/src/security/attackSimulation/index.ts +++ b/src/security/attackSimulation/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttackSimulationRootFromDiscriminatorValue, deserializeIntoAttackSimulationRoot, serializeAttackSimulationRoot, type AttackSimulationRoot } from '../../models/attackSimulationRoot'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { EndUserNotificationsRequestBuilder } from './endUserNotifications/'; -import { LandingPagesRequestBuilder } from './landingPages/'; -import { LoginPagesRequestBuilder } from './loginPages/'; -import { OperationsRequestBuilder } from './operations/'; -import { PayloadsRequestBuilder } from './payloads/'; -import { SimulationAutomationsRequestBuilder } from './simulationAutomations/'; -import { SimulationsRequestBuilder } from './simulations/'; -import { TrainingsRequestBuilder } from './trainings/'; +import { EndUserNotificationsRequestBuilder } from './endUserNotifications'; +import { LandingPagesRequestBuilder } from './landingPages'; +import { LoginPagesRequestBuilder } from './loginPages'; +import { OperationsRequestBuilder } from './operations'; +import { PayloadsRequestBuilder } from './payloads'; +import { SimulationAutomationsRequestBuilder } from './simulationAutomations'; +import { SimulationsRequestBuilder } from './simulations'; +import { TrainingsRequestBuilder } from './trainings'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttackSimulationRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/landingPages/count/index.ts b/src/security/attackSimulation/landingPages/count/index.ts index 9103bdb3959..9dca6f9593c 100644 --- a/src/security/attackSimulation/landingPages/count/index.ts +++ b/src/security/attackSimulation/landingPages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/landingPages/index.ts b/src/security/attackSimulation/landingPages/index.ts index 0649cb3e3a0..1317dd46245 100644 --- a/src/security/attackSimulation/landingPages/index.ts +++ b/src/security/attackSimulation/landingPages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LandingPageCollectionResponse } from '../../../models/'; +import { type LandingPageCollectionResponse } from '../../../models'; import { createLandingPageFromDiscriminatorValue, deserializeIntoLandingPage, serializeLandingPage, type LandingPage } from '../../../models/landingPage'; import { createLandingPageCollectionResponseFromDiscriminatorValue } from '../../../models/landingPageCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LandingPageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LandingPageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LandingPagesRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/landingPages/item/details/count/index.ts b/src/security/attackSimulation/landingPages/item/details/count/index.ts index 7871a827c2f..a37122a3c7e 100644 --- a/src/security/attackSimulation/landingPages/item/details/count/index.ts +++ b/src/security/attackSimulation/landingPages/item/details/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/landingPages/item/details/index.ts b/src/security/attackSimulation/landingPages/item/details/index.ts index 861f739b107..2df4973b6eb 100644 --- a/src/security/attackSimulation/landingPages/item/details/index.ts +++ b/src/security/attackSimulation/landingPages/item/details/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LandingPageDetailCollectionResponse } from '../../../../../models/'; +import { type LandingPageDetailCollectionResponse } from '../../../../../models'; import { createLandingPageDetailFromDiscriminatorValue, deserializeIntoLandingPageDetail, serializeLandingPageDetail, type LandingPageDetail } from '../../../../../models/landingPageDetail'; import { createLandingPageDetailCollectionResponseFromDiscriminatorValue } from '../../../../../models/landingPageDetailCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LandingPageDetailItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LandingPageDetailItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DetailsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/landingPages/item/details/item/index.ts b/src/security/attackSimulation/landingPages/item/details/item/index.ts index f1addcc7a02..32d4b46bcae 100644 --- a/src/security/attackSimulation/landingPages/item/details/item/index.ts +++ b/src/security/attackSimulation/landingPages/item/details/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLandingPageDetailFromDiscriminatorValue, deserializeIntoLandingPageDetail, serializeLandingPageDetail, type LandingPageDetail } from '../../../../../../models/landingPageDetail'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/landingPages/item/index.ts b/src/security/attackSimulation/landingPages/item/index.ts index 9d58f15a68a..c3d6f466dfc 100644 --- a/src/security/attackSimulation/landingPages/item/index.ts +++ b/src/security/attackSimulation/landingPages/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createLandingPageFromDiscriminatorValue, deserializeIntoLandingPage, serializeLandingPage, type LandingPage } from '../../../../models/landingPage'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { DetailsRequestBuilder } from './details/'; +import { DetailsRequestBuilder } from './details'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LandingPageItemRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/loginPages/count/index.ts b/src/security/attackSimulation/loginPages/count/index.ts index bd9f982b55d..3823a797382 100644 --- a/src/security/attackSimulation/loginPages/count/index.ts +++ b/src/security/attackSimulation/loginPages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/loginPages/index.ts b/src/security/attackSimulation/loginPages/index.ts index 4393b3f6b5c..5046a8dc583 100644 --- a/src/security/attackSimulation/loginPages/index.ts +++ b/src/security/attackSimulation/loginPages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LoginPageCollectionResponse } from '../../../models/'; +import { type LoginPageCollectionResponse } from '../../../models'; import { createLoginPageFromDiscriminatorValue, deserializeIntoLoginPage, serializeLoginPage, type LoginPage } from '../../../models/loginPage'; import { createLoginPageCollectionResponseFromDiscriminatorValue } from '../../../models/loginPageCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LoginPageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LoginPageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LoginPagesRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/loginPages/item/index.ts b/src/security/attackSimulation/loginPages/item/index.ts index 7553a4dccc4..bfaed6367cc 100644 --- a/src/security/attackSimulation/loginPages/item/index.ts +++ b/src/security/attackSimulation/loginPages/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLoginPageFromDiscriminatorValue, deserializeIntoLoginPage, serializeLoginPage, type LoginPage } from '../../../../models/loginPage'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/operations/count/index.ts b/src/security/attackSimulation/operations/count/index.ts index fbdbf31b432..c6708fd2144 100644 --- a/src/security/attackSimulation/operations/count/index.ts +++ b/src/security/attackSimulation/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/operations/index.ts b/src/security/attackSimulation/operations/index.ts index b61396e66f0..82dc94aeeec 100644 --- a/src/security/attackSimulation/operations/index.ts +++ b/src/security/attackSimulation/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttackSimulationOperationCollectionResponse } from '../../../models/'; +import { type AttackSimulationOperationCollectionResponse } from '../../../models'; import { createAttackSimulationOperationFromDiscriminatorValue, deserializeIntoAttackSimulationOperation, serializeAttackSimulationOperation, type AttackSimulationOperation } from '../../../models/attackSimulationOperation'; import { createAttackSimulationOperationCollectionResponseFromDiscriminatorValue } from '../../../models/attackSimulationOperationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AttackSimulationOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AttackSimulationOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/operations/item/index.ts b/src/security/attackSimulation/operations/item/index.ts index 2079701b1fd..2c0a56cf414 100644 --- a/src/security/attackSimulation/operations/item/index.ts +++ b/src/security/attackSimulation/operations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttackSimulationOperationFromDiscriminatorValue, deserializeIntoAttackSimulationOperation, serializeAttackSimulationOperation, type AttackSimulationOperation } from '../../../../models/attackSimulationOperation'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/payloads/count/index.ts b/src/security/attackSimulation/payloads/count/index.ts index 24ebd3f1bbd..4c0ea715653 100644 --- a/src/security/attackSimulation/payloads/count/index.ts +++ b/src/security/attackSimulation/payloads/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/payloads/index.ts b/src/security/attackSimulation/payloads/index.ts index b59623bbe5a..6a903cadce9 100644 --- a/src/security/attackSimulation/payloads/index.ts +++ b/src/security/attackSimulation/payloads/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PayloadCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type PayloadCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPayloadFromDiscriminatorValue, deserializeIntoPayload, serializePayload, type Payload } from '../../../models/payload'; import { createPayloadCollectionResponseFromDiscriminatorValue } from '../../../models/payloadCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PayloadItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PayloadItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PayloadsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/payloads/item/index.ts b/src/security/attackSimulation/payloads/item/index.ts index 724da3c9ffd..722cd2864c3 100644 --- a/src/security/attackSimulation/payloads/item/index.ts +++ b/src/security/attackSimulation/payloads/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPayloadFromDiscriminatorValue, deserializeIntoPayload, serializePayload, type Payload } from '../../../../models/payload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/simulationAutomations/count/index.ts b/src/security/attackSimulation/simulationAutomations/count/index.ts index 89cdd05e008..80ab00cc28a 100644 --- a/src/security/attackSimulation/simulationAutomations/count/index.ts +++ b/src/security/attackSimulation/simulationAutomations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/simulationAutomations/index.ts b/src/security/attackSimulation/simulationAutomations/index.ts index d90cd67edf2..c64ebfad9ce 100644 --- a/src/security/attackSimulation/simulationAutomations/index.ts +++ b/src/security/attackSimulation/simulationAutomations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SimulationAutomationCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type SimulationAutomationCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSimulationAutomationFromDiscriminatorValue, deserializeIntoSimulationAutomation, serializeSimulationAutomation, type SimulationAutomation } from '../../../models/simulationAutomation'; import { createSimulationAutomationCollectionResponseFromDiscriminatorValue } from '../../../models/simulationAutomationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SimulationAutomationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SimulationAutomationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SimulationAutomationsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/simulationAutomations/item/index.ts b/src/security/attackSimulation/simulationAutomations/item/index.ts index f23b9f01524..df472dc2025 100644 --- a/src/security/attackSimulation/simulationAutomations/item/index.ts +++ b/src/security/attackSimulation/simulationAutomations/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSimulationAutomationFromDiscriminatorValue, deserializeIntoSimulationAutomation, serializeSimulationAutomation, type SimulationAutomation } from '../../../../models/simulationAutomation'; -import { RunsRequestBuilder } from './runs/'; +import { RunsRequestBuilder } from './runs'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SimulationAutomationItemRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/simulationAutomations/item/runs/count/index.ts b/src/security/attackSimulation/simulationAutomations/item/runs/count/index.ts index 13d3044f373..73b5f457508 100644 --- a/src/security/attackSimulation/simulationAutomations/item/runs/count/index.ts +++ b/src/security/attackSimulation/simulationAutomations/item/runs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/simulationAutomations/item/runs/index.ts b/src/security/attackSimulation/simulationAutomations/item/runs/index.ts index ce456575435..e51020257bd 100644 --- a/src/security/attackSimulation/simulationAutomations/item/runs/index.ts +++ b/src/security/attackSimulation/simulationAutomations/item/runs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SimulationAutomationRunCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SimulationAutomationRunCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSimulationAutomationRunFromDiscriminatorValue, deserializeIntoSimulationAutomationRun, serializeSimulationAutomationRun, type SimulationAutomationRun } from '../../../../../models/simulationAutomationRun'; import { createSimulationAutomationRunCollectionResponseFromDiscriminatorValue } from '../../../../../models/simulationAutomationRunCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SimulationAutomationRunItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SimulationAutomationRunItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RunsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/simulationAutomations/item/runs/item/index.ts b/src/security/attackSimulation/simulationAutomations/item/runs/item/index.ts index a7655282a09..cc316167079 100644 --- a/src/security/attackSimulation/simulationAutomations/item/runs/item/index.ts +++ b/src/security/attackSimulation/simulationAutomations/item/runs/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSimulationAutomationRunFromDiscriminatorValue, deserializeIntoSimulationAutomationRun, serializeSimulationAutomationRun, type SimulationAutomationRun } from '../../../../../../models/simulationAutomationRun'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/simulations/count/index.ts b/src/security/attackSimulation/simulations/count/index.ts index 9adc019f23f..9f284a546f0 100644 --- a/src/security/attackSimulation/simulations/count/index.ts +++ b/src/security/attackSimulation/simulations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/simulations/index.ts b/src/security/attackSimulation/simulations/index.ts index 2ea6cf05d2d..b895ef2b19e 100644 --- a/src/security/attackSimulation/simulations/index.ts +++ b/src/security/attackSimulation/simulations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SimulationCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type SimulationCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSimulationFromDiscriminatorValue, deserializeIntoSimulation, serializeSimulation, type Simulation } from '../../../models/simulation'; import { createSimulationCollectionResponseFromDiscriminatorValue } from '../../../models/simulationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SimulationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SimulationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SimulationsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/simulations/item/index.ts b/src/security/attackSimulation/simulations/item/index.ts index bf88a22452d..2e7892e6ffd 100644 --- a/src/security/attackSimulation/simulations/item/index.ts +++ b/src/security/attackSimulation/simulations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSimulationFromDiscriminatorValue, deserializeIntoSimulation, serializeSimulation, type Simulation } from '../../../../models/simulation'; -import { LandingPageRequestBuilder } from './landingPage/'; -import { LoginPageRequestBuilder } from './loginPage/'; -import { PayloadRequestBuilder } from './payload/'; +import { LandingPageRequestBuilder } from './landingPage'; +import { LoginPageRequestBuilder } from './loginPage'; +import { PayloadRequestBuilder } from './payload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SimulationItemRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/simulations/item/landingPage/index.ts b/src/security/attackSimulation/simulations/item/landingPage/index.ts index 194816b7e81..14fcd635256 100644 --- a/src/security/attackSimulation/simulations/item/landingPage/index.ts +++ b/src/security/attackSimulation/simulations/item/landingPage/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LandingPage } from '../../../../../models/'; +import { type LandingPage } from '../../../../../models'; import { createLandingPageFromDiscriminatorValue } from '../../../../../models/landingPage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/simulations/item/loginPage/index.ts b/src/security/attackSimulation/simulations/item/loginPage/index.ts index bb20f100e30..692396889b4 100644 --- a/src/security/attackSimulation/simulations/item/loginPage/index.ts +++ b/src/security/attackSimulation/simulations/item/loginPage/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LoginPage } from '../../../../../models/'; +import { type LoginPage } from '../../../../../models'; import { createLoginPageFromDiscriminatorValue } from '../../../../../models/loginPage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/simulations/item/payload/index.ts b/src/security/attackSimulation/simulations/item/payload/index.ts index bc7bd829be8..fb683bc0552 100644 --- a/src/security/attackSimulation/simulations/item/payload/index.ts +++ b/src/security/attackSimulation/simulations/item/payload/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Payload } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type Payload } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPayloadFromDiscriminatorValue } from '../../../../../models/payload'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/trainings/count/index.ts b/src/security/attackSimulation/trainings/count/index.ts index ab819123286..5f3f3425703 100644 --- a/src/security/attackSimulation/trainings/count/index.ts +++ b/src/security/attackSimulation/trainings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/trainings/index.ts b/src/security/attackSimulation/trainings/index.ts index d5f71ad4f3c..8894e8c6d6a 100644 --- a/src/security/attackSimulation/trainings/index.ts +++ b/src/security/attackSimulation/trainings/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TrainingCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TrainingCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTrainingFromDiscriminatorValue, deserializeIntoTraining, serializeTraining, type Training } from '../../../models/training'; import { createTrainingCollectionResponseFromDiscriminatorValue } from '../../../models/trainingCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TrainingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TrainingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TrainingsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/trainings/item/index.ts b/src/security/attackSimulation/trainings/item/index.ts index ea2354f15b9..a363d2c57fd 100644 --- a/src/security/attackSimulation/trainings/item/index.ts +++ b/src/security/attackSimulation/trainings/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTrainingFromDiscriminatorValue, deserializeIntoTraining, serializeTraining, type Training } from '../../../../models/training'; -import { LanguageDetailsRequestBuilder } from './languageDetails/'; +import { LanguageDetailsRequestBuilder } from './languageDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TrainingItemRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/trainings/item/languageDetails/count/index.ts b/src/security/attackSimulation/trainings/item/languageDetails/count/index.ts index cf8b5155d28..41f697e76dd 100644 --- a/src/security/attackSimulation/trainings/item/languageDetails/count/index.ts +++ b/src/security/attackSimulation/trainings/item/languageDetails/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/attackSimulation/trainings/item/languageDetails/index.ts b/src/security/attackSimulation/trainings/item/languageDetails/index.ts index dcea9cca75e..2d283a83ba3 100644 --- a/src/security/attackSimulation/trainings/item/languageDetails/index.ts +++ b/src/security/attackSimulation/trainings/item/languageDetails/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TrainingLanguageDetailCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TrainingLanguageDetailCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTrainingLanguageDetailFromDiscriminatorValue, deserializeIntoTrainingLanguageDetail, serializeTrainingLanguageDetail, type TrainingLanguageDetail } from '../../../../../models/trainingLanguageDetail'; import { createTrainingLanguageDetailCollectionResponseFromDiscriminatorValue } from '../../../../../models/trainingLanguageDetailCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TrainingLanguageDetailItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TrainingLanguageDetailItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LanguageDetailsRequestBuilderGetQueryParameters { diff --git a/src/security/attackSimulation/trainings/item/languageDetails/item/index.ts b/src/security/attackSimulation/trainings/item/languageDetails/item/index.ts index 5c3c28d14cd..9b0f0b87047 100644 --- a/src/security/attackSimulation/trainings/item/languageDetails/item/index.ts +++ b/src/security/attackSimulation/trainings/item/languageDetails/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTrainingLanguageDetailFromDiscriminatorValue, deserializeIntoTrainingLanguageDetail, serializeTrainingLanguageDetail, type TrainingLanguageDetail } from '../../../../../../models/trainingLanguageDetail'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/count/index.ts b/src/security/cases/ediscoveryCases/count/index.ts index 4e439f8b493..2a0bef88bde 100644 --- a/src/security/cases/ediscoveryCases/count/index.ts +++ b/src/security/cases/ediscoveryCases/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/index.ts b/src/security/cases/ediscoveryCases/index.ts index ffba395ee07..2578c45f8dc 100644 --- a/src/security/cases/ediscoveryCases/index.ts +++ b/src/security/cases/ediscoveryCases/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type EdiscoveryCaseCollectionResponse } from '../../../models/security/'; +import { type EdiscoveryCaseCollectionResponse } from '../../../models/security'; import { createEdiscoveryCaseFromDiscriminatorValue, deserializeIntoEdiscoveryCase, serializeEdiscoveryCase, type EdiscoveryCase } from '../../../models/security/ediscoveryCase'; import { createEdiscoveryCaseCollectionResponseFromDiscriminatorValue } from '../../../models/security/ediscoveryCaseCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoveryCaseItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EdiscoveryCaseItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdiscoveryCasesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/count/index.ts b/src/security/cases/ediscoveryCases/item/custodians/count/index.ts index 9b4fe328734..ffb935f1ca0 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/index.ts b/src/security/cases/ediscoveryCases/item/custodians/index.ts index a6c5becfc0d..eb7c8b9449d 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryCustodianCollectionResponse } from '../../../../../models/security/'; +import { type EdiscoveryCustodianCollectionResponse } from '../../../../../models/security'; import { createEdiscoveryCustodianFromDiscriminatorValue, deserializeIntoEdiscoveryCustodian, serializeEdiscoveryCustodian, type EdiscoveryCustodian } from '../../../../../models/security/ediscoveryCustodian'; import { createEdiscoveryCustodianCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/ediscoveryCustodianCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoveryCustodianItemRequestBuilder } from './item/'; -import { MicrosoftGraphSecurityApplyHoldRequestBuilder } from './microsoftGraphSecurityApplyHold/'; -import { MicrosoftGraphSecurityRemoveHoldRequestBuilder } from './microsoftGraphSecurityRemoveHold/'; +import { CountRequestBuilder } from './count'; +import { EdiscoveryCustodianItemRequestBuilder } from './item'; +import { MicrosoftGraphSecurityApplyHoldRequestBuilder } from './microsoftGraphSecurityApplyHold'; +import { MicrosoftGraphSecurityRemoveHoldRequestBuilder } from './microsoftGraphSecurityRemoveHold'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustodiansRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/index.ts index 01ca16d8ec3..f563e9c172c 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/index.ts @@ -1,18 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createEdiscoveryCustodianFromDiscriminatorValue, deserializeIntoEdiscoveryCustodian, serializeEdiscoveryCustodian, type EdiscoveryCustodian } from '../../../../../../models/security/ediscoveryCustodian'; -import { LastIndexOperationRequestBuilder } from './lastIndexOperation/'; -import { MicrosoftGraphSecurityActivateRequestBuilder } from './microsoftGraphSecurityActivate/'; -import { MicrosoftGraphSecurityApplyHoldRequestBuilder } from './microsoftGraphSecurityApplyHold/'; -import { MicrosoftGraphSecurityReleaseRequestBuilder } from './microsoftGraphSecurityRelease/'; -import { MicrosoftGraphSecurityRemoveHoldRequestBuilder } from './microsoftGraphSecurityRemoveHold/'; -import { MicrosoftGraphSecurityUpdateIndexRequestBuilder } from './microsoftGraphSecurityUpdateIndex/'; -import { SiteSourcesRequestBuilder } from './siteSources/'; -import { UnifiedGroupSourcesRequestBuilder } from './unifiedGroupSources/'; -import { UserSourcesRequestBuilder } from './userSources/'; +import { LastIndexOperationRequestBuilder } from './lastIndexOperation'; +import { MicrosoftGraphSecurityActivateRequestBuilder } from './microsoftGraphSecurityActivate'; +import { MicrosoftGraphSecurityApplyHoldRequestBuilder } from './microsoftGraphSecurityApplyHold'; +import { MicrosoftGraphSecurityReleaseRequestBuilder } from './microsoftGraphSecurityRelease'; +import { MicrosoftGraphSecurityRemoveHoldRequestBuilder } from './microsoftGraphSecurityRemoveHold'; +import { MicrosoftGraphSecurityUpdateIndexRequestBuilder } from './microsoftGraphSecurityUpdateIndex'; +import { SiteSourcesRequestBuilder } from './siteSources'; +import { UnifiedGroupSourcesRequestBuilder } from './unifiedGroupSources'; +import { UserSourcesRequestBuilder } from './userSources'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdiscoveryCustodianItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/lastIndexOperation/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/lastIndexOperation/index.ts index 48f309567d6..66b7f1312ce 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/lastIndexOperation/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/lastIndexOperation/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryIndexOperation } from '../../../../../../../models/security/'; +import { type EdiscoveryIndexOperation } from '../../../../../../../models/security'; import { createEdiscoveryIndexOperationFromDiscriminatorValue } from '../../../../../../../models/security/ediscoveryIndexOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityActivate/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityActivate/index.ts index 50e76c06479..8fbc08ff1c5 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityActivate/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityActivate/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityApplyHold/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityApplyHold/index.ts index 61ca97a753a..d7f620c70cf 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityApplyHold/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityApplyHold/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityRelease/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityRelease/index.ts index affe1c280f6..929098911ef 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityRelease/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityRelease/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityRemoveHold/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityRemoveHold/index.ts index 9b14a8cd0de..5ca1a28a64f 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityRemoveHold/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityRemoveHold/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityUpdateIndex/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityUpdateIndex/index.ts index 43399e048b6..c4df169e3d8 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityUpdateIndex/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/microsoftGraphSecurityUpdateIndex/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/count/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/count/index.ts index 5bfeec91742..332490b4d85 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/index.ts index 9c93f272842..2b2a25b84cf 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type SiteSourceCollectionResponse } from '../../../../../../../models/security/'; +import { type SiteSourceCollectionResponse } from '../../../../../../../models/security'; import { createSiteSourceFromDiscriminatorValue, deserializeIntoSiteSource, serializeSiteSource, type SiteSource } from '../../../../../../../models/security/siteSource'; import { createSiteSourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/security/siteSourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SiteSourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SiteSourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SiteSourcesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/item/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/item/index.ts index 25980c26838..d39238274a8 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSiteSourceFromDiscriminatorValue, deserializeIntoSiteSource, serializeSiteSource, type SiteSource } from '../../../../../../../../models/security/siteSource'; -import { SiteRequestBuilder } from './site/'; +import { SiteRequestBuilder } from './site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SiteSourceItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/item/site/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/item/site/index.ts index c1eedbc793c..356c4397c6c 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/item/site/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/siteSources/item/site/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Site } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type Site } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue } from '../../../../../../../../../models/site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/count/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/count/index.ts index c978558111b..8ba79903d59 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/index.ts index 3338f2c328a..66b83cbbfc7 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type UnifiedGroupSourceCollectionResponse } from '../../../../../../../models/security/'; +import { type UnifiedGroupSourceCollectionResponse } from '../../../../../../../models/security'; import { createUnifiedGroupSourceFromDiscriminatorValue, deserializeIntoUnifiedGroupSource, serializeUnifiedGroupSource, type UnifiedGroupSource } from '../../../../../../../models/security/unifiedGroupSource'; import { createUnifiedGroupSourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/security/unifiedGroupSourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UnifiedGroupSourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UnifiedGroupSourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedGroupSourcesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/index.ts index 393ce6dc83d..67191900f97 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../../../../../models/'; +import { type Group } from '../../../../../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../../../../../models/group'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/serviceProvisioningErrors/count/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/serviceProvisioningErrors/count/index.ts index 5d9eea5115b..e1f4e356ef7 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/serviceProvisioningErrors/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/serviceProvisioningErrors/index.ts index 3a7cde8c75f..2589c5f28ca 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/serviceProvisioningErrors/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/index.ts index 676922da514..094de1943a5 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/unifiedGroupSources/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createUnifiedGroupSourceFromDiscriminatorValue, deserializeIntoUnifiedGroupSource, serializeUnifiedGroupSource, type UnifiedGroupSource } from '../../../../../../../../models/security/unifiedGroupSource'; -import { GroupRequestBuilder } from './group/'; +import { GroupRequestBuilder } from './group'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UnifiedGroupSourceItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/userSources/count/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/userSources/count/index.ts index 73493513ee1..b4737a42956 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/userSources/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/userSources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/userSources/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/userSources/index.ts index e0f05cb8a52..fc1c16b4bb0 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/userSources/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/userSources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type UserSourceCollectionResponse } from '../../../../../../../models/security/'; +import { type UserSourceCollectionResponse } from '../../../../../../../models/security'; import { createUserSourceFromDiscriminatorValue, deserializeIntoUserSource, serializeUserSource, type UserSource } from '../../../../../../../models/security/userSource'; import { createUserSourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/security/userSourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserSourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserSourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserSourcesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/custodians/item/userSources/item/index.ts b/src/security/cases/ediscoveryCases/item/custodians/item/userSources/item/index.ts index 0b0a52873e6..8f566940326 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/item/userSources/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/item/userSources/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createUserSourceFromDiscriminatorValue, deserializeIntoUserSource, serializeUserSource, type UserSource } from '../../../../../../../../models/security/userSource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/applyHoldPostRequestBody.ts b/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/applyHoldPostRequestBody.ts deleted file mode 100644 index ed88e3fac69..00000000000 --- a/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/applyHoldPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyHoldPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} -export function createApplyHoldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyHoldPostRequestBody; -} -export function deserializeIntoApplyHoldPostRequestBody(applyHoldPostRequestBody: ApplyHoldPostRequestBody | undefined = {} as ApplyHoldPostRequestBody) : Record void> { - return { - "ids": n => { applyHoldPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeApplyHoldPostRequestBody(writer: SerializationWriter, applyHoldPostRequestBody: ApplyHoldPostRequestBody | undefined = {} as ApplyHoldPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", applyHoldPostRequestBody.ids); - writer.writeAdditionalData(applyHoldPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/index.ts b/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/index.ts index fa59ccdf946..acef32cd195 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityApplyHold/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyHoldPostRequestBody, serializeApplyHoldPostRequestBody, type ApplyHoldPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyHoldPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The ids property + */ + ids?: string[]; +} +export function createApplyHoldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyHoldPostRequestBody; +} +export function deserializeIntoApplyHoldPostRequestBody(applyHoldPostRequestBody: ApplyHoldPostRequestBody | undefined = {} as ApplyHoldPostRequestBody) : Record void> { + return { + "ids": n => { applyHoldPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, + } +} +export function serializeApplyHoldPostRequestBody(writer: SerializationWriter, applyHoldPostRequestBody: ApplyHoldPostRequestBody | undefined = {} as ApplyHoldPostRequestBody) : void { + writer.writeCollectionOfPrimitiveValues("ids", applyHoldPostRequestBody.ids); + writer.writeAdditionalData(applyHoldPostRequestBody.additionalData); +} /** * Provides operations to call the applyHold method. */ diff --git a/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/index.ts b/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/index.ts index 2d6f5595778..1fe6a1613e9 100644 --- a/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/index.ts +++ b/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoRemoveHoldPostRequestBody, serializeRemoveHoldPostRequestBody, type RemoveHoldPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRemoveHoldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemoveHoldPostRequestBody; +} +export function deserializeIntoRemoveHoldPostRequestBody(removeHoldPostRequestBody: RemoveHoldPostRequestBody | undefined = {} as RemoveHoldPostRequestBody) : Record void> { + return { + "ids": n => { removeHoldPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, + } +} +export interface RemoveHoldPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The ids property + */ + ids?: string[]; +} +export function serializeRemoveHoldPostRequestBody(writer: SerializationWriter, removeHoldPostRequestBody: RemoveHoldPostRequestBody | undefined = {} as RemoveHoldPostRequestBody) : void { + writer.writeCollectionOfPrimitiveValues("ids", removeHoldPostRequestBody.ids); + writer.writeAdditionalData(removeHoldPostRequestBody.additionalData); +} /** * Provides operations to call the removeHold method. */ diff --git a/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/removeHoldPostRequestBody.ts b/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/removeHoldPostRequestBody.ts deleted file mode 100644 index 0b23472eb4a..00000000000 --- a/src/security/cases/ediscoveryCases/item/custodians/microsoftGraphSecurityRemoveHold/removeHoldPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRemoveHoldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemoveHoldPostRequestBody; -} -export function deserializeIntoRemoveHoldPostRequestBody(removeHoldPostRequestBody: RemoveHoldPostRequestBody | undefined = {} as RemoveHoldPostRequestBody) : Record void> { - return { - "ids": n => { removeHoldPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface RemoveHoldPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} -export function serializeRemoveHoldPostRequestBody(writer: SerializationWriter, removeHoldPostRequestBody: RemoveHoldPostRequestBody | undefined = {} as RemoveHoldPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", removeHoldPostRequestBody.ids); - writer.writeAdditionalData(removeHoldPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/index.ts b/src/security/cases/ediscoveryCases/item/index.ts index c0b0c7378b8..be61041b714 100644 --- a/src/security/cases/ediscoveryCases/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/index.ts @@ -1,18 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createEdiscoveryCaseFromDiscriminatorValue, deserializeIntoEdiscoveryCase, serializeEdiscoveryCase, type EdiscoveryCase } from '../../../../models/security/ediscoveryCase'; -import { CustodiansRequestBuilder } from './custodians/'; -import { MicrosoftGraphSecurityCloseRequestBuilder } from './microsoftGraphSecurityClose/'; -import { MicrosoftGraphSecurityReopenRequestBuilder } from './microsoftGraphSecurityReopen/'; -import { NoncustodialDataSourcesRequestBuilder } from './noncustodialDataSources/'; -import { OperationsRequestBuilder } from './operations/'; -import { ReviewSetsRequestBuilder } from './reviewSets/'; -import { SearchesRequestBuilder } from './searches/'; -import { SettingsRequestBuilder } from './settings/'; -import { TagsRequestBuilder } from './tags/'; +import { CustodiansRequestBuilder } from './custodians'; +import { MicrosoftGraphSecurityCloseRequestBuilder } from './microsoftGraphSecurityClose'; +import { MicrosoftGraphSecurityReopenRequestBuilder } from './microsoftGraphSecurityReopen'; +import { NoncustodialDataSourcesRequestBuilder } from './noncustodialDataSources'; +import { OperationsRequestBuilder } from './operations'; +import { ReviewSetsRequestBuilder } from './reviewSets'; +import { SearchesRequestBuilder } from './searches'; +import { SettingsRequestBuilder } from './settings'; +import { TagsRequestBuilder } from './tags'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdiscoveryCaseItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/microsoftGraphSecurityClose/index.ts b/src/security/cases/ediscoveryCases/item/microsoftGraphSecurityClose/index.ts index 2f6ab76b7e6..4e00fcba7f4 100644 --- a/src/security/cases/ediscoveryCases/item/microsoftGraphSecurityClose/index.ts +++ b/src/security/cases/ediscoveryCases/item/microsoftGraphSecurityClose/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/microsoftGraphSecurityReopen/index.ts b/src/security/cases/ediscoveryCases/item/microsoftGraphSecurityReopen/index.ts index 6877d4c2384..31ed4228123 100644 --- a/src/security/cases/ediscoveryCases/item/microsoftGraphSecurityReopen/index.ts +++ b/src/security/cases/ediscoveryCases/item/microsoftGraphSecurityReopen/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/count/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/count/index.ts index 945f497f86c..92839e51685 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/index.ts index a1f86d58b21..50b2a93732a 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryNoncustodialDataSourceCollectionResponse } from '../../../../../models/security/'; +import { type EdiscoveryNoncustodialDataSourceCollectionResponse } from '../../../../../models/security'; import { createEdiscoveryNoncustodialDataSourceFromDiscriminatorValue, deserializeIntoEdiscoveryNoncustodialDataSource, serializeEdiscoveryNoncustodialDataSource, type EdiscoveryNoncustodialDataSource } from '../../../../../models/security/ediscoveryNoncustodialDataSource'; import { createEdiscoveryNoncustodialDataSourceCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/ediscoveryNoncustodialDataSourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoveryNoncustodialDataSourceItemRequestBuilder } from './item/'; -import { MicrosoftGraphSecurityApplyHoldRequestBuilder } from './microsoftGraphSecurityApplyHold/'; -import { MicrosoftGraphSecurityRemoveHoldRequestBuilder } from './microsoftGraphSecurityRemoveHold/'; +import { CountRequestBuilder } from './count'; +import { EdiscoveryNoncustodialDataSourceItemRequestBuilder } from './item'; +import { MicrosoftGraphSecurityApplyHoldRequestBuilder } from './microsoftGraphSecurityApplyHold'; +import { MicrosoftGraphSecurityRemoveHoldRequestBuilder } from './microsoftGraphSecurityRemoveHold'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NoncustodialDataSourcesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/dataSource/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/dataSource/index.ts index 0b1f5f5e5bb..880930fbf1e 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/dataSource/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/dataSource/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createDataSourceFromDiscriminatorValue, deserializeIntoDataSource, serializeDataSource, type DataSource } from '../../../../../../../models/security/dataSource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/index.ts index f0c5fdb0f19..2ebedebd598 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createEdiscoveryNoncustodialDataSourceFromDiscriminatorValue, deserializeIntoEdiscoveryNoncustodialDataSource, serializeEdiscoveryNoncustodialDataSource, type EdiscoveryNoncustodialDataSource } from '../../../../../../models/security/ediscoveryNoncustodialDataSource'; -import { DataSourceRequestBuilder } from './dataSource/'; -import { LastIndexOperationRequestBuilder } from './lastIndexOperation/'; -import { MicrosoftGraphSecurityApplyHoldRequestBuilder } from './microsoftGraphSecurityApplyHold/'; -import { MicrosoftGraphSecurityReleaseRequestBuilder } from './microsoftGraphSecurityRelease/'; -import { MicrosoftGraphSecurityRemoveHoldRequestBuilder } from './microsoftGraphSecurityRemoveHold/'; -import { MicrosoftGraphSecurityUpdateIndexRequestBuilder } from './microsoftGraphSecurityUpdateIndex/'; +import { DataSourceRequestBuilder } from './dataSource'; +import { LastIndexOperationRequestBuilder } from './lastIndexOperation'; +import { MicrosoftGraphSecurityApplyHoldRequestBuilder } from './microsoftGraphSecurityApplyHold'; +import { MicrosoftGraphSecurityReleaseRequestBuilder } from './microsoftGraphSecurityRelease'; +import { MicrosoftGraphSecurityRemoveHoldRequestBuilder } from './microsoftGraphSecurityRemoveHold'; +import { MicrosoftGraphSecurityUpdateIndexRequestBuilder } from './microsoftGraphSecurityUpdateIndex'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdiscoveryNoncustodialDataSourceItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/lastIndexOperation/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/lastIndexOperation/index.ts index 6f06818b030..d61d11b0f05 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/lastIndexOperation/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/lastIndexOperation/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryIndexOperation } from '../../../../../../../models/security/'; +import { type EdiscoveryIndexOperation } from '../../../../../../../models/security'; import { createEdiscoveryIndexOperationFromDiscriminatorValue } from '../../../../../../../models/security/ediscoveryIndexOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityApplyHold/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityApplyHold/index.ts index ad2f16104b8..9e215e21c8a 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityApplyHold/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityApplyHold/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityRelease/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityRelease/index.ts index 83f6191198f..4303ae1a766 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityRelease/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityRelease/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityRemoveHold/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityRemoveHold/index.ts index 5e1ade688f3..941255a85e5 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityRemoveHold/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityRemoveHold/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityUpdateIndex/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityUpdateIndex/index.ts index 5bd0195db82..492bd1d2462 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityUpdateIndex/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/item/microsoftGraphSecurityUpdateIndex/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/applyHoldPostRequestBody.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/applyHoldPostRequestBody.ts deleted file mode 100644 index ed88e3fac69..00000000000 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/applyHoldPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ApplyHoldPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} -export function createApplyHoldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoApplyHoldPostRequestBody; -} -export function deserializeIntoApplyHoldPostRequestBody(applyHoldPostRequestBody: ApplyHoldPostRequestBody | undefined = {} as ApplyHoldPostRequestBody) : Record void> { - return { - "ids": n => { applyHoldPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeApplyHoldPostRequestBody(writer: SerializationWriter, applyHoldPostRequestBody: ApplyHoldPostRequestBody | undefined = {} as ApplyHoldPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", applyHoldPostRequestBody.ids); - writer.writeAdditionalData(applyHoldPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/index.ts index d41530512df..c9911ee29ef 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityApplyHold/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoApplyHoldPostRequestBody, serializeApplyHoldPostRequestBody, type ApplyHoldPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ApplyHoldPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The ids property + */ + ids?: string[]; +} +export function createApplyHoldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoApplyHoldPostRequestBody; +} +export function deserializeIntoApplyHoldPostRequestBody(applyHoldPostRequestBody: ApplyHoldPostRequestBody | undefined = {} as ApplyHoldPostRequestBody) : Record void> { + return { + "ids": n => { applyHoldPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, + } +} +export function serializeApplyHoldPostRequestBody(writer: SerializationWriter, applyHoldPostRequestBody: ApplyHoldPostRequestBody | undefined = {} as ApplyHoldPostRequestBody) : void { + writer.writeCollectionOfPrimitiveValues("ids", applyHoldPostRequestBody.ids); + writer.writeAdditionalData(applyHoldPostRequestBody.additionalData); +} /** * Provides operations to call the applyHold method. */ diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/index.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/index.ts index f9511b39883..62c48d9f535 100644 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/index.ts +++ b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoRemoveHoldPostRequestBody, serializeRemoveHoldPostRequestBody, type RemoveHoldPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRemoveHoldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemoveHoldPostRequestBody; +} +export function deserializeIntoRemoveHoldPostRequestBody(removeHoldPostRequestBody: RemoveHoldPostRequestBody | undefined = {} as RemoveHoldPostRequestBody) : Record void> { + return { + "ids": n => { removeHoldPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, + } +} +export interface RemoveHoldPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The ids property + */ + ids?: string[]; +} +export function serializeRemoveHoldPostRequestBody(writer: SerializationWriter, removeHoldPostRequestBody: RemoveHoldPostRequestBody | undefined = {} as RemoveHoldPostRequestBody) : void { + writer.writeCollectionOfPrimitiveValues("ids", removeHoldPostRequestBody.ids); + writer.writeAdditionalData(removeHoldPostRequestBody.additionalData); +} /** * Provides operations to call the removeHold method. */ diff --git a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/removeHoldPostRequestBody.ts b/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/removeHoldPostRequestBody.ts deleted file mode 100644 index 0b23472eb4a..00000000000 --- a/src/security/cases/ediscoveryCases/item/noncustodialDataSources/microsoftGraphSecurityRemoveHold/removeHoldPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRemoveHoldPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemoveHoldPostRequestBody; -} -export function deserializeIntoRemoveHoldPostRequestBody(removeHoldPostRequestBody: RemoveHoldPostRequestBody | undefined = {} as RemoveHoldPostRequestBody) : Record void> { - return { - "ids": n => { removeHoldPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface RemoveHoldPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} -export function serializeRemoveHoldPostRequestBody(writer: SerializationWriter, removeHoldPostRequestBody: RemoveHoldPostRequestBody | undefined = {} as RemoveHoldPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", removeHoldPostRequestBody.ids); - writer.writeAdditionalData(removeHoldPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/operations/count/index.ts b/src/security/cases/ediscoveryCases/item/operations/count/index.ts index 1d2682a5b10..e4c7bfa212e 100644 --- a/src/security/cases/ediscoveryCases/item/operations/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/operations/index.ts b/src/security/cases/ediscoveryCases/item/operations/index.ts index 95b3b2b1d51..02ce05307bf 100644 --- a/src/security/cases/ediscoveryCases/item/operations/index.ts +++ b/src/security/cases/ediscoveryCases/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type CaseOperationCollectionResponse } from '../../../../../models/security/'; +import { type CaseOperationCollectionResponse } from '../../../../../models/security'; import { createCaseOperationFromDiscriminatorValue, deserializeIntoCaseOperation, serializeCaseOperation, type CaseOperation } from '../../../../../models/security/caseOperation'; import { createCaseOperationCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/caseOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { CaseOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CaseOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/operations/item/index.ts b/src/security/cases/ediscoveryCases/item/operations/item/index.ts index 582f5450085..bcf3f5111ee 100644 --- a/src/security/cases/ediscoveryCases/item/operations/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createCaseOperationFromDiscriminatorValue, deserializeIntoCaseOperation, serializeCaseOperation, type CaseOperation } from '../../../../../../models/security/caseOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/count/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/count/index.ts index 21297f9d58f..10e8bd308fe 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/index.ts index f1b23727828..6e3e145295d 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryReviewSetCollectionResponse } from '../../../../../models/security/'; +import { type EdiscoveryReviewSetCollectionResponse } from '../../../../../models/security'; import { createEdiscoveryReviewSetFromDiscriminatorValue, deserializeIntoEdiscoveryReviewSet, serializeEdiscoveryReviewSet, type EdiscoveryReviewSet } from '../../../../../models/security/ediscoveryReviewSet'; import { createEdiscoveryReviewSetCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/ediscoveryReviewSetCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoveryReviewSetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EdiscoveryReviewSetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ReviewSetsRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/index.ts index 62496cf2b9c..b87a3fff6c3 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createEdiscoveryReviewSetFromDiscriminatorValue, deserializeIntoEdiscoveryReviewSet, serializeEdiscoveryReviewSet, type EdiscoveryReviewSet } from '../../../../../../models/security/ediscoveryReviewSet'; -import { MicrosoftGraphSecurityAddToReviewSetRequestBuilder } from './microsoftGraphSecurityAddToReviewSet/'; -import { MicrosoftGraphSecurityExportRequestBuilder } from './microsoftGraphSecurityExport/'; -import { QueriesRequestBuilder } from './queries/'; +import { MicrosoftGraphSecurityAddToReviewSetRequestBuilder } from './microsoftGraphSecurityAddToReviewSet'; +import { MicrosoftGraphSecurityExportRequestBuilder } from './microsoftGraphSecurityExport'; +import { QueriesRequestBuilder } from './queries'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdiscoveryReviewSetItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/addToReviewSetPostRequestBody.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/addToReviewSetPostRequestBody.ts deleted file mode 100644 index 8a07adbc146..00000000000 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/addToReviewSetPostRequestBody.ts +++ /dev/null @@ -1,38 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { AdditionalDataOptions } from '../../../../../../../models/security/additionalDataOptions'; -import { createEdiscoverySearchFromDiscriminatorValue, serializeEdiscoverySearch, type EdiscoverySearch } from '../../../../../../../models/security/ediscoverySearch'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddToReviewSetPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The additionalDataOptions property - */ - additionalDataOptions?: AdditionalDataOptions[]; - /** - * The search property - */ - search?: EdiscoverySearch; -} -export function createAddToReviewSetPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddToReviewSetPostRequestBody; -} -export function deserializeIntoAddToReviewSetPostRequestBody(addToReviewSetPostRequestBody: AddToReviewSetPostRequestBody | undefined = {} as AddToReviewSetPostRequestBody) : Record void> { - return { - "additionalDataOptions": n => { addToReviewSetPostRequestBody.additionalDataOptions = n.getCollectionOfEnumValues(AdditionalDataOptions); }, - "search": n => { addToReviewSetPostRequestBody.search = n.getObjectValue(createEdiscoverySearchFromDiscriminatorValue); }, - } -} -export function serializeAddToReviewSetPostRequestBody(writer: SerializationWriter, addToReviewSetPostRequestBody: AddToReviewSetPostRequestBody | undefined = {} as AddToReviewSetPostRequestBody) : void { - writer.writeEnumValue("additionalDataOptions", addToReviewSetPostRequestBody.additionalDataOptions); - writer.writeObjectValue("search", addToReviewSetPostRequestBody.search, serializeEdiscoverySearch); - writer.writeAdditionalData(addToReviewSetPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/index.ts index ed71875d8c4..eb819573a59 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityAddToReviewSet/index.ts @@ -1,9 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { AdditionalDataOptions } from '../../../../../../../models/security/additionalDataOptions'; import { createEdiscoverySearchFromDiscriminatorValue, serializeEdiscoverySearch, type EdiscoverySearch } from '../../../../../../../models/security/ediscoverySearch'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddToReviewSetPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,5 +36,57 @@ export function serializeAddToReviewSetPostRequestBody(writer: SerializationWrit writer.writeObjectValue("search", addToReviewSetPostRequestBody.search, serializeEdiscoverySearch); writer.writeAdditionalData(addToReviewSetPostRequestBody.additionalData); } +/** + * Provides operations to call the addToReviewSet method. + */ +export class MicrosoftGraphSecurityAddToReviewSetRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new MicrosoftGraphSecurityAddToReviewSetRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/microsoft.graph.security.addToReviewSet"); + }; + /** + * Start the process of adding a collection from Microsoft 365 services to a review set. After the operation is created, you can get the status of the operation by retrieving the Location parameter from the response headers. The location provides a URL that will return a Add to review set operation. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/security-ediscoveryreviewset-addtoreviewset?view=graph-rest-1.0|Find more info here} + */ + public post(body: AddToReviewSetPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + }; + /** + * Start the process of adding a collection from Microsoft 365 services to a review set. After the operation is created, you can get the status of the operation by retrieving the Location parameter from the response headers. The location provides a URL that will return a Add to review set operation. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: AddToReviewSetPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddToReviewSetPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a microsoftGraphSecurityAddToReviewSetRequestBuilder + */ + public withUrl(rawUrl: string) : MicrosoftGraphSecurityAddToReviewSetRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new MicrosoftGraphSecurityAddToReviewSetRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityExport/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityExport/index.ts index 3ba6fd164d8..13cc27b6907 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityExport/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/item/microsoftGraphSecurityExport/index.ts @@ -1,11 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { ExportFileStructure } from '../../../../../../../models/security/exportFileStructure'; import { ExportOptions } from '../../../../../../../models/security/exportOptions'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createExportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +46,5 @@ export function serializeExportPostRequestBody(writer: SerializationWriter, expo writer.writeStringValue("outputName", exportPostRequestBody.outputName); writer.writeAdditionalData(exportPostRequestBody.additionalData); } -/** - * Provides operations to call the export method. - */ -export class MicrosoftGraphSecurityExportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MicrosoftGraphSecurityExportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/microsoft.graph.security.export"); - }; - /** - * Initiate an export from a ediscoveryReviewSet. For details, see Export documents from a review set in eDiscovery (Premium). - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/security-ediscoveryreviewset-export?view=graph-rest-1.0|Find more info here} - */ - public post(body: ExportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Initiate an export from a ediscoveryReviewSet. For details, see Export documents from a review set in eDiscovery (Premium). - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ExportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeExportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a microsoftGraphSecurityExportRequestBuilder - */ - public withUrl(rawUrl: string) : MicrosoftGraphSecurityExportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MicrosoftGraphSecurityExportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/count/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/count/index.ts index 702ce1787db..467f19949c3 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/index.ts index 91118b69e44..33081817bf6 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryReviewSetQueryCollectionResponse } from '../../../../../../../models/security/'; +import { type EdiscoveryReviewSetQueryCollectionResponse } from '../../../../../../../models/security'; import { createEdiscoveryReviewSetQueryFromDiscriminatorValue, deserializeIntoEdiscoveryReviewSetQuery, serializeEdiscoveryReviewSetQuery, type EdiscoveryReviewSetQuery } from '../../../../../../../models/security/ediscoveryReviewSetQuery'; import { createEdiscoveryReviewSetQueryCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/security/ediscoveryReviewSetQueryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoveryReviewSetQueryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EdiscoveryReviewSetQueryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface QueriesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/index.ts index bb0627d7fae..29b39bed978 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createEdiscoveryReviewSetQueryFromDiscriminatorValue, deserializeIntoEdiscoveryReviewSetQuery, serializeEdiscoveryReviewSetQuery, type EdiscoveryReviewSetQuery } from '../../../../../../../../models/security/ediscoveryReviewSetQuery'; -import { MicrosoftGraphSecurityApplyTagsRequestBuilder } from './microsoftGraphSecurityApplyTags/'; -import { MicrosoftGraphSecurityExportRequestBuilder } from './microsoftGraphSecurityExport/'; +import { MicrosoftGraphSecurityApplyTagsRequestBuilder } from './microsoftGraphSecurityApplyTags'; +import { MicrosoftGraphSecurityExportRequestBuilder } from './microsoftGraphSecurityExport'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdiscoveryReviewSetQueryItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityApplyTags/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityApplyTags/index.ts index 3f9169a489c..3df11abc201 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityApplyTags/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityApplyTags/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createEdiscoveryReviewTagFromDiscriminatorValue, serializeEdiscoveryReviewTag, type EdiscoveryReviewTag } from '../../../../../../../../../models/security/ediscoveryReviewTag'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ApplyTagsPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,57 +33,5 @@ export function serializeApplyTagsPostRequestBody(writer: SerializationWriter, a writer.writeCollectionOfObjectValues("tagsToRemove", applyTagsPostRequestBody.tagsToRemove, serializeEdiscoveryReviewTag); writer.writeAdditionalData(applyTagsPostRequestBody.additionalData); } -/** - * Provides operations to call the applyTags method. - */ -export class MicrosoftGraphSecurityApplyTagsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MicrosoftGraphSecurityApplyTagsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/queries/{ediscoveryReviewSetQuery%2Did}/microsoft.graph.security.applyTags"); - }; - /** - * Apply tags to files in an eDiscovery review set. For details, see Tag documents in a review set in eDiscovery. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/security-ediscoveryreviewsetquery-applytags?view=graph-rest-1.0|Find more info here} - */ - public post(body: ApplyTagsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Apply tags to files in an eDiscovery review set. For details, see Tag documents in a review set in eDiscovery. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ApplyTagsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeApplyTagsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a microsoftGraphSecurityApplyTagsRequestBuilder - */ - public withUrl(rawUrl: string) : MicrosoftGraphSecurityApplyTagsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MicrosoftGraphSecurityApplyTagsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityExport/index.ts b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityExport/index.ts index 3f60ead4fbb..2e2ee0e25c2 100644 --- a/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityExport/index.ts +++ b/src/security/cases/ediscoveryCases/item/reviewSets/item/queries/item/microsoftGraphSecurityExport/index.ts @@ -1,11 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { ExportFileStructure } from '../../../../../../../../../models/security/exportFileStructure'; import { ExportOptions } from '../../../../../../../../../models/security/exportOptions'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createExportPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,57 +46,5 @@ export function serializeExportPostRequestBody(writer: SerializationWriter, expo writer.writeStringValue("outputName", exportPostRequestBody.outputName); writer.writeAdditionalData(exportPostRequestBody.additionalData); } -/** - * Provides operations to call the export method. - */ -export class MicrosoftGraphSecurityExportRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MicrosoftGraphSecurityExportRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/queries/{ediscoveryReviewSetQuery%2Did}/microsoft.graph.security.export"); - }; - /** - * Initiate an export from a ediscoveryReviewSetQuery. For details, see Export documents from a review set in eDiscovery (Premium). - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/security-ediscoveryreviewsetquery-export?view=graph-rest-1.0|Find more info here} - */ - public post(body: ExportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Initiate an export from a ediscoveryReviewSetQuery. For details, see Export documents from a review set in eDiscovery (Premium). - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ExportPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeExportPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a microsoftGraphSecurityExportRequestBuilder - */ - public withUrl(rawUrl: string) : MicrosoftGraphSecurityExportRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MicrosoftGraphSecurityExportRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/searches/count/index.ts b/src/security/cases/ediscoveryCases/item/searches/count/index.ts index 2de510e417b..731f53e7911 100644 --- a/src/security/cases/ediscoveryCases/item/searches/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/index.ts b/src/security/cases/ediscoveryCases/item/searches/index.ts index 74bede46347..49766fc3d80 100644 --- a/src/security/cases/ediscoveryCases/item/searches/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type EdiscoverySearchCollectionResponse } from '../../../../../models/security/'; +import { type EdiscoverySearchCollectionResponse } from '../../../../../models/security'; import { createEdiscoverySearchFromDiscriminatorValue, deserializeIntoEdiscoverySearch, serializeEdiscoverySearch, type EdiscoverySearch } from '../../../../../models/security/ediscoverySearch'; import { createEdiscoverySearchCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/ediscoverySearchCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoverySearchItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EdiscoverySearchItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SearchesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/searches/item/addToReviewSetOperation/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/addToReviewSetOperation/index.ts index b0241fd7fec..c0901151ef8 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/addToReviewSetOperation/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/addToReviewSetOperation/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryAddToReviewSetOperation } from '../../../../../../../models/security/'; +import { type EdiscoveryAddToReviewSetOperation } from '../../../../../../../models/security'; import { createEdiscoveryAddToReviewSetOperationFromDiscriminatorValue } from '../../../../../../../models/security/ediscoveryAddToReviewSetOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/count/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/count/index.ts index 93d84d1ea24..bb575120421 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/index.ts index e9f956bde2b..acde864fc43 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type DataSourceCollectionResponse } from '../../../../../../../models/security/'; +import { type DataSourceCollectionResponse } from '../../../../../../../models/security'; import { createDataSourceFromDiscriminatorValue, deserializeIntoDataSource, serializeDataSource, type DataSource } from '../../../../../../../models/security/dataSource'; import { createDataSourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/security/dataSourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { DataSourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DataSourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AdditionalSourcesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/item/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/item/index.ts index caea833848f..95afd18c735 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/additionalSources/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createDataSourceFromDiscriminatorValue, deserializeIntoDataSource, serializeDataSource, type DataSource } from '../../../../../../../../models/security/dataSource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/count/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/count/index.ts index 692fdfa4714..52b303b83fe 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/index.ts index b83cb0365b0..21352d49973 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type DataSourceCollectionResponse } from '../../../../../../../models/security/'; +import { type DataSourceCollectionResponse } from '../../../../../../../models/security'; import { createDataSourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/security/dataSourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { DataSourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DataSourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustodianSourcesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/item/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/item/index.ts index c7aaed73a75..6fa199958f1 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/custodianSources/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type DataSource } from '../../../../../../../../models/security/'; +import { type DataSource } from '../../../../../../../../models/security'; import { createDataSourceFromDiscriminatorValue } from '../../../../../../../../models/security/dataSource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/item/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/index.ts index dc158dcdafa..da0ca65a5e5 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createEdiscoverySearchFromDiscriminatorValue, deserializeIntoEdiscoverySearch, serializeEdiscoverySearch, type EdiscoverySearch } from '../../../../../../models/security/ediscoverySearch'; -import { AdditionalSourcesRequestBuilder } from './additionalSources/'; -import { AddToReviewSetOperationRequestBuilder } from './addToReviewSetOperation/'; -import { CustodianSourcesRequestBuilder } from './custodianSources/'; -import { LastEstimateStatisticsOperationRequestBuilder } from './lastEstimateStatisticsOperation/'; -import { MicrosoftGraphSecurityEstimateStatisticsRequestBuilder } from './microsoftGraphSecurityEstimateStatistics/'; -import { MicrosoftGraphSecurityPurgeDataRequestBuilder } from './microsoftGraphSecurityPurgeData/'; -import { NoncustodialSourcesRequestBuilder } from './noncustodialSources/'; +import { AdditionalSourcesRequestBuilder } from './additionalSources'; +import { AddToReviewSetOperationRequestBuilder } from './addToReviewSetOperation'; +import { CustodianSourcesRequestBuilder } from './custodianSources'; +import { LastEstimateStatisticsOperationRequestBuilder } from './lastEstimateStatisticsOperation'; +import { MicrosoftGraphSecurityEstimateStatisticsRequestBuilder } from './microsoftGraphSecurityEstimateStatistics'; +import { MicrosoftGraphSecurityPurgeDataRequestBuilder } from './microsoftGraphSecurityPurgeData'; +import { NoncustodialSourcesRequestBuilder } from './noncustodialSources'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdiscoverySearchItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/searches/item/lastEstimateStatisticsOperation/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/lastEstimateStatisticsOperation/index.ts index 180b10b5415..bb25523bd5d 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/lastEstimateStatisticsOperation/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/lastEstimateStatisticsOperation/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryEstimateOperation } from '../../../../../../../models/security/'; +import { type EdiscoveryEstimateOperation } from '../../../../../../../models/security'; import { createEdiscoveryEstimateOperationFromDiscriminatorValue } from '../../../../../../../models/security/ediscoveryEstimateOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityEstimateStatistics/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityEstimateStatistics/index.ts index 123f620d1bd..1b24903680c 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityEstimateStatistics/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityEstimateStatistics/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/index.ts index 9fee3b949c9..913ef01bf93 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/index.ts @@ -1,11 +1,41 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoPurgeDataPostRequestBody, serializePurgeDataPostRequestBody, type PurgeDataPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { PurgeAreas } from '../../../../../../../models/security/purgeAreas'; +import { PurgeType } from '../../../../../../../models/security/purgeType'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createPurgeDataPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoPurgeDataPostRequestBody; +} +export function deserializeIntoPurgeDataPostRequestBody(purgeDataPostRequestBody: PurgeDataPostRequestBody | undefined = {} as PurgeDataPostRequestBody) : Record void> { + return { + "purgeAreas": n => { purgeDataPostRequestBody.purgeAreas = n.getCollectionOfEnumValues(PurgeAreas); }, + "purgeType": n => { purgeDataPostRequestBody.purgeType = n.getEnumValue(PurgeType); }, + } +} +export interface PurgeDataPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The purgeAreas property + */ + purgeAreas?: PurgeAreas[]; + /** + * The purgeType property + */ + purgeType?: PurgeType; +} +export function serializePurgeDataPostRequestBody(writer: SerializationWriter, purgeDataPostRequestBody: PurgeDataPostRequestBody | undefined = {} as PurgeDataPostRequestBody) : void { + writer.writeEnumValue("purgeAreas", purgeDataPostRequestBody.purgeAreas); + writer.writeEnumValue("purgeType", purgeDataPostRequestBody.purgeType); + writer.writeAdditionalData(purgeDataPostRequestBody.additionalData); +} /** * Provides operations to call the purgeData method. */ diff --git a/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/purgeDataPostRequestBody.ts b/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/purgeDataPostRequestBody.ts deleted file mode 100644 index 8c2cd8f86de..00000000000 --- a/src/security/cases/ediscoveryCases/item/searches/item/microsoftGraphSecurityPurgeData/purgeDataPostRequestBody.ts +++ /dev/null @@ -1,38 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { PurgeAreas } from '../../../../../../../models/security/purgeAreas'; -import { PurgeType } from '../../../../../../../models/security/purgeType'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createPurgeDataPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoPurgeDataPostRequestBody; -} -export function deserializeIntoPurgeDataPostRequestBody(purgeDataPostRequestBody: PurgeDataPostRequestBody | undefined = {} as PurgeDataPostRequestBody) : Record void> { - return { - "purgeAreas": n => { purgeDataPostRequestBody.purgeAreas = n.getCollectionOfEnumValues(PurgeAreas); }, - "purgeType": n => { purgeDataPostRequestBody.purgeType = n.getEnumValue(PurgeType); }, - } -} -export interface PurgeDataPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The purgeAreas property - */ - purgeAreas?: PurgeAreas[]; - /** - * The purgeType property - */ - purgeType?: PurgeType; -} -export function serializePurgeDataPostRequestBody(writer: SerializationWriter, purgeDataPostRequestBody: PurgeDataPostRequestBody | undefined = {} as PurgeDataPostRequestBody) : void { - writer.writeEnumValue("purgeAreas", purgeDataPostRequestBody.purgeAreas); - writer.writeEnumValue("purgeType", purgeDataPostRequestBody.purgeType); - writer.writeAdditionalData(purgeDataPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/count/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/count/index.ts index 79ecebb215e..c0333606bdf 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/index.ts index 9e3b6829ec0..29e96090309 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryNoncustodialDataSourceCollectionResponse } from '../../../../../../../models/security/'; +import { type EdiscoveryNoncustodialDataSourceCollectionResponse } from '../../../../../../../models/security'; import { createEdiscoveryNoncustodialDataSourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/security/ediscoveryNoncustodialDataSourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoveryNoncustodialDataSourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EdiscoveryNoncustodialDataSourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NoncustodialSourcesRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/item/index.ts b/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/item/index.ts index a8f9d769fd8..23c7fc92cd6 100644 --- a/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/searches/item/noncustodialSources/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryNoncustodialDataSource } from '../../../../../../../../models/security/'; +import { type EdiscoveryNoncustodialDataSource } from '../../../../../../../../models/security'; import { createEdiscoveryNoncustodialDataSourceFromDiscriminatorValue } from '../../../../../../../../models/security/ediscoveryNoncustodialDataSource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/settings/index.ts b/src/security/cases/ediscoveryCases/item/settings/index.ts index f259aa59c2a..63b7dda3370 100644 --- a/src/security/cases/ediscoveryCases/item/settings/index.ts +++ b/src/security/cases/ediscoveryCases/item/settings/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createEdiscoveryCaseSettingsFromDiscriminatorValue, deserializeIntoEdiscoveryCaseSettings, serializeEdiscoveryCaseSettings, type EdiscoveryCaseSettings } from '../../../../../models/security/ediscoveryCaseSettings'; -import { MicrosoftGraphSecurityResetToDefaultRequestBuilder } from './microsoftGraphSecurityResetToDefault/'; +import { MicrosoftGraphSecurityResetToDefaultRequestBuilder } from './microsoftGraphSecurityResetToDefault'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SettingsRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/settings/microsoftGraphSecurityResetToDefault/index.ts b/src/security/cases/ediscoveryCases/item/settings/microsoftGraphSecurityResetToDefault/index.ts index 233adca3bc1..fc22e74cdb5 100644 --- a/src/security/cases/ediscoveryCases/item/settings/microsoftGraphSecurityResetToDefault/index.ts +++ b/src/security/cases/ediscoveryCases/item/settings/microsoftGraphSecurityResetToDefault/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/tags/count/index.ts b/src/security/cases/ediscoveryCases/item/tags/count/index.ts index d635c37c4f3..abea171f0b6 100644 --- a/src/security/cases/ediscoveryCases/item/tags/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/tags/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/tags/index.ts b/src/security/cases/ediscoveryCases/item/tags/index.ts index e83e3f0af50..0b78d5bf41c 100644 --- a/src/security/cases/ediscoveryCases/item/tags/index.ts +++ b/src/security/cases/ediscoveryCases/item/tags/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryReviewTagCollectionResponse } from '../../../../../models/security/'; +import { type EdiscoveryReviewTagCollectionResponse } from '../../../../../models/security'; import { createEdiscoveryReviewTagFromDiscriminatorValue, deserializeIntoEdiscoveryReviewTag, serializeEdiscoveryReviewTag, type EdiscoveryReviewTag } from '../../../../../models/security/ediscoveryReviewTag'; import { createEdiscoveryReviewTagCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/ediscoveryReviewTagCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoveryReviewTagItemRequestBuilder } from './item/'; -import { MicrosoftGraphSecurityAsHierarchyRequestBuilder } from './microsoftGraphSecurityAsHierarchy/'; +import { CountRequestBuilder } from './count'; +import { EdiscoveryReviewTagItemRequestBuilder } from './item'; +import { MicrosoftGraphSecurityAsHierarchyRequestBuilder } from './microsoftGraphSecurityAsHierarchy'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TagsRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/tags/item/childTags/count/index.ts b/src/security/cases/ediscoveryCases/item/tags/item/childTags/count/index.ts index 6f76159b88e..20fcd6bacd7 100644 --- a/src/security/cases/ediscoveryCases/item/tags/item/childTags/count/index.ts +++ b/src/security/cases/ediscoveryCases/item/tags/item/childTags/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/tags/item/childTags/index.ts b/src/security/cases/ediscoveryCases/item/tags/item/childTags/index.ts index 126a7552da6..f1b87ffe5df 100644 --- a/src/security/cases/ediscoveryCases/item/tags/item/childTags/index.ts +++ b/src/security/cases/ediscoveryCases/item/tags/item/childTags/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryReviewTagCollectionResponse } from '../../../../../../../models/security/'; +import { type EdiscoveryReviewTagCollectionResponse } from '../../../../../../../models/security'; import { createEdiscoveryReviewTagCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/security/ediscoveryReviewTagCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { EdiscoveryReviewTagItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EdiscoveryReviewTagItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildTagsRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/tags/item/childTags/item/index.ts b/src/security/cases/ediscoveryCases/item/tags/item/childTags/item/index.ts index 166f7d58bf2..132a1a25af4 100644 --- a/src/security/cases/ediscoveryCases/item/tags/item/childTags/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/tags/item/childTags/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryReviewTag } from '../../../../../../../../models/security/'; +import { type EdiscoveryReviewTag } from '../../../../../../../../models/security'; import { createEdiscoveryReviewTagFromDiscriminatorValue } from '../../../../../../../../models/security/ediscoveryReviewTag'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/tags/item/index.ts b/src/security/cases/ediscoveryCases/item/tags/item/index.ts index 07243f2df95..3bde528f0fe 100644 --- a/src/security/cases/ediscoveryCases/item/tags/item/index.ts +++ b/src/security/cases/ediscoveryCases/item/tags/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createEdiscoveryReviewTagFromDiscriminatorValue, deserializeIntoEdiscoveryReviewTag, serializeEdiscoveryReviewTag, type EdiscoveryReviewTag } from '../../../../../../models/security/ediscoveryReviewTag'; -import { ChildTagsRequestBuilder } from './childTags/'; -import { ParentRequestBuilder } from './parent/'; +import { ChildTagsRequestBuilder } from './childTags'; +import { ParentRequestBuilder } from './parent'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EdiscoveryReviewTagItemRequestBuilderGetQueryParameters { diff --git a/src/security/cases/ediscoveryCases/item/tags/item/parent/index.ts b/src/security/cases/ediscoveryCases/item/tags/item/parent/index.ts index 30840399023..e80771cdee1 100644 --- a/src/security/cases/ediscoveryCases/item/tags/item/parent/index.ts +++ b/src/security/cases/ediscoveryCases/item/tags/item/parent/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type EdiscoveryReviewTag } from '../../../../../../../models/security/'; +import { type EdiscoveryReviewTag } from '../../../../../../../models/security'; import { createEdiscoveryReviewTagFromDiscriminatorValue } from '../../../../../../../models/security/ediscoveryReviewTag'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/asHierarchyGetResponse.ts b/src/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/asHierarchyGetResponse.ts deleted file mode 100644 index 38455dd3289..00000000000 --- a/src/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/asHierarchyGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createEdiscoveryReviewTagFromDiscriminatorValue, serializeEdiscoveryReviewTag, type EdiscoveryReviewTag } from '../../../../../../models/security/ediscoveryReviewTag'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AsHierarchyGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: EdiscoveryReviewTag[]; -} -export function createAsHierarchyGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAsHierarchyGetResponse; -} -export function deserializeIntoAsHierarchyGetResponse(asHierarchyGetResponse: AsHierarchyGetResponse | undefined = {} as AsHierarchyGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(asHierarchyGetResponse), - "value": n => { asHierarchyGetResponse.value = n.getCollectionOfObjectValues(createEdiscoveryReviewTagFromDiscriminatorValue); }, - } -} -export function serializeAsHierarchyGetResponse(writer: SerializationWriter, asHierarchyGetResponse: AsHierarchyGetResponse | undefined = {} as AsHierarchyGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, asHierarchyGetResponse) - writer.writeCollectionOfObjectValues("value", asHierarchyGetResponse.value, serializeEdiscoveryReviewTag); -} -// tslint:enable -// eslint-enable diff --git a/src/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/index.ts b/src/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/index.ts index 1b12dfb50e6..6455b07a895 100644 --- a/src/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/index.ts +++ b/src/security/cases/ediscoveryCases/item/tags/microsoftGraphSecurityAsHierarchy/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createAsHierarchyGetResponseFromDiscriminatorValue } from './'; -import { type AsHierarchyGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createEdiscoveryReviewTagFromDiscriminatorValue, serializeEdiscoveryReviewTag, type EdiscoveryReviewTag } from '../../../../../../models/security/ediscoveryReviewTag'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AsHierarchyGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: EdiscoveryReviewTag[]; +} +export function createAsHierarchyGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAsHierarchyGetResponse; +} +export function deserializeIntoAsHierarchyGetResponse(asHierarchyGetResponse: AsHierarchyGetResponse | undefined = {} as AsHierarchyGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(asHierarchyGetResponse), + "value": n => { asHierarchyGetResponse.value = n.getCollectionOfObjectValues(createEdiscoveryReviewTagFromDiscriminatorValue); }, + } +} export interface MicrosoftGraphSecurityAsHierarchyRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface MicrosoftGraphSecurityAsHierarchyRequestBuilderGetQueryParamete */ top?: number; } +export function serializeAsHierarchyGetResponse(writer: SerializationWriter, asHierarchyGetResponse: AsHierarchyGetResponse | undefined = {} as AsHierarchyGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, asHierarchyGetResponse) + writer.writeCollectionOfObjectValues("value", asHierarchyGetResponse.value, serializeEdiscoveryReviewTag); +} /** * Provides operations to call the asHierarchy method. */ diff --git a/src/security/cases/index.ts b/src/security/cases/index.ts index 893e39c36ce..3b6c3f0d8e8 100644 --- a/src/security/cases/index.ts +++ b/src/security/cases/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createCasesRootFromDiscriminatorValue, deserializeIntoCasesRoot, serializeCasesRoot, type CasesRoot } from '../../models/security/casesRoot'; -import { EdiscoveryCasesRequestBuilder } from './ediscoveryCases/'; +import { EdiscoveryCasesRequestBuilder } from './ediscoveryCases'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CasesRequestBuilderGetQueryParameters { diff --git a/src/security/incidents/count/index.ts b/src/security/incidents/count/index.ts index 40bdbac4b91..7398994beee 100644 --- a/src/security/incidents/count/index.ts +++ b/src/security/incidents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/incidents/index.ts b/src/security/incidents/index.ts index e09d876e547..26612c71eea 100644 --- a/src/security/incidents/index.ts +++ b/src/security/incidents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { type IncidentCollectionResponse } from '../../models/security/'; +import { type IncidentCollectionResponse } from '../../models/security'; import { createIncidentFromDiscriminatorValue, deserializeIntoIncident, serializeIncident, type Incident } from '../../models/security/incident'; import { createIncidentCollectionResponseFromDiscriminatorValue } from '../../models/security/incidentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { IncidentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IncidentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IncidentsRequestBuilderGetQueryParameters { diff --git a/src/security/incidents/item/alerts/count/index.ts b/src/security/incidents/item/alerts/count/index.ts index e69a18fbe15..821242b05b5 100644 --- a/src/security/incidents/item/alerts/count/index.ts +++ b/src/security/incidents/item/alerts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/incidents/item/alerts/index.ts b/src/security/incidents/item/alerts/index.ts index 4a92ba0f98c..9cd3d338517 100644 --- a/src/security/incidents/item/alerts/index.ts +++ b/src/security/incidents/item/alerts/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { type AlertCollectionResponse } from '../../../../models/security/'; +import { type AlertCollectionResponse } from '../../../../models/security'; import { createAlertCollectionResponseFromDiscriminatorValue } from '../../../../models/security/alertCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { AlertItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AlertItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AlertsRequestBuilderGetQueryParameters { diff --git a/src/security/incidents/item/alerts/item/comments/count/index.ts b/src/security/incidents/item/alerts/item/comments/count/index.ts index fbb1a6a4ed2..c07b32d464f 100644 --- a/src/security/incidents/item/alerts/item/comments/count/index.ts +++ b/src/security/incidents/item/alerts/item/comments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/incidents/item/alerts/item/comments/index.ts b/src/security/incidents/item/alerts/item/comments/index.ts index 588b311e7c5..bcbe1f661b2 100644 --- a/src/security/incidents/item/alerts/item/comments/index.ts +++ b/src/security/incidents/item/alerts/item/comments/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createAlertCommentFromDiscriminatorValue, deserializeIntoAlertComment, serializeAlertComment, type AlertComment } from '../../../../../../models/security/alertComment'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; /** diff --git a/src/security/incidents/item/alerts/item/index.ts b/src/security/incidents/item/alerts/item/index.ts index e37691bafeb..7fe7ada60df 100644 --- a/src/security/incidents/item/alerts/item/index.ts +++ b/src/security/incidents/item/alerts/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Alert } from '../../../../../models/security/'; +import { type Alert } from '../../../../../models/security'; import { createAlertFromDiscriminatorValue } from '../../../../../models/security/alert'; -import { CommentsRequestBuilder } from './comments/'; +import { CommentsRequestBuilder } from './comments'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AlertItemRequestBuilderGetQueryParameters { diff --git a/src/security/incidents/item/index.ts b/src/security/incidents/item/index.ts index bff29bdb5cb..279a7ad243d 100644 --- a/src/security/incidents/item/index.ts +++ b/src/security/incidents/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createIncidentFromDiscriminatorValue, deserializeIntoIncident, serializeIncident, type Incident } from '../../../models/security/incident'; -import { AlertsRequestBuilder } from './alerts/'; +import { AlertsRequestBuilder } from './alerts'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IncidentItemRequestBuilderGetQueryParameters { diff --git a/src/security/index.ts b/src/security/index.ts index 5d89974bb91..0d53ea3b982 100644 --- a/src/security/index.ts +++ b/src/security/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createSecurityFromDiscriminatorValue, deserializeIntoSecurity, serializeSecurity, type Security } from '../models/security'; -import { Alerts_v2RequestBuilder } from './alerts_v2/'; -import { AlertsRequestBuilder } from './alerts/'; -import { AttackSimulationRequestBuilder } from './attackSimulation/'; -import { CasesRequestBuilder } from './cases/'; -import { IncidentsRequestBuilder } from './incidents/'; -import { MicrosoftGraphSecurityRunHuntingQueryRequestBuilder } from './microsoftGraphSecurityRunHuntingQuery/'; -import { SecureScoreControlProfilesRequestBuilder } from './secureScoreControlProfiles/'; -import { SecureScoresRequestBuilder } from './secureScores/'; -import { SubjectRightsRequestsRequestBuilder } from './subjectRightsRequests/'; -import { ThreatIntelligenceRequestBuilder } from './threatIntelligence/'; -import { TriggersRequestBuilder } from './triggers/'; -import { TriggerTypesRequestBuilder } from './triggerTypes/'; +import { AlertsRequestBuilder } from './alerts'; +import { Alerts_v2RequestBuilder } from './alerts_v2'; +import { AttackSimulationRequestBuilder } from './attackSimulation'; +import { CasesRequestBuilder } from './cases'; +import { IncidentsRequestBuilder } from './incidents'; +import { MicrosoftGraphSecurityRunHuntingQueryRequestBuilder } from './microsoftGraphSecurityRunHuntingQuery'; +import { SecureScoreControlProfilesRequestBuilder } from './secureScoreControlProfiles'; +import { SecureScoresRequestBuilder } from './secureScores'; +import { SubjectRightsRequestsRequestBuilder } from './subjectRightsRequests'; +import { ThreatIntelligenceRequestBuilder } from './threatIntelligence'; +import { TriggersRequestBuilder } from './triggers'; +import { TriggerTypesRequestBuilder } from './triggerTypes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SecurityRequestBuilderGetQueryParameters { diff --git a/src/security/microsoftGraphSecurityRunHuntingQuery/index.ts b/src/security/microsoftGraphSecurityRunHuntingQuery/index.ts index 79a30af6823..4076677f2f8 100644 --- a/src/security/microsoftGraphSecurityRunHuntingQuery/index.ts +++ b/src/security/microsoftGraphSecurityRunHuntingQuery/index.ts @@ -1,12 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createHuntingQueryResultsFromDiscriminatorValue, deserializeIntoHuntingQueryResults, serializeHuntingQueryResults, type HuntingQueryResults } from '../../models/security/huntingQueryResults'; -import { deserializeIntoRunHuntingQueryPostRequestBody, serializeRunHuntingQueryPostRequestBody, type RunHuntingQueryPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRunHuntingQueryPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRunHuntingQueryPostRequestBody; +} +export function deserializeIntoRunHuntingQueryPostRequestBody(runHuntingQueryPostRequestBody: RunHuntingQueryPostRequestBody | undefined = {} as RunHuntingQueryPostRequestBody) : Record void> { + return { + "query": n => { runHuntingQueryPostRequestBody.query = n.getStringValue(); }, + } +} +export interface RunHuntingQueryPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The query property + */ + query?: string; +} +export function serializeRunHuntingQueryPostRequestBody(writer: SerializationWriter, runHuntingQueryPostRequestBody: RunHuntingQueryPostRequestBody | undefined = {} as RunHuntingQueryPostRequestBody) : void { + writer.writeStringValue("query", runHuntingQueryPostRequestBody.query); + writer.writeAdditionalData(runHuntingQueryPostRequestBody.additionalData); +} /** * Provides operations to call the runHuntingQuery method. */ diff --git a/src/security/microsoftGraphSecurityRunHuntingQuery/runHuntingQueryPostRequestBody.ts b/src/security/microsoftGraphSecurityRunHuntingQuery/runHuntingQueryPostRequestBody.ts deleted file mode 100644 index 30ab2d2deb1..00000000000 --- a/src/security/microsoftGraphSecurityRunHuntingQuery/runHuntingQueryPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRunHuntingQueryPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRunHuntingQueryPostRequestBody; -} -export function deserializeIntoRunHuntingQueryPostRequestBody(runHuntingQueryPostRequestBody: RunHuntingQueryPostRequestBody | undefined = {} as RunHuntingQueryPostRequestBody) : Record void> { - return { - "query": n => { runHuntingQueryPostRequestBody.query = n.getStringValue(); }, - } -} -export interface RunHuntingQueryPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The query property - */ - query?: string; -} -export function serializeRunHuntingQueryPostRequestBody(writer: SerializationWriter, runHuntingQueryPostRequestBody: RunHuntingQueryPostRequestBody | undefined = {} as RunHuntingQueryPostRequestBody) : void { - writer.writeStringValue("query", runHuntingQueryPostRequestBody.query); - writer.writeAdditionalData(runHuntingQueryPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/security/secureScoreControlProfiles/count/index.ts b/src/security/secureScoreControlProfiles/count/index.ts index 874b069f161..58be9487ead 100644 --- a/src/security/secureScoreControlProfiles/count/index.ts +++ b/src/security/secureScoreControlProfiles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/secureScoreControlProfiles/index.ts b/src/security/secureScoreControlProfiles/index.ts index 38cab2c7682..8846c23fa0b 100644 --- a/src/security/secureScoreControlProfiles/index.ts +++ b/src/security/secureScoreControlProfiles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SecureScoreControlProfileCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type SecureScoreControlProfileCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSecureScoreControlProfileFromDiscriminatorValue, deserializeIntoSecureScoreControlProfile, serializeSecureScoreControlProfile, type SecureScoreControlProfile } from '../../models/secureScoreControlProfile'; import { createSecureScoreControlProfileCollectionResponseFromDiscriminatorValue } from '../../models/secureScoreControlProfileCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SecureScoreControlProfileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SecureScoreControlProfileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SecureScoreControlProfilesRequestBuilderGetQueryParameters { diff --git a/src/security/secureScoreControlProfiles/item/index.ts b/src/security/secureScoreControlProfiles/item/index.ts index c3f8b28ac90..02cfe0deb4c 100644 --- a/src/security/secureScoreControlProfiles/item/index.ts +++ b/src/security/secureScoreControlProfiles/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSecureScoreControlProfileFromDiscriminatorValue, deserializeIntoSecureScoreControlProfile, serializeSecureScoreControlProfile, type SecureScoreControlProfile } from '../../../models/secureScoreControlProfile'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/secureScores/count/index.ts b/src/security/secureScores/count/index.ts index c76357d0fbe..21bfdcc099f 100644 --- a/src/security/secureScores/count/index.ts +++ b/src/security/secureScores/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/secureScores/index.ts b/src/security/secureScores/index.ts index e06ce9e1fd5..edc521bd897 100644 --- a/src/security/secureScores/index.ts +++ b/src/security/secureScores/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SecureScoreCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type SecureScoreCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSecureScoreFromDiscriminatorValue, deserializeIntoSecureScore, serializeSecureScore, type SecureScore } from '../../models/secureScore'; import { createSecureScoreCollectionResponseFromDiscriminatorValue } from '../../models/secureScoreCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SecureScoreItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SecureScoreItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SecureScoresRequestBuilderGetQueryParameters { diff --git a/src/security/secureScores/item/index.ts b/src/security/secureScores/item/index.ts index fb40af4077a..c2cbfc45ed2 100644 --- a/src/security/secureScores/item/index.ts +++ b/src/security/secureScores/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSecureScoreFromDiscriminatorValue, deserializeIntoSecureScore, serializeSecureScore, type SecureScore } from '../../../models/secureScore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/count/index.ts b/src/security/subjectRightsRequests/count/index.ts index cdc38b0bcfa..db737504733 100644 --- a/src/security/subjectRightsRequests/count/index.ts +++ b/src/security/subjectRightsRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/index.ts b/src/security/subjectRightsRequests/index.ts index e58daa0ba9d..0262a3d77c1 100644 --- a/src/security/subjectRightsRequests/index.ts +++ b/src/security/subjectRightsRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubjectRightsRequestCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type SubjectRightsRequestCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSubjectRightsRequestFromDiscriminatorValue, deserializeIntoSubjectRightsRequest, serializeSubjectRightsRequest, type SubjectRightsRequest } from '../../models/subjectRightsRequest'; import { createSubjectRightsRequestCollectionResponseFromDiscriminatorValue } from '../../models/subjectRightsRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubjectRightsRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubjectRightsRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRightsRequestsRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/approvers/count/index.ts b/src/security/subjectRightsRequests/item/approvers/count/index.ts index 2ef22b175aa..3674c7b3289 100644 --- a/src/security/subjectRightsRequests/item/approvers/count/index.ts +++ b/src/security/subjectRightsRequests/item/approvers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/approvers/index.ts b/src/security/subjectRightsRequests/item/approvers/index.ts index f2c0d8fb85b..bf89ef90ae0 100644 --- a/src/security/subjectRightsRequests/item/approvers/index.ts +++ b/src/security/subjectRightsRequests/item/approvers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ApproversRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/approvers/item/index.ts b/src/security/subjectRightsRequests/item/approvers/item/index.ts index b68ec03d5b7..39b354ad27e 100644 --- a/src/security/subjectRightsRequests/item/approvers/item/index.ts +++ b/src/security/subjectRightsRequests/item/approvers/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserItemRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts b/src/security/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts index fa6399a3968..487aea00087 100644 --- a/src/security/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts +++ b/src/security/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts b/src/security/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts index 0ca69d31993..d84167c637d 100644 --- a/src/security/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts +++ b/src/security/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts b/src/security/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts index ca877d8a724..e7c01509640 100644 --- a/src/security/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts +++ b/src/security/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/collaborators/count/index.ts b/src/security/subjectRightsRequests/item/collaborators/count/index.ts index 281912a2622..30a3a567289 100644 --- a/src/security/subjectRightsRequests/item/collaborators/count/index.ts +++ b/src/security/subjectRightsRequests/item/collaborators/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/collaborators/index.ts b/src/security/subjectRightsRequests/item/collaborators/index.ts index 24a45b7bd91..724054a4902 100644 --- a/src/security/subjectRightsRequests/item/collaborators/index.ts +++ b/src/security/subjectRightsRequests/item/collaborators/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CollaboratorsRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/collaborators/item/index.ts b/src/security/subjectRightsRequests/item/collaborators/item/index.ts index d9743b0dc4f..46cc8f57113 100644 --- a/src/security/subjectRightsRequests/item/collaborators/item/index.ts +++ b/src/security/subjectRightsRequests/item/collaborators/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserItemRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts b/src/security/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts index a3c3b808c32..aa66e15a6a2 100644 --- a/src/security/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts +++ b/src/security/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts b/src/security/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts index 7e6f20b1112..ab7aaa4d886 100644 --- a/src/security/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts +++ b/src/security/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts b/src/security/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts index 1b1b973da92..714511d8cbd 100644 --- a/src/security/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts +++ b/src/security/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/getFinalAttachment/index.ts b/src/security/subjectRightsRequests/item/getFinalAttachment/index.ts index 880dde4dbb9..94ea3d387ac 100644 --- a/src/security/subjectRightsRequests/item/getFinalAttachment/index.ts +++ b/src/security/subjectRightsRequests/item/getFinalAttachment/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/getFinalReport/index.ts b/src/security/subjectRightsRequests/item/getFinalReport/index.ts index 24e81633643..2f6d6fc5be7 100644 --- a/src/security/subjectRightsRequests/item/getFinalReport/index.ts +++ b/src/security/subjectRightsRequests/item/getFinalReport/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/index.ts b/src/security/subjectRightsRequests/item/index.ts index 42880982d4a..2bce800b617 100644 --- a/src/security/subjectRightsRequests/item/index.ts +++ b/src/security/subjectRightsRequests/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSubjectRightsRequestFromDiscriminatorValue, deserializeIntoSubjectRightsRequest, serializeSubjectRightsRequest, type SubjectRightsRequest } from '../../../models/subjectRightsRequest'; -import { ApproversRequestBuilder } from './approvers/'; -import { CollaboratorsRequestBuilder } from './collaborators/'; -import { GetFinalAttachmentRequestBuilder } from './getFinalAttachment/'; -import { GetFinalReportRequestBuilder } from './getFinalReport/'; -import { NotesRequestBuilder } from './notes/'; -import { TeamRequestBuilder } from './team/'; +import { ApproversRequestBuilder } from './approvers'; +import { CollaboratorsRequestBuilder } from './collaborators'; +import { GetFinalAttachmentRequestBuilder } from './getFinalAttachment'; +import { GetFinalReportRequestBuilder } from './getFinalReport'; +import { NotesRequestBuilder } from './notes'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubjectRightsRequestItemRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/notes/count/index.ts b/src/security/subjectRightsRequests/item/notes/count/index.ts index 4ebf417389b..0692c130498 100644 --- a/src/security/subjectRightsRequests/item/notes/count/index.ts +++ b/src/security/subjectRightsRequests/item/notes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/notes/index.ts b/src/security/subjectRightsRequests/item/notes/index.ts index bf90d154d92..8b555f7e4ed 100644 --- a/src/security/subjectRightsRequests/item/notes/index.ts +++ b/src/security/subjectRightsRequests/item/notes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthoredNoteCollectionResponse } from '../../../../models/'; +import { type AuthoredNoteCollectionResponse } from '../../../../models'; import { createAuthoredNoteFromDiscriminatorValue, deserializeIntoAuthoredNote, serializeAuthoredNote, type AuthoredNote } from '../../../../models/authoredNote'; import { createAuthoredNoteCollectionResponseFromDiscriminatorValue } from '../../../../models/authoredNoteCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthoredNoteItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthoredNoteItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotesRequestBuilderGetQueryParameters { diff --git a/src/security/subjectRightsRequests/item/notes/item/index.ts b/src/security/subjectRightsRequests/item/notes/item/index.ts index bcee8dc84f4..867ae75b104 100644 --- a/src/security/subjectRightsRequests/item/notes/item/index.ts +++ b/src/security/subjectRightsRequests/item/notes/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthoredNoteFromDiscriminatorValue, deserializeIntoAuthoredNote, serializeAuthoredNote, type AuthoredNote } from '../../../../../models/authoredNote'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/subjectRightsRequests/item/team/index.ts b/src/security/subjectRightsRequests/item/team/index.ts index 48fff7029ab..27fd385dfef 100644 --- a/src/security/subjectRightsRequests/item/team/index.ts +++ b/src/security/subjectRightsRequests/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type Team } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/articleIndicators/count/index.ts b/src/security/threatIntelligence/articleIndicators/count/index.ts index bdc6beb9864..fc21a438439 100644 --- a/src/security/threatIntelligence/articleIndicators/count/index.ts +++ b/src/security/threatIntelligence/articleIndicators/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/articleIndicators/index.ts b/src/security/threatIntelligence/articleIndicators/index.ts index 5fe53a38be2..b1b22acbd24 100644 --- a/src/security/threatIntelligence/articleIndicators/index.ts +++ b/src/security/threatIntelligence/articleIndicators/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type ArticleIndicatorCollectionResponse } from '../../../models/security/'; +import { type ArticleIndicatorCollectionResponse } from '../../../models/security'; import { createArticleIndicatorFromDiscriminatorValue, deserializeIntoArticleIndicator, serializeArticleIndicator, type ArticleIndicator } from '../../../models/security/articleIndicator'; import { createArticleIndicatorCollectionResponseFromDiscriminatorValue } from '../../../models/security/articleIndicatorCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ArticleIndicatorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ArticleIndicatorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ArticleIndicatorsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/articleIndicators/item/artifact/index.ts b/src/security/threatIntelligence/articleIndicators/item/artifact/index.ts index 31f3d1d0d63..9acb9d7f3bf 100644 --- a/src/security/threatIntelligence/articleIndicators/item/artifact/index.ts +++ b/src/security/threatIntelligence/articleIndicators/item/artifact/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Artifact } from '../../../../../models/security/'; +import { type Artifact } from '../../../../../models/security'; import { createArtifactFromDiscriminatorValue } from '../../../../../models/security/artifact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/articleIndicators/item/index.ts b/src/security/threatIntelligence/articleIndicators/item/index.ts index aad89cb353e..379a009f824 100644 --- a/src/security/threatIntelligence/articleIndicators/item/index.ts +++ b/src/security/threatIntelligence/articleIndicators/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createArticleIndicatorFromDiscriminatorValue, deserializeIntoArticleIndicator, serializeArticleIndicator, type ArticleIndicator } from '../../../../models/security/articleIndicator'; -import { ArtifactRequestBuilder } from './artifact/'; +import { ArtifactRequestBuilder } from './artifact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ArticleIndicatorItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/articles/count/index.ts b/src/security/threatIntelligence/articles/count/index.ts index cca48bea587..2b983086afe 100644 --- a/src/security/threatIntelligence/articles/count/index.ts +++ b/src/security/threatIntelligence/articles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/articles/index.ts b/src/security/threatIntelligence/articles/index.ts index 00b2b352b64..66cfed71776 100644 --- a/src/security/threatIntelligence/articles/index.ts +++ b/src/security/threatIntelligence/articles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type ArticleCollectionResponse } from '../../../models/security/'; +import { type ArticleCollectionResponse } from '../../../models/security'; import { createArticleFromDiscriminatorValue, deserializeIntoArticle, serializeArticle, type Article } from '../../../models/security/article'; import { createArticleCollectionResponseFromDiscriminatorValue } from '../../../models/security/articleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ArticleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ArticleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ArticlesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/articles/item/index.ts b/src/security/threatIntelligence/articles/item/index.ts index 5e20126201b..d459c95f1be 100644 --- a/src/security/threatIntelligence/articles/item/index.ts +++ b/src/security/threatIntelligence/articles/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createArticleFromDiscriminatorValue, deserializeIntoArticle, serializeArticle, type Article } from '../../../../models/security/article'; -import { IndicatorsRequestBuilder } from './indicators/'; +import { IndicatorsRequestBuilder } from './indicators'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ArticleItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/articles/item/indicators/count/index.ts b/src/security/threatIntelligence/articles/item/indicators/count/index.ts index 60e85649eee..46810a2f3db 100644 --- a/src/security/threatIntelligence/articles/item/indicators/count/index.ts +++ b/src/security/threatIntelligence/articles/item/indicators/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/articles/item/indicators/index.ts b/src/security/threatIntelligence/articles/item/indicators/index.ts index d48e586a506..20721e9e04b 100644 --- a/src/security/threatIntelligence/articles/item/indicators/index.ts +++ b/src/security/threatIntelligence/articles/item/indicators/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type ArticleIndicatorCollectionResponse } from '../../../../../models/security/'; +import { type ArticleIndicatorCollectionResponse } from '../../../../../models/security'; import { createArticleIndicatorCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/articleIndicatorCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ArticleIndicatorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ArticleIndicatorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IndicatorsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/articles/item/indicators/item/index.ts b/src/security/threatIntelligence/articles/item/indicators/item/index.ts index 1ccd0d2b175..7e8ff7fd40d 100644 --- a/src/security/threatIntelligence/articles/item/indicators/item/index.ts +++ b/src/security/threatIntelligence/articles/item/indicators/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type ArticleIndicator } from '../../../../../../models/security/'; +import { type ArticleIndicator } from '../../../../../../models/security'; import { createArticleIndicatorFromDiscriminatorValue } from '../../../../../../models/security/articleIndicator'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostComponents/count/index.ts b/src/security/threatIntelligence/hostComponents/count/index.ts index f29e800a6a9..26ef8bbded0 100644 --- a/src/security/threatIntelligence/hostComponents/count/index.ts +++ b/src/security/threatIntelligence/hostComponents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostComponents/index.ts b/src/security/threatIntelligence/hostComponents/index.ts index fd15e430f5a..bd8e334291a 100644 --- a/src/security/threatIntelligence/hostComponents/index.ts +++ b/src/security/threatIntelligence/hostComponents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type HostComponentCollectionResponse } from '../../../models/security/'; +import { type HostComponentCollectionResponse } from '../../../models/security'; import { createHostComponentFromDiscriminatorValue, deserializeIntoHostComponent, serializeHostComponent, type HostComponent } from '../../../models/security/hostComponent'; import { createHostComponentCollectionResponseFromDiscriminatorValue } from '../../../models/security/hostComponentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostComponentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostComponentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostComponentsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostComponents/item/host/index.ts b/src/security/threatIntelligence/hostComponents/item/host/index.ts index ef7151a33b2..fbd093e44fb 100644 --- a/src/security/threatIntelligence/hostComponents/item/host/index.ts +++ b/src/security/threatIntelligence/hostComponents/item/host/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostComponents/item/index.ts b/src/security/threatIntelligence/hostComponents/item/index.ts index 10ef2c28814..f7b61b40564 100644 --- a/src/security/threatIntelligence/hostComponents/item/index.ts +++ b/src/security/threatIntelligence/hostComponents/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createHostComponentFromDiscriminatorValue, deserializeIntoHostComponent, serializeHostComponent, type HostComponent } from '../../../../models/security/hostComponent'; -import { HostRequestBuilder } from './host/'; +import { HostRequestBuilder } from './host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostComponentItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostCookies/count/index.ts b/src/security/threatIntelligence/hostCookies/count/index.ts index 1b1a889d008..02ae9221ce0 100644 --- a/src/security/threatIntelligence/hostCookies/count/index.ts +++ b/src/security/threatIntelligence/hostCookies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostCookies/index.ts b/src/security/threatIntelligence/hostCookies/index.ts index 6b883af30ec..d2387327ca6 100644 --- a/src/security/threatIntelligence/hostCookies/index.ts +++ b/src/security/threatIntelligence/hostCookies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type HostCookieCollectionResponse } from '../../../models/security/'; +import { type HostCookieCollectionResponse } from '../../../models/security'; import { createHostCookieFromDiscriminatorValue, deserializeIntoHostCookie, serializeHostCookie, type HostCookie } from '../../../models/security/hostCookie'; import { createHostCookieCollectionResponseFromDiscriminatorValue } from '../../../models/security/hostCookieCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostCookieItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostCookieItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostCookiesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostCookies/item/host/index.ts b/src/security/threatIntelligence/hostCookies/item/host/index.ts index c1f3f18e024..2052a4235f4 100644 --- a/src/security/threatIntelligence/hostCookies/item/host/index.ts +++ b/src/security/threatIntelligence/hostCookies/item/host/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostCookies/item/index.ts b/src/security/threatIntelligence/hostCookies/item/index.ts index 38445eabdb5..9fbdd451e80 100644 --- a/src/security/threatIntelligence/hostCookies/item/index.ts +++ b/src/security/threatIntelligence/hostCookies/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createHostCookieFromDiscriminatorValue, deserializeIntoHostCookie, serializeHostCookie, type HostCookie } from '../../../../models/security/hostCookie'; -import { HostRequestBuilder } from './host/'; +import { HostRequestBuilder } from './host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostCookieItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostPairs/count/index.ts b/src/security/threatIntelligence/hostPairs/count/index.ts index 6e9a0dcde3f..1a8c84aefef 100644 --- a/src/security/threatIntelligence/hostPairs/count/index.ts +++ b/src/security/threatIntelligence/hostPairs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostPairs/index.ts b/src/security/threatIntelligence/hostPairs/index.ts index 592830b01d5..79c23ceca03 100644 --- a/src/security/threatIntelligence/hostPairs/index.ts +++ b/src/security/threatIntelligence/hostPairs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type HostPairCollectionResponse } from '../../../models/security/'; +import { type HostPairCollectionResponse } from '../../../models/security'; import { createHostPairFromDiscriminatorValue, deserializeIntoHostPair, serializeHostPair, type HostPair } from '../../../models/security/hostPair'; import { createHostPairCollectionResponseFromDiscriminatorValue } from '../../../models/security/hostPairCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostPairItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostPairItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostPairsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostPairs/item/childHost/index.ts b/src/security/threatIntelligence/hostPairs/item/childHost/index.ts index 61afef93703..d8dd775bbae 100644 --- a/src/security/threatIntelligence/hostPairs/item/childHost/index.ts +++ b/src/security/threatIntelligence/hostPairs/item/childHost/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostPairs/item/index.ts b/src/security/threatIntelligence/hostPairs/item/index.ts index 0641868a6fa..78f7e379356 100644 --- a/src/security/threatIntelligence/hostPairs/item/index.ts +++ b/src/security/threatIntelligence/hostPairs/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createHostPairFromDiscriminatorValue, deserializeIntoHostPair, serializeHostPair, type HostPair } from '../../../../models/security/hostPair'; -import { ChildHostRequestBuilder } from './childHost/'; -import { ParentHostRequestBuilder } from './parentHost/'; +import { ChildHostRequestBuilder } from './childHost'; +import { ParentHostRequestBuilder } from './parentHost'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostPairItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostPairs/item/parentHost/index.ts b/src/security/threatIntelligence/hostPairs/item/parentHost/index.ts index 57e3499499e..cf39c329952 100644 --- a/src/security/threatIntelligence/hostPairs/item/parentHost/index.ts +++ b/src/security/threatIntelligence/hostPairs/item/parentHost/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostPorts/count/index.ts b/src/security/threatIntelligence/hostPorts/count/index.ts index 30b7c92ce26..14f59c72e24 100644 --- a/src/security/threatIntelligence/hostPorts/count/index.ts +++ b/src/security/threatIntelligence/hostPorts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostPorts/index.ts b/src/security/threatIntelligence/hostPorts/index.ts index ab8494fbab0..922df38d0fd 100644 --- a/src/security/threatIntelligence/hostPorts/index.ts +++ b/src/security/threatIntelligence/hostPorts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type HostPortCollectionResponse } from '../../../models/security/'; +import { type HostPortCollectionResponse } from '../../../models/security'; import { createHostPortFromDiscriminatorValue, deserializeIntoHostPort, serializeHostPort, type HostPort } from '../../../models/security/hostPort'; import { createHostPortCollectionResponseFromDiscriminatorValue } from '../../../models/security/hostPortCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostPortItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostPortItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostPortsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostPorts/item/host/index.ts b/src/security/threatIntelligence/hostPorts/item/host/index.ts index e03d3ff36c6..0f217788edf 100644 --- a/src/security/threatIntelligence/hostPorts/item/host/index.ts +++ b/src/security/threatIntelligence/hostPorts/item/host/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostPorts/item/index.ts b/src/security/threatIntelligence/hostPorts/item/index.ts index ba8ee4faf7c..f352d6b2478 100644 --- a/src/security/threatIntelligence/hostPorts/item/index.ts +++ b/src/security/threatIntelligence/hostPorts/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createHostPortFromDiscriminatorValue, deserializeIntoHostPort, serializeHostPort, type HostPort } from '../../../../models/security/hostPort'; -import { HostRequestBuilder } from './host/'; -import { MostRecentSslCertificateRequestBuilder } from './mostRecentSslCertificate/'; +import { HostRequestBuilder } from './host'; +import { MostRecentSslCertificateRequestBuilder } from './mostRecentSslCertificate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostPortItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostPorts/item/mostRecentSslCertificate/index.ts b/src/security/threatIntelligence/hostPorts/item/mostRecentSslCertificate/index.ts index 82a893171f6..6a62a773187 100644 --- a/src/security/threatIntelligence/hostPorts/item/mostRecentSslCertificate/index.ts +++ b/src/security/threatIntelligence/hostPorts/item/mostRecentSslCertificate/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type SslCertificate } from '../../../../../models/security/'; +import { type SslCertificate } from '../../../../../models/security'; import { createSslCertificateFromDiscriminatorValue } from '../../../../../models/security/sslCertificate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostSslCertificates/count/index.ts b/src/security/threatIntelligence/hostSslCertificates/count/index.ts index 9d26a6a0146..88a78ac69db 100644 --- a/src/security/threatIntelligence/hostSslCertificates/count/index.ts +++ b/src/security/threatIntelligence/hostSslCertificates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostSslCertificates/index.ts b/src/security/threatIntelligence/hostSslCertificates/index.ts index 22da41c1dcf..6219b1e9a0d 100644 --- a/src/security/threatIntelligence/hostSslCertificates/index.ts +++ b/src/security/threatIntelligence/hostSslCertificates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type HostSslCertificateCollectionResponse } from '../../../models/security/'; +import { type HostSslCertificateCollectionResponse } from '../../../models/security'; import { createHostSslCertificateFromDiscriminatorValue, deserializeIntoHostSslCertificate, serializeHostSslCertificate, type HostSslCertificate } from '../../../models/security/hostSslCertificate'; import { createHostSslCertificateCollectionResponseFromDiscriminatorValue } from '../../../models/security/hostSslCertificateCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostSslCertificateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostSslCertificateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostSslCertificatesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostSslCertificates/item/host/index.ts b/src/security/threatIntelligence/hostSslCertificates/item/host/index.ts index 8b2ab2f7ce8..c8c6462d359 100644 --- a/src/security/threatIntelligence/hostSslCertificates/item/host/index.ts +++ b/src/security/threatIntelligence/hostSslCertificates/item/host/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostSslCertificates/item/index.ts b/src/security/threatIntelligence/hostSslCertificates/item/index.ts index 0e65e6a9f86..36ac807d721 100644 --- a/src/security/threatIntelligence/hostSslCertificates/item/index.ts +++ b/src/security/threatIntelligence/hostSslCertificates/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createHostSslCertificateFromDiscriminatorValue, deserializeIntoHostSslCertificate, serializeHostSslCertificate, type HostSslCertificate } from '../../../../models/security/hostSslCertificate'; -import { HostRequestBuilder } from './host/'; -import { SslCertificateRequestBuilder } from './sslCertificate/'; +import { HostRequestBuilder } from './host'; +import { SslCertificateRequestBuilder } from './sslCertificate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostSslCertificateItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostSslCertificates/item/sslCertificate/index.ts b/src/security/threatIntelligence/hostSslCertificates/item/sslCertificate/index.ts index 243251ad722..fae71ba5d81 100644 --- a/src/security/threatIntelligence/hostSslCertificates/item/sslCertificate/index.ts +++ b/src/security/threatIntelligence/hostSslCertificates/item/sslCertificate/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type SslCertificate } from '../../../../../models/security/'; +import { type SslCertificate } from '../../../../../models/security'; import { createSslCertificateFromDiscriminatorValue } from '../../../../../models/security/sslCertificate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostTrackers/count/index.ts b/src/security/threatIntelligence/hostTrackers/count/index.ts index ddff4ebff43..e7008b38182 100644 --- a/src/security/threatIntelligence/hostTrackers/count/index.ts +++ b/src/security/threatIntelligence/hostTrackers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostTrackers/index.ts b/src/security/threatIntelligence/hostTrackers/index.ts index 12529c357a8..ba42a0881e3 100644 --- a/src/security/threatIntelligence/hostTrackers/index.ts +++ b/src/security/threatIntelligence/hostTrackers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type HostTrackerCollectionResponse } from '../../../models/security/'; +import { type HostTrackerCollectionResponse } from '../../../models/security'; import { createHostTrackerFromDiscriminatorValue, deserializeIntoHostTracker, serializeHostTracker, type HostTracker } from '../../../models/security/hostTracker'; import { createHostTrackerCollectionResponseFromDiscriminatorValue } from '../../../models/security/hostTrackerCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostTrackerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostTrackerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostTrackersRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hostTrackers/item/host/index.ts b/src/security/threatIntelligence/hostTrackers/item/host/index.ts index d19dcc938fc..3cf7f49bedf 100644 --- a/src/security/threatIntelligence/hostTrackers/item/host/index.ts +++ b/src/security/threatIntelligence/hostTrackers/item/host/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hostTrackers/item/index.ts b/src/security/threatIntelligence/hostTrackers/item/index.ts index 02ed7028a00..2b2bffa5110 100644 --- a/src/security/threatIntelligence/hostTrackers/item/index.ts +++ b/src/security/threatIntelligence/hostTrackers/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createHostTrackerFromDiscriminatorValue, deserializeIntoHostTracker, serializeHostTracker, type HostTracker } from '../../../../models/security/hostTracker'; -import { HostRequestBuilder } from './host/'; +import { HostRequestBuilder } from './host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostTrackerItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/count/index.ts b/src/security/threatIntelligence/hosts/count/index.ts index 7ce1c4b1086..be057c612d0 100644 --- a/src/security/threatIntelligence/hosts/count/index.ts +++ b/src/security/threatIntelligence/hosts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/index.ts b/src/security/threatIntelligence/hosts/index.ts index 9d0f91fb4fd..ebc6962e707 100644 --- a/src/security/threatIntelligence/hosts/index.ts +++ b/src/security/threatIntelligence/hosts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type HostCollectionResponse } from '../../../models/security/'; +import { type HostCollectionResponse } from '../../../models/security'; import { createHostFromDiscriminatorValue, deserializeIntoHost, serializeHost, type Host } from '../../../models/security/host'; import { createHostCollectionResponseFromDiscriminatorValue } from '../../../models/security/hostCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/childHostPairs/count/index.ts b/src/security/threatIntelligence/hosts/item/childHostPairs/count/index.ts index 793d86ce7d7..e8287e09ac0 100644 --- a/src/security/threatIntelligence/hosts/item/childHostPairs/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/childHostPairs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/childHostPairs/index.ts b/src/security/threatIntelligence/hosts/item/childHostPairs/index.ts index 7911a11648f..6c33c968ea6 100644 --- a/src/security/threatIntelligence/hosts/item/childHostPairs/index.ts +++ b/src/security/threatIntelligence/hosts/item/childHostPairs/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostPairCollectionResponse } from '../../../../../models/security/'; +import { type HostPairCollectionResponse } from '../../../../../models/security'; import { createHostPairCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostPairCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostPairItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostPairItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildHostPairsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/childHostPairs/item/index.ts b/src/security/threatIntelligence/hosts/item/childHostPairs/item/index.ts index b611f83911c..8a09a6e5d7d 100644 --- a/src/security/threatIntelligence/hosts/item/childHostPairs/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/childHostPairs/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type HostPair } from '../../../../../../models/security/'; +import { type HostPair } from '../../../../../../models/security'; import { createHostPairFromDiscriminatorValue } from '../../../../../../models/security/hostPair'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/components/count/index.ts b/src/security/threatIntelligence/hosts/item/components/count/index.ts index c95aef0af22..39830cededb 100644 --- a/src/security/threatIntelligence/hosts/item/components/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/components/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/components/index.ts b/src/security/threatIntelligence/hosts/item/components/index.ts index 28c801d224b..f8b13444ede 100644 --- a/src/security/threatIntelligence/hosts/item/components/index.ts +++ b/src/security/threatIntelligence/hosts/item/components/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostComponentCollectionResponse } from '../../../../../models/security/'; +import { type HostComponentCollectionResponse } from '../../../../../models/security'; import { createHostComponentCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostComponentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostComponentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostComponentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ComponentsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/components/item/index.ts b/src/security/threatIntelligence/hosts/item/components/item/index.ts index fe31cd6a07c..46a7c040acd 100644 --- a/src/security/threatIntelligence/hosts/item/components/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/components/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type HostComponent } from '../../../../../../models/security/'; +import { type HostComponent } from '../../../../../../models/security'; import { createHostComponentFromDiscriminatorValue } from '../../../../../../models/security/hostComponent'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/cookies/count/index.ts b/src/security/threatIntelligence/hosts/item/cookies/count/index.ts index 4df2ab550d4..3aa2f84b9d3 100644 --- a/src/security/threatIntelligence/hosts/item/cookies/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/cookies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/cookies/index.ts b/src/security/threatIntelligence/hosts/item/cookies/index.ts index 6264f673507..9f9aa261683 100644 --- a/src/security/threatIntelligence/hosts/item/cookies/index.ts +++ b/src/security/threatIntelligence/hosts/item/cookies/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostCookieCollectionResponse } from '../../../../../models/security/'; +import { type HostCookieCollectionResponse } from '../../../../../models/security'; import { createHostCookieCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostCookieCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostCookieItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostCookieItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CookiesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/cookies/item/index.ts b/src/security/threatIntelligence/hosts/item/cookies/item/index.ts index a85f8c0bc94..c78327a3882 100644 --- a/src/security/threatIntelligence/hosts/item/cookies/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/cookies/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type HostCookie } from '../../../../../../models/security/'; +import { type HostCookie } from '../../../../../../models/security'; import { createHostCookieFromDiscriminatorValue } from '../../../../../../models/security/hostCookie'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/hostPairs/count/index.ts b/src/security/threatIntelligence/hosts/item/hostPairs/count/index.ts index 7d30e42b48a..7476eaed0b8 100644 --- a/src/security/threatIntelligence/hosts/item/hostPairs/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/hostPairs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/hostPairs/index.ts b/src/security/threatIntelligence/hosts/item/hostPairs/index.ts index f77c39dc183..0a682af18ed 100644 --- a/src/security/threatIntelligence/hosts/item/hostPairs/index.ts +++ b/src/security/threatIntelligence/hosts/item/hostPairs/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostPairCollectionResponse } from '../../../../../models/security/'; +import { type HostPairCollectionResponse } from '../../../../../models/security'; import { createHostPairCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostPairCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostPairItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostPairItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostPairsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/hostPairs/item/index.ts b/src/security/threatIntelligence/hosts/item/hostPairs/item/index.ts index 8d3a45deed4..a4da3559944 100644 --- a/src/security/threatIntelligence/hosts/item/hostPairs/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/hostPairs/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type HostPair } from '../../../../../../models/security/'; +import { type HostPair } from '../../../../../../models/security'; import { createHostPairFromDiscriminatorValue } from '../../../../../../models/security/hostPair'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/index.ts b/src/security/threatIntelligence/hosts/item/index.ts index a5e455d0cce..a9e8cea9a1c 100644 --- a/src/security/threatIntelligence/hosts/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/index.ts @@ -1,22 +1,22 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createHostFromDiscriminatorValue, deserializeIntoHost, serializeHost, type Host } from '../../../../models/security/host'; -import { ChildHostPairsRequestBuilder } from './childHostPairs/'; -import { ComponentsRequestBuilder } from './components/'; -import { CookiesRequestBuilder } from './cookies/'; -import { HostPairsRequestBuilder } from './hostPairs/'; -import { ParentHostPairsRequestBuilder } from './parentHostPairs/'; -import { PassiveDnsRequestBuilder } from './passiveDns/'; -import { PassiveDnsReverseRequestBuilder } from './passiveDnsReverse/'; -import { PortsRequestBuilder } from './ports/'; -import { ReputationRequestBuilder } from './reputation/'; -import { SslCertificatesRequestBuilder } from './sslCertificates/'; -import { SubdomainsRequestBuilder } from './subdomains/'; -import { TrackersRequestBuilder } from './trackers/'; -import { WhoisRequestBuilder } from './whois/'; +import { ChildHostPairsRequestBuilder } from './childHostPairs'; +import { ComponentsRequestBuilder } from './components'; +import { CookiesRequestBuilder } from './cookies'; +import { HostPairsRequestBuilder } from './hostPairs'; +import { ParentHostPairsRequestBuilder } from './parentHostPairs'; +import { PassiveDnsRequestBuilder } from './passiveDns'; +import { PassiveDnsReverseRequestBuilder } from './passiveDnsReverse'; +import { PortsRequestBuilder } from './ports'; +import { ReputationRequestBuilder } from './reputation'; +import { SslCertificatesRequestBuilder } from './sslCertificates'; +import { SubdomainsRequestBuilder } from './subdomains'; +import { TrackersRequestBuilder } from './trackers'; +import { WhoisRequestBuilder } from './whois'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/parentHostPairs/count/index.ts b/src/security/threatIntelligence/hosts/item/parentHostPairs/count/index.ts index 6f9f42bd64c..04075bd16ac 100644 --- a/src/security/threatIntelligence/hosts/item/parentHostPairs/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/parentHostPairs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/parentHostPairs/index.ts b/src/security/threatIntelligence/hosts/item/parentHostPairs/index.ts index eddb21f0b9c..74d763ac5b4 100644 --- a/src/security/threatIntelligence/hosts/item/parentHostPairs/index.ts +++ b/src/security/threatIntelligence/hosts/item/parentHostPairs/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostPairCollectionResponse } from '../../../../../models/security/'; +import { type HostPairCollectionResponse } from '../../../../../models/security'; import { createHostPairCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostPairCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostPairItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostPairItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ParentHostPairsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/parentHostPairs/item/index.ts b/src/security/threatIntelligence/hosts/item/parentHostPairs/item/index.ts index 02bdbf8fcae..93dba854fed 100644 --- a/src/security/threatIntelligence/hosts/item/parentHostPairs/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/parentHostPairs/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type HostPair } from '../../../../../../models/security/'; +import { type HostPair } from '../../../../../../models/security'; import { createHostPairFromDiscriminatorValue } from '../../../../../../models/security/hostPair'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/passiveDns/count/index.ts b/src/security/threatIntelligence/hosts/item/passiveDns/count/index.ts index 859f49866f7..76b301c3294 100644 --- a/src/security/threatIntelligence/hosts/item/passiveDns/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/passiveDns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/passiveDns/index.ts b/src/security/threatIntelligence/hosts/item/passiveDns/index.ts index 557c26b18b1..ddf5c390583 100644 --- a/src/security/threatIntelligence/hosts/item/passiveDns/index.ts +++ b/src/security/threatIntelligence/hosts/item/passiveDns/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type PassiveDnsRecordCollectionResponse } from '../../../../../models/security/'; +import { type PassiveDnsRecordCollectionResponse } from '../../../../../models/security'; import { createPassiveDnsRecordCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/passiveDnsRecordCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PassiveDnsRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PassiveDnsRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PassiveDnsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/passiveDns/item/index.ts b/src/security/threatIntelligence/hosts/item/passiveDns/item/index.ts index 3ee26569c9d..71cc5746890 100644 --- a/src/security/threatIntelligence/hosts/item/passiveDns/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/passiveDns/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type PassiveDnsRecord } from '../../../../../../models/security/'; +import { type PassiveDnsRecord } from '../../../../../../models/security'; import { createPassiveDnsRecordFromDiscriminatorValue } from '../../../../../../models/security/passiveDnsRecord'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/passiveDnsReverse/count/index.ts b/src/security/threatIntelligence/hosts/item/passiveDnsReverse/count/index.ts index be00877a860..6e5de7fe41c 100644 --- a/src/security/threatIntelligence/hosts/item/passiveDnsReverse/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/passiveDnsReverse/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/passiveDnsReverse/index.ts b/src/security/threatIntelligence/hosts/item/passiveDnsReverse/index.ts index db112c18f8c..c3b2bebe813 100644 --- a/src/security/threatIntelligence/hosts/item/passiveDnsReverse/index.ts +++ b/src/security/threatIntelligence/hosts/item/passiveDnsReverse/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type PassiveDnsRecordCollectionResponse } from '../../../../../models/security/'; +import { type PassiveDnsRecordCollectionResponse } from '../../../../../models/security'; import { createPassiveDnsRecordCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/passiveDnsRecordCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PassiveDnsRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PassiveDnsRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PassiveDnsReverseRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/passiveDnsReverse/item/index.ts b/src/security/threatIntelligence/hosts/item/passiveDnsReverse/item/index.ts index 888ad14c70b..1b5aa090bc5 100644 --- a/src/security/threatIntelligence/hosts/item/passiveDnsReverse/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/passiveDnsReverse/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type PassiveDnsRecord } from '../../../../../../models/security/'; +import { type PassiveDnsRecord } from '../../../../../../models/security'; import { createPassiveDnsRecordFromDiscriminatorValue } from '../../../../../../models/security/passiveDnsRecord'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/ports/count/index.ts b/src/security/threatIntelligence/hosts/item/ports/count/index.ts index fd157615d0e..540ba7acdaf 100644 --- a/src/security/threatIntelligence/hosts/item/ports/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/ports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/ports/index.ts b/src/security/threatIntelligence/hosts/item/ports/index.ts index daeeb5d926b..57a5db27e5a 100644 --- a/src/security/threatIntelligence/hosts/item/ports/index.ts +++ b/src/security/threatIntelligence/hosts/item/ports/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostPortCollectionResponse } from '../../../../../models/security/'; +import { type HostPortCollectionResponse } from '../../../../../models/security'; import { createHostPortCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostPortCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostPortItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostPortItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PortsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/ports/item/index.ts b/src/security/threatIntelligence/hosts/item/ports/item/index.ts index e5ef9d047ef..85adaf9e513 100644 --- a/src/security/threatIntelligence/hosts/item/ports/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/ports/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type HostPort } from '../../../../../../models/security/'; +import { type HostPort } from '../../../../../../models/security'; import { createHostPortFromDiscriminatorValue } from '../../../../../../models/security/hostPort'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/reputation/index.ts b/src/security/threatIntelligence/hosts/item/reputation/index.ts index 0a76a5a6974..ff290e9b645 100644 --- a/src/security/threatIntelligence/hosts/item/reputation/index.ts +++ b/src/security/threatIntelligence/hosts/item/reputation/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createHostReputationFromDiscriminatorValue, deserializeIntoHostReputation, serializeHostReputation, type HostReputation } from '../../../../../models/security/hostReputation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/sslCertificates/count/index.ts b/src/security/threatIntelligence/hosts/item/sslCertificates/count/index.ts index f7d6e4f405b..bb7072acd36 100644 --- a/src/security/threatIntelligence/hosts/item/sslCertificates/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/sslCertificates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/sslCertificates/index.ts b/src/security/threatIntelligence/hosts/item/sslCertificates/index.ts index 1925daf2bb7..e5245001eb5 100644 --- a/src/security/threatIntelligence/hosts/item/sslCertificates/index.ts +++ b/src/security/threatIntelligence/hosts/item/sslCertificates/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostSslCertificateCollectionResponse } from '../../../../../models/security/'; +import { type HostSslCertificateCollectionResponse } from '../../../../../models/security'; import { createHostSslCertificateCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostSslCertificateCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostSslCertificateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostSslCertificateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SslCertificatesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/sslCertificates/item/index.ts b/src/security/threatIntelligence/hosts/item/sslCertificates/item/index.ts index d13830d904f..8298912d548 100644 --- a/src/security/threatIntelligence/hosts/item/sslCertificates/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/sslCertificates/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type HostSslCertificate } from '../../../../../../models/security/'; +import { type HostSslCertificate } from '../../../../../../models/security'; import { createHostSslCertificateFromDiscriminatorValue } from '../../../../../../models/security/hostSslCertificate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/subdomains/count/index.ts b/src/security/threatIntelligence/hosts/item/subdomains/count/index.ts index f5ad8df5b89..6a303504044 100644 --- a/src/security/threatIntelligence/hosts/item/subdomains/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/subdomains/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/subdomains/index.ts b/src/security/threatIntelligence/hosts/item/subdomains/index.ts index 546066631d2..5608315b867 100644 --- a/src/security/threatIntelligence/hosts/item/subdomains/index.ts +++ b/src/security/threatIntelligence/hosts/item/subdomains/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type SubdomainCollectionResponse } from '../../../../../models/security/'; +import { type SubdomainCollectionResponse } from '../../../../../models/security'; import { createSubdomainCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/subdomainCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubdomainItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubdomainItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubdomainsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/subdomains/item/index.ts b/src/security/threatIntelligence/hosts/item/subdomains/item/index.ts index 8af2b1f9588..dca953850bb 100644 --- a/src/security/threatIntelligence/hosts/item/subdomains/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/subdomains/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type Subdomain } from '../../../../../../models/security/'; +import { type Subdomain } from '../../../../../../models/security'; import { createSubdomainFromDiscriminatorValue } from '../../../../../../models/security/subdomain'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/trackers/count/index.ts b/src/security/threatIntelligence/hosts/item/trackers/count/index.ts index 8bd562c952b..33eba6a58cd 100644 --- a/src/security/threatIntelligence/hosts/item/trackers/count/index.ts +++ b/src/security/threatIntelligence/hosts/item/trackers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/trackers/index.ts b/src/security/threatIntelligence/hosts/item/trackers/index.ts index 0d3da17c7d9..ebecff05e5a 100644 --- a/src/security/threatIntelligence/hosts/item/trackers/index.ts +++ b/src/security/threatIntelligence/hosts/item/trackers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostTrackerCollectionResponse } from '../../../../../models/security/'; +import { type HostTrackerCollectionResponse } from '../../../../../models/security'; import { createHostTrackerCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostTrackerCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostTrackerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostTrackerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TrackersRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/hosts/item/trackers/item/index.ts b/src/security/threatIntelligence/hosts/item/trackers/item/index.ts index b2fb3a2f1b8..1241bcdd6f1 100644 --- a/src/security/threatIntelligence/hosts/item/trackers/item/index.ts +++ b/src/security/threatIntelligence/hosts/item/trackers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type HostTracker } from '../../../../../../models/security/'; +import { type HostTracker } from '../../../../../../models/security'; import { createHostTrackerFromDiscriminatorValue } from '../../../../../../models/security/hostTracker'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/hosts/item/whois/index.ts b/src/security/threatIntelligence/hosts/item/whois/index.ts index 85124b4b181..baaed720403 100644 --- a/src/security/threatIntelligence/hosts/item/whois/index.ts +++ b/src/security/threatIntelligence/hosts/item/whois/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type WhoisRecord } from '../../../../../models/security/'; +import { type WhoisRecord } from '../../../../../models/security'; import { createWhoisRecordFromDiscriminatorValue } from '../../../../../models/security/whoisRecord'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/index.ts b/src/security/threatIntelligence/index.ts index e67d68bed0e..cf23aaf2082 100644 --- a/src/security/threatIntelligence/index.ts +++ b/src/security/threatIntelligence/index.ts @@ -1,26 +1,26 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createThreatIntelligenceFromDiscriminatorValue, deserializeIntoThreatIntelligence, serializeThreatIntelligence, type ThreatIntelligence } from '../../models/security/threatIntelligence'; -import { ArticleIndicatorsRequestBuilder } from './articleIndicators/'; -import { ArticlesRequestBuilder } from './articles/'; -import { HostComponentsRequestBuilder } from './hostComponents/'; -import { HostCookiesRequestBuilder } from './hostCookies/'; -import { HostPairsRequestBuilder } from './hostPairs/'; -import { HostPortsRequestBuilder } from './hostPorts/'; -import { HostsRequestBuilder } from './hosts/'; -import { HostSslCertificatesRequestBuilder } from './hostSslCertificates/'; -import { HostTrackersRequestBuilder } from './hostTrackers/'; -import { IntelligenceProfileIndicatorsRequestBuilder } from './intelligenceProfileIndicators/'; -import { IntelProfilesRequestBuilder } from './intelProfiles/'; -import { PassiveDnsRecordsRequestBuilder } from './passiveDnsRecords/'; -import { SslCertificatesRequestBuilder } from './sslCertificates/'; -import { SubdomainsRequestBuilder } from './subdomains/'; -import { VulnerabilitiesRequestBuilder } from './vulnerabilities/'; -import { WhoisHistoryRecordsRequestBuilder } from './whoisHistoryRecords/'; -import { WhoisRecordsRequestBuilder } from './whoisRecords/'; +import { ArticleIndicatorsRequestBuilder } from './articleIndicators'; +import { ArticlesRequestBuilder } from './articles'; +import { HostComponentsRequestBuilder } from './hostComponents'; +import { HostCookiesRequestBuilder } from './hostCookies'; +import { HostPairsRequestBuilder } from './hostPairs'; +import { HostPortsRequestBuilder } from './hostPorts'; +import { HostsRequestBuilder } from './hosts'; +import { HostSslCertificatesRequestBuilder } from './hostSslCertificates'; +import { HostTrackersRequestBuilder } from './hostTrackers'; +import { IntelligenceProfileIndicatorsRequestBuilder } from './intelligenceProfileIndicators'; +import { IntelProfilesRequestBuilder } from './intelProfiles'; +import { PassiveDnsRecordsRequestBuilder } from './passiveDnsRecords'; +import { SslCertificatesRequestBuilder } from './sslCertificates'; +import { SubdomainsRequestBuilder } from './subdomains'; +import { VulnerabilitiesRequestBuilder } from './vulnerabilities'; +import { WhoisHistoryRecordsRequestBuilder } from './whoisHistoryRecords'; +import { WhoisRecordsRequestBuilder } from './whoisRecords'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ThreatIntelligenceRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/intelProfiles/count/index.ts b/src/security/threatIntelligence/intelProfiles/count/index.ts index d3cae2b8f0f..fe8f16d4682 100644 --- a/src/security/threatIntelligence/intelProfiles/count/index.ts +++ b/src/security/threatIntelligence/intelProfiles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/intelProfiles/index.ts b/src/security/threatIntelligence/intelProfiles/index.ts index 823baf5399d..b1af3aed5dd 100644 --- a/src/security/threatIntelligence/intelProfiles/index.ts +++ b/src/security/threatIntelligence/intelProfiles/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type IntelligenceProfileCollectionResponse } from '../../../models/security/'; +import { type IntelligenceProfileCollectionResponse } from '../../../models/security'; import { createIntelligenceProfileFromDiscriminatorValue, deserializeIntoIntelligenceProfile, serializeIntelligenceProfile, type IntelligenceProfile } from '../../../models/security/intelligenceProfile'; import { createIntelligenceProfileCollectionResponseFromDiscriminatorValue } from '../../../models/security/intelligenceProfileCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { IntelligenceProfileItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IntelligenceProfileItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IntelProfilesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/intelProfiles/item/index.ts b/src/security/threatIntelligence/intelProfiles/item/index.ts index bd5e649086a..e6f49b800bd 100644 --- a/src/security/threatIntelligence/intelProfiles/item/index.ts +++ b/src/security/threatIntelligence/intelProfiles/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createIntelligenceProfileFromDiscriminatorValue, deserializeIntoIntelligenceProfile, serializeIntelligenceProfile, type IntelligenceProfile } from '../../../../models/security/intelligenceProfile'; -import { IndicatorsRequestBuilder } from './indicators/'; +import { IndicatorsRequestBuilder } from './indicators'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IntelligenceProfileItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/intelProfiles/item/indicators/count/index.ts b/src/security/threatIntelligence/intelProfiles/item/indicators/count/index.ts index d8e2b94fb5f..69d2e5aba78 100644 --- a/src/security/threatIntelligence/intelProfiles/item/indicators/count/index.ts +++ b/src/security/threatIntelligence/intelProfiles/item/indicators/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/intelProfiles/item/indicators/index.ts b/src/security/threatIntelligence/intelProfiles/item/indicators/index.ts index d4b73c0d046..e6edcdfaaa8 100644 --- a/src/security/threatIntelligence/intelProfiles/item/indicators/index.ts +++ b/src/security/threatIntelligence/intelProfiles/item/indicators/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type IntelligenceProfileIndicatorCollectionResponse } from '../../../../../models/security/'; +import { type IntelligenceProfileIndicatorCollectionResponse } from '../../../../../models/security'; import { createIntelligenceProfileIndicatorCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/intelligenceProfileIndicatorCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { IntelligenceProfileIndicatorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IntelligenceProfileIndicatorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IndicatorsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/intelProfiles/item/indicators/item/index.ts b/src/security/threatIntelligence/intelProfiles/item/indicators/item/index.ts index a9d1da6d42d..b7b8f1ef4bb 100644 --- a/src/security/threatIntelligence/intelProfiles/item/indicators/item/index.ts +++ b/src/security/threatIntelligence/intelProfiles/item/indicators/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type IntelligenceProfileIndicator } from '../../../../../../models/security/'; +import { type IntelligenceProfileIndicator } from '../../../../../../models/security'; import { createIntelligenceProfileIndicatorFromDiscriminatorValue } from '../../../../../../models/security/intelligenceProfileIndicator'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/intelligenceProfileIndicators/count/index.ts b/src/security/threatIntelligence/intelligenceProfileIndicators/count/index.ts index 925272b5beb..69a91e075e9 100644 --- a/src/security/threatIntelligence/intelligenceProfileIndicators/count/index.ts +++ b/src/security/threatIntelligence/intelligenceProfileIndicators/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/intelligenceProfileIndicators/index.ts b/src/security/threatIntelligence/intelligenceProfileIndicators/index.ts index 0b271618313..85ea4b3a7bc 100644 --- a/src/security/threatIntelligence/intelligenceProfileIndicators/index.ts +++ b/src/security/threatIntelligence/intelligenceProfileIndicators/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type IntelligenceProfileIndicatorCollectionResponse } from '../../../models/security/'; +import { type IntelligenceProfileIndicatorCollectionResponse } from '../../../models/security'; import { createIntelligenceProfileIndicatorFromDiscriminatorValue, deserializeIntoIntelligenceProfileIndicator, serializeIntelligenceProfileIndicator, type IntelligenceProfileIndicator } from '../../../models/security/intelligenceProfileIndicator'; import { createIntelligenceProfileIndicatorCollectionResponseFromDiscriminatorValue } from '../../../models/security/intelligenceProfileIndicatorCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { IntelligenceProfileIndicatorItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { IntelligenceProfileIndicatorItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IntelligenceProfileIndicatorsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/intelligenceProfileIndicators/item/artifact/index.ts b/src/security/threatIntelligence/intelligenceProfileIndicators/item/artifact/index.ts index 9f2f80fc7b4..8dda8a9b043 100644 --- a/src/security/threatIntelligence/intelligenceProfileIndicators/item/artifact/index.ts +++ b/src/security/threatIntelligence/intelligenceProfileIndicators/item/artifact/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Artifact } from '../../../../../models/security/'; +import { type Artifact } from '../../../../../models/security'; import { createArtifactFromDiscriminatorValue } from '../../../../../models/security/artifact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/intelligenceProfileIndicators/item/index.ts b/src/security/threatIntelligence/intelligenceProfileIndicators/item/index.ts index b652567729a..a06fd5ca4b8 100644 --- a/src/security/threatIntelligence/intelligenceProfileIndicators/item/index.ts +++ b/src/security/threatIntelligence/intelligenceProfileIndicators/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createIntelligenceProfileIndicatorFromDiscriminatorValue, deserializeIntoIntelligenceProfileIndicator, serializeIntelligenceProfileIndicator, type IntelligenceProfileIndicator } from '../../../../models/security/intelligenceProfileIndicator'; -import { ArtifactRequestBuilder } from './artifact/'; +import { ArtifactRequestBuilder } from './artifact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IntelligenceProfileIndicatorItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/passiveDnsRecords/count/index.ts b/src/security/threatIntelligence/passiveDnsRecords/count/index.ts index 2c018799fba..d36e686072d 100644 --- a/src/security/threatIntelligence/passiveDnsRecords/count/index.ts +++ b/src/security/threatIntelligence/passiveDnsRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/passiveDnsRecords/index.ts b/src/security/threatIntelligence/passiveDnsRecords/index.ts index 50d39693275..c91ffd5f4e8 100644 --- a/src/security/threatIntelligence/passiveDnsRecords/index.ts +++ b/src/security/threatIntelligence/passiveDnsRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type PassiveDnsRecordCollectionResponse } from '../../../models/security/'; +import { type PassiveDnsRecordCollectionResponse } from '../../../models/security'; import { createPassiveDnsRecordFromDiscriminatorValue, deserializeIntoPassiveDnsRecord, serializePassiveDnsRecord, type PassiveDnsRecord } from '../../../models/security/passiveDnsRecord'; import { createPassiveDnsRecordCollectionResponseFromDiscriminatorValue } from '../../../models/security/passiveDnsRecordCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PassiveDnsRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PassiveDnsRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PassiveDnsRecordsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/passiveDnsRecords/item/artifact/index.ts b/src/security/threatIntelligence/passiveDnsRecords/item/artifact/index.ts index 9e4d470acc6..89c77e68a1a 100644 --- a/src/security/threatIntelligence/passiveDnsRecords/item/artifact/index.ts +++ b/src/security/threatIntelligence/passiveDnsRecords/item/artifact/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Artifact } from '../../../../../models/security/'; +import { type Artifact } from '../../../../../models/security'; import { createArtifactFromDiscriminatorValue } from '../../../../../models/security/artifact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/passiveDnsRecords/item/index.ts b/src/security/threatIntelligence/passiveDnsRecords/item/index.ts index f00660ce3db..66b31edb75d 100644 --- a/src/security/threatIntelligence/passiveDnsRecords/item/index.ts +++ b/src/security/threatIntelligence/passiveDnsRecords/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPassiveDnsRecordFromDiscriminatorValue, deserializeIntoPassiveDnsRecord, serializePassiveDnsRecord, type PassiveDnsRecord } from '../../../../models/security/passiveDnsRecord'; -import { ArtifactRequestBuilder } from './artifact/'; -import { ParentHostRequestBuilder } from './parentHost/'; +import { ArtifactRequestBuilder } from './artifact'; +import { ParentHostRequestBuilder } from './parentHost'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PassiveDnsRecordItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/passiveDnsRecords/item/parentHost/index.ts b/src/security/threatIntelligence/passiveDnsRecords/item/parentHost/index.ts index 8e9ed5615d1..41beb2548fc 100644 --- a/src/security/threatIntelligence/passiveDnsRecords/item/parentHost/index.ts +++ b/src/security/threatIntelligence/passiveDnsRecords/item/parentHost/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/sslCertificates/count/index.ts b/src/security/threatIntelligence/sslCertificates/count/index.ts index b504073f81d..e1876213f74 100644 --- a/src/security/threatIntelligence/sslCertificates/count/index.ts +++ b/src/security/threatIntelligence/sslCertificates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/sslCertificates/index.ts b/src/security/threatIntelligence/sslCertificates/index.ts index ff1fab06256..9be0d8b47e7 100644 --- a/src/security/threatIntelligence/sslCertificates/index.ts +++ b/src/security/threatIntelligence/sslCertificates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type SslCertificateCollectionResponse } from '../../../models/security/'; +import { type SslCertificateCollectionResponse } from '../../../models/security'; import { createSslCertificateFromDiscriminatorValue, deserializeIntoSslCertificate, serializeSslCertificate, type SslCertificate } from '../../../models/security/sslCertificate'; import { createSslCertificateCollectionResponseFromDiscriminatorValue } from '../../../models/security/sslCertificateCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SslCertificateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SslCertificateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SslCertificatesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/sslCertificates/item/index.ts b/src/security/threatIntelligence/sslCertificates/item/index.ts index 3f7fed454c7..98f8a936fbb 100644 --- a/src/security/threatIntelligence/sslCertificates/item/index.ts +++ b/src/security/threatIntelligence/sslCertificates/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSslCertificateFromDiscriminatorValue, deserializeIntoSslCertificate, serializeSslCertificate, type SslCertificate } from '../../../../models/security/sslCertificate'; -import { RelatedHostsRequestBuilder } from './relatedHosts/'; +import { RelatedHostsRequestBuilder } from './relatedHosts'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SslCertificateItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/sslCertificates/item/relatedHosts/count/index.ts b/src/security/threatIntelligence/sslCertificates/item/relatedHosts/count/index.ts index 33e328a816e..100a756c7f9 100644 --- a/src/security/threatIntelligence/sslCertificates/item/relatedHosts/count/index.ts +++ b/src/security/threatIntelligence/sslCertificates/item/relatedHosts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/sslCertificates/item/relatedHosts/index.ts b/src/security/threatIntelligence/sslCertificates/item/relatedHosts/index.ts index ebab1edb570..72ca6798776 100644 --- a/src/security/threatIntelligence/sslCertificates/item/relatedHosts/index.ts +++ b/src/security/threatIntelligence/sslCertificates/item/relatedHosts/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type HostCollectionResponse } from '../../../../../models/security/'; +import { type HostCollectionResponse } from '../../../../../models/security'; import { createHostCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/hostCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { HostItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { HostItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelatedHostsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/sslCertificates/item/relatedHosts/item/index.ts b/src/security/threatIntelligence/sslCertificates/item/relatedHosts/item/index.ts index 8a10c2f9e73..1d35c5f447a 100644 --- a/src/security/threatIntelligence/sslCertificates/item/relatedHosts/item/index.ts +++ b/src/security/threatIntelligence/sslCertificates/item/relatedHosts/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../../models/security/'; +import { type Host } from '../../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/subdomains/count/index.ts b/src/security/threatIntelligence/subdomains/count/index.ts index 0b6e96e6e01..f04915a515e 100644 --- a/src/security/threatIntelligence/subdomains/count/index.ts +++ b/src/security/threatIntelligence/subdomains/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/subdomains/index.ts b/src/security/threatIntelligence/subdomains/index.ts index 1c79b6a80af..57795129b96 100644 --- a/src/security/threatIntelligence/subdomains/index.ts +++ b/src/security/threatIntelligence/subdomains/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type SubdomainCollectionResponse } from '../../../models/security/'; +import { type SubdomainCollectionResponse } from '../../../models/security'; import { createSubdomainFromDiscriminatorValue, deserializeIntoSubdomain, serializeSubdomain, type Subdomain } from '../../../models/security/subdomain'; import { createSubdomainCollectionResponseFromDiscriminatorValue } from '../../../models/security/subdomainCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubdomainItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubdomainItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubdomainsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/subdomains/item/host/index.ts b/src/security/threatIntelligence/subdomains/item/host/index.ts index 5360426cb64..3c76424c548 100644 --- a/src/security/threatIntelligence/subdomains/item/host/index.ts +++ b/src/security/threatIntelligence/subdomains/item/host/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/subdomains/item/index.ts b/src/security/threatIntelligence/subdomains/item/index.ts index 26bd375cbe7..845d3a879eb 100644 --- a/src/security/threatIntelligence/subdomains/item/index.ts +++ b/src/security/threatIntelligence/subdomains/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSubdomainFromDiscriminatorValue, deserializeIntoSubdomain, serializeSubdomain, type Subdomain } from '../../../../models/security/subdomain'; -import { HostRequestBuilder } from './host/'; +import { HostRequestBuilder } from './host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubdomainItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/vulnerabilities/count/index.ts b/src/security/threatIntelligence/vulnerabilities/count/index.ts index 59f088e54c8..d49b82762fc 100644 --- a/src/security/threatIntelligence/vulnerabilities/count/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/vulnerabilities/index.ts b/src/security/threatIntelligence/vulnerabilities/index.ts index ef449884a5d..acc5cb865b5 100644 --- a/src/security/threatIntelligence/vulnerabilities/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type VulnerabilityCollectionResponse } from '../../../models/security/'; +import { type VulnerabilityCollectionResponse } from '../../../models/security'; import { createVulnerabilityFromDiscriminatorValue, deserializeIntoVulnerability, serializeVulnerability, type Vulnerability } from '../../../models/security/vulnerability'; import { createVulnerabilityCollectionResponseFromDiscriminatorValue } from '../../../models/security/vulnerabilityCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { VulnerabilityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { VulnerabilityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VulnerabilitiesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/vulnerabilities/item/articles/count/index.ts b/src/security/threatIntelligence/vulnerabilities/item/articles/count/index.ts index 665e56fca65..7562dd0c96f 100644 --- a/src/security/threatIntelligence/vulnerabilities/item/articles/count/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/item/articles/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/vulnerabilities/item/articles/index.ts b/src/security/threatIntelligence/vulnerabilities/item/articles/index.ts index cf3c149b9f8..1b4855c4dc8 100644 --- a/src/security/threatIntelligence/vulnerabilities/item/articles/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/item/articles/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type ArticleCollectionResponse } from '../../../../../models/security/'; +import { type ArticleCollectionResponse } from '../../../../../models/security'; import { createArticleCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/articleCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ArticleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ArticleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ArticlesRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/vulnerabilities/item/articles/item/index.ts b/src/security/threatIntelligence/vulnerabilities/item/articles/item/index.ts index 532005c9450..9d87c6bb940 100644 --- a/src/security/threatIntelligence/vulnerabilities/item/articles/item/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/item/articles/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type Article } from '../../../../../../models/security/'; +import { type Article } from '../../../../../../models/security'; import { createArticleFromDiscriminatorValue } from '../../../../../../models/security/article'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/vulnerabilities/item/components/count/index.ts b/src/security/threatIntelligence/vulnerabilities/item/components/count/index.ts index 2e1a4c53186..7b7504a65ee 100644 --- a/src/security/threatIntelligence/vulnerabilities/item/components/count/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/item/components/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/vulnerabilities/item/components/index.ts b/src/security/threatIntelligence/vulnerabilities/item/components/index.ts index 3272bb00676..4267672e58d 100644 --- a/src/security/threatIntelligence/vulnerabilities/item/components/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/item/components/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type VulnerabilityComponentCollectionResponse } from '../../../../../models/security/'; +import { type VulnerabilityComponentCollectionResponse } from '../../../../../models/security'; import { createVulnerabilityComponentFromDiscriminatorValue, deserializeIntoVulnerabilityComponent, serializeVulnerabilityComponent, type VulnerabilityComponent } from '../../../../../models/security/vulnerabilityComponent'; import { createVulnerabilityComponentCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/vulnerabilityComponentCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { VulnerabilityComponentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { VulnerabilityComponentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ComponentsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/vulnerabilities/item/components/item/index.ts b/src/security/threatIntelligence/vulnerabilities/item/components/item/index.ts index ab02d1a464d..17a2a43475f 100644 --- a/src/security/threatIntelligence/vulnerabilities/item/components/item/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/item/components/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createVulnerabilityComponentFromDiscriminatorValue, deserializeIntoVulnerabilityComponent, serializeVulnerabilityComponent, type VulnerabilityComponent } from '../../../../../../models/security/vulnerabilityComponent'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/vulnerabilities/item/index.ts b/src/security/threatIntelligence/vulnerabilities/item/index.ts index c598e554831..556136cfaa4 100644 --- a/src/security/threatIntelligence/vulnerabilities/item/index.ts +++ b/src/security/threatIntelligence/vulnerabilities/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createVulnerabilityFromDiscriminatorValue, deserializeIntoVulnerability, serializeVulnerability, type Vulnerability } from '../../../../models/security/vulnerability'; -import { ArticlesRequestBuilder } from './articles/'; -import { ComponentsRequestBuilder } from './components/'; +import { ArticlesRequestBuilder } from './articles'; +import { ComponentsRequestBuilder } from './components'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VulnerabilityItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/whoisHistoryRecords/count/index.ts b/src/security/threatIntelligence/whoisHistoryRecords/count/index.ts index 331b459c788..56312d98da2 100644 --- a/src/security/threatIntelligence/whoisHistoryRecords/count/index.ts +++ b/src/security/threatIntelligence/whoisHistoryRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/whoisHistoryRecords/index.ts b/src/security/threatIntelligence/whoisHistoryRecords/index.ts index ad31e8f1810..f6af30d671f 100644 --- a/src/security/threatIntelligence/whoisHistoryRecords/index.ts +++ b/src/security/threatIntelligence/whoisHistoryRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type WhoisHistoryRecordCollectionResponse } from '../../../models/security/'; +import { type WhoisHistoryRecordCollectionResponse } from '../../../models/security'; import { createWhoisHistoryRecordFromDiscriminatorValue, deserializeIntoWhoisHistoryRecord, serializeWhoisHistoryRecord, type WhoisHistoryRecord } from '../../../models/security/whoisHistoryRecord'; import { createWhoisHistoryRecordCollectionResponseFromDiscriminatorValue } from '../../../models/security/whoisHistoryRecordCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WhoisHistoryRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WhoisHistoryRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WhoisHistoryRecordsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/whoisHistoryRecords/item/host/index.ts b/src/security/threatIntelligence/whoisHistoryRecords/item/host/index.ts index 11b73e5c2ae..7761d428ad6 100644 --- a/src/security/threatIntelligence/whoisHistoryRecords/item/host/index.ts +++ b/src/security/threatIntelligence/whoisHistoryRecords/item/host/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/whoisHistoryRecords/item/index.ts b/src/security/threatIntelligence/whoisHistoryRecords/item/index.ts index 5e3fcf99c16..ffc9333bfc1 100644 --- a/src/security/threatIntelligence/whoisHistoryRecords/item/index.ts +++ b/src/security/threatIntelligence/whoisHistoryRecords/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWhoisHistoryRecordFromDiscriminatorValue, deserializeIntoWhoisHistoryRecord, serializeWhoisHistoryRecord, type WhoisHistoryRecord } from '../../../../models/security/whoisHistoryRecord'; -import { HostRequestBuilder } from './host/'; +import { HostRequestBuilder } from './host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WhoisHistoryRecordItemRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/whoisRecords/count/index.ts b/src/security/threatIntelligence/whoisRecords/count/index.ts index 44772b1a172..8999ceb17c0 100644 --- a/src/security/threatIntelligence/whoisRecords/count/index.ts +++ b/src/security/threatIntelligence/whoisRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/whoisRecords/index.ts b/src/security/threatIntelligence/whoisRecords/index.ts index 5f6d51ea0dc..68914fd0bc6 100644 --- a/src/security/threatIntelligence/whoisRecords/index.ts +++ b/src/security/threatIntelligence/whoisRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type WhoisRecordCollectionResponse } from '../../../models/security/'; +import { type WhoisRecordCollectionResponse } from '../../../models/security'; import { createWhoisRecordFromDiscriminatorValue, deserializeIntoWhoisRecord, serializeWhoisRecord, type WhoisRecord } from '../../../models/security/whoisRecord'; import { createWhoisRecordCollectionResponseFromDiscriminatorValue } from '../../../models/security/whoisRecordCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WhoisRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WhoisRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WhoisRecordsRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/whoisRecords/item/history/count/index.ts b/src/security/threatIntelligence/whoisRecords/item/history/count/index.ts index 05c7d0ce362..5604a1b9376 100644 --- a/src/security/threatIntelligence/whoisRecords/item/history/count/index.ts +++ b/src/security/threatIntelligence/whoisRecords/item/history/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/whoisRecords/item/history/index.ts b/src/security/threatIntelligence/whoisRecords/item/history/index.ts index 8471ae97dab..b9eca3a01ad 100644 --- a/src/security/threatIntelligence/whoisRecords/item/history/index.ts +++ b/src/security/threatIntelligence/whoisRecords/item/history/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type WhoisHistoryRecordCollectionResponse } from '../../../../../models/security/'; +import { type WhoisHistoryRecordCollectionResponse } from '../../../../../models/security'; import { createWhoisHistoryRecordCollectionResponseFromDiscriminatorValue } from '../../../../../models/security/whoisHistoryRecordCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WhoisHistoryRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WhoisHistoryRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HistoryRequestBuilderGetQueryParameters { diff --git a/src/security/threatIntelligence/whoisRecords/item/history/item/index.ts b/src/security/threatIntelligence/whoisRecords/item/history/item/index.ts index 58c4f38a21b..e54e645cd27 100644 --- a/src/security/threatIntelligence/whoisRecords/item/history/item/index.ts +++ b/src/security/threatIntelligence/whoisRecords/item/history/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type WhoisHistoryRecord } from '../../../../../../models/security/'; +import { type WhoisHistoryRecord } from '../../../../../../models/security'; import { createWhoisHistoryRecordFromDiscriminatorValue } from '../../../../../../models/security/whoisHistoryRecord'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/whoisRecords/item/host/index.ts b/src/security/threatIntelligence/whoisRecords/item/host/index.ts index 02913104cb0..25192651c18 100644 --- a/src/security/threatIntelligence/whoisRecords/item/host/index.ts +++ b/src/security/threatIntelligence/whoisRecords/item/host/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type Host } from '../../../../../models/security/'; +import { type Host } from '../../../../../models/security'; import { createHostFromDiscriminatorValue } from '../../../../../models/security/host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/threatIntelligence/whoisRecords/item/index.ts b/src/security/threatIntelligence/whoisRecords/item/index.ts index f8f5adcd408..43efd7704db 100644 --- a/src/security/threatIntelligence/whoisRecords/item/index.ts +++ b/src/security/threatIntelligence/whoisRecords/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWhoisRecordFromDiscriminatorValue, deserializeIntoWhoisRecord, serializeWhoisRecord, type WhoisRecord } from '../../../../models/security/whoisRecord'; -import { HistoryRequestBuilder } from './history/'; -import { HostRequestBuilder } from './host/'; +import { HistoryRequestBuilder } from './history'; +import { HostRequestBuilder } from './host'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WhoisRecordItemRequestBuilderGetQueryParameters { diff --git a/src/security/triggerTypes/index.ts b/src/security/triggerTypes/index.ts index d08036a31ea..b4592568c2c 100644 --- a/src/security/triggerTypes/index.ts +++ b/src/security/triggerTypes/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTriggerTypesRootFromDiscriminatorValue, deserializeIntoTriggerTypesRoot, serializeTriggerTypesRoot, type TriggerTypesRoot } from '../../models/security/triggerTypesRoot'; -import { RetentionEventTypesRequestBuilder } from './retentionEventTypes/'; +import { RetentionEventTypesRequestBuilder } from './retentionEventTypes'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TriggerTypesRequestBuilderGetQueryParameters { diff --git a/src/security/triggerTypes/retentionEventTypes/count/index.ts b/src/security/triggerTypes/retentionEventTypes/count/index.ts index edef5b8b744..41352468b00 100644 --- a/src/security/triggerTypes/retentionEventTypes/count/index.ts +++ b/src/security/triggerTypes/retentionEventTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/triggerTypes/retentionEventTypes/index.ts b/src/security/triggerTypes/retentionEventTypes/index.ts index c4b41efcc7b..8ecebfdf15b 100644 --- a/src/security/triggerTypes/retentionEventTypes/index.ts +++ b/src/security/triggerTypes/retentionEventTypes/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type RetentionEventTypeCollectionResponse } from '../../../models/security/'; +import { type RetentionEventTypeCollectionResponse } from '../../../models/security'; import { createRetentionEventTypeFromDiscriminatorValue, deserializeIntoRetentionEventType, serializeRetentionEventType, type RetentionEventType } from '../../../models/security/retentionEventType'; import { createRetentionEventTypeCollectionResponseFromDiscriminatorValue } from '../../../models/security/retentionEventTypeCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RetentionEventTypeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RetentionEventTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RetentionEventTypesRequestBuilderGetQueryParameters { diff --git a/src/security/triggerTypes/retentionEventTypes/item/index.ts b/src/security/triggerTypes/retentionEventTypes/item/index.ts index 6408b1dd18a..9a2ee4d939c 100644 --- a/src/security/triggerTypes/retentionEventTypes/item/index.ts +++ b/src/security/triggerTypes/retentionEventTypes/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRetentionEventTypeFromDiscriminatorValue, deserializeIntoRetentionEventType, serializeRetentionEventType, type RetentionEventType } from '../../../../models/security/retentionEventType'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/triggers/index.ts b/src/security/triggers/index.ts index 0f98848f069..cac5b1934a4 100644 --- a/src/security/triggers/index.ts +++ b/src/security/triggers/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTriggersRootFromDiscriminatorValue, deserializeIntoTriggersRoot, serializeTriggersRoot, type TriggersRoot } from '../../models/security/triggersRoot'; -import { RetentionEventsRequestBuilder } from './retentionEvents/'; +import { RetentionEventsRequestBuilder } from './retentionEvents'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TriggersRequestBuilderGetQueryParameters { diff --git a/src/security/triggers/retentionEvents/count/index.ts b/src/security/triggers/retentionEvents/count/index.ts index c422fc3b88c..df139742f58 100644 --- a/src/security/triggers/retentionEvents/count/index.ts +++ b/src/security/triggers/retentionEvents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/security/triggers/retentionEvents/index.ts b/src/security/triggers/retentionEvents/index.ts index 826d51bcefc..6e3baefb23c 100644 --- a/src/security/triggers/retentionEvents/index.ts +++ b/src/security/triggers/retentionEvents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type RetentionEventCollectionResponse } from '../../../models/security/'; +import { type RetentionEventCollectionResponse } from '../../../models/security'; import { createRetentionEventFromDiscriminatorValue, deserializeIntoRetentionEvent, serializeRetentionEvent, type RetentionEvent } from '../../../models/security/retentionEvent'; import { createRetentionEventCollectionResponseFromDiscriminatorValue } from '../../../models/security/retentionEventCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RetentionEventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RetentionEventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RetentionEventsRequestBuilderGetQueryParameters { diff --git a/src/security/triggers/retentionEvents/item/index.ts b/src/security/triggers/retentionEvents/item/index.ts index efd410bf0df..ec0dd9febab 100644 --- a/src/security/triggers/retentionEvents/item/index.ts +++ b/src/security/triggers/retentionEvents/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRetentionEventFromDiscriminatorValue, deserializeIntoRetentionEvent, serializeRetentionEvent, type RetentionEvent } from '../../../../models/security/retentionEvent'; -import { RetentionEventTypeRequestBuilder } from './retentionEventType/'; +import { RetentionEventTypeRequestBuilder } from './retentionEventType'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RetentionEventItemRequestBuilderGetQueryParameters { diff --git a/src/security/triggers/retentionEvents/item/retentionEventType/index.ts b/src/security/triggers/retentionEvents/item/retentionEventType/index.ts index 00c0af93120..5130d2142c6 100644 --- a/src/security/triggers/retentionEvents/item/retentionEventType/index.ts +++ b/src/security/triggers/retentionEvents/item/retentionEventType/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type RetentionEventType } from '../../../../../models/security/'; +import { type RetentionEventType } from '../../../../../models/security'; import { createRetentionEventTypeFromDiscriminatorValue } from '../../../../../models/security/retentionEventType'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/count/index.ts b/src/servicePrincipals/count/index.ts index a52fe7a3fff..93222970f2a 100644 --- a/src/servicePrincipals/count/index.ts +++ b/src/servicePrincipals/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/delta/index.ts b/src/servicePrincipals/delta/index.ts index e3e289aefb7..12ccc14ffc8 100644 --- a/src/servicePrincipals/delta/index.ts +++ b/src/servicePrincipals/delta/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue, serializeServicePrincipal, type ServicePrincipal } from '../../models/servicePrincipal'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ServicePrincipal[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeServicePrincipal); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/getAvailableExtensionProperties/index.ts b/src/servicePrincipals/getAvailableExtensionProperties/index.ts index 5895ac998bc..7800d3c8b0a 100644 --- a/src/servicePrincipals/getAvailableExtensionProperties/index.ts +++ b/src/servicePrincipals/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/getByIds/getByIdsPostRequestBody.ts b/src/servicePrincipals/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/servicePrincipals/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/getByIds/index.ts b/src/servicePrincipals/getByIds/index.ts index 38d5d1eb341..49172d3c7dd 100644 --- a/src/servicePrincipals/getByIds/index.ts +++ b/src/servicePrincipals/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/index.ts b/src/servicePrincipals/index.ts index 9fb1e45d8df..ca8d20fc6e8 100644 --- a/src/servicePrincipals/index.ts +++ b/src/servicePrincipals/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue, deserializeIntoServicePrincipal, serializeServicePrincipal, type ServicePrincipal } from '../models/servicePrincipal'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { ServicePrincipalItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { ServicePrincipalItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServicePrincipalsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/addKey/index.ts b/src/servicePrincipals/item/addKey/index.ts index 8c9997456bd..a95c7956353 100644 --- a/src/servicePrincipals/item/addKey/index.ts +++ b/src/servicePrincipals/item/addKey/index.ts @@ -1,11 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createKeyCredentialFromDiscriminatorValue, deserializeIntoKeyCredential, serializeKeyCredential, type KeyCredential } from '../../../models/keyCredential'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; +import { createKeyCredentialFromDiscriminatorValue, serializeKeyCredential, type KeyCredential } from '../../../models/keyCredential'; import { createPasswordCredentialFromDiscriminatorValue, serializePasswordCredential, type PasswordCredential } from '../../../models/passwordCredential'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddKeyPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -42,58 +40,5 @@ export function serializeAddKeyPostRequestBody(writer: SerializationWriter, addK writer.writeStringValue("proof", addKeyPostRequestBody.proof); writer.writeAdditionalData(addKeyPostRequestBody.additionalData); } -/** - * Provides operations to call the addKey method. - */ -export class AddKeyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddKeyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/addKey"); - }; - /** - * Adds a key credential to a servicePrincipal. This method along with removeKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. ServicePrincipals that don’t have any existing valid certificates (i.e.: no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. Update servicePrincipal can be used to perform an update instead. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of KeyCredential - * @see {@link https://learn.microsoft.com/graph/api/serviceprincipal-addkey?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddKeyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createKeyCredentialFromDiscriminatorValue, errorMapping); - }; - /** - * Adds a key credential to a servicePrincipal. This method along with removeKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. ServicePrincipals that don’t have any existing valid certificates (i.e.: no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. Update servicePrincipal can be used to perform an update instead. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddKeyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddKeyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addKeyRequestBuilder - */ - public withUrl(rawUrl: string) : AddKeyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddKeyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/addPassword/index.ts b/src/servicePrincipals/item/addPassword/index.ts index aa4e0fc22c7..dc5f8c1bb91 100644 --- a/src/servicePrincipals/item/addPassword/index.ts +++ b/src/servicePrincipals/item/addPassword/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createPasswordCredentialFromDiscriminatorValue, deserializeIntoPasswordCredential, serializePasswordCredential, type PasswordCredential } from '../../../models/passwordCredential'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createPasswordCredentialFromDiscriminatorValue, serializePasswordCredential, type PasswordCredential } from '../../../models/passwordCredential'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddPasswordPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +27,5 @@ export function serializeAddPasswordPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("passwordCredential", addPasswordPostRequestBody.passwordCredential, serializePasswordCredential); writer.writeAdditionalData(addPasswordPostRequestBody.additionalData); } -/** - * Provides operations to call the addPassword method. - */ -export class AddPasswordRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddPasswordRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/addPassword"); - }; - /** - * Add a strong password or secret to a servicePrincipal object. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of PasswordCredential - * @see {@link https://learn.microsoft.com/graph/api/serviceprincipal-addpassword?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPasswordPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createPasswordCredentialFromDiscriminatorValue, errorMapping); - }; - /** - * Add a strong password or secret to a servicePrincipal object. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPasswordPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPasswordPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addPasswordRequestBuilder - */ - public withUrl(rawUrl: string) : AddPasswordRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddPasswordRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/addTokenSigningCertificate/index.ts b/src/servicePrincipals/item/addTokenSigningCertificate/index.ts index f0b5daac233..412fe393039 100644 --- a/src/servicePrincipals/item/addTokenSigningCertificate/index.ts +++ b/src/servicePrincipals/item/addTokenSigningCertificate/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createSelfSignedCertificateFromDiscriminatorValue, deserializeIntoSelfSignedCertificate, serializeSelfSignedCertificate, type SelfSignedCertificate } from '../../../models/selfSignedCertificate'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddTokenSigningCertificatePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,58 +32,5 @@ export function serializeAddTokenSigningCertificatePostRequestBody(writer: Seria writer.writeDateValue("endDateTime", addTokenSigningCertificatePostRequestBody.endDateTime); writer.writeAdditionalData(addTokenSigningCertificatePostRequestBody.additionalData); } -/** - * Provides operations to call the addTokenSigningCertificate method. - */ -export class AddTokenSigningCertificateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddTokenSigningCertificateRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/addTokenSigningCertificate"); - }; - /** - * Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate. The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object. All the objects have the same value of customKeyIdentifier. The passwordCredential is used to open the PFX file (private key). It and the associated private key object have the same value of keyId. When set during creation through the displayName property, the subject of the certificate cannot be updated. The startDateTime is set to the same time the certificate is created using the action. The endDateTime can be up to three years after the certificate is created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of SelfSignedCertificate - * @see {@link https://learn.microsoft.com/graph/api/serviceprincipal-addtokensigningcertificate?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddTokenSigningCertificatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createSelfSignedCertificateFromDiscriminatorValue, errorMapping); - }; - /** - * Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate. The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object. All the objects have the same value of customKeyIdentifier. The passwordCredential is used to open the PFX file (private key). It and the associated private key object have the same value of keyId. When set during creation through the displayName property, the subject of the certificate cannot be updated. The startDateTime is set to the same time the certificate is created using the action. The endDateTime can be up to three years after the certificate is created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddTokenSigningCertificatePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddTokenSigningCertificatePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addTokenSigningCertificateRequestBuilder - */ - public withUrl(rawUrl: string) : AddTokenSigningCertificateRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddTokenSigningCertificateRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/appManagementPolicies/count/index.ts b/src/servicePrincipals/item/appManagementPolicies/count/index.ts index 64b3d1b2295..5c67b8f051a 100644 --- a/src/servicePrincipals/item/appManagementPolicies/count/index.ts +++ b/src/servicePrincipals/item/appManagementPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/appManagementPolicies/index.ts b/src/servicePrincipals/item/appManagementPolicies/index.ts index 8c9f490c724..8bccfeee6f7 100644 --- a/src/servicePrincipals/item/appManagementPolicies/index.ts +++ b/src/servicePrincipals/item/appManagementPolicies/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppManagementPolicyCollectionResponse } from '../../../models/'; +import { type AppManagementPolicyCollectionResponse } from '../../../models'; import { createAppManagementPolicyCollectionResponseFromDiscriminatorValue } from '../../../models/appManagementPolicyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AppManagementPolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AppManagementPolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppManagementPoliciesRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/appManagementPolicies/item/index.ts b/src/servicePrincipals/item/appManagementPolicies/item/index.ts index 1f1f683d117..f99f77e5422 100644 --- a/src/servicePrincipals/item/appManagementPolicies/item/index.ts +++ b/src/servicePrincipals/item/appManagementPolicies/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppManagementPolicy } from '../../../../models/'; +import { type AppManagementPolicy } from '../../../../models'; import { createAppManagementPolicyFromDiscriminatorValue } from '../../../../models/appManagementPolicy'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/appRoleAssignedTo/count/index.ts b/src/servicePrincipals/item/appRoleAssignedTo/count/index.ts index e758cec86bb..357de1bf836 100644 --- a/src/servicePrincipals/item/appRoleAssignedTo/count/index.ts +++ b/src/servicePrincipals/item/appRoleAssignedTo/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/appRoleAssignedTo/index.ts b/src/servicePrincipals/item/appRoleAssignedTo/index.ts index d5e3e2e7780..3b60d220dfb 100644 --- a/src/servicePrincipals/item/appRoleAssignedTo/index.ts +++ b/src/servicePrincipals/item/appRoleAssignedTo/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue, deserializeIntoAppRoleAssignment, serializeAppRoleAssignment, type AppRoleAssignment } from '../../../models/appRoleAssignment'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AppRoleAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AppRoleAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppRoleAssignedToRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/appRoleAssignedTo/item/index.ts b/src/servicePrincipals/item/appRoleAssignedTo/item/index.ts index 2c79dabece1..8630c4f36ff 100644 --- a/src/servicePrincipals/item/appRoleAssignedTo/item/index.ts +++ b/src/servicePrincipals/item/appRoleAssignedTo/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppRoleAssignmentFromDiscriminatorValue, deserializeIntoAppRoleAssignment, serializeAppRoleAssignment, type AppRoleAssignment } from '../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/appRoleAssignments/count/index.ts b/src/servicePrincipals/item/appRoleAssignments/count/index.ts index 416c2006f1f..ece66b69f03 100644 --- a/src/servicePrincipals/item/appRoleAssignments/count/index.ts +++ b/src/servicePrincipals/item/appRoleAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/appRoleAssignments/index.ts b/src/servicePrincipals/item/appRoleAssignments/index.ts index 7e8e149938e..dd0a9b3d5de 100644 --- a/src/servicePrincipals/item/appRoleAssignments/index.ts +++ b/src/servicePrincipals/item/appRoleAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue, deserializeIntoAppRoleAssignment, serializeAppRoleAssignment, type AppRoleAssignment } from '../../../models/appRoleAssignment'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AppRoleAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AppRoleAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppRoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/appRoleAssignments/item/index.ts b/src/servicePrincipals/item/appRoleAssignments/item/index.ts index a176aa1f4ea..159088bd1c7 100644 --- a/src/servicePrincipals/item/appRoleAssignments/item/index.ts +++ b/src/servicePrincipals/item/appRoleAssignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppRoleAssignmentFromDiscriminatorValue, deserializeIntoAppRoleAssignment, serializeAppRoleAssignment, type AppRoleAssignment } from '../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/servicePrincipals/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/servicePrincipals/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/checkMemberGroups/index.ts b/src/servicePrincipals/item/checkMemberGroups/index.ts index b8b41c4f8f7..dcf9cd58809 100644 --- a/src/servicePrincipals/item/checkMemberGroups/index.ts +++ b/src/servicePrincipals/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/checkMemberObjects/index.ts b/src/servicePrincipals/item/checkMemberObjects/index.ts index 56831eb5d27..d53883127a7 100644 --- a/src/servicePrincipals/item/checkMemberObjects/index.ts +++ b/src/servicePrincipals/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/claimsMappingPolicies/count/index.ts b/src/servicePrincipals/item/claimsMappingPolicies/count/index.ts index 7c6fecd4a2f..6d3557621da 100644 --- a/src/servicePrincipals/item/claimsMappingPolicies/count/index.ts +++ b/src/servicePrincipals/item/claimsMappingPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/claimsMappingPolicies/index.ts b/src/servicePrincipals/item/claimsMappingPolicies/index.ts index 70bd897520e..107cd977057 100644 --- a/src/servicePrincipals/item/claimsMappingPolicies/index.ts +++ b/src/servicePrincipals/item/claimsMappingPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ClaimsMappingPolicyCollectionResponse } from '../../../models/'; +import { type ClaimsMappingPolicyCollectionResponse } from '../../../models'; import { createClaimsMappingPolicyCollectionResponseFromDiscriminatorValue } from '../../../models/claimsMappingPolicyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ClaimsMappingPolicyItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { ClaimsMappingPolicyItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ClaimsMappingPoliciesRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/claimsMappingPolicies/item/index.ts b/src/servicePrincipals/item/claimsMappingPolicies/item/index.ts index cf9785353c9..f2120f4ac51 100644 --- a/src/servicePrincipals/item/claimsMappingPolicies/item/index.ts +++ b/src/servicePrincipals/item/claimsMappingPolicies/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/servicePrincipals/item/claimsMappingPolicies/item/ref/index.ts b/src/servicePrincipals/item/claimsMappingPolicies/item/ref/index.ts index 94bfc4f2c35..30d1d078410 100644 --- a/src/servicePrincipals/item/claimsMappingPolicies/item/ref/index.ts +++ b/src/servicePrincipals/item/claimsMappingPolicies/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/claimsMappingPolicies/ref/index.ts b/src/servicePrincipals/item/claimsMappingPolicies/ref/index.ts index b739d2c3287..f7e71568ebf 100644 --- a/src/servicePrincipals/item/claimsMappingPolicies/ref/index.ts +++ b/src/servicePrincipals/item/claimsMappingPolicies/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/servicePrincipals/item/createdObjects/count/index.ts b/src/servicePrincipals/item/createdObjects/count/index.ts index 3345e658c9e..0d758bde340 100644 --- a/src/servicePrincipals/item/createdObjects/count/index.ts +++ b/src/servicePrincipals/item/createdObjects/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/createdObjects/graphServicePrincipal/count/index.ts b/src/servicePrincipals/item/createdObjects/graphServicePrincipal/count/index.ts index 9e9856f0adb..60fdde6869a 100644 --- a/src/servicePrincipals/item/createdObjects/graphServicePrincipal/count/index.ts +++ b/src/servicePrincipals/item/createdObjects/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/createdObjects/graphServicePrincipal/index.ts b/src/servicePrincipals/item/createdObjects/graphServicePrincipal/index.ts index d866720c09c..f197e71b4d7 100644 --- a/src/servicePrincipals/item/createdObjects/graphServicePrincipal/index.ts +++ b/src/servicePrincipals/item/createdObjects/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/createdObjects/index.ts b/src/servicePrincipals/item/createdObjects/index.ts index a5d7a287893..08a6ece3d27 100644 --- a/src/servicePrincipals/item/createdObjects/index.ts +++ b/src/servicePrincipals/item/createdObjects/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedObjectsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/createdObjects/item/graphServicePrincipal/index.ts b/src/servicePrincipals/item/createdObjects/item/graphServicePrincipal/index.ts index 6cfc5e33334..4ea7b328a96 100644 --- a/src/servicePrincipals/item/createdObjects/item/graphServicePrincipal/index.ts +++ b/src/servicePrincipals/item/createdObjects/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/createdObjects/item/index.ts b/src/servicePrincipals/item/createdObjects/item/index.ts index 46f4ff53b2c..c976f3ae523 100644 --- a/src/servicePrincipals/item/createdObjects/item/index.ts +++ b/src/servicePrincipals/item/createdObjects/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/delegatedPermissionClassifications/count/index.ts b/src/servicePrincipals/item/delegatedPermissionClassifications/count/index.ts index 811f482c2fd..671f416c72d 100644 --- a/src/servicePrincipals/item/delegatedPermissionClassifications/count/index.ts +++ b/src/servicePrincipals/item/delegatedPermissionClassifications/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/delegatedPermissionClassifications/index.ts b/src/servicePrincipals/item/delegatedPermissionClassifications/index.ts index 1b4b73f3266..02fd053f253 100644 --- a/src/servicePrincipals/item/delegatedPermissionClassifications/index.ts +++ b/src/servicePrincipals/item/delegatedPermissionClassifications/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DelegatedPermissionClassificationCollectionResponse } from '../../../models/'; +import { type DelegatedPermissionClassificationCollectionResponse } from '../../../models'; import { createDelegatedPermissionClassificationFromDiscriminatorValue, deserializeIntoDelegatedPermissionClassification, serializeDelegatedPermissionClassification, type DelegatedPermissionClassification } from '../../../models/delegatedPermissionClassification'; import { createDelegatedPermissionClassificationCollectionResponseFromDiscriminatorValue } from '../../../models/delegatedPermissionClassificationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DelegatedPermissionClassificationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DelegatedPermissionClassificationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DelegatedPermissionClassificationsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/delegatedPermissionClassifications/item/index.ts b/src/servicePrincipals/item/delegatedPermissionClassifications/item/index.ts index 8c69ff814d8..eacb35e7b76 100644 --- a/src/servicePrincipals/item/delegatedPermissionClassifications/item/index.ts +++ b/src/servicePrincipals/item/delegatedPermissionClassifications/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDelegatedPermissionClassificationFromDiscriminatorValue, deserializeIntoDelegatedPermissionClassification, serializeDelegatedPermissionClassification, type DelegatedPermissionClassification } from '../../../../models/delegatedPermissionClassification'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/endpoints/count/index.ts b/src/servicePrincipals/item/endpoints/count/index.ts index d4cf5ae87b2..8412bb146ec 100644 --- a/src/servicePrincipals/item/endpoints/count/index.ts +++ b/src/servicePrincipals/item/endpoints/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/endpoints/index.ts b/src/servicePrincipals/item/endpoints/index.ts index 551f0ab0956..8dc7414d8bf 100644 --- a/src/servicePrincipals/item/endpoints/index.ts +++ b/src/servicePrincipals/item/endpoints/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndpointCollectionResponse } from '../../../models/'; +import { type EndpointCollectionResponse } from '../../../models'; import { createEndpointFromDiscriminatorValue, deserializeIntoEndpoint, serializeEndpoint, type Endpoint } from '../../../models/endpoint'; import { createEndpointCollectionResponseFromDiscriminatorValue } from '../../../models/endpointCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EndpointItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EndpointItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EndpointsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/endpoints/item/index.ts b/src/servicePrincipals/item/endpoints/item/index.ts index 9f3e531671e..9edaa7c64f7 100644 --- a/src/servicePrincipals/item/endpoints/item/index.ts +++ b/src/servicePrincipals/item/endpoints/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEndpointFromDiscriminatorValue, deserializeIntoEndpoint, serializeEndpoint, type Endpoint } from '../../../../models/endpoint'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/federatedIdentityCredentials/count/index.ts b/src/servicePrincipals/item/federatedIdentityCredentials/count/index.ts index f3337e24fd7..1e28df26805 100644 --- a/src/servicePrincipals/item/federatedIdentityCredentials/count/index.ts +++ b/src/servicePrincipals/item/federatedIdentityCredentials/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/federatedIdentityCredentials/index.ts b/src/servicePrincipals/item/federatedIdentityCredentials/index.ts index f3a0bf1f82b..91438fa2b65 100644 --- a/src/servicePrincipals/item/federatedIdentityCredentials/index.ts +++ b/src/servicePrincipals/item/federatedIdentityCredentials/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type FederatedIdentityCredentialCollectionResponse } from '../../../models/'; +import { type FederatedIdentityCredentialCollectionResponse } from '../../../models'; import { createFederatedIdentityCredentialFromDiscriminatorValue, deserializeIntoFederatedIdentityCredential, serializeFederatedIdentityCredential, type FederatedIdentityCredential } from '../../../models/federatedIdentityCredential'; import { createFederatedIdentityCredentialCollectionResponseFromDiscriminatorValue } from '../../../models/federatedIdentityCredentialCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { FederatedIdentityCredentialItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { FederatedIdentityCredentialItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FederatedIdentityCredentialsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/federatedIdentityCredentials/item/index.ts b/src/servicePrincipals/item/federatedIdentityCredentials/item/index.ts index 0ba5e928d4a..2fdcfba22e6 100644 --- a/src/servicePrincipals/item/federatedIdentityCredentials/item/index.ts +++ b/src/servicePrincipals/item/federatedIdentityCredentials/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFederatedIdentityCredentialFromDiscriminatorValue, deserializeIntoFederatedIdentityCredential, serializeFederatedIdentityCredential, type FederatedIdentityCredential } from '../../../../models/federatedIdentityCredential'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/servicePrincipals/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/servicePrincipals/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/getMemberGroups/index.ts b/src/servicePrincipals/item/getMemberGroups/index.ts index 0f4aabeb964..e7344ba5741 100644 --- a/src/servicePrincipals/item/getMemberGroups/index.ts +++ b/src/servicePrincipals/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/getMemberObjects/index.ts b/src/servicePrincipals/item/getMemberObjects/index.ts index 28f6c00ce9a..1d90b3647dc 100644 --- a/src/servicePrincipals/item/getMemberObjects/index.ts +++ b/src/servicePrincipals/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/count/index.ts b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/count/index.ts index eb542d6b482..26e49837f0e 100644 --- a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/count/index.ts +++ b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/index.ts b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/index.ts index 21b5e53abff..8f6cf51742d 100644 --- a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/index.ts +++ b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type HomeRealmDiscoveryPolicyCollectionResponse } from '../../../models/'; +import { type HomeRealmDiscoveryPolicyCollectionResponse } from '../../../models'; import { createHomeRealmDiscoveryPolicyCollectionResponseFromDiscriminatorValue } from '../../../models/homeRealmDiscoveryPolicyCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { HomeRealmDiscoveryPolicyItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { HomeRealmDiscoveryPolicyItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HomeRealmDiscoveryPoliciesRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/item/index.ts b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/item/index.ts index a4675809ee6..190bacdb39f 100644 --- a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/item/index.ts +++ b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/item/ref/index.ts b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/item/ref/index.ts index d89890c8f90..4e433d64181 100644 --- a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/item/ref/index.ts +++ b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/ref/index.ts b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/ref/index.ts index 6ba54b9cc43..5ced5408e32 100644 --- a/src/servicePrincipals/item/homeRealmDiscoveryPolicies/ref/index.ts +++ b/src/servicePrincipals/item/homeRealmDiscoveryPolicies/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/servicePrincipals/item/index.ts b/src/servicePrincipals/item/index.ts index e4c839e6506..4f091893dc6 100644 --- a/src/servicePrincipals/item/index.ts +++ b/src/servicePrincipals/item/index.ts @@ -1,37 +1,37 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue, deserializeIntoServicePrincipal, serializeServicePrincipal, type ServicePrincipal } from '../../models/servicePrincipal'; -import { AddKeyRequestBuilder } from './addKey/'; -import { AddPasswordRequestBuilder } from './addPassword/'; -import { AddTokenSigningCertificateRequestBuilder } from './addTokenSigningCertificate/'; -import { AppManagementPoliciesRequestBuilder } from './appManagementPolicies/'; -import { AppRoleAssignedToRequestBuilder } from './appRoleAssignedTo/'; -import { AppRoleAssignmentsRequestBuilder } from './appRoleAssignments/'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { ClaimsMappingPoliciesRequestBuilder } from './claimsMappingPolicies/'; -import { CreatedObjectsRequestBuilder } from './createdObjects/'; -import { DelegatedPermissionClassificationsRequestBuilder } from './delegatedPermissionClassifications/'; -import { EndpointsRequestBuilder } from './endpoints/'; -import { FederatedIdentityCredentialsRequestBuilder } from './federatedIdentityCredentials/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { HomeRealmDiscoveryPoliciesRequestBuilder } from './homeRealmDiscoveryPolicies/'; -import { MemberOfRequestBuilder } from './memberOf/'; -import { Oauth2PermissionGrantsRequestBuilder } from './oauth2PermissionGrants/'; -import { OwnedObjectsRequestBuilder } from './ownedObjects/'; -import { OwnersRequestBuilder } from './owners/'; -import { RemoteDesktopSecurityConfigurationRequestBuilder } from './remoteDesktopSecurityConfiguration/'; -import { RemoveKeyRequestBuilder } from './removeKey/'; -import { RemovePasswordRequestBuilder } from './removePassword/'; -import { RestoreRequestBuilder } from './restore/'; -import { SynchronizationRequestBuilder } from './synchronization/'; -import { TokenIssuancePoliciesRequestBuilder } from './tokenIssuancePolicies/'; -import { TokenLifetimePoliciesRequestBuilder } from './tokenLifetimePolicies/'; -import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf/'; +import { AddKeyRequestBuilder } from './addKey'; +import { AddPasswordRequestBuilder } from './addPassword'; +import { AddTokenSigningCertificateRequestBuilder } from './addTokenSigningCertificate'; +import { AppManagementPoliciesRequestBuilder } from './appManagementPolicies'; +import { AppRoleAssignedToRequestBuilder } from './appRoleAssignedTo'; +import { AppRoleAssignmentsRequestBuilder } from './appRoleAssignments'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { ClaimsMappingPoliciesRequestBuilder } from './claimsMappingPolicies'; +import { CreatedObjectsRequestBuilder } from './createdObjects'; +import { DelegatedPermissionClassificationsRequestBuilder } from './delegatedPermissionClassifications'; +import { EndpointsRequestBuilder } from './endpoints'; +import { FederatedIdentityCredentialsRequestBuilder } from './federatedIdentityCredentials'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { HomeRealmDiscoveryPoliciesRequestBuilder } from './homeRealmDiscoveryPolicies'; +import { MemberOfRequestBuilder } from './memberOf'; +import { Oauth2PermissionGrantsRequestBuilder } from './oauth2PermissionGrants'; +import { OwnedObjectsRequestBuilder } from './ownedObjects'; +import { OwnersRequestBuilder } from './owners'; +import { RemoteDesktopSecurityConfigurationRequestBuilder } from './remoteDesktopSecurityConfiguration'; +import { RemoveKeyRequestBuilder } from './removeKey'; +import { RemovePasswordRequestBuilder } from './removePassword'; +import { RestoreRequestBuilder } from './restore'; +import { SynchronizationRequestBuilder } from './synchronization'; +import { TokenIssuancePoliciesRequestBuilder } from './tokenIssuancePolicies'; +import { TokenLifetimePoliciesRequestBuilder } from './tokenLifetimePolicies'; +import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServicePrincipalItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/memberOf/count/index.ts b/src/servicePrincipals/item/memberOf/count/index.ts index d746444b897..f6008c9c378 100644 --- a/src/servicePrincipals/item/memberOf/count/index.ts +++ b/src/servicePrincipals/item/memberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/memberOf/graphAdministrativeUnit/count/index.ts b/src/servicePrincipals/item/memberOf/graphAdministrativeUnit/count/index.ts index 0562ecbb7b9..f3845ea7408 100644 --- a/src/servicePrincipals/item/memberOf/graphAdministrativeUnit/count/index.ts +++ b/src/servicePrincipals/item/memberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/memberOf/graphAdministrativeUnit/index.ts b/src/servicePrincipals/item/memberOf/graphAdministrativeUnit/index.ts index 80c0fd5eff8..4257139ace8 100644 --- a/src/servicePrincipals/item/memberOf/graphAdministrativeUnit/index.ts +++ b/src/servicePrincipals/item/memberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/memberOf/graphDirectoryRole/count/index.ts b/src/servicePrincipals/item/memberOf/graphDirectoryRole/count/index.ts index ff5f5882ba4..c62a98f26a0 100644 --- a/src/servicePrincipals/item/memberOf/graphDirectoryRole/count/index.ts +++ b/src/servicePrincipals/item/memberOf/graphDirectoryRole/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/memberOf/graphDirectoryRole/index.ts b/src/servicePrincipals/item/memberOf/graphDirectoryRole/index.ts index 2767a352183..6ebcfa66cb2 100644 --- a/src/servicePrincipals/item/memberOf/graphDirectoryRole/index.ts +++ b/src/servicePrincipals/item/memberOf/graphDirectoryRole/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRoleCollectionResponse } from '../../../../models/'; +import { type DirectoryRoleCollectionResponse } from '../../../../models'; import { createDirectoryRoleCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryRoleCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDirectoryRoleRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/memberOf/graphGroup/count/index.ts b/src/servicePrincipals/item/memberOf/graphGroup/count/index.ts index e6e06a12d4f..d9304a4574c 100644 --- a/src/servicePrincipals/item/memberOf/graphGroup/count/index.ts +++ b/src/servicePrincipals/item/memberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/memberOf/graphGroup/index.ts b/src/servicePrincipals/item/memberOf/graphGroup/index.ts index 18274263d9b..21b0cfeb4ea 100644 --- a/src/servicePrincipals/item/memberOf/graphGroup/index.ts +++ b/src/servicePrincipals/item/memberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/memberOf/index.ts b/src/servicePrincipals/item/memberOf/index.ts index 34fc86af7ec..b2fc41edc7f 100644 --- a/src/servicePrincipals/item/memberOf/index.ts +++ b/src/servicePrincipals/item/memberOf/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MemberOfRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/memberOf/item/graphAdministrativeUnit/index.ts b/src/servicePrincipals/item/memberOf/item/graphAdministrativeUnit/index.ts index 07f08d771fb..9937ab08a38 100644 --- a/src/servicePrincipals/item/memberOf/item/graphAdministrativeUnit/index.ts +++ b/src/servicePrincipals/item/memberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/memberOf/item/graphDirectoryRole/index.ts b/src/servicePrincipals/item/memberOf/item/graphDirectoryRole/index.ts index 304b0b3d8fc..e7e96d772bd 100644 --- a/src/servicePrincipals/item/memberOf/item/graphDirectoryRole/index.ts +++ b/src/servicePrincipals/item/memberOf/item/graphDirectoryRole/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRole } from '../../../../../models/'; +import { type DirectoryRole } from '../../../../../models'; import { createDirectoryRoleFromDiscriminatorValue } from '../../../../../models/directoryRole'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/memberOf/item/graphGroup/index.ts b/src/servicePrincipals/item/memberOf/item/graphGroup/index.ts index d3fd1d86018..ef502717285 100644 --- a/src/servicePrincipals/item/memberOf/item/graphGroup/index.ts +++ b/src/servicePrincipals/item/memberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/memberOf/item/index.ts b/src/servicePrincipals/item/memberOf/item/index.ts index 13119457c23..e5b0f9a22ef 100644 --- a/src/servicePrincipals/item/memberOf/item/index.ts +++ b/src/servicePrincipals/item/memberOf/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/oauth2PermissionGrants/count/index.ts b/src/servicePrincipals/item/oauth2PermissionGrants/count/index.ts index 25dc86476b8..d720f5bffdd 100644 --- a/src/servicePrincipals/item/oauth2PermissionGrants/count/index.ts +++ b/src/servicePrincipals/item/oauth2PermissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/oauth2PermissionGrants/index.ts b/src/servicePrincipals/item/oauth2PermissionGrants/index.ts index 2eadc012b39..71c52e1ad95 100644 --- a/src/servicePrincipals/item/oauth2PermissionGrants/index.ts +++ b/src/servicePrincipals/item/oauth2PermissionGrants/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OAuth2PermissionGrantCollectionResponse } from '../../../models/'; +import { type OAuth2PermissionGrantCollectionResponse } from '../../../models'; import { createOAuth2PermissionGrantCollectionResponseFromDiscriminatorValue } from '../../../models/oAuth2PermissionGrantCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { OAuth2PermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OAuth2PermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface Oauth2PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/oauth2PermissionGrants/item/index.ts b/src/servicePrincipals/item/oauth2PermissionGrants/item/index.ts index 393195799ab..88cd0e25e06 100644 --- a/src/servicePrincipals/item/oauth2PermissionGrants/item/index.ts +++ b/src/servicePrincipals/item/oauth2PermissionGrants/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OAuth2PermissionGrant } from '../../../../models/'; +import { type OAuth2PermissionGrant } from '../../../../models'; import { createOAuth2PermissionGrantFromDiscriminatorValue } from '../../../../models/oAuth2PermissionGrant'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/count/index.ts b/src/servicePrincipals/item/ownedObjects/count/index.ts index dc27f036d43..6de1da727d0 100644 --- a/src/servicePrincipals/item/ownedObjects/count/index.ts +++ b/src/servicePrincipals/item/ownedObjects/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/graphAppRoleAssignment/count/index.ts b/src/servicePrincipals/item/ownedObjects/graphAppRoleAssignment/count/index.ts index c6af0e95476..abbc525a6b3 100644 --- a/src/servicePrincipals/item/ownedObjects/graphAppRoleAssignment/count/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphAppRoleAssignment/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/graphAppRoleAssignment/index.ts b/src/servicePrincipals/item/ownedObjects/graphAppRoleAssignment/index.ts index ecb78cdbd92..f4c03cc2f65 100644 --- a/src/servicePrincipals/item/ownedObjects/graphAppRoleAssignment/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphAppRoleAssignment/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../../models'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAppRoleAssignmentRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/ownedObjects/graphApplication/count/index.ts b/src/servicePrincipals/item/ownedObjects/graphApplication/count/index.ts index 5cca341da20..6ab35276ef0 100644 --- a/src/servicePrincipals/item/ownedObjects/graphApplication/count/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/graphApplication/index.ts b/src/servicePrincipals/item/ownedObjects/graphApplication/index.ts index ddd68cbc329..6a5e08c6591 100644 --- a/src/servicePrincipals/item/ownedObjects/graphApplication/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../../models/'; +import { type ApplicationCollectionResponse } from '../../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/ownedObjects/graphEndpoint/count/index.ts b/src/servicePrincipals/item/ownedObjects/graphEndpoint/count/index.ts index efc3691ee97..36608a7c4ea 100644 --- a/src/servicePrincipals/item/ownedObjects/graphEndpoint/count/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphEndpoint/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/graphEndpoint/index.ts b/src/servicePrincipals/item/ownedObjects/graphEndpoint/index.ts index e8ee051aeed..8cd18730d11 100644 --- a/src/servicePrincipals/item/ownedObjects/graphEndpoint/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphEndpoint/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndpointCollectionResponse } from '../../../../models/'; +import { type EndpointCollectionResponse } from '../../../../models'; import { createEndpointCollectionResponseFromDiscriminatorValue } from '../../../../models/endpointCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphEndpointRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/ownedObjects/graphGroup/count/index.ts b/src/servicePrincipals/item/ownedObjects/graphGroup/count/index.ts index f361036fcbe..cff09be4c5d 100644 --- a/src/servicePrincipals/item/ownedObjects/graphGroup/count/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/graphGroup/index.ts b/src/servicePrincipals/item/ownedObjects/graphGroup/index.ts index 1c2daa26fbe..540838a4847 100644 --- a/src/servicePrincipals/item/ownedObjects/graphGroup/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/ownedObjects/graphServicePrincipal/count/index.ts b/src/servicePrincipals/item/ownedObjects/graphServicePrincipal/count/index.ts index bf0b814447e..b9503e160b9 100644 --- a/src/servicePrincipals/item/ownedObjects/graphServicePrincipal/count/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/graphServicePrincipal/index.ts b/src/servicePrincipals/item/ownedObjects/graphServicePrincipal/index.ts index 0aa97145f67..45d6ccc012b 100644 --- a/src/servicePrincipals/item/ownedObjects/graphServicePrincipal/index.ts +++ b/src/servicePrincipals/item/ownedObjects/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/ownedObjects/index.ts b/src/servicePrincipals/item/ownedObjects/index.ts index e6aeaed971a..faad7a943db 100644 --- a/src/servicePrincipals/item/ownedObjects/index.ts +++ b/src/servicePrincipals/item/ownedObjects/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OwnedObjectsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/ownedObjects/item/graphAppRoleAssignment/index.ts b/src/servicePrincipals/item/ownedObjects/item/graphAppRoleAssignment/index.ts index cb6447a751c..8f27fb008d7 100644 --- a/src/servicePrincipals/item/ownedObjects/item/graphAppRoleAssignment/index.ts +++ b/src/servicePrincipals/item/ownedObjects/item/graphAppRoleAssignment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignment } from '../../../../../models/'; +import { type AppRoleAssignment } from '../../../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue } from '../../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/item/graphApplication/index.ts b/src/servicePrincipals/item/ownedObjects/item/graphApplication/index.ts index b5b7d675b64..f2e910eef1f 100644 --- a/src/servicePrincipals/item/ownedObjects/item/graphApplication/index.ts +++ b/src/servicePrincipals/item/ownedObjects/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../../models/'; +import { type Application } from '../../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../../models/application'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/item/graphEndpoint/index.ts b/src/servicePrincipals/item/ownedObjects/item/graphEndpoint/index.ts index 8844b68fa07..0f5ed5cd127 100644 --- a/src/servicePrincipals/item/ownedObjects/item/graphEndpoint/index.ts +++ b/src/servicePrincipals/item/ownedObjects/item/graphEndpoint/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Endpoint } from '../../../../../models/'; +import { type Endpoint } from '../../../../../models'; import { createEndpointFromDiscriminatorValue } from '../../../../../models/endpoint'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/item/graphGroup/index.ts b/src/servicePrincipals/item/ownedObjects/item/graphGroup/index.ts index b0a6743d1ee..427411f9baf 100644 --- a/src/servicePrincipals/item/ownedObjects/item/graphGroup/index.ts +++ b/src/servicePrincipals/item/ownedObjects/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/item/graphServicePrincipal/index.ts b/src/servicePrincipals/item/ownedObjects/item/graphServicePrincipal/index.ts index 0b22e8482a7..a1df8755fe5 100644 --- a/src/servicePrincipals/item/ownedObjects/item/graphServicePrincipal/index.ts +++ b/src/servicePrincipals/item/ownedObjects/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/ownedObjects/item/index.ts b/src/servicePrincipals/item/ownedObjects/item/index.ts index f0d0c1676cb..1c4dff5cc25 100644 --- a/src/servicePrincipals/item/ownedObjects/item/index.ts +++ b/src/servicePrincipals/item/ownedObjects/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/owners/count/index.ts b/src/servicePrincipals/item/owners/count/index.ts index 8fc7a3e0ab8..390ec73a371 100644 --- a/src/servicePrincipals/item/owners/count/index.ts +++ b/src/servicePrincipals/item/owners/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/graphAppRoleAssignment/count/index.ts b/src/servicePrincipals/item/owners/graphAppRoleAssignment/count/index.ts index b706aadb51a..b45bd3e0cff 100644 --- a/src/servicePrincipals/item/owners/graphAppRoleAssignment/count/index.ts +++ b/src/servicePrincipals/item/owners/graphAppRoleAssignment/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/graphAppRoleAssignment/index.ts b/src/servicePrincipals/item/owners/graphAppRoleAssignment/index.ts index 106089dc092..9655c985eb4 100644 --- a/src/servicePrincipals/item/owners/graphAppRoleAssignment/index.ts +++ b/src/servicePrincipals/item/owners/graphAppRoleAssignment/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../../models'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAppRoleAssignmentRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/owners/graphEndpoint/count/index.ts b/src/servicePrincipals/item/owners/graphEndpoint/count/index.ts index 6781f514b03..9a2ed54f669 100644 --- a/src/servicePrincipals/item/owners/graphEndpoint/count/index.ts +++ b/src/servicePrincipals/item/owners/graphEndpoint/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/graphEndpoint/index.ts b/src/servicePrincipals/item/owners/graphEndpoint/index.ts index 97896880e97..71884356bbe 100644 --- a/src/servicePrincipals/item/owners/graphEndpoint/index.ts +++ b/src/servicePrincipals/item/owners/graphEndpoint/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndpointCollectionResponse } from '../../../../models/'; +import { type EndpointCollectionResponse } from '../../../../models'; import { createEndpointCollectionResponseFromDiscriminatorValue } from '../../../../models/endpointCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphEndpointRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/owners/graphServicePrincipal/count/index.ts b/src/servicePrincipals/item/owners/graphServicePrincipal/count/index.ts index aeb8fda01fd..b58e1bed8f9 100644 --- a/src/servicePrincipals/item/owners/graphServicePrincipal/count/index.ts +++ b/src/servicePrincipals/item/owners/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/graphServicePrincipal/index.ts b/src/servicePrincipals/item/owners/graphServicePrincipal/index.ts index e553661d98b..133f5ade643 100644 --- a/src/servicePrincipals/item/owners/graphServicePrincipal/index.ts +++ b/src/servicePrincipals/item/owners/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/owners/graphUser/count/index.ts b/src/servicePrincipals/item/owners/graphUser/count/index.ts index ecf2ee013a7..0dd6ef2da89 100644 --- a/src/servicePrincipals/item/owners/graphUser/count/index.ts +++ b/src/servicePrincipals/item/owners/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/graphUser/index.ts b/src/servicePrincipals/item/owners/graphUser/index.ts index d6dca29890e..d8f03aa22c9 100644 --- a/src/servicePrincipals/item/owners/graphUser/index.ts +++ b/src/servicePrincipals/item/owners/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/owners/index.ts b/src/servicePrincipals/item/owners/index.ts index 32255d52d29..eb08773dd68 100644 --- a/src/servicePrincipals/item/owners/index.ts +++ b/src/servicePrincipals/item/owners/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; -import { RefRequestBuilder } from './ref/'; +import { CountRequestBuilder } from './count'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OwnersRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/owners/item/graphAppRoleAssignment/index.ts b/src/servicePrincipals/item/owners/item/graphAppRoleAssignment/index.ts index 52de14200c4..aa3e31976fb 100644 --- a/src/servicePrincipals/item/owners/item/graphAppRoleAssignment/index.ts +++ b/src/servicePrincipals/item/owners/item/graphAppRoleAssignment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignment } from '../../../../../models/'; +import { type AppRoleAssignment } from '../../../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue } from '../../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/item/graphEndpoint/index.ts b/src/servicePrincipals/item/owners/item/graphEndpoint/index.ts index 3fe9d902dd3..a69fbe58293 100644 --- a/src/servicePrincipals/item/owners/item/graphEndpoint/index.ts +++ b/src/servicePrincipals/item/owners/item/graphEndpoint/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Endpoint } from '../../../../../models/'; +import { type Endpoint } from '../../../../../models'; import { createEndpointFromDiscriminatorValue } from '../../../../../models/endpoint'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/item/graphServicePrincipal/index.ts b/src/servicePrincipals/item/owners/item/graphServicePrincipal/index.ts index 28e95599347..1a0ccd9de64 100644 --- a/src/servicePrincipals/item/owners/item/graphServicePrincipal/index.ts +++ b/src/servicePrincipals/item/owners/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/item/graphUser/index.ts b/src/servicePrincipals/item/owners/item/graphUser/index.ts index bfdeb87da4a..ed123d0896c 100644 --- a/src/servicePrincipals/item/owners/item/graphUser/index.ts +++ b/src/servicePrincipals/item/owners/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/item/index.ts b/src/servicePrincipals/item/owners/item/index.ts index 95753602480..a78923b371f 100644 --- a/src/servicePrincipals/item/owners/item/index.ts +++ b/src/servicePrincipals/item/owners/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { RefRequestBuilder } from './ref/'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { GraphUserRequestBuilder } from './graphUser'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, type RequestAdapter } from '@microsoft/kiota-abstractions'; /** diff --git a/src/servicePrincipals/item/owners/item/ref/index.ts b/src/servicePrincipals/item/owners/item/ref/index.ts index 84c0503a1d6..3470b3a2a71 100644 --- a/src/servicePrincipals/item/owners/item/ref/index.ts +++ b/src/servicePrincipals/item/owners/item/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/owners/ref/index.ts b/src/servicePrincipals/item/owners/ref/index.ts index 750b592675f..2c71edbe5d2 100644 --- a/src/servicePrincipals/item/owners/ref/index.ts +++ b/src/servicePrincipals/item/owners/ref/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type StringCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type StringCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceCreate, serializeReferenceCreate, type ReferenceCreate } from '../../../../models/referenceCreate'; import { createStringCollectionResponseFromDiscriminatorValue } from '../../../../models/stringCollectionResponse'; diff --git a/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/index.ts b/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/index.ts index 98e0696ed4e..9c886fd184a 100644 --- a/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/index.ts +++ b/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRemoteDesktopSecurityConfigurationFromDiscriminatorValue, deserializeIntoRemoteDesktopSecurityConfiguration, serializeRemoteDesktopSecurityConfiguration, type RemoteDesktopSecurityConfiguration } from '../../../models/remoteDesktopSecurityConfiguration'; -import { TargetDeviceGroupsRequestBuilder } from './targetDeviceGroups/'; +import { TargetDeviceGroupsRequestBuilder } from './targetDeviceGroups'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/count/index.ts b/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/count/index.ts index ceec0a15b8a..50da7152e24 100644 --- a/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/count/index.ts +++ b/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/index.ts b/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/index.ts index 3c280e0f085..682df75a062 100644 --- a/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/index.ts +++ b/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TargetDeviceGroupCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TargetDeviceGroupCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTargetDeviceGroupFromDiscriminatorValue, deserializeIntoTargetDeviceGroup, serializeTargetDeviceGroup, type TargetDeviceGroup } from '../../../../models/targetDeviceGroup'; import { createTargetDeviceGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/targetDeviceGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TargetDeviceGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TargetDeviceGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TargetDeviceGroupsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/item/index.ts b/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/item/index.ts index 9efb9cd956f..58289cd0650 100644 --- a/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/item/index.ts +++ b/src/servicePrincipals/item/remoteDesktopSecurityConfiguration/targetDeviceGroups/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTargetDeviceGroupFromDiscriminatorValue, deserializeIntoTargetDeviceGroup, serializeTargetDeviceGroup, type TargetDeviceGroup } from '../../../../../models/targetDeviceGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/removeKey/index.ts b/src/servicePrincipals/item/removeKey/index.ts index 5fb7565ef08..9dfbb0c7638 100644 --- a/src/servicePrincipals/item/removeKey/index.ts +++ b/src/servicePrincipals/item/removeKey/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoRemoveKeyPostRequestBody, serializeRemoveKeyPostRequestBody, type RemoveKeyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Guid } from 'guid-typescript'; +export function createRemoveKeyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemoveKeyPostRequestBody; +} +export function deserializeIntoRemoveKeyPostRequestBody(removeKeyPostRequestBody: RemoveKeyPostRequestBody | undefined = {} as RemoveKeyPostRequestBody) : Record void> { + return { + "keyId": n => { removeKeyPostRequestBody.keyId = n.getGuidValue(); }, + "proof": n => { removeKeyPostRequestBody.proof = n.getStringValue(); }, + } +} +export interface RemoveKeyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The keyId property + */ + keyId?: Guid; + /** + * The proof property + */ + proof?: string; +} +export function serializeRemoveKeyPostRequestBody(writer: SerializationWriter, removeKeyPostRequestBody: RemoveKeyPostRequestBody | undefined = {} as RemoveKeyPostRequestBody) : void { + writer.writeGuidValue("keyId", removeKeyPostRequestBody.keyId); + writer.writeStringValue("proof", removeKeyPostRequestBody.proof); + writer.writeAdditionalData(removeKeyPostRequestBody.additionalData); +} /** * Provides operations to call the removeKey method. */ diff --git a/src/servicePrincipals/item/removeKey/removeKeyPostRequestBody.ts b/src/servicePrincipals/item/removeKey/removeKeyPostRequestBody.ts deleted file mode 100644 index 631df0fcbe8..00000000000 --- a/src/servicePrincipals/item/removeKey/removeKeyPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -import { type Guid } from 'guid-typescript'; - -export function createRemoveKeyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemoveKeyPostRequestBody; -} -export function deserializeIntoRemoveKeyPostRequestBody(removeKeyPostRequestBody: RemoveKeyPostRequestBody | undefined = {} as RemoveKeyPostRequestBody) : Record void> { - return { - "keyId": n => { removeKeyPostRequestBody.keyId = n.getGuidValue(); }, - "proof": n => { removeKeyPostRequestBody.proof = n.getStringValue(); }, - } -} -export interface RemoveKeyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The keyId property - */ - keyId?: Guid; - /** - * The proof property - */ - proof?: string; -} -export function serializeRemoveKeyPostRequestBody(writer: SerializationWriter, removeKeyPostRequestBody: RemoveKeyPostRequestBody | undefined = {} as RemoveKeyPostRequestBody) : void { - writer.writeGuidValue("keyId", removeKeyPostRequestBody.keyId); - writer.writeStringValue("proof", removeKeyPostRequestBody.proof); - writer.writeAdditionalData(removeKeyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/removePassword/index.ts b/src/servicePrincipals/item/removePassword/index.ts index 8759cbf30ac..dedf85c04cc 100644 --- a/src/servicePrincipals/item/removePassword/index.ts +++ b/src/servicePrincipals/item/removePassword/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoRemovePasswordPostRequestBody, serializeRemovePasswordPostRequestBody, type RemovePasswordPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Guid } from 'guid-typescript'; +export function createRemovePasswordPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemovePasswordPostRequestBody; +} +export function deserializeIntoRemovePasswordPostRequestBody(removePasswordPostRequestBody: RemovePasswordPostRequestBody | undefined = {} as RemovePasswordPostRequestBody) : Record void> { + return { + "keyId": n => { removePasswordPostRequestBody.keyId = n.getGuidValue(); }, + } +} +export interface RemovePasswordPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The keyId property + */ + keyId?: Guid; +} +export function serializeRemovePasswordPostRequestBody(writer: SerializationWriter, removePasswordPostRequestBody: RemovePasswordPostRequestBody | undefined = {} as RemovePasswordPostRequestBody) : void { + writer.writeGuidValue("keyId", removePasswordPostRequestBody.keyId); + writer.writeAdditionalData(removePasswordPostRequestBody.additionalData); +} /** * Provides operations to call the removePassword method. */ diff --git a/src/servicePrincipals/item/removePassword/removePasswordPostRequestBody.ts b/src/servicePrincipals/item/removePassword/removePasswordPostRequestBody.ts deleted file mode 100644 index e61e9f6ee50..00000000000 --- a/src/servicePrincipals/item/removePassword/removePasswordPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -import { type Guid } from 'guid-typescript'; - -export function createRemovePasswordPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemovePasswordPostRequestBody; -} -export function deserializeIntoRemovePasswordPostRequestBody(removePasswordPostRequestBody: RemovePasswordPostRequestBody | undefined = {} as RemovePasswordPostRequestBody) : Record void> { - return { - "keyId": n => { removePasswordPostRequestBody.keyId = n.getGuidValue(); }, - } -} -export interface RemovePasswordPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The keyId property - */ - keyId?: Guid; -} -export function serializeRemovePasswordPostRequestBody(writer: SerializationWriter, removePasswordPostRequestBody: RemovePasswordPostRequestBody | undefined = {} as RemovePasswordPostRequestBody) : void { - writer.writeGuidValue("keyId", removePasswordPostRequestBody.keyId); - writer.writeAdditionalData(removePasswordPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/restore/index.ts b/src/servicePrincipals/item/restore/index.ts index bca0e21b149..22d36401ef4 100644 --- a/src/servicePrincipals/item/restore/index.ts +++ b/src/servicePrincipals/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/acquireAccessToken/acquireAccessTokenPostRequestBody.ts b/src/servicePrincipals/item/synchronization/acquireAccessToken/acquireAccessTokenPostRequestBody.ts deleted file mode 100644 index 25fb1db63c3..00000000000 --- a/src/servicePrincipals/item/synchronization/acquireAccessToken/acquireAccessTokenPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/synchronizationSecretKeyStringValuePair'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AcquireAccessTokenPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The credentials property - */ - credentials?: SynchronizationSecretKeyStringValuePair[]; -} -export function createAcquireAccessTokenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAcquireAccessTokenPostRequestBody; -} -export function deserializeIntoAcquireAccessTokenPostRequestBody(acquireAccessTokenPostRequestBody: AcquireAccessTokenPostRequestBody | undefined = {} as AcquireAccessTokenPostRequestBody) : Record void> { - return { - "credentials": n => { acquireAccessTokenPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, - } -} -export function serializeAcquireAccessTokenPostRequestBody(writer: SerializationWriter, acquireAccessTokenPostRequestBody: AcquireAccessTokenPostRequestBody | undefined = {} as AcquireAccessTokenPostRequestBody) : void { - writer.writeCollectionOfObjectValues("credentials", acquireAccessTokenPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); - writer.writeAdditionalData(acquireAccessTokenPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/synchronization/acquireAccessToken/index.ts b/src/servicePrincipals/item/synchronization/acquireAccessToken/index.ts index b251420d681..66c84ccc484 100644 --- a/src/servicePrincipals/item/synchronization/acquireAccessToken/index.ts +++ b/src/servicePrincipals/item/synchronization/acquireAccessToken/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAcquireAccessTokenPostRequestBody, serializeAcquireAccessTokenPostRequestBody, type AcquireAccessTokenPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/synchronizationSecretKeyStringValuePair'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AcquireAccessTokenPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The credentials property + */ + credentials?: SynchronizationSecretKeyStringValuePair[]; +} +export function createAcquireAccessTokenPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAcquireAccessTokenPostRequestBody; +} +export function deserializeIntoAcquireAccessTokenPostRequestBody(acquireAccessTokenPostRequestBody: AcquireAccessTokenPostRequestBody | undefined = {} as AcquireAccessTokenPostRequestBody) : Record void> { + return { + "credentials": n => { acquireAccessTokenPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + } +} +export function serializeAcquireAccessTokenPostRequestBody(writer: SerializationWriter, acquireAccessTokenPostRequestBody: AcquireAccessTokenPostRequestBody | undefined = {} as AcquireAccessTokenPostRequestBody) : void { + writer.writeCollectionOfObjectValues("credentials", acquireAccessTokenPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); + writer.writeAdditionalData(acquireAccessTokenPostRequestBody.additionalData); +} /** * Provides operations to call the acquireAccessToken method. */ diff --git a/src/servicePrincipals/item/synchronization/index.ts b/src/servicePrincipals/item/synchronization/index.ts index 967d7d32db6..85e79984b1d 100644 --- a/src/servicePrincipals/item/synchronization/index.ts +++ b/src/servicePrincipals/item/synchronization/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSynchronizationFromDiscriminatorValue, deserializeIntoSynchronization, serializeSynchronization, type Synchronization } from '../../../models/synchronization'; -import { AcquireAccessTokenRequestBuilder } from './acquireAccessToken/'; -import { JobsRequestBuilder } from './jobs/'; -import { SecretsRequestBuilder } from './secrets/'; -import { TemplatesRequestBuilder } from './templates/'; +import { AcquireAccessTokenRequestBuilder } from './acquireAccessToken'; +import { JobsRequestBuilder } from './jobs'; +import { SecretsRequestBuilder } from './secrets'; +import { TemplatesRequestBuilder } from './templates'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SynchronizationRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/jobs/count/index.ts b/src/servicePrincipals/item/synchronization/jobs/count/index.ts index b61b7bbf02d..61ac5fe71f8 100644 --- a/src/servicePrincipals/item/synchronization/jobs/count/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/jobs/index.ts b/src/servicePrincipals/item/synchronization/jobs/index.ts index 3bcff4914a4..f2cc91712c6 100644 --- a/src/servicePrincipals/item/synchronization/jobs/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SynchronizationJobCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SynchronizationJobCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSynchronizationJobFromDiscriminatorValue, deserializeIntoSynchronizationJob, serializeSynchronizationJob, type SynchronizationJob } from '../../../../models/synchronizationJob'; import { createSynchronizationJobCollectionResponseFromDiscriminatorValue } from '../../../../models/synchronizationJobCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SynchronizationJobItemRequestBuilder } from './item/'; -import { ValidateCredentialsRequestBuilder } from './validateCredentials/'; +import { CountRequestBuilder } from './count'; +import { SynchronizationJobItemRequestBuilder } from './item'; +import { ValidateCredentialsRequestBuilder } from './validateCredentials'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface JobsRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/jobs/item/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/index.ts index 5a9852bc7a4..3f2df553a32 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSynchronizationJobFromDiscriminatorValue, deserializeIntoSynchronizationJob, serializeSynchronizationJob, type SynchronizationJob } from '../../../../../models/synchronizationJob'; -import { PauseRequestBuilder } from './pause/'; -import { ProvisionOnDemandRequestBuilder } from './provisionOnDemand/'; -import { RestartRequestBuilder } from './restart/'; -import { SchemaRequestBuilder } from './schema/'; -import { StartRequestBuilder } from './start/'; -import { ValidateCredentialsRequestBuilder } from './validateCredentials/'; +import { PauseRequestBuilder } from './pause'; +import { ProvisionOnDemandRequestBuilder } from './provisionOnDemand'; +import { RestartRequestBuilder } from './restart'; +import { SchemaRequestBuilder } from './schema'; +import { StartRequestBuilder } from './start'; +import { ValidateCredentialsRequestBuilder } from './validateCredentials'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SynchronizationJobItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/jobs/item/pause/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/pause/index.ts index 4dcbcfadbb7..8750f312868 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/pause/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/pause/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/jobs/item/provisionOnDemand/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/provisionOnDemand/index.ts index 2405c8b8898..40d160ec175 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/provisionOnDemand/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/provisionOnDemand/index.ts @@ -1,11 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createStringKeyStringValuePairFromDiscriminatorValue, deserializeIntoStringKeyStringValuePair, serializeStringKeyStringValuePair, type StringKeyStringValuePair } from '../../../../../../models/stringKeyStringValuePair'; import { createSynchronizationJobApplicationParametersFromDiscriminatorValue, serializeSynchronizationJobApplicationParameters, type SynchronizationJobApplicationParameters } from '../../../../../../models/synchronizationJobApplicationParameters'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createProvisionOnDemandPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeProvisionOnDemandPostRequestBody(writer: SerializationW writer.writeCollectionOfObjectValues("parameters", provisionOnDemandPostRequestBody.parameters, serializeSynchronizationJobApplicationParameters); writer.writeAdditionalData(provisionOnDemandPostRequestBody.additionalData); } -/** - * Provides operations to call the provisionOnDemand method. - */ -export class ProvisionOnDemandRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ProvisionOnDemandRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/provisionOnDemand"); - }; - /** - * Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of StringKeyStringValuePair - * @see {@link https://learn.microsoft.com/graph/api/synchronization-synchronizationjob-provisionondemand?view=graph-rest-1.0|Find more info here} - */ - public post(body: ProvisionOnDemandPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createStringKeyStringValuePairFromDiscriminatorValue, errorMapping); - }; - /** - * Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ProvisionOnDemandPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeProvisionOnDemandPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a provisionOnDemandRequestBuilder - */ - public withUrl(rawUrl: string) : ProvisionOnDemandRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ProvisionOnDemandRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/synchronization/jobs/item/restart/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/restart/index.ts index 527e4925c18..11176d7f2f4 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/restart/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/restart/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoRestartPostRequestBody, serializeRestartPostRequestBody, type RestartPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSynchronizationJobRestartCriteriaFromDiscriminatorValue, serializeSynchronizationJobRestartCriteria, type SynchronizationJobRestartCriteria } from '../../../../../../models/synchronizationJobRestartCriteria'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRestartPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRestartPostRequestBody; +} +export function deserializeIntoRestartPostRequestBody(restartPostRequestBody: RestartPostRequestBody | undefined = {} as RestartPostRequestBody) : Record void> { + return { + "criteria": n => { restartPostRequestBody.criteria = n.getObjectValue(createSynchronizationJobRestartCriteriaFromDiscriminatorValue); }, + } +} +export interface RestartPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The criteria property + */ + criteria?: SynchronizationJobRestartCriteria; +} +export function serializeRestartPostRequestBody(writer: SerializationWriter, restartPostRequestBody: RestartPostRequestBody | undefined = {} as RestartPostRequestBody) : void { + writer.writeObjectValue("criteria", restartPostRequestBody.criteria, serializeSynchronizationJobRestartCriteria); + writer.writeAdditionalData(restartPostRequestBody.additionalData); +} /** * Provides operations to call the restart method. */ diff --git a/src/servicePrincipals/item/synchronization/jobs/item/restart/restartPostRequestBody.ts b/src/servicePrincipals/item/synchronization/jobs/item/restart/restartPostRequestBody.ts deleted file mode 100644 index f94b41a94f5..00000000000 --- a/src/servicePrincipals/item/synchronization/jobs/item/restart/restartPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSynchronizationJobRestartCriteriaFromDiscriminatorValue, serializeSynchronizationJobRestartCriteria, type SynchronizationJobRestartCriteria } from '../../../../../../models/synchronizationJobRestartCriteria'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRestartPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRestartPostRequestBody; -} -export function deserializeIntoRestartPostRequestBody(restartPostRequestBody: RestartPostRequestBody | undefined = {} as RestartPostRequestBody) : Record void> { - return { - "criteria": n => { restartPostRequestBody.criteria = n.getObjectValue(createSynchronizationJobRestartCriteriaFromDiscriminatorValue); }, - } -} -export interface RestartPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The criteria property - */ - criteria?: SynchronizationJobRestartCriteria; -} -export function serializeRestartPostRequestBody(writer: SerializationWriter, restartPostRequestBody: RestartPostRequestBody | undefined = {} as RestartPostRequestBody) : void { - writer.writeObjectValue("criteria", restartPostRequestBody.criteria, serializeSynchronizationJobRestartCriteria); - writer.writeAdditionalData(restartPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/count/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/count/index.ts index 57d917a0a98..e6af67489a1 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/count/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/index.ts index 3047f0b0aca..6703b4a7455 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type DirectoryDefinitionCollectionResponse } from '../../../../../../../models'; import { createDirectoryDefinitionFromDiscriminatorValue, deserializeIntoDirectoryDefinition, serializeDirectoryDefinition, type DirectoryDefinition } from '../../../../../../../models/directoryDefinition'; import { createDirectoryDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/directoryDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoriesRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/item/discover/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/item/discover/index.ts index f352c42244f..16e35c990ab 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/item/discover/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/item/discover/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryDefinition } from '../../../../../../../../../models/'; +import { type DirectoryDefinition } from '../../../../../../../../../models'; import { createDirectoryDefinitionFromDiscriminatorValue } from '../../../../../../../../../models/directoryDefinition'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/item/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/item/index.ts index 99f7b422993..189c57fd694 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/item/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/schema/directories/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryDefinitionFromDiscriminatorValue, deserializeIntoDirectoryDefinition, serializeDirectoryDefinition, type DirectoryDefinition } from '../../../../../../../../models/directoryDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { DiscoverRequestBuilder } from './discover/'; +import { DiscoverRequestBuilder } from './discover'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/filterOperators/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/filterOperators/index.ts index 810c3f0f159..9d95118da0e 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/filterOperators/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/schema/filterOperators/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; import { createFilterOperatorSchemaFromDiscriminatorValue, serializeFilterOperatorSchema, type FilterOperatorSchema } from '../../../../../../../models/filterOperatorSchema'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFilterOperatorsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,96 +21,9 @@ export interface FilterOperatorsGetResponse extends BaseCollectionPaginationCoun */ value?: FilterOperatorSchema[]; } -export interface FilterOperatorsRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeFilterOperatorsGetResponse(writer: SerializationWriter, filterOperatorsGetResponse: FilterOperatorsGetResponse | undefined = {} as FilterOperatorsGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, filterOperatorsGetResponse) writer.writeCollectionOfObjectValues("value", filterOperatorsGetResponse.value, serializeFilterOperatorSchema); } -/** - * Provides operations to call the filterOperators method. - */ -export class FilterOperatorsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FilterOperatorsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/filterOperators(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function filterOperators - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of FilterOperatorsGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createFilterOperatorsGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function filterOperators - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, filterOperatorsRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a filterOperatorsRequestBuilder - */ - public withUrl(rawUrl: string) : FilterOperatorsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FilterOperatorsRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const filterOperatorsRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/functions/functionsGetResponse.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/functions/functionsGetResponse.ts deleted file mode 100644 index f148bbc6447..00000000000 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/functions/functionsGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../../../../../../models/attributeMappingFunctionSchema'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFunctionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFunctionsGetResponse; -} -export function deserializeIntoFunctionsGetResponse(functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(functionsGetResponse), - "value": n => { functionsGetResponse.value = n.getCollectionOfObjectValues(createAttributeMappingFunctionSchemaFromDiscriminatorValue); }, - } -} -export interface FunctionsGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AttributeMappingFunctionSchema[]; -} -export function serializeFunctionsGetResponse(writer: SerializationWriter, functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, functionsGetResponse) - writer.writeCollectionOfObjectValues("value", functionsGetResponse.value, serializeAttributeMappingFunctionSchema); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/functions/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/functions/index.ts index 94ede20c2f3..44a03e3e50d 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/functions/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/schema/functions/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../../../../../../models/attributeMappingFunctionSchema'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createFunctionsGetResponseFromDiscriminatorValue } from './'; -import { type FunctionsGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFunctionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFunctionsGetResponse; +} +export function deserializeIntoFunctionsGetResponse(functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(functionsGetResponse), + "value": n => { functionsGetResponse.value = n.getCollectionOfObjectValues(createAttributeMappingFunctionSchemaFromDiscriminatorValue); }, + } +} +export interface FunctionsGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AttributeMappingFunctionSchema[]; +} export interface FunctionsRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FunctionsRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFunctionsGetResponse(writer: SerializationWriter, functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, functionsGetResponse) + writer.writeCollectionOfObjectValues("value", functionsGetResponse.value, serializeAttributeMappingFunctionSchema); +} /** * Provides operations to call the functions method. */ diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/index.ts index d79fb9d8967..ef7996a20dc 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/schema/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSynchronizationSchemaFromDiscriminatorValue, deserializeIntoSynchronizationSchema, serializeSynchronizationSchema, type SynchronizationSchema } from '../../../../../../models/synchronizationSchema'; -import { DirectoriesRequestBuilder } from './directories/'; -import { FilterOperatorsRequestBuilder } from './filterOperators/'; -import { FunctionsRequestBuilder } from './functions/'; -import { ParseExpressionRequestBuilder } from './parseExpression/'; +import { DirectoriesRequestBuilder } from './directories'; +import { FilterOperatorsRequestBuilder } from './filterOperators'; +import { FunctionsRequestBuilder } from './functions'; +import { ParseExpressionRequestBuilder } from './parseExpression'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchemaRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/parseExpression/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/parseExpression/index.ts index 9f2cf570147..47b769d764d 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/parseExpression/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/schema/parseExpression/index.ts @@ -1,12 +1,48 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createAttributeDefinitionFromDiscriminatorValue, serializeAttributeDefinition, type AttributeDefinition } from '../../../../../../../models/attributeDefinition'; +import { createExpressionInputObjectFromDiscriminatorValue, serializeExpressionInputObject, type ExpressionInputObject } from '../../../../../../../models/expressionInputObject'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createParseExpressionResponseFromDiscriminatorValue, deserializeIntoParseExpressionResponse, serializeParseExpressionResponse, type ParseExpressionResponse } from '../../../../../../../models/parseExpressionResponse'; -import { deserializeIntoParseExpressionPostRequestBody, serializeParseExpressionPostRequestBody, type ParseExpressionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createParseExpressionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoParseExpressionPostRequestBody; +} +export function deserializeIntoParseExpressionPostRequestBody(parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : Record void> { + return { + "expression": n => { parseExpressionPostRequestBody.expression = n.getStringValue(); }, + "targetAttributeDefinition": n => { parseExpressionPostRequestBody.targetAttributeDefinition = n.getObjectValue(createAttributeDefinitionFromDiscriminatorValue); }, + "testInputObject": n => { parseExpressionPostRequestBody.testInputObject = n.getObjectValue(createExpressionInputObjectFromDiscriminatorValue); }, + } +} +export interface ParseExpressionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The expression property + */ + expression?: string; + /** + * The targetAttributeDefinition property + */ + targetAttributeDefinition?: AttributeDefinition; + /** + * The testInputObject property + */ + testInputObject?: ExpressionInputObject; +} +export function serializeParseExpressionPostRequestBody(writer: SerializationWriter, parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : void { + writer.writeStringValue("expression", parseExpressionPostRequestBody.expression); + writer.writeObjectValue("targetAttributeDefinition", parseExpressionPostRequestBody.targetAttributeDefinition, serializeAttributeDefinition); + writer.writeObjectValue("testInputObject", parseExpressionPostRequestBody.testInputObject, serializeExpressionInputObject); + writer.writeAdditionalData(parseExpressionPostRequestBody.additionalData); +} /** * Provides operations to call the parseExpression method. */ diff --git a/src/servicePrincipals/item/synchronization/jobs/item/schema/parseExpression/parseExpressionPostRequestBody.ts b/src/servicePrincipals/item/synchronization/jobs/item/schema/parseExpression/parseExpressionPostRequestBody.ts deleted file mode 100644 index c065d642bfc..00000000000 --- a/src/servicePrincipals/item/synchronization/jobs/item/schema/parseExpression/parseExpressionPostRequestBody.ts +++ /dev/null @@ -1,44 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttributeDefinitionFromDiscriminatorValue, serializeAttributeDefinition, type AttributeDefinition } from '../../../../../../../models/attributeDefinition'; -import { createExpressionInputObjectFromDiscriminatorValue, serializeExpressionInputObject, type ExpressionInputObject } from '../../../../../../../models/expressionInputObject'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createParseExpressionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoParseExpressionPostRequestBody; -} -export function deserializeIntoParseExpressionPostRequestBody(parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : Record void> { - return { - "expression": n => { parseExpressionPostRequestBody.expression = n.getStringValue(); }, - "targetAttributeDefinition": n => { parseExpressionPostRequestBody.targetAttributeDefinition = n.getObjectValue(createAttributeDefinitionFromDiscriminatorValue); }, - "testInputObject": n => { parseExpressionPostRequestBody.testInputObject = n.getObjectValue(createExpressionInputObjectFromDiscriminatorValue); }, - } -} -export interface ParseExpressionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The expression property - */ - expression?: string; - /** - * The targetAttributeDefinition property - */ - targetAttributeDefinition?: AttributeDefinition; - /** - * The testInputObject property - */ - testInputObject?: ExpressionInputObject; -} -export function serializeParseExpressionPostRequestBody(writer: SerializationWriter, parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : void { - writer.writeStringValue("expression", parseExpressionPostRequestBody.expression); - writer.writeObjectValue("targetAttributeDefinition", parseExpressionPostRequestBody.targetAttributeDefinition, serializeAttributeDefinition); - writer.writeObjectValue("testInputObject", parseExpressionPostRequestBody.testInputObject, serializeExpressionInputObject); - writer.writeAdditionalData(parseExpressionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/synchronization/jobs/item/start/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/start/index.ts index d42e13e8069..133eaa5d96c 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/start/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/start/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/jobs/item/validateCredentials/index.ts b/src/servicePrincipals/item/synchronization/jobs/item/validateCredentials/index.ts index 837e1f47cbf..e2373dd9d25 100644 --- a/src/servicePrincipals/item/synchronization/jobs/item/validateCredentials/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/item/validateCredentials/index.ts @@ -1,11 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoValidateCredentialsPostRequestBody, serializeValidateCredentialsPostRequestBody, type ValidateCredentialsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../../../models/synchronizationSecretKeyStringValuePair'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createValidateCredentialsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoValidateCredentialsPostRequestBody; +} +export function deserializeIntoValidateCredentialsPostRequestBody(validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : Record void> { + return { + "applicationIdentifier": n => { validateCredentialsPostRequestBody.applicationIdentifier = n.getStringValue(); }, + "credentials": n => { validateCredentialsPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + "templateId": n => { validateCredentialsPostRequestBody.templateId = n.getStringValue(); }, + "useSavedCredentials": n => { validateCredentialsPostRequestBody.useSavedCredentials = n.getBooleanValue(); }, + } +} +export function serializeValidateCredentialsPostRequestBody(writer: SerializationWriter, validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : void { + writer.writeStringValue("applicationIdentifier", validateCredentialsPostRequestBody.applicationIdentifier); + writer.writeCollectionOfObjectValues("credentials", validateCredentialsPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); + writer.writeStringValue("templateId", validateCredentialsPostRequestBody.templateId); + writer.writeBooleanValue("useSavedCredentials", validateCredentialsPostRequestBody.useSavedCredentials); + writer.writeAdditionalData(validateCredentialsPostRequestBody.additionalData); +} +export interface ValidateCredentialsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The applicationIdentifier property + */ + applicationIdentifier?: string; + /** + * The credentials property + */ + credentials?: SynchronizationSecretKeyStringValuePair[]; + /** + * The templateId property + */ + templateId?: string; + /** + * The useSavedCredentials property + */ + useSavedCredentials?: boolean; +} /** * Provides operations to call the validateCredentials method. */ diff --git a/src/servicePrincipals/item/synchronization/jobs/item/validateCredentials/validateCredentialsPostRequestBody.ts b/src/servicePrincipals/item/synchronization/jobs/item/validateCredentials/validateCredentialsPostRequestBody.ts deleted file mode 100644 index 037bc031718..00000000000 --- a/src/servicePrincipals/item/synchronization/jobs/item/validateCredentials/validateCredentialsPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../../../models/synchronizationSecretKeyStringValuePair'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createValidateCredentialsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoValidateCredentialsPostRequestBody; -} -export function deserializeIntoValidateCredentialsPostRequestBody(validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : Record void> { - return { - "applicationIdentifier": n => { validateCredentialsPostRequestBody.applicationIdentifier = n.getStringValue(); }, - "credentials": n => { validateCredentialsPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, - "templateId": n => { validateCredentialsPostRequestBody.templateId = n.getStringValue(); }, - "useSavedCredentials": n => { validateCredentialsPostRequestBody.useSavedCredentials = n.getBooleanValue(); }, - } -} -export function serializeValidateCredentialsPostRequestBody(writer: SerializationWriter, validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : void { - writer.writeStringValue("applicationIdentifier", validateCredentialsPostRequestBody.applicationIdentifier); - writer.writeCollectionOfObjectValues("credentials", validateCredentialsPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); - writer.writeStringValue("templateId", validateCredentialsPostRequestBody.templateId); - writer.writeBooleanValue("useSavedCredentials", validateCredentialsPostRequestBody.useSavedCredentials); - writer.writeAdditionalData(validateCredentialsPostRequestBody.additionalData); -} -export interface ValidateCredentialsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The applicationIdentifier property - */ - applicationIdentifier?: string; - /** - * The credentials property - */ - credentials?: SynchronizationSecretKeyStringValuePair[]; - /** - * The templateId property - */ - templateId?: string; - /** - * The useSavedCredentials property - */ - useSavedCredentials?: boolean; -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/synchronization/jobs/validateCredentials/index.ts b/src/servicePrincipals/item/synchronization/jobs/validateCredentials/index.ts index 7f37c681427..a4cd31ccdf6 100644 --- a/src/servicePrincipals/item/synchronization/jobs/validateCredentials/index.ts +++ b/src/servicePrincipals/item/synchronization/jobs/validateCredentials/index.ts @@ -1,11 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoValidateCredentialsPostRequestBody, serializeValidateCredentialsPostRequestBody, type ValidateCredentialsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../../models/synchronizationSecretKeyStringValuePair'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createValidateCredentialsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoValidateCredentialsPostRequestBody; +} +export function deserializeIntoValidateCredentialsPostRequestBody(validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : Record void> { + return { + "applicationIdentifier": n => { validateCredentialsPostRequestBody.applicationIdentifier = n.getStringValue(); }, + "credentials": n => { validateCredentialsPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + "templateId": n => { validateCredentialsPostRequestBody.templateId = n.getStringValue(); }, + "useSavedCredentials": n => { validateCredentialsPostRequestBody.useSavedCredentials = n.getBooleanValue(); }, + } +} +export function serializeValidateCredentialsPostRequestBody(writer: SerializationWriter, validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : void { + writer.writeStringValue("applicationIdentifier", validateCredentialsPostRequestBody.applicationIdentifier); + writer.writeCollectionOfObjectValues("credentials", validateCredentialsPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); + writer.writeStringValue("templateId", validateCredentialsPostRequestBody.templateId); + writer.writeBooleanValue("useSavedCredentials", validateCredentialsPostRequestBody.useSavedCredentials); + writer.writeAdditionalData(validateCredentialsPostRequestBody.additionalData); +} +export interface ValidateCredentialsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The applicationIdentifier property + */ + applicationIdentifier?: string; + /** + * The credentials property + */ + credentials?: SynchronizationSecretKeyStringValuePair[]; + /** + * The templateId property + */ + templateId?: string; + /** + * The useSavedCredentials property + */ + useSavedCredentials?: boolean; +} /** * Provides operations to call the validateCredentials method. */ diff --git a/src/servicePrincipals/item/synchronization/jobs/validateCredentials/validateCredentialsPostRequestBody.ts b/src/servicePrincipals/item/synchronization/jobs/validateCredentials/validateCredentialsPostRequestBody.ts deleted file mode 100644 index 3234fbe4d03..00000000000 --- a/src/servicePrincipals/item/synchronization/jobs/validateCredentials/validateCredentialsPostRequestBody.ts +++ /dev/null @@ -1,49 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../../models/synchronizationSecretKeyStringValuePair'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createValidateCredentialsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoValidateCredentialsPostRequestBody; -} -export function deserializeIntoValidateCredentialsPostRequestBody(validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : Record void> { - return { - "applicationIdentifier": n => { validateCredentialsPostRequestBody.applicationIdentifier = n.getStringValue(); }, - "credentials": n => { validateCredentialsPostRequestBody.credentials = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, - "templateId": n => { validateCredentialsPostRequestBody.templateId = n.getStringValue(); }, - "useSavedCredentials": n => { validateCredentialsPostRequestBody.useSavedCredentials = n.getBooleanValue(); }, - } -} -export function serializeValidateCredentialsPostRequestBody(writer: SerializationWriter, validateCredentialsPostRequestBody: ValidateCredentialsPostRequestBody | undefined = {} as ValidateCredentialsPostRequestBody) : void { - writer.writeStringValue("applicationIdentifier", validateCredentialsPostRequestBody.applicationIdentifier); - writer.writeCollectionOfObjectValues("credentials", validateCredentialsPostRequestBody.credentials, serializeSynchronizationSecretKeyStringValuePair); - writer.writeStringValue("templateId", validateCredentialsPostRequestBody.templateId); - writer.writeBooleanValue("useSavedCredentials", validateCredentialsPostRequestBody.useSavedCredentials); - writer.writeAdditionalData(validateCredentialsPostRequestBody.additionalData); -} -export interface ValidateCredentialsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The applicationIdentifier property - */ - applicationIdentifier?: string; - /** - * The credentials property - */ - credentials?: SynchronizationSecretKeyStringValuePair[]; - /** - * The templateId property - */ - templateId?: string; - /** - * The useSavedCredentials property - */ - useSavedCredentials?: boolean; -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/synchronization/secrets/count/index.ts b/src/servicePrincipals/item/synchronization/secrets/count/index.ts index 8adf886ffa0..cdf4dd47dd6 100644 --- a/src/servicePrincipals/item/synchronization/secrets/count/index.ts +++ b/src/servicePrincipals/item/synchronization/secrets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/secrets/index.ts b/src/servicePrincipals/item/synchronization/secrets/index.ts index 1ea15712239..80d8a11156a 100644 --- a/src/servicePrincipals/item/synchronization/secrets/index.ts +++ b/src/servicePrincipals/item/synchronization/secrets/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, deserializeIntoSynchronizationSecretKeyStringValuePair, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/synchronizationSecretKeyStringValuePair'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; /** diff --git a/src/servicePrincipals/item/synchronization/templates/count/index.ts b/src/servicePrincipals/item/synchronization/templates/count/index.ts index d787e0eed7a..903780f4097 100644 --- a/src/servicePrincipals/item/synchronization/templates/count/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/templates/index.ts b/src/servicePrincipals/item/synchronization/templates/index.ts index 771a8c4e6b9..8dd93cfeb22 100644 --- a/src/servicePrincipals/item/synchronization/templates/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SynchronizationTemplateCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SynchronizationTemplateCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSynchronizationTemplateFromDiscriminatorValue, deserializeIntoSynchronizationTemplate, serializeSynchronizationTemplate, type SynchronizationTemplate } from '../../../../models/synchronizationTemplate'; import { createSynchronizationTemplateCollectionResponseFromDiscriminatorValue } from '../../../../models/synchronizationTemplateCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SynchronizationTemplateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SynchronizationTemplateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TemplatesRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/templates/item/index.ts b/src/servicePrincipals/item/synchronization/templates/item/index.ts index 2b3cda005f5..5029208ebec 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSynchronizationTemplateFromDiscriminatorValue, deserializeIntoSynchronizationTemplate, serializeSynchronizationTemplate, type SynchronizationTemplate } from '../../../../../models/synchronizationTemplate'; -import { SchemaRequestBuilder } from './schema/'; +import { SchemaRequestBuilder } from './schema'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SynchronizationTemplateItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/directories/count/index.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/directories/count/index.ts index fee7d4ce3d3..38ca0cc83f3 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/directories/count/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/schema/directories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/directories/index.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/directories/index.ts index 4a6a45ab509..b47fb5877de 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/directories/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/schema/directories/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type DirectoryDefinitionCollectionResponse } from '../../../../../../../models'; import { createDirectoryDefinitionFromDiscriminatorValue, deserializeIntoDirectoryDefinition, serializeDirectoryDefinition, type DirectoryDefinition } from '../../../../../../../models/directoryDefinition'; import { createDirectoryDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/directoryDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DirectoryDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DirectoryDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoriesRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/directories/item/discover/index.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/directories/item/discover/index.ts index 0bf778779b6..31ea286d7a0 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/directories/item/discover/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/schema/directories/item/discover/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryDefinition } from '../../../../../../../../../models/'; +import { type DirectoryDefinition } from '../../../../../../../../../models'; import { createDirectoryDefinitionFromDiscriminatorValue } from '../../../../../../../../../models/directoryDefinition'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/directories/item/index.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/directories/item/index.ts index 58533a27d85..74092e2f337 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/directories/item/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/schema/directories/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDirectoryDefinitionFromDiscriminatorValue, deserializeIntoDirectoryDefinition, serializeDirectoryDefinition, type DirectoryDefinition } from '../../../../../../../../models/directoryDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { DiscoverRequestBuilder } from './discover/'; +import { DiscoverRequestBuilder } from './discover'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/filterOperators/index.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/filterOperators/index.ts index adac44ae89c..9d95118da0e 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/filterOperators/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/schema/filterOperators/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; import { createFilterOperatorSchemaFromDiscriminatorValue, serializeFilterOperatorSchema, type FilterOperatorSchema } from '../../../../../../../models/filterOperatorSchema'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createFilterOperatorsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,96 +21,9 @@ export interface FilterOperatorsGetResponse extends BaseCollectionPaginationCoun */ value?: FilterOperatorSchema[]; } -export interface FilterOperatorsRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeFilterOperatorsGetResponse(writer: SerializationWriter, filterOperatorsGetResponse: FilterOperatorsGetResponse | undefined = {} as FilterOperatorsGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, filterOperatorsGetResponse) writer.writeCollectionOfObjectValues("value", filterOperatorsGetResponse.value, serializeFilterOperatorSchema); } -/** - * Provides operations to call the filterOperators method. - */ -export class FilterOperatorsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new FilterOperatorsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/filterOperators(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function filterOperators - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of FilterOperatorsGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createFilterOperatorsGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function filterOperators - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, filterOperatorsRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a filterOperatorsRequestBuilder - */ - public withUrl(rawUrl: string) : FilterOperatorsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new FilterOperatorsRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const filterOperatorsRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/functions/functionsGetResponse.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/functions/functionsGetResponse.ts deleted file mode 100644 index f148bbc6447..00000000000 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/functions/functionsGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../../../../../../models/attributeMappingFunctionSchema'; -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFunctionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFunctionsGetResponse; -} -export function deserializeIntoFunctionsGetResponse(functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(functionsGetResponse), - "value": n => { functionsGetResponse.value = n.getCollectionOfObjectValues(createAttributeMappingFunctionSchemaFromDiscriminatorValue); }, - } -} -export interface FunctionsGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: AttributeMappingFunctionSchema[]; -} -export function serializeFunctionsGetResponse(writer: SerializationWriter, functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, functionsGetResponse) - writer.writeCollectionOfObjectValues("value", functionsGetResponse.value, serializeAttributeMappingFunctionSchema); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/functions/index.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/functions/index.ts index da531480901..1a5ba6c43ef 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/functions/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/schema/functions/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createAttributeMappingFunctionSchemaFromDiscriminatorValue, serializeAttributeMappingFunctionSchema, type AttributeMappingFunctionSchema } from '../../../../../../../models/attributeMappingFunctionSchema'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createFunctionsGetResponseFromDiscriminatorValue } from './'; -import { type FunctionsGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFunctionsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFunctionsGetResponse; +} +export function deserializeIntoFunctionsGetResponse(functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(functionsGetResponse), + "value": n => { functionsGetResponse.value = n.getCollectionOfObjectValues(createAttributeMappingFunctionSchemaFromDiscriminatorValue); }, + } +} +export interface FunctionsGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: AttributeMappingFunctionSchema[]; +} export interface FunctionsRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface FunctionsRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeFunctionsGetResponse(writer: SerializationWriter, functionsGetResponse: FunctionsGetResponse | undefined = {} as FunctionsGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, functionsGetResponse) + writer.writeCollectionOfObjectValues("value", functionsGetResponse.value, serializeAttributeMappingFunctionSchema); +} /** * Provides operations to call the functions method. */ diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/index.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/index.ts index 86e9118dda8..e53d29ce39a 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/schema/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSynchronizationSchemaFromDiscriminatorValue, deserializeIntoSynchronizationSchema, serializeSynchronizationSchema, type SynchronizationSchema } from '../../../../../../models/synchronizationSchema'; -import { DirectoriesRequestBuilder } from './directories/'; -import { FilterOperatorsRequestBuilder } from './filterOperators/'; -import { FunctionsRequestBuilder } from './functions/'; -import { ParseExpressionRequestBuilder } from './parseExpression/'; +import { DirectoriesRequestBuilder } from './directories'; +import { FilterOperatorsRequestBuilder } from './filterOperators'; +import { FunctionsRequestBuilder } from './functions'; +import { ParseExpressionRequestBuilder } from './parseExpression'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchemaRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/parseExpression/index.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/parseExpression/index.ts index 3b094272b5c..bf6231ec092 100644 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/parseExpression/index.ts +++ b/src/servicePrincipals/item/synchronization/templates/item/schema/parseExpression/index.ts @@ -1,12 +1,48 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createAttributeDefinitionFromDiscriminatorValue, serializeAttributeDefinition, type AttributeDefinition } from '../../../../../../../models/attributeDefinition'; +import { createExpressionInputObjectFromDiscriminatorValue, serializeExpressionInputObject, type ExpressionInputObject } from '../../../../../../../models/expressionInputObject'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createParseExpressionResponseFromDiscriminatorValue, deserializeIntoParseExpressionResponse, serializeParseExpressionResponse, type ParseExpressionResponse } from '../../../../../../../models/parseExpressionResponse'; -import { deserializeIntoParseExpressionPostRequestBody, serializeParseExpressionPostRequestBody, type ParseExpressionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createParseExpressionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoParseExpressionPostRequestBody; +} +export function deserializeIntoParseExpressionPostRequestBody(parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : Record void> { + return { + "expression": n => { parseExpressionPostRequestBody.expression = n.getStringValue(); }, + "targetAttributeDefinition": n => { parseExpressionPostRequestBody.targetAttributeDefinition = n.getObjectValue(createAttributeDefinitionFromDiscriminatorValue); }, + "testInputObject": n => { parseExpressionPostRequestBody.testInputObject = n.getObjectValue(createExpressionInputObjectFromDiscriminatorValue); }, + } +} +export interface ParseExpressionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The expression property + */ + expression?: string; + /** + * The targetAttributeDefinition property + */ + targetAttributeDefinition?: AttributeDefinition; + /** + * The testInputObject property + */ + testInputObject?: ExpressionInputObject; +} +export function serializeParseExpressionPostRequestBody(writer: SerializationWriter, parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : void { + writer.writeStringValue("expression", parseExpressionPostRequestBody.expression); + writer.writeObjectValue("targetAttributeDefinition", parseExpressionPostRequestBody.targetAttributeDefinition, serializeAttributeDefinition); + writer.writeObjectValue("testInputObject", parseExpressionPostRequestBody.testInputObject, serializeExpressionInputObject); + writer.writeAdditionalData(parseExpressionPostRequestBody.additionalData); +} /** * Provides operations to call the parseExpression method. */ diff --git a/src/servicePrincipals/item/synchronization/templates/item/schema/parseExpression/parseExpressionPostRequestBody.ts b/src/servicePrincipals/item/synchronization/templates/item/schema/parseExpression/parseExpressionPostRequestBody.ts deleted file mode 100644 index c065d642bfc..00000000000 --- a/src/servicePrincipals/item/synchronization/templates/item/schema/parseExpression/parseExpressionPostRequestBody.ts +++ /dev/null @@ -1,44 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttributeDefinitionFromDiscriminatorValue, serializeAttributeDefinition, type AttributeDefinition } from '../../../../../../../models/attributeDefinition'; -import { createExpressionInputObjectFromDiscriminatorValue, serializeExpressionInputObject, type ExpressionInputObject } from '../../../../../../../models/expressionInputObject'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createParseExpressionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoParseExpressionPostRequestBody; -} -export function deserializeIntoParseExpressionPostRequestBody(parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : Record void> { - return { - "expression": n => { parseExpressionPostRequestBody.expression = n.getStringValue(); }, - "targetAttributeDefinition": n => { parseExpressionPostRequestBody.targetAttributeDefinition = n.getObjectValue(createAttributeDefinitionFromDiscriminatorValue); }, - "testInputObject": n => { parseExpressionPostRequestBody.testInputObject = n.getObjectValue(createExpressionInputObjectFromDiscriminatorValue); }, - } -} -export interface ParseExpressionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The expression property - */ - expression?: string; - /** - * The targetAttributeDefinition property - */ - targetAttributeDefinition?: AttributeDefinition; - /** - * The testInputObject property - */ - testInputObject?: ExpressionInputObject; -} -export function serializeParseExpressionPostRequestBody(writer: SerializationWriter, parseExpressionPostRequestBody: ParseExpressionPostRequestBody | undefined = {} as ParseExpressionPostRequestBody) : void { - writer.writeStringValue("expression", parseExpressionPostRequestBody.expression); - writer.writeObjectValue("targetAttributeDefinition", parseExpressionPostRequestBody.targetAttributeDefinition, serializeAttributeDefinition); - writer.writeObjectValue("testInputObject", parseExpressionPostRequestBody.testInputObject, serializeExpressionInputObject); - writer.writeAdditionalData(parseExpressionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/servicePrincipals/item/tokenIssuancePolicies/count/index.ts b/src/servicePrincipals/item/tokenIssuancePolicies/count/index.ts index bbb6dbd9317..d02cf96a631 100644 --- a/src/servicePrincipals/item/tokenIssuancePolicies/count/index.ts +++ b/src/servicePrincipals/item/tokenIssuancePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/tokenIssuancePolicies/index.ts b/src/servicePrincipals/item/tokenIssuancePolicies/index.ts index c4dd2a55eb9..4d7dab68762 100644 --- a/src/servicePrincipals/item/tokenIssuancePolicies/index.ts +++ b/src/servicePrincipals/item/tokenIssuancePolicies/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TokenIssuancePolicyCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TokenIssuancePolicyCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTokenIssuancePolicyCollectionResponseFromDiscriminatorValue } from '../../../models/tokenIssuancePolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TokenIssuancePolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TokenIssuancePolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TokenIssuancePoliciesRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/tokenIssuancePolicies/item/index.ts b/src/servicePrincipals/item/tokenIssuancePolicies/item/index.ts index 989822186e6..42c7ff9ea47 100644 --- a/src/servicePrincipals/item/tokenIssuancePolicies/item/index.ts +++ b/src/servicePrincipals/item/tokenIssuancePolicies/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TokenIssuancePolicy } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TokenIssuancePolicy } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTokenIssuancePolicyFromDiscriminatorValue } from '../../../../models/tokenIssuancePolicy'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/tokenLifetimePolicies/count/index.ts b/src/servicePrincipals/item/tokenLifetimePolicies/count/index.ts index 02e53d5b068..ed6a028e3b2 100644 --- a/src/servicePrincipals/item/tokenLifetimePolicies/count/index.ts +++ b/src/servicePrincipals/item/tokenLifetimePolicies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/tokenLifetimePolicies/index.ts b/src/servicePrincipals/item/tokenLifetimePolicies/index.ts index 02942b29352..d924a21db9b 100644 --- a/src/servicePrincipals/item/tokenLifetimePolicies/index.ts +++ b/src/servicePrincipals/item/tokenLifetimePolicies/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TokenLifetimePolicyCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TokenLifetimePolicyCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTokenLifetimePolicyCollectionResponseFromDiscriminatorValue } from '../../../models/tokenLifetimePolicyCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TokenLifetimePolicyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TokenLifetimePolicyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TokenLifetimePoliciesRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/tokenLifetimePolicies/item/index.ts b/src/servicePrincipals/item/tokenLifetimePolicies/item/index.ts index 6821dc44d88..380155a5627 100644 --- a/src/servicePrincipals/item/tokenLifetimePolicies/item/index.ts +++ b/src/servicePrincipals/item/tokenLifetimePolicies/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TokenLifetimePolicy } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TokenLifetimePolicy } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTokenLifetimePolicyFromDiscriminatorValue } from '../../../../models/tokenLifetimePolicy'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/transitiveMemberOf/count/index.ts b/src/servicePrincipals/item/transitiveMemberOf/count/index.ts index 4a39856644a..90e7047ae15 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/count/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts b/src/servicePrincipals/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts index 27e093f5c46..9cdac227945 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/transitiveMemberOf/graphAdministrativeUnit/index.ts b/src/servicePrincipals/item/transitiveMemberOf/graphAdministrativeUnit/index.ts index bddf1171c2a..727f4791145 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/graphAdministrativeUnit/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/transitiveMemberOf/graphDirectoryRole/count/index.ts b/src/servicePrincipals/item/transitiveMemberOf/graphDirectoryRole/count/index.ts index 41e42e31061..29c92465337 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/graphDirectoryRole/count/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/graphDirectoryRole/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/transitiveMemberOf/graphDirectoryRole/index.ts b/src/servicePrincipals/item/transitiveMemberOf/graphDirectoryRole/index.ts index 65d6277e0de..9ac34d6febb 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/graphDirectoryRole/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/graphDirectoryRole/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRoleCollectionResponse } from '../../../../models/'; +import { type DirectoryRoleCollectionResponse } from '../../../../models'; import { createDirectoryRoleCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryRoleCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDirectoryRoleRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/transitiveMemberOf/graphGroup/count/index.ts b/src/servicePrincipals/item/transitiveMemberOf/graphGroup/count/index.ts index 29f4095f2ef..4d3a8fd36bf 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/graphGroup/count/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/transitiveMemberOf/graphGroup/index.ts b/src/servicePrincipals/item/transitiveMemberOf/graphGroup/index.ts index aaa06e23fbf..9f47c945c71 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/graphGroup/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/transitiveMemberOf/index.ts b/src/servicePrincipals/item/transitiveMemberOf/index.ts index bfcd7c05187..47b3dd81909 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TransitiveMemberOfRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts b/src/servicePrincipals/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts index e1a1b0d27d7..f5a7bc26d27 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/transitiveMemberOf/item/graphDirectoryRole/index.ts b/src/servicePrincipals/item/transitiveMemberOf/item/graphDirectoryRole/index.ts index abbf73dbe33..7c2e4400b6e 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/item/graphDirectoryRole/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/item/graphDirectoryRole/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRole } from '../../../../../models/'; +import { type DirectoryRole } from '../../../../../models'; import { createDirectoryRoleFromDiscriminatorValue } from '../../../../../models/directoryRole'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/transitiveMemberOf/item/graphGroup/index.ts b/src/servicePrincipals/item/transitiveMemberOf/item/graphGroup/index.ts index c749f3c71c0..93f76a4059b 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/item/graphGroup/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/servicePrincipals/item/transitiveMemberOf/item/index.ts b/src/servicePrincipals/item/transitiveMemberOf/item/index.ts index db73562c75b..e470fe0c772 100644 --- a/src/servicePrincipals/item/transitiveMemberOf/item/index.ts +++ b/src/servicePrincipals/item/transitiveMemberOf/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/servicePrincipals/validateProperties/index.ts b/src/servicePrincipals/validateProperties/index.ts index d86e5738ae1..3c9a114e085 100644 --- a/src/servicePrincipals/validateProperties/index.ts +++ b/src/servicePrincipals/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/servicePrincipals/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/servicePrincipalsWithAppId/index.ts b/src/servicePrincipalsWithAppId/index.ts index 7f686900af8..66efb41bcf6 100644 --- a/src/servicePrincipalsWithAppId/index.ts +++ b/src/servicePrincipalsWithAppId/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue, deserializeIntoServicePrincipal, serializeServicePrincipal, type ServicePrincipal } from '../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/count/index.ts b/src/shares/count/index.ts index 6aae05a1979..4d70acf0dc7 100644 --- a/src/shares/count/index.ts +++ b/src/shares/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/index.ts b/src/shares/index.ts index c78ab2498b9..5f5e101eb75 100644 --- a/src/shares/index.ts +++ b/src/shares/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedDriveItemCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type SharedDriveItemCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createSharedDriveItemFromDiscriminatorValue, deserializeIntoSharedDriveItem, serializeSharedDriveItem, type SharedDriveItem } from '../models/sharedDriveItem'; import { createSharedDriveItemCollectionResponseFromDiscriminatorValue } from '../models/sharedDriveItemCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedDriveItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedDriveItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharesRequestBuilderGetQueryParameters { diff --git a/src/shares/item/createdByUser/index.ts b/src/shares/item/createdByUser/index.ts index 59cd9bcfc2f..29feedf7f3b 100644 --- a/src/shares/item/createdByUser/index.ts +++ b/src/shares/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/shares/item/createdByUser/mailboxSettings/index.ts b/src/shares/item/createdByUser/mailboxSettings/index.ts index 79f71fd6239..37eda8535fd 100644 --- a/src/shares/item/createdByUser/mailboxSettings/index.ts +++ b/src/shares/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/shares/item/createdByUser/serviceProvisioningErrors/count/index.ts index 8c060057272..7294d18fd47 100644 --- a/src/shares/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/shares/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/createdByUser/serviceProvisioningErrors/index.ts b/src/shares/item/createdByUser/serviceProvisioningErrors/index.ts index df954b900aa..b7d1fe6d5bc 100644 --- a/src/shares/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/shares/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/driveItem/content/index.ts b/src/shares/item/driveItem/content/index.ts index e339bd8b008..304df6cd063 100644 --- a/src/shares/item/driveItem/content/index.ts +++ b/src/shares/item/driveItem/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../models/'; +import { type DriveItem } from '../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/driveItem/index.ts b/src/shares/item/driveItem/index.ts index 807e70c8584..6bb6c830391 100644 --- a/src/shares/item/driveItem/index.ts +++ b/src/shares/item/driveItem/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../models/'; +import { type DriveItem } from '../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../models/driveItem'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/index.ts b/src/shares/item/index.ts index 0133eef7797..0dc6269c076 100644 --- a/src/shares/item/index.ts +++ b/src/shares/item/index.ts @@ -1,18 +1,18 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSharedDriveItemFromDiscriminatorValue, deserializeIntoSharedDriveItem, serializeSharedDriveItem, type SharedDriveItem } from '../../models/sharedDriveItem'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DriveItemRequestBuilder } from './driveItem/'; -import { ItemsRequestBuilder } from './items/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { ListRequestBuilder } from './list/'; -import { ListItemRequestBuilder } from './listItem/'; -import { PermissionRequestBuilder } from './permission/'; -import { RootRequestBuilder } from './root/'; -import { SiteRequestBuilder } from './site/'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DriveItemRequestBuilder } from './driveItem'; +import { ItemsRequestBuilder } from './items'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { ListRequestBuilder } from './list'; +import { ListItemRequestBuilder } from './listItem'; +import { PermissionRequestBuilder } from './permission'; +import { RootRequestBuilder } from './root'; +import { SiteRequestBuilder } from './site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedDriveItemItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/items/count/index.ts b/src/shares/item/items/count/index.ts index 531333f6453..3bc159c2411 100644 --- a/src/shares/item/items/count/index.ts +++ b/src/shares/item/items/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/items/index.ts b/src/shares/item/items/index.ts index 5c050e0b067..ac48622f22b 100644 --- a/src/shares/item/items/index.ts +++ b/src/shares/item/items/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItemCollectionResponse } from '../../../models/'; +import { type DriveItemCollectionResponse } from '../../../models'; import { createDriveItemCollectionResponseFromDiscriminatorValue } from '../../../models/driveItemCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/items/item/content/index.ts b/src/shares/item/items/item/content/index.ts index 2a4d7d1d9a9..a2f2f0117e8 100644 --- a/src/shares/item/items/item/content/index.ts +++ b/src/shares/item/items/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/items/item/index.ts b/src/shares/item/items/item/index.ts index 634f73acf7c..383b1ed3fed 100644 --- a/src/shares/item/items/item/index.ts +++ b/src/shares/item/items/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../models/'; +import { type DriveItem } from '../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/lastModifiedByUser/index.ts b/src/shares/item/lastModifiedByUser/index.ts index fc8f545e4f0..eeaeac730c9 100644 --- a/src/shares/item/lastModifiedByUser/index.ts +++ b/src/shares/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/shares/item/lastModifiedByUser/mailboxSettings/index.ts b/src/shares/item/lastModifiedByUser/mailboxSettings/index.ts index c859c699e9c..aab24ee8335 100644 --- a/src/shares/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/shares/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/shares/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 0b9b36d8ac1..114325221f1 100644 --- a/src/shares/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/shares/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/shares/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index 66e344e2ef1..4b55fab93e1 100644 --- a/src/shares/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/shares/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/columns/count/index.ts b/src/shares/item/list/columns/count/index.ts index c7d938ac003..df709ec47d8 100644 --- a/src/shares/item/list/columns/count/index.ts +++ b/src/shares/item/list/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/columns/index.ts b/src/shares/item/list/columns/index.ts index e2040f63638..6cc9fc3ee7d 100644 --- a/src/shares/item/list/columns/index.ts +++ b/src/shares/item/list/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/columns/item/index.ts b/src/shares/item/list/columns/item/index.ts index cb0db763cbc..4bbc72a4190 100644 --- a/src/shares/item/list/columns/item/index.ts +++ b/src/shares/item/list/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/columns/item/sourceColumn/index.ts b/src/shares/item/list/columns/item/sourceColumn/index.ts index efa850b62ae..a4525381a5a 100644 --- a/src/shares/item/list/columns/item/sourceColumn/index.ts +++ b/src/shares/item/list/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/addCopy/addCopyPostRequestBody.ts b/src/shares/item/list/contentTypes/addCopy/addCopyPostRequestBody.ts deleted file mode 100644 index 85058f03a64..00000000000 --- a/src/shares/item/list/contentTypes/addCopy/addCopyPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The contentType property - */ - contentType?: string; -} -export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddCopyPostRequestBody; -} -export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { - return { - "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, - } -} -export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { - writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); - writer.writeAdditionalData(addCopyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/shares/item/list/contentTypes/addCopy/index.ts b/src/shares/item/list/contentTypes/addCopy/index.ts index 0b639f04bb1..409b8fbefb9 100644 --- a/src/shares/item/list/contentTypes/addCopy/index.ts +++ b/src/shares/item/list/contentTypes/addCopy/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAddCopyPostRequestBody, serializeAddCopyPostRequestBody, type AddCopyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The contentType property + */ + contentType?: string; +} +export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddCopyPostRequestBody; +} +export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { + return { + "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, + } +} +export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { + writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); + writer.writeAdditionalData(addCopyPostRequestBody.additionalData); +} /** * Provides operations to call the addCopy method. */ diff --git a/src/shares/item/list/contentTypes/addCopyFromContentTypeHub/index.ts b/src/shares/item/list/contentTypes/addCopyFromContentTypeHub/index.ts index cd5efae4167..b3a25387260 100644 --- a/src/shares/item/list/contentTypes/addCopyFromContentTypeHub/index.ts +++ b/src/shares/item/list/contentTypes/addCopyFromContentTypeHub/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddCopyFromContentTypeHubPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeAddCopyFromContentTypeHubPostRequestBody(writer: Serial writer.writeStringValue("contentTypeId", addCopyFromContentTypeHubPostRequestBody.contentTypeId); writer.writeAdditionalData(addCopyFromContentTypeHubPostRequestBody.additionalData); } -/** - * Provides operations to call the addCopyFromContentTypeHub method. - */ -export class AddCopyFromContentTypeHubRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddCopyFromContentTypeHubRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/addCopyFromContentTypeHub"); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ContentType - * @see {@link https://learn.microsoft.com/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createContentTypeFromDiscriminatorValue, errorMapping); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddCopyFromContentTypeHubPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addCopyFromContentTypeHubRequestBuilder - */ - public withUrl(rawUrl: string) : AddCopyFromContentTypeHubRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddCopyFromContentTypeHubRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/shares/item/list/contentTypes/count/index.ts b/src/shares/item/list/contentTypes/count/index.ts index 3e29c6e93df..2bf585a4fd7 100644 --- a/src/shares/item/list/contentTypes/count/index.ts +++ b/src/shares/item/list/contentTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts b/src/shares/item/list/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts deleted file mode 100644 index db778d73570..00000000000 --- a/src/shares/item/list/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetCompatibleHubContentTypesGetResponse; -} -export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), - "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, - } -} -export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ContentType[]; -} -export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) - writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); -} -// tslint:enable -// eslint-enable diff --git a/src/shares/item/list/contentTypes/getCompatibleHubContentTypes/index.ts b/src/shares/item/list/contentTypes/getCompatibleHubContentTypes/index.ts index ccef29e7c4e..2f3269e2980 100644 --- a/src/shares/item/list/contentTypes/getCompatibleHubContentTypes/index.ts +++ b/src/shares/item/list/contentTypes/getCompatibleHubContentTypes/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../models/contentType'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue } from './'; -import { type GetCompatibleHubContentTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetCompatibleHubContentTypesGetResponse; +} +export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), + "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, + } +} +export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ContentType[]; +} export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) + writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); +} /** * Provides operations to call the getCompatibleHubContentTypes method. */ diff --git a/src/shares/item/list/contentTypes/index.ts b/src/shares/item/list/contentTypes/index.ts index 251a6663943..905a1895162 100644 --- a/src/shares/item/list/contentTypes/index.ts +++ b/src/shares/item/list/contentTypes/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../models'; import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../models/contentType'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AddCopyRequestBuilder } from './addCopy/'; -import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub/'; -import { CountRequestBuilder } from './count/'; -import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { AddCopyRequestBuilder } from './addCopy'; +import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub'; +import { CountRequestBuilder } from './count'; +import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/contentTypes/item/associateWithHubSites/index.ts b/src/shares/item/list/contentTypes/item/associateWithHubSites/index.ts index 7b833969669..1c75d048bb8 100644 --- a/src/shares/item/list/contentTypes/item/associateWithHubSites/index.ts +++ b/src/shares/item/list/contentTypes/item/associateWithHubSites/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssociateWithHubSitesPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAssociateWithHubSitesPostRequestBody(writer: Serializat writer.writeBooleanValue("propagateToExistingLists", associateWithHubSitesPostRequestBody.propagateToExistingLists); writer.writeAdditionalData(associateWithHubSitesPostRequestBody.additionalData); } -/** - * Provides operations to call the associateWithHubSites method. - */ -export class AssociateWithHubSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssociateWithHubSitesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/associateWithHubSites"); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-associatewithhubsites?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssociateWithHubSitesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a associateWithHubSitesRequestBuilder - */ - public withUrl(rawUrl: string) : AssociateWithHubSitesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssociateWithHubSitesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/shares/item/list/contentTypes/item/base/index.ts b/src/shares/item/list/contentTypes/item/base/index.ts index e29745aafed..0d1132a41ae 100644 --- a/src/shares/item/list/contentTypes/item/base/index.ts +++ b/src/shares/item/list/contentTypes/item/base/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../models/'; +import { type ContentType } from '../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/baseTypes/count/index.ts b/src/shares/item/list/contentTypes/item/baseTypes/count/index.ts index d76d585f404..4ea89139f8e 100644 --- a/src/shares/item/list/contentTypes/item/baseTypes/count/index.ts +++ b/src/shares/item/list/contentTypes/item/baseTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/baseTypes/index.ts b/src/shares/item/list/contentTypes/item/baseTypes/index.ts index 045fd61f64b..0eb7c10f18c 100644 --- a/src/shares/item/list/contentTypes/item/baseTypes/index.ts +++ b/src/shares/item/list/contentTypes/item/baseTypes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../../models'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BaseTypesRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/contentTypes/item/baseTypes/item/index.ts b/src/shares/item/list/contentTypes/item/baseTypes/item/index.ts index 1908d2b58bc..afc05cccf42 100644 --- a/src/shares/item/list/contentTypes/item/baseTypes/item/index.ts +++ b/src/shares/item/list/contentTypes/item/baseTypes/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../../models/'; +import { type ContentType } from '../../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/columnLinks/count/index.ts b/src/shares/item/list/contentTypes/item/columnLinks/count/index.ts index 80d07e09c0b..ddb2b99d384 100644 --- a/src/shares/item/list/contentTypes/item/columnLinks/count/index.ts +++ b/src/shares/item/list/contentTypes/item/columnLinks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/columnLinks/index.ts b/src/shares/item/list/contentTypes/item/columnLinks/index.ts index e47b7991ec1..6af871cd523 100644 --- a/src/shares/item/list/contentTypes/item/columnLinks/index.ts +++ b/src/shares/item/list/contentTypes/item/columnLinks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnLinkCollectionResponse } from '../../../../../../models/'; +import { type ColumnLinkCollectionResponse } from '../../../../../../models'; import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../models/columnLink'; import { createColumnLinkCollectionResponseFromDiscriminatorValue } from '../../../../../../models/columnLinkCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnLinkItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnLinkItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnLinksRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/contentTypes/item/columnLinks/item/index.ts b/src/shares/item/list/contentTypes/item/columnLinks/item/index.ts index b83b8a7ff67..29c330529bf 100644 --- a/src/shares/item/list/contentTypes/item/columnLinks/item/index.ts +++ b/src/shares/item/list/contentTypes/item/columnLinks/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../../models/columnLink'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/columnPositions/count/index.ts b/src/shares/item/list/contentTypes/item/columnPositions/count/index.ts index 4afbc6b9aff..32602a45f3f 100644 --- a/src/shares/item/list/contentTypes/item/columnPositions/count/index.ts +++ b/src/shares/item/list/contentTypes/item/columnPositions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/columnPositions/index.ts b/src/shares/item/list/contentTypes/item/columnPositions/index.ts index b85c645f60c..c8bd2b5a5c7 100644 --- a/src/shares/item/list/contentTypes/item/columnPositions/index.ts +++ b/src/shares/item/list/contentTypes/item/columnPositions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../models'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnPositionsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/contentTypes/item/columnPositions/item/index.ts b/src/shares/item/list/contentTypes/item/columnPositions/item/index.ts index 5e9fc3f2617..d2ea0d70e49 100644 --- a/src/shares/item/list/contentTypes/item/columnPositions/item/index.ts +++ b/src/shares/item/list/contentTypes/item/columnPositions/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/columns/count/index.ts b/src/shares/item/list/contentTypes/item/columns/count/index.ts index 3243e5d17c0..6dade8c2fc8 100644 --- a/src/shares/item/list/contentTypes/item/columns/count/index.ts +++ b/src/shares/item/list/contentTypes/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/columns/index.ts b/src/shares/item/list/contentTypes/item/columns/index.ts index 7a4a2535240..638498014e9 100644 --- a/src/shares/item/list/contentTypes/item/columns/index.ts +++ b/src/shares/item/list/contentTypes/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/contentTypes/item/columns/item/index.ts b/src/shares/item/list/contentTypes/item/columns/item/index.ts index a2d40af84d2..a0bc2dd16e0 100644 --- a/src/shares/item/list/contentTypes/item/columns/item/index.ts +++ b/src/shares/item/list/contentTypes/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/contentTypes/item/columns/item/sourceColumn/index.ts b/src/shares/item/list/contentTypes/item/columns/item/sourceColumn/index.ts index 244acd75631..9955120d14c 100644 --- a/src/shares/item/list/contentTypes/item/columns/item/sourceColumn/index.ts +++ b/src/shares/item/list/contentTypes/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/copyToDefaultContentLocation/index.ts b/src/shares/item/list/contentTypes/item/copyToDefaultContentLocation/index.ts index 5baab8a7251..360a0845393 100644 --- a/src/shares/item/list/contentTypes/item/copyToDefaultContentLocation/index.ts +++ b/src/shares/item/list/contentTypes/item/copyToDefaultContentLocation/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../../models/itemReference'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToDefaultContentLocationPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,57 +33,5 @@ export function serializeCopyToDefaultContentLocationPostRequestBody(writer: Ser writer.writeObjectValue("sourceFile", copyToDefaultContentLocationPostRequestBody.sourceFile, serializeItemReference); writer.writeAdditionalData(copyToDefaultContentLocationPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToDefaultContentLocation method. - */ -export class CopyToDefaultContentLocationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToDefaultContentLocationRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation"); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-copytodefaultcontentlocation?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToDefaultContentLocationPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToDefaultContentLocationRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToDefaultContentLocationRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToDefaultContentLocationRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/shares/item/list/contentTypes/item/index.ts b/src/shares/item/list/contentTypes/item/index.ts index ddd52a12307..987438043dd 100644 --- a/src/shares/item/list/contentTypes/item/index.ts +++ b/src/shares/item/list/contentTypes/item/index.ts @@ -2,18 +2,18 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../models/contentType'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites/'; -import { BaseRequestBuilderEscaped } from './base/'; -import { BaseTypesRequestBuilder } from './baseTypes/'; -import { ColumnLinksRequestBuilder } from './columnLinks/'; -import { ColumnPositionsRequestBuilder } from './columnPositions/'; -import { ColumnsRequestBuilder } from './columns/'; -import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation/'; -import { IsPublishedRequestBuilder } from './isPublished/'; -import { PublishRequestBuilder } from './publish/'; -import { UnpublishRequestBuilder } from './unpublish/'; +import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites'; +import { BaseRequestBuilderEscaped } from './base'; +import { BaseTypesRequestBuilder } from './baseTypes'; +import { ColumnLinksRequestBuilder } from './columnLinks'; +import { ColumnPositionsRequestBuilder } from './columnPositions'; +import { ColumnsRequestBuilder } from './columns'; +import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation'; +import { IsPublishedRequestBuilder } from './isPublished'; +import { PublishRequestBuilder } from './publish'; +import { UnpublishRequestBuilder } from './unpublish'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypeItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/contentTypes/item/isPublished/index.ts b/src/shares/item/list/contentTypes/item/isPublished/index.ts index 0b6cec98fbf..19f9df04e10 100644 --- a/src/shares/item/list/contentTypes/item/isPublished/index.ts +++ b/src/shares/item/list/contentTypes/item/isPublished/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createIsPublishedGetResponseFromDiscriminatorValue } from './'; -import { type IsPublishedGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsPublishedGetResponse; +} +export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { + return { + "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, + } +} +export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} +export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { + writer.writeBooleanValue("value", isPublishedGetResponse.value); + writer.writeAdditionalData(isPublishedGetResponse.additionalData); +} /** * Provides operations to call the isPublished method. */ diff --git a/src/shares/item/list/contentTypes/item/isPublished/isPublishedGetResponse.ts b/src/shares/item/list/contentTypes/item/isPublished/isPublishedGetResponse.ts deleted file mode 100644 index e6621aa5f27..00000000000 --- a/src/shares/item/list/contentTypes/item/isPublished/isPublishedGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsPublishedGetResponse; -} -export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { - return { - "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, - } -} -export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { - writer.writeBooleanValue("value", isPublishedGetResponse.value); - writer.writeAdditionalData(isPublishedGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/shares/item/list/contentTypes/item/publish/index.ts b/src/shares/item/list/contentTypes/item/publish/index.ts index 8d2a200c687..5db9371c8d5 100644 --- a/src/shares/item/list/contentTypes/item/publish/index.ts +++ b/src/shares/item/list/contentTypes/item/publish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/contentTypes/item/unpublish/index.ts b/src/shares/item/list/contentTypes/item/unpublish/index.ts index adc1125fd38..d882849ceec 100644 --- a/src/shares/item/list/contentTypes/item/unpublish/index.ts +++ b/src/shares/item/list/contentTypes/item/unpublish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/createdByUser/index.ts b/src/shares/item/list/createdByUser/index.ts index b6dca8da035..3e013b1509b 100644 --- a/src/shares/item/list/createdByUser/index.ts +++ b/src/shares/item/list/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type User } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/createdByUser/mailboxSettings/index.ts b/src/shares/item/list/createdByUser/mailboxSettings/index.ts index 1b914fc1c8b..96126f44834 100644 --- a/src/shares/item/list/createdByUser/mailboxSettings/index.ts +++ b/src/shares/item/list/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/createdByUser/serviceProvisioningErrors/count/index.ts b/src/shares/item/list/createdByUser/serviceProvisioningErrors/count/index.ts index a7eac04a190..cdcd17ef672 100644 --- a/src/shares/item/list/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/shares/item/list/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/createdByUser/serviceProvisioningErrors/index.ts b/src/shares/item/list/createdByUser/serviceProvisioningErrors/index.ts index 8983a582d49..ce5da7585ab 100644 --- a/src/shares/item/list/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/shares/item/list/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/drive/index.ts b/src/shares/item/list/drive/index.ts index d829fd00425..975ab59f05a 100644 --- a/src/shares/item/list/drive/index.ts +++ b/src/shares/item/list/drive/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../models/'; +import { type Drive } from '../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../models/drive'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/index.ts b/src/shares/item/list/index.ts index bf6b4ab94a0..4c8b6a29380 100644 --- a/src/shares/item/list/index.ts +++ b/src/shares/item/list/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List } from '../../../models/list'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ColumnsRequestBuilder } from './columns/'; -import { ContentTypesRequestBuilder } from './contentTypes/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DriveRequestBuilder } from './drive/'; -import { ItemsRequestBuilder } from './items/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { OperationsRequestBuilder } from './operations/'; -import { SubscriptionsRequestBuilder } from './subscriptions/'; +import { ColumnsRequestBuilder } from './columns'; +import { ContentTypesRequestBuilder } from './contentTypes'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DriveRequestBuilder } from './drive'; +import { ItemsRequestBuilder } from './items'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { OperationsRequestBuilder } from './operations'; +import { SubscriptionsRequestBuilder } from './subscriptions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/index.ts b/src/shares/item/list/items/index.ts index 6daf6ab5b52..57fa2bb7f67 100644 --- a/src/shares/item/list/items/index.ts +++ b/src/shares/item/list/items/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItemCollectionResponse } from '../../../../models/'; +import { type ListItemCollectionResponse } from '../../../../models'; import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializeListItem, type ListItem } from '../../../../models/listItem'; import { createListItemCollectionResponseFromDiscriminatorValue } from '../../../../models/listItemCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ListItemItemRequestBuilder } from './item/'; +import { ListItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/analytics/index.ts b/src/shares/item/list/items/item/analytics/index.ts index f588f626c21..eba2b6bf779 100644 --- a/src/shares/item/list/items/item/analytics/index.ts +++ b/src/shares/item/list/items/item/analytics/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemAnalytics } from '../../../../../../models/'; +import { type ItemAnalytics } from '../../../../../../models'; import { createItemAnalyticsFromDiscriminatorValue } from '../../../../../../models/itemAnalytics'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/createdByUser/index.ts b/src/shares/item/list/items/item/createdByUser/index.ts index 2bec09c5ac7..00a4a398626 100644 --- a/src/shares/item/list/items/item/createdByUser/index.ts +++ b/src/shares/item/list/items/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/createdByUser/mailboxSettings/index.ts b/src/shares/item/list/items/item/createdByUser/mailboxSettings/index.ts index 98faa7a75be..b934852626f 100644 --- a/src/shares/item/list/items/item/createdByUser/mailboxSettings/index.ts +++ b/src/shares/item/list/items/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/shares/item/list/items/item/createdByUser/serviceProvisioningErrors/count/index.ts index a575e18dd0a..b9703fa8ce0 100644 --- a/src/shares/item/list/items/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/shares/item/list/items/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/createdByUser/serviceProvisioningErrors/index.ts b/src/shares/item/list/items/item/createdByUser/serviceProvisioningErrors/index.ts index d1731a10277..fdc5307ecf2 100644 --- a/src/shares/item/list/items/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/shares/item/list/items/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/documentSetVersions/count/index.ts b/src/shares/item/list/items/item/documentSetVersions/count/index.ts index f739e47b5ef..980f50c6b1e 100644 --- a/src/shares/item/list/items/item/documentSetVersions/count/index.ts +++ b/src/shares/item/list/items/item/documentSetVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/documentSetVersions/index.ts b/src/shares/item/list/items/item/documentSetVersions/index.ts index 2f0f5898634..17cbadbcf2d 100644 --- a/src/shares/item/list/items/item/documentSetVersions/index.ts +++ b/src/shares/item/list/items/item/documentSetVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DocumentSetVersionCollectionResponse } from '../../../../../../models/'; +import { type DocumentSetVersionCollectionResponse } from '../../../../../../models'; import { createDocumentSetVersionFromDiscriminatorValue, deserializeIntoDocumentSetVersion, serializeDocumentSetVersion, type DocumentSetVersion } from '../../../../../../models/documentSetVersion'; import { createDocumentSetVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/documentSetVersionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DocumentSetVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DocumentSetVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentSetVersionsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/documentSetVersions/item/fields/index.ts b/src/shares/item/list/items/item/documentSetVersions/item/fields/index.ts index 50d7756dd1a..109b1266c6e 100644 --- a/src/shares/item/list/items/item/documentSetVersions/item/fields/index.ts +++ b/src/shares/item/list/items/item/documentSetVersions/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/documentSetVersions/item/index.ts b/src/shares/item/list/items/item/documentSetVersions/item/index.ts index 05385718bdf..a0508de0e84 100644 --- a/src/shares/item/list/items/item/documentSetVersions/item/index.ts +++ b/src/shares/item/list/items/item/documentSetVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createDocumentSetVersionFromDiscriminatorValue, deserializeIntoDocumentSetVersion, serializeDocumentSetVersion, type DocumentSetVersion } from '../../../../../../../models/documentSetVersion'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { FieldsRequestBuilder } from './fields/'; -import { RestoreRequestBuilder } from './restore/'; +import { FieldsRequestBuilder } from './fields'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentSetVersionItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/documentSetVersions/item/restore/index.ts b/src/shares/item/list/items/item/documentSetVersions/item/restore/index.ts index 9c1eecfcbaf..22fd8591fb7 100644 --- a/src/shares/item/list/items/item/documentSetVersions/item/restore/index.ts +++ b/src/shares/item/list/items/item/documentSetVersions/item/restore/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/driveItem/content/index.ts b/src/shares/item/list/items/item/driveItem/content/index.ts index feeaea15892..f9e6d423bea 100644 --- a/src/shares/item/list/items/item/driveItem/content/index.ts +++ b/src/shares/item/list/items/item/driveItem/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/driveItem/index.ts b/src/shares/item/list/items/item/driveItem/index.ts index 8b55426b47f..052b06de1d1 100644 --- a/src/shares/item/list/items/item/driveItem/index.ts +++ b/src/shares/item/list/items/item/driveItem/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../models/'; +import { type DriveItem } from '../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/fields/index.ts b/src/shares/item/list/items/item/fields/index.ts index 33ef0140a67..d9ea14c1c4a 100644 --- a/src/shares/item/list/items/item/fields/index.ts +++ b/src/shares/item/list/items/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts b/src/shares/item/list/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts deleted file mode 100644 index 73f748a6494..00000000000 --- a/src/shares/item/list/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../models/itemActivityStat'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetActivitiesByIntervalGetResponse; -} -export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), - "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, - } -} -export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ItemActivityStat[]; -} -export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) - writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); -} -// tslint:enable -// eslint-enable diff --git a/src/shares/item/list/items/item/getActivitiesByInterval/index.ts b/src/shares/item/list/items/item/getActivitiesByInterval/index.ts index dbf27ff871d..b7dcfc84332 100644 --- a/src/shares/item/list/items/item/getActivitiesByInterval/index.ts +++ b/src/shares/item/list/items/item/getActivitiesByInterval/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; +import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../models/itemActivityStat'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createGetActivitiesByIntervalGetResponseFromDiscriminatorValue } from './'; -import { type GetActivitiesByIntervalGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetActivitiesByIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), + "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ItemActivityStat[]; +} export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) + writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); +} /** * Provides operations to call the getActivitiesByInterval method. */ diff --git a/src/shares/item/list/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/shares/item/list/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts index b742be6abb3..908a3bb3db5 100644 --- a/src/shares/item/list/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts +++ b/src/shares/item/list/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,102 +21,9 @@ export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInte */ value?: ItemActivityStat[]; } -export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value, serializeItemActivityStat); } -/** - * Provides operations to call the getActivitiesByInterval method. - */ -export class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: string | undefined, interval?: string | undefined, startDateTime?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["interval"] = interval - this.pathParameters["startDateTime"] = startDateTime - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder - */ - public withUrl(rawUrl: string) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/shares/item/list/items/item/index.ts b/src/shares/item/list/items/item/index.ts index 173a7f23ae1..93e8bb8c7c9 100644 --- a/src/shares/item/list/items/item/index.ts +++ b/src/shares/item/list/items/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializeListItem, type ListItem } from '../../../../../models/listItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AnalyticsRequestBuilder } from './analytics/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DocumentSetVersionsRequestBuilder } from './documentSetVersions/'; -import { DriveItemRequestBuilder } from './driveItem/'; -import { FieldsRequestBuilder } from './fields/'; -import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval/'; -import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { VersionsRequestBuilder } from './versions/'; +import { AnalyticsRequestBuilder } from './analytics'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DocumentSetVersionsRequestBuilder } from './documentSetVersions'; +import { DriveItemRequestBuilder } from './driveItem'; +import { FieldsRequestBuilder } from './fields'; +import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval'; +import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/lastModifiedByUser/index.ts b/src/shares/item/list/items/item/lastModifiedByUser/index.ts index 9c980389f71..8207d8b2eac 100644 --- a/src/shares/item/list/items/item/lastModifiedByUser/index.ts +++ b/src/shares/item/list/items/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/lastModifiedByUser/mailboxSettings/index.ts b/src/shares/item/list/items/item/lastModifiedByUser/mailboxSettings/index.ts index c023a5c482c..6c78e8ffa20 100644 --- a/src/shares/item/list/items/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/shares/item/list/items/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/shares/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 54b228f387e..c8fa2e1a7a0 100644 --- a/src/shares/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/shares/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/shares/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index e24246c67c6..1569938128c 100644 --- a/src/shares/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/shares/item/list/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/versions/count/index.ts b/src/shares/item/list/items/item/versions/count/index.ts index 7232985f801..1c6f22fb914 100644 --- a/src/shares/item/list/items/item/versions/count/index.ts +++ b/src/shares/item/list/items/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/versions/index.ts b/src/shares/item/list/items/item/versions/index.ts index 1a9e1d9febf..3ffbde16eac 100644 --- a/src/shares/item/list/items/item/versions/index.ts +++ b/src/shares/item/list/items/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItemVersionCollectionResponse } from '../../../../../../models/'; +import { type ListItemVersionCollectionResponse } from '../../../../../../models'; import { createListItemVersionFromDiscriminatorValue, deserializeIntoListItemVersion, serializeListItemVersion, type ListItemVersion } from '../../../../../../models/listItemVersion'; import { createListItemVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/listItemVersionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ListItemVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ListItemVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/versions/item/fields/index.ts b/src/shares/item/list/items/item/versions/item/fields/index.ts index b87f4ae4929..69c125b0e94 100644 --- a/src/shares/item/list/items/item/versions/item/fields/index.ts +++ b/src/shares/item/list/items/item/versions/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/items/item/versions/item/index.ts b/src/shares/item/list/items/item/versions/item/index.ts index 67b749c0fe3..92f7b4f7dbd 100644 --- a/src/shares/item/list/items/item/versions/item/index.ts +++ b/src/shares/item/list/items/item/versions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createListItemVersionFromDiscriminatorValue, deserializeIntoListItemVersion, serializeListItemVersion, type ListItemVersion } from '../../../../../../../models/listItemVersion'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { FieldsRequestBuilder } from './fields/'; -import { RestoreVersionRequestBuilder } from './restoreVersion/'; +import { FieldsRequestBuilder } from './fields'; +import { RestoreVersionRequestBuilder } from './restoreVersion'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemVersionItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/items/item/versions/item/restoreVersion/index.ts b/src/shares/item/list/items/item/versions/item/restoreVersion/index.ts index bb64f7bdf72..45ecbc667e7 100644 --- a/src/shares/item/list/items/item/versions/item/restoreVersion/index.ts +++ b/src/shares/item/list/items/item/versions/item/restoreVersion/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/lastModifiedByUser/index.ts b/src/shares/item/list/lastModifiedByUser/index.ts index fbccfda7afa..37bf15ac632 100644 --- a/src/shares/item/list/lastModifiedByUser/index.ts +++ b/src/shares/item/list/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type User } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/lastModifiedByUser/mailboxSettings/index.ts b/src/shares/item/list/lastModifiedByUser/mailboxSettings/index.ts index 29aee765993..18b0c0f675d 100644 --- a/src/shares/item/list/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/shares/item/list/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/shares/item/list/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 4c751efc589..6867c6d7454 100644 --- a/src/shares/item/list/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/shares/item/list/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/shares/item/list/lastModifiedByUser/serviceProvisioningErrors/index.ts index e7aaa0df7b1..54adb7e3730 100644 --- a/src/shares/item/list/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/shares/item/list/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/operations/count/index.ts b/src/shares/item/list/operations/count/index.ts index 31c9be01c97..6cb7edac64e 100644 --- a/src/shares/item/list/operations/count/index.ts +++ b/src/shares/item/list/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/operations/index.ts b/src/shares/item/list/operations/index.ts index cdb14ecc1cf..ccee0bf90ff 100644 --- a/src/shares/item/list/operations/index.ts +++ b/src/shares/item/list/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RichLongRunningOperationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type RichLongRunningOperationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../models/richLongRunningOperation'; import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/richLongRunningOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RichLongRunningOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RichLongRunningOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/operations/item/index.ts b/src/shares/item/list/operations/item/index.ts index 6754e3d016a..123cf221b3b 100644 --- a/src/shares/item/list/operations/item/index.ts +++ b/src/shares/item/list/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../../models/richLongRunningOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/subscriptions/count/index.ts b/src/shares/item/list/subscriptions/count/index.ts index 45b73841bbe..37ab2129c11 100644 --- a/src/shares/item/list/subscriptions/count/index.ts +++ b/src/shares/item/list/subscriptions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/list/subscriptions/index.ts b/src/shares/item/list/subscriptions/index.ts index 86974507d88..3137d6b5561 100644 --- a/src/shares/item/list/subscriptions/index.ts +++ b/src/shares/item/list/subscriptions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubscriptionCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SubscriptionCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../models/subscription'; import { createSubscriptionCollectionResponseFromDiscriminatorValue } from '../../../../models/subscriptionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubscriptionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubscriptionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionsRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/subscriptions/item/index.ts b/src/shares/item/list/subscriptions/item/index.ts index 224318cef93..8f9d38b83f8 100644 --- a/src/shares/item/list/subscriptions/item/index.ts +++ b/src/shares/item/list/subscriptions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../../models/subscription'; -import { ReauthorizeRequestBuilder } from './reauthorize/'; +import { ReauthorizeRequestBuilder } from './reauthorize'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionItemRequestBuilderGetQueryParameters { diff --git a/src/shares/item/list/subscriptions/item/reauthorize/index.ts b/src/shares/item/list/subscriptions/item/reauthorize/index.ts index b2af931755a..6b44b51cc4c 100644 --- a/src/shares/item/list/subscriptions/item/reauthorize/index.ts +++ b/src/shares/item/list/subscriptions/item/reauthorize/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/listItem/index.ts b/src/shares/item/listItem/index.ts index 23e082e8dbd..c5d4e84a94b 100644 --- a/src/shares/item/listItem/index.ts +++ b/src/shares/item/listItem/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItem } from '../../../models/'; +import { type ListItem } from '../../../models'; import { createListItemFromDiscriminatorValue } from '../../../models/listItem'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/permission/grant/index.ts b/src/shares/item/permission/grant/index.ts index 271eef4a9f6..e9fa1122535 100644 --- a/src/shares/item/permission/grant/index.ts +++ b/src/shares/item/permission/grant/index.ts @@ -2,113 +2,28 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createDriveRecipientFromDiscriminatorValue, serializeDriveRecipient, type DriveRecipient } from '../../../../models/driveRecipient'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, serializePermission, type Permission } from '../../../../models/permission'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export function createGrantPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGrantPostRequestBody; -} export function createGrantPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGrantPostResponse; } -export function deserializeIntoGrantPostRequestBody(grantPostRequestBody: GrantPostRequestBody | undefined = {} as GrantPostRequestBody) : Record void> { - return { - "recipients": n => { grantPostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); }, - "roles": n => { grantPostRequestBody.roles = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoGrantPostResponse(grantPostResponse: GrantPostResponse | undefined = {} as GrantPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(grantPostResponse), "value": n => { grantPostResponse.value = n.getCollectionOfObjectValues(createPermissionFromDiscriminatorValue); }, } } -export interface GrantPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The recipients property - */ - recipients?: DriveRecipient[]; - /** - * The roles property - */ - roles?: string[]; -} export interface GrantPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: Permission[]; } -export function serializeGrantPostRequestBody(writer: SerializationWriter, grantPostRequestBody: GrantPostRequestBody | undefined = {} as GrantPostRequestBody) : void { - writer.writeCollectionOfObjectValues("recipients", grantPostRequestBody.recipients, serializeDriveRecipient); - writer.writeCollectionOfPrimitiveValues("roles", grantPostRequestBody.roles); - writer.writeAdditionalData(grantPostRequestBody.additionalData); -} export function serializeGrantPostResponse(writer: SerializationWriter, grantPostResponse: GrantPostResponse | undefined = {} as GrantPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, grantPostResponse) writer.writeCollectionOfObjectValues("value", grantPostResponse.value, serializePermission); } -/** - * Provides operations to call the grant method. - */ -export class GrantRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GrantRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/permission/grant"); - }; - /** - * Grant users access to a link represented by a [permission][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GrantPostResponse - * @see {@link https://learn.microsoft.com/graph/api/permission-grant?view=graph-rest-1.0|Find more info here} - */ - public post(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGrantPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Grant users access to a link represented by a [permission][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGrantPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a grantRequestBuilder - */ - public withUrl(rawUrl: string) : GrantRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GrantRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/shares/item/permission/index.ts b/src/shares/item/permission/index.ts index 3b1ffc98ac9..3cb04262cc3 100644 --- a/src/shares/item/permission/index.ts +++ b/src/shares/item/permission/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../models/permission'; -import { GrantRequestBuilder } from './grant/'; +import { GrantRequestBuilder } from './grant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionRequestBuilderGetQueryParameters { diff --git a/src/shares/item/root/content/index.ts b/src/shares/item/root/content/index.ts index 3524561b911..504633e5897 100644 --- a/src/shares/item/root/content/index.ts +++ b/src/shares/item/root/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../models/'; +import { type DriveItem } from '../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/shares/item/root/index.ts b/src/shares/item/root/index.ts index 2fca47ce237..aefaaa3c100 100644 --- a/src/shares/item/root/index.ts +++ b/src/shares/item/root/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../models/'; +import { type DriveItem } from '../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../models/driveItem'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RootRequestBuilderGetQueryParameters { diff --git a/src/shares/item/site/index.ts b/src/shares/item/site/index.ts index c6e0055c804..5e6fb9bd40c 100644 --- a/src/shares/item/site/index.ts +++ b/src/shares/item/site/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Site } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type Site } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue } from '../../../models/site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/add/index.ts b/src/sites/add/index.ts index 4df89e2d9f2..84a9fffb460 100644 --- a/src/sites/add/index.ts +++ b/src/sites/add/index.ts @@ -2,106 +2,28 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../models/site'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: Site[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: Site[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "value": n => { addPostRequestBody.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("value", addPostRequestBody.value, serializeSite); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeSite); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/add"); - }; - /** - * Follow a user's site or multiple sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/site-follow?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Follow a user's site or multiple sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/count/index.ts b/src/sites/count/index.ts index 881db890a3f..59ad88fcabb 100644 --- a/src/sites/count/index.ts +++ b/src/sites/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/delta/index.ts b/src/sites/delta/index.ts index f31db4799f4..2df758bf83b 100644 --- a/src/sites/delta/index.ts +++ b/src/sites/delta/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../models/site'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Site[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeSite); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/sites/getAllSites/index.ts b/src/sites/getAllSites/index.ts index 483cc850ea0..60f99234352 100644 --- a/src/sites/getAllSites/index.ts +++ b/src/sites/getAllSites/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../models/site'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllSitesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,96 +21,9 @@ export interface GetAllSitesGetResponse extends BaseCollectionPaginationCountRes */ value?: Site[]; } -export interface GetAllSitesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetAllSitesGetResponse(writer: SerializationWriter, getAllSitesGetResponse: GetAllSitesGetResponse | undefined = {} as GetAllSitesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllSitesGetResponse) writer.writeCollectionOfObjectValues("value", getAllSitesGetResponse.value, serializeSite); } -/** - * Provides operations to call the getAllSites method. - */ -export class GetAllSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllSitesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/getAllSites(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllSites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllSitesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllSitesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllSites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllSitesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllSitesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllSitesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllSitesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllSitesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/sites/index.ts b/src/sites/index.ts index a3995e7bd81..bd0fece2e8f 100644 --- a/src/sites/index.ts +++ b/src/sites/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SiteCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type SiteCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createSiteCollectionResponseFromDiscriminatorValue } from '../models/siteCollectionResponse'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAllSitesRequestBuilder } from './getAllSites/'; -import { SiteItemRequestBuilder } from './item/'; -import { RemoveRequestBuilder } from './remove/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAllSitesRequestBuilder } from './getAllSites'; +import { SiteItemRequestBuilder } from './item'; +import { RemoveRequestBuilder } from './remove'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SitesRequestBuilderGetQueryParameters { @@ -101,10 +101,10 @@ export class SitesRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. + * Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of SiteCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/site-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/site-search?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -117,7 +117,7 @@ export class SitesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createSiteCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. + * Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/sites/item/analytics/allTime/index.ts b/src/sites/item/analytics/allTime/index.ts index c870f41d4e6..586ae3131f3 100644 --- a/src/sites/item/analytics/allTime/index.ts +++ b/src/sites/item/analytics/allTime/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStat } from '../../../../models/'; +import { type ItemActivityStat } from '../../../../models'; import { createItemActivityStatFromDiscriminatorValue } from '../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/analytics/index.ts b/src/sites/item/analytics/index.ts index 27b13a49d73..d5bcefcaa74 100644 --- a/src/sites/item/analytics/index.ts +++ b/src/sites/item/analytics/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemAnalyticsFromDiscriminatorValue, deserializeIntoItemAnalytics, serializeItemAnalytics, type ItemAnalytics } from '../../../models/itemAnalytics'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AllTimeRequestBuilder } from './allTime/'; -import { ItemActivityStatsRequestBuilder } from './itemActivityStats/'; -import { LastSevenDaysRequestBuilder } from './lastSevenDays/'; +import { AllTimeRequestBuilder } from './allTime'; +import { ItemActivityStatsRequestBuilder } from './itemActivityStats'; +import { LastSevenDaysRequestBuilder } from './lastSevenDays'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AnalyticsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/analytics/itemActivityStats/count/index.ts b/src/sites/item/analytics/itemActivityStats/count/index.ts index ac4b6a9d470..59469cd32ab 100644 --- a/src/sites/item/analytics/itemActivityStats/count/index.ts +++ b/src/sites/item/analytics/itemActivityStats/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/analytics/itemActivityStats/index.ts b/src/sites/item/analytics/itemActivityStats/index.ts index b2bbedf52b1..fa30ae21222 100644 --- a/src/sites/item/analytics/itemActivityStats/index.ts +++ b/src/sites/item/analytics/itemActivityStats/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStatCollectionResponse } from '../../../../models/'; +import { type ItemActivityStatCollectionResponse } from '../../../../models'; import { createItemActivityStatFromDiscriminatorValue, deserializeIntoItemActivityStat, serializeItemActivityStat, type ItemActivityStat } from '../../../../models/itemActivityStat'; import { createItemActivityStatCollectionResponseFromDiscriminatorValue } from '../../../../models/itemActivityStatCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ItemActivityStatItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ItemActivityStatItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityStatsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/analytics/itemActivityStats/item/activities/count/index.ts b/src/sites/item/analytics/itemActivityStats/item/activities/count/index.ts index bbf8f791bf3..df2c93a7b80 100644 --- a/src/sites/item/analytics/itemActivityStats/item/activities/count/index.ts +++ b/src/sites/item/analytics/itemActivityStats/item/activities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/analytics/itemActivityStats/item/activities/index.ts b/src/sites/item/analytics/itemActivityStats/item/activities/index.ts index f1633a04faf..56485d7ff5e 100644 --- a/src/sites/item/analytics/itemActivityStats/item/activities/index.ts +++ b/src/sites/item/analytics/itemActivityStats/item/activities/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityCollectionResponse } from '../../../../../../models/'; +import { type ItemActivityCollectionResponse } from '../../../../../../models'; import { createItemActivityFromDiscriminatorValue, deserializeIntoItemActivity, serializeItemActivity, type ItemActivity } from '../../../../../../models/itemActivity'; import { createItemActivityCollectionResponseFromDiscriminatorValue } from '../../../../../../models/itemActivityCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ItemActivityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ItemActivityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivitiesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts b/src/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts index 7a98ae4f248..9635fb15cf8 100644 --- a/src/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts +++ b/src/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts b/src/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts index 5c4033294ba..dffe9dfa6fd 100644 --- a/src/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts +++ b/src/sites/item/analytics/itemActivityStats/item/activities/item/driveItem/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/analytics/itemActivityStats/item/activities/item/index.ts b/src/sites/item/analytics/itemActivityStats/item/activities/item/index.ts index 48f48b78e92..ae1d3bfe3be 100644 --- a/src/sites/item/analytics/itemActivityStats/item/activities/item/index.ts +++ b/src/sites/item/analytics/itemActivityStats/item/activities/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemActivityFromDiscriminatorValue, deserializeIntoItemActivity, serializeItemActivity, type ItemActivity } from '../../../../../../../models/itemActivity'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { DriveItemRequestBuilder } from './driveItem/'; +import { DriveItemRequestBuilder } from './driveItem'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/analytics/itemActivityStats/item/index.ts b/src/sites/item/analytics/itemActivityStats/item/index.ts index a4b024571b7..f78e48e8ec7 100644 --- a/src/sites/item/analytics/itemActivityStats/item/index.ts +++ b/src/sites/item/analytics/itemActivityStats/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemActivityStatFromDiscriminatorValue, deserializeIntoItemActivityStat, serializeItemActivityStat, type ItemActivityStat } from '../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ActivitiesRequestBuilder } from './activities/'; +import { ActivitiesRequestBuilder } from './activities'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemActivityStatItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/analytics/lastSevenDays/index.ts b/src/sites/item/analytics/lastSevenDays/index.ts index 5a715fa0696..0d95e5abec6 100644 --- a/src/sites/item/analytics/lastSevenDays/index.ts +++ b/src/sites/item/analytics/lastSevenDays/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemActivityStat } from '../../../../models/'; +import { type ItemActivityStat } from '../../../../models'; import { createItemActivityStatFromDiscriminatorValue } from '../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/columns/count/index.ts b/src/sites/item/columns/count/index.ts index 074b256ac43..a17b87227c8 100644 --- a/src/sites/item/columns/count/index.ts +++ b/src/sites/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/columns/index.ts b/src/sites/item/columns/index.ts index 1b4b96f41e8..b47cb4b1631 100644 --- a/src/sites/item/columns/index.ts +++ b/src/sites/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/columns/item/index.ts b/src/sites/item/columns/item/index.ts index 78f345ebab0..34b826a9ef6 100644 --- a/src/sites/item/columns/item/index.ts +++ b/src/sites/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../models/columnDefinition'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/columns/item/sourceColumn/index.ts b/src/sites/item/columns/item/sourceColumn/index.ts index bebc07b801e..ea8ea4301c9 100644 --- a/src/sites/item/columns/item/sourceColumn/index.ts +++ b/src/sites/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../models/'; +import { type ColumnDefinition } from '../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/addCopy/addCopyPostRequestBody.ts b/src/sites/item/contentTypes/addCopy/addCopyPostRequestBody.ts deleted file mode 100644 index 85058f03a64..00000000000 --- a/src/sites/item/contentTypes/addCopy/addCopyPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The contentType property - */ - contentType?: string; -} -export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddCopyPostRequestBody; -} -export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { - return { - "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, - } -} -export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { - writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); - writer.writeAdditionalData(addCopyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/contentTypes/addCopy/index.ts b/src/sites/item/contentTypes/addCopy/index.ts index 7c2ff808324..c5583c4b51b 100644 --- a/src/sites/item/contentTypes/addCopy/index.ts +++ b/src/sites/item/contentTypes/addCopy/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../models/contentType'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAddCopyPostRequestBody, serializeAddCopyPostRequestBody, type AddCopyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The contentType property + */ + contentType?: string; +} +export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddCopyPostRequestBody; +} +export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { + return { + "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, + } +} +export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { + writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); + writer.writeAdditionalData(addCopyPostRequestBody.additionalData); +} /** * Provides operations to call the addCopy method. */ diff --git a/src/sites/item/contentTypes/addCopyFromContentTypeHub/index.ts b/src/sites/item/contentTypes/addCopyFromContentTypeHub/index.ts index d38c74e31af..b3a25387260 100644 --- a/src/sites/item/contentTypes/addCopyFromContentTypeHub/index.ts +++ b/src/sites/item/contentTypes/addCopyFromContentTypeHub/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../models/contentType'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddCopyFromContentTypeHubPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeAddCopyFromContentTypeHubPostRequestBody(writer: Serial writer.writeStringValue("contentTypeId", addCopyFromContentTypeHubPostRequestBody.contentTypeId); writer.writeAdditionalData(addCopyFromContentTypeHubPostRequestBody.additionalData); } -/** - * Provides operations to call the addCopyFromContentTypeHub method. - */ -export class AddCopyFromContentTypeHubRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddCopyFromContentTypeHubRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/addCopyFromContentTypeHub"); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ContentType - * @see {@link https://learn.microsoft.com/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createContentTypeFromDiscriminatorValue, errorMapping); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddCopyFromContentTypeHubPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addCopyFromContentTypeHubRequestBuilder - */ - public withUrl(rawUrl: string) : AddCopyFromContentTypeHubRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddCopyFromContentTypeHubRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/contentTypes/count/index.ts b/src/sites/item/contentTypes/count/index.ts index bcc7284a028..97de714a933 100644 --- a/src/sites/item/contentTypes/count/index.ts +++ b/src/sites/item/contentTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts b/src/sites/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts deleted file mode 100644 index 2b5d1432c15..00000000000 --- a/src/sites/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../models/contentType'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetCompatibleHubContentTypesGetResponse; -} -export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), - "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, - } -} -export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ContentType[]; -} -export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) - writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/contentTypes/getCompatibleHubContentTypes/index.ts b/src/sites/item/contentTypes/getCompatibleHubContentTypes/index.ts index ac1c7f22c5f..942ec705ba9 100644 --- a/src/sites/item/contentTypes/getCompatibleHubContentTypes/index.ts +++ b/src/sites/item/contentTypes/getCompatibleHubContentTypes/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../models/contentType'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue } from './'; -import { type GetCompatibleHubContentTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetCompatibleHubContentTypesGetResponse; +} +export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), + "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, + } +} +export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ContentType[]; +} export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) + writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); +} /** * Provides operations to call the getCompatibleHubContentTypes method. */ diff --git a/src/sites/item/contentTypes/index.ts b/src/sites/item/contentTypes/index.ts index 3b859683190..11487708905 100644 --- a/src/sites/item/contentTypes/index.ts +++ b/src/sites/item/contentTypes/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../models'; import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../models/contentType'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AddCopyRequestBuilder } from './addCopy/'; -import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub/'; -import { CountRequestBuilder } from './count/'; -import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { AddCopyRequestBuilder } from './addCopy'; +import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub'; +import { CountRequestBuilder } from './count'; +import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/contentTypes/item/associateWithHubSites/index.ts b/src/sites/item/contentTypes/item/associateWithHubSites/index.ts index 4a35136578b..1c75d048bb8 100644 --- a/src/sites/item/contentTypes/item/associateWithHubSites/index.ts +++ b/src/sites/item/contentTypes/item/associateWithHubSites/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssociateWithHubSitesPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAssociateWithHubSitesPostRequestBody(writer: Serializat writer.writeBooleanValue("propagateToExistingLists", associateWithHubSitesPostRequestBody.propagateToExistingLists); writer.writeAdditionalData(associateWithHubSitesPostRequestBody.additionalData); } -/** - * Provides operations to call the associateWithHubSites method. - */ -export class AssociateWithHubSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssociateWithHubSitesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites"); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-associatewithhubsites?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssociateWithHubSitesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a associateWithHubSitesRequestBuilder - */ - public withUrl(rawUrl: string) : AssociateWithHubSitesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssociateWithHubSitesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/contentTypes/item/base/index.ts b/src/sites/item/contentTypes/item/base/index.ts index 98cbe7de568..f53ac32dcfc 100644 --- a/src/sites/item/contentTypes/item/base/index.ts +++ b/src/sites/item/contentTypes/item/base/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../models/'; +import { type ContentType } from '../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../models/contentType'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/baseTypes/count/index.ts b/src/sites/item/contentTypes/item/baseTypes/count/index.ts index 4eb6c85ebc0..fd14a7ea6d4 100644 --- a/src/sites/item/contentTypes/item/baseTypes/count/index.ts +++ b/src/sites/item/contentTypes/item/baseTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/baseTypes/index.ts b/src/sites/item/contentTypes/item/baseTypes/index.ts index e2083535226..83dfb94d8ad 100644 --- a/src/sites/item/contentTypes/item/baseTypes/index.ts +++ b/src/sites/item/contentTypes/item/baseTypes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../models'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BaseTypesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/contentTypes/item/baseTypes/item/index.ts b/src/sites/item/contentTypes/item/baseTypes/item/index.ts index d51aa99eda9..3f66d872b28 100644 --- a/src/sites/item/contentTypes/item/baseTypes/item/index.ts +++ b/src/sites/item/contentTypes/item/baseTypes/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../models/'; +import { type ContentType } from '../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/columnLinks/count/index.ts b/src/sites/item/contentTypes/item/columnLinks/count/index.ts index 8c8a3244cb2..56b071a48a6 100644 --- a/src/sites/item/contentTypes/item/columnLinks/count/index.ts +++ b/src/sites/item/contentTypes/item/columnLinks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/columnLinks/index.ts b/src/sites/item/contentTypes/item/columnLinks/index.ts index 281dc135a92..2f2bd78c9f1 100644 --- a/src/sites/item/contentTypes/item/columnLinks/index.ts +++ b/src/sites/item/contentTypes/item/columnLinks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnLinkCollectionResponse } from '../../../../../models/'; +import { type ColumnLinkCollectionResponse } from '../../../../../models'; import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../models/columnLink'; import { createColumnLinkCollectionResponseFromDiscriminatorValue } from '../../../../../models/columnLinkCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnLinkItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnLinkItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnLinksRequestBuilderGetQueryParameters { diff --git a/src/sites/item/contentTypes/item/columnLinks/item/index.ts b/src/sites/item/contentTypes/item/columnLinks/item/index.ts index 74c583bd938..394c7d937f4 100644 --- a/src/sites/item/contentTypes/item/columnLinks/item/index.ts +++ b/src/sites/item/contentTypes/item/columnLinks/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../models/columnLink'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/columnPositions/count/index.ts b/src/sites/item/contentTypes/item/columnPositions/count/index.ts index 9b14526bd62..efa34f6c4f9 100644 --- a/src/sites/item/contentTypes/item/columnPositions/count/index.ts +++ b/src/sites/item/contentTypes/item/columnPositions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/columnPositions/index.ts b/src/sites/item/contentTypes/item/columnPositions/index.ts index 001baf98b91..584aee96310 100644 --- a/src/sites/item/contentTypes/item/columnPositions/index.ts +++ b/src/sites/item/contentTypes/item/columnPositions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../models'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnPositionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/contentTypes/item/columnPositions/item/index.ts b/src/sites/item/contentTypes/item/columnPositions/item/index.ts index 6891beb5054..7eee01e2174 100644 --- a/src/sites/item/contentTypes/item/columnPositions/item/index.ts +++ b/src/sites/item/contentTypes/item/columnPositions/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/columns/count/index.ts b/src/sites/item/contentTypes/item/columns/count/index.ts index a74a8e6cc2b..8a66db55fd2 100644 --- a/src/sites/item/contentTypes/item/columns/count/index.ts +++ b/src/sites/item/contentTypes/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/columns/index.ts b/src/sites/item/contentTypes/item/columns/index.ts index bdc6db8d45c..e581a949fed 100644 --- a/src/sites/item/contentTypes/item/columns/index.ts +++ b/src/sites/item/contentTypes/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/contentTypes/item/columns/item/index.ts b/src/sites/item/contentTypes/item/columns/item/index.ts index c90802398b5..a7209b05165 100644 --- a/src/sites/item/contentTypes/item/columns/item/index.ts +++ b/src/sites/item/contentTypes/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/contentTypes/item/columns/item/sourceColumn/index.ts b/src/sites/item/contentTypes/item/columns/item/sourceColumn/index.ts index c74b65a40d5..23c0fc1c0ad 100644 --- a/src/sites/item/contentTypes/item/columns/item/sourceColumn/index.ts +++ b/src/sites/item/contentTypes/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/copyToDefaultContentLocation/index.ts b/src/sites/item/contentTypes/item/copyToDefaultContentLocation/index.ts index 47dc86ff13e..4d3cc002990 100644 --- a/src/sites/item/contentTypes/item/copyToDefaultContentLocation/index.ts +++ b/src/sites/item/contentTypes/item/copyToDefaultContentLocation/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../models/itemReference'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToDefaultContentLocationPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,57 +33,5 @@ export function serializeCopyToDefaultContentLocationPostRequestBody(writer: Ser writer.writeObjectValue("sourceFile", copyToDefaultContentLocationPostRequestBody.sourceFile, serializeItemReference); writer.writeAdditionalData(copyToDefaultContentLocationPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToDefaultContentLocation method. - */ -export class CopyToDefaultContentLocationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToDefaultContentLocationRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation"); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-copytodefaultcontentlocation?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToDefaultContentLocationPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToDefaultContentLocationRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToDefaultContentLocationRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToDefaultContentLocationRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/contentTypes/item/index.ts b/src/sites/item/contentTypes/item/index.ts index 9bef9a43f34..75da49e10dd 100644 --- a/src/sites/item/contentTypes/item/index.ts +++ b/src/sites/item/contentTypes/item/index.ts @@ -2,18 +2,18 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../models/contentType'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites/'; -import { BaseRequestBuilderEscaped } from './base/'; -import { BaseTypesRequestBuilder } from './baseTypes/'; -import { ColumnLinksRequestBuilder } from './columnLinks/'; -import { ColumnPositionsRequestBuilder } from './columnPositions/'; -import { ColumnsRequestBuilder } from './columns/'; -import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation/'; -import { IsPublishedRequestBuilder } from './isPublished/'; -import { PublishRequestBuilder } from './publish/'; -import { UnpublishRequestBuilder } from './unpublish/'; +import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites'; +import { BaseRequestBuilderEscaped } from './base'; +import { BaseTypesRequestBuilder } from './baseTypes'; +import { ColumnLinksRequestBuilder } from './columnLinks'; +import { ColumnPositionsRequestBuilder } from './columnPositions'; +import { ColumnsRequestBuilder } from './columns'; +import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation'; +import { IsPublishedRequestBuilder } from './isPublished'; +import { PublishRequestBuilder } from './publish'; +import { UnpublishRequestBuilder } from './unpublish'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypeItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/contentTypes/item/isPublished/index.ts b/src/sites/item/contentTypes/item/isPublished/index.ts index 0e05ea485b9..a66ec86d943 100644 --- a/src/sites/item/contentTypes/item/isPublished/index.ts +++ b/src/sites/item/contentTypes/item/isPublished/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createIsPublishedGetResponseFromDiscriminatorValue } from './'; -import { type IsPublishedGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsPublishedGetResponse; +} +export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { + return { + "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, + } +} +export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} +export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { + writer.writeBooleanValue("value", isPublishedGetResponse.value); + writer.writeAdditionalData(isPublishedGetResponse.additionalData); +} /** * Provides operations to call the isPublished method. */ diff --git a/src/sites/item/contentTypes/item/isPublished/isPublishedGetResponse.ts b/src/sites/item/contentTypes/item/isPublished/isPublishedGetResponse.ts deleted file mode 100644 index e6621aa5f27..00000000000 --- a/src/sites/item/contentTypes/item/isPublished/isPublishedGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsPublishedGetResponse; -} -export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { - return { - "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, - } -} -export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { - writer.writeBooleanValue("value", isPublishedGetResponse.value); - writer.writeAdditionalData(isPublishedGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/contentTypes/item/publish/index.ts b/src/sites/item/contentTypes/item/publish/index.ts index 7221d46e0d6..90c1f046933 100644 --- a/src/sites/item/contentTypes/item/publish/index.ts +++ b/src/sites/item/contentTypes/item/publish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/contentTypes/item/unpublish/index.ts b/src/sites/item/contentTypes/item/unpublish/index.ts index c2d31a6b940..cc593efda48 100644 --- a/src/sites/item/contentTypes/item/unpublish/index.ts +++ b/src/sites/item/contentTypes/item/unpublish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/createdByUser/index.ts b/src/sites/item/createdByUser/index.ts index 7eb7b6dc27b..a318afc8caa 100644 --- a/src/sites/item/createdByUser/index.ts +++ b/src/sites/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/sites/item/createdByUser/mailboxSettings/index.ts b/src/sites/item/createdByUser/mailboxSettings/index.ts index b15c76298f1..c8ea98c69b6 100644 --- a/src/sites/item/createdByUser/mailboxSettings/index.ts +++ b/src/sites/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/sites/item/createdByUser/serviceProvisioningErrors/count/index.ts index 4bb1693b98f..0c8319e8218 100644 --- a/src/sites/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/sites/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/createdByUser/serviceProvisioningErrors/index.ts b/src/sites/item/createdByUser/serviceProvisioningErrors/index.ts index 64994b58cbb..8031a3df8e6 100644 --- a/src/sites/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/sites/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/drive/index.ts b/src/sites/item/drive/index.ts index 69e1e859254..59b77ccf90e 100644 --- a/src/sites/item/drive/index.ts +++ b/src/sites/item/drive/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../models/'; +import { type Drive } from '../../../models'; import { createDriveFromDiscriminatorValue } from '../../../models/drive'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/drives/count/index.ts b/src/sites/item/drives/count/index.ts index 7b3b9cd68f8..4407dc01701 100644 --- a/src/sites/item/drives/count/index.ts +++ b/src/sites/item/drives/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/drives/index.ts b/src/sites/item/drives/index.ts index ad4bafbb3c8..6756aaa232d 100644 --- a/src/sites/item/drives/index.ts +++ b/src/sites/item/drives/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveCollectionResponse } from '../../../models/'; +import { type DriveCollectionResponse } from '../../../models'; import { createDriveCollectionResponseFromDiscriminatorValue } from '../../../models/driveCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DrivesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/drives/item/index.ts b/src/sites/item/drives/item/index.ts index 1cb59e47957..3d14d8007cf 100644 --- a/src/sites/item/drives/item/index.ts +++ b/src/sites/item/drives/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../models/'; +import { type Drive } from '../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../models/drive'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/externalColumns/count/index.ts b/src/sites/item/externalColumns/count/index.ts index caa1c66b380..0f0debe40a6 100644 --- a/src/sites/item/externalColumns/count/index.ts +++ b/src/sites/item/externalColumns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/externalColumns/index.ts b/src/sites/item/externalColumns/index.ts index 6371ab8e7c6..f8de9f3f5a4 100644 --- a/src/sites/item/externalColumns/index.ts +++ b/src/sites/item/externalColumns/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../models'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExternalColumnsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/externalColumns/item/index.ts b/src/sites/item/externalColumns/item/index.ts index 21d96469dd0..76b52a61c15 100644 --- a/src/sites/item/externalColumns/item/index.ts +++ b/src/sites/item/externalColumns/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../models/'; +import { type ColumnDefinition } from '../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../models/columnDefinition'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts b/src/sites/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts deleted file mode 100644 index e77005bc8a9..00000000000 --- a/src/sites/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../models/itemActivityStat'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetActivitiesByIntervalGetResponse; -} -export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), - "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, - } -} -export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ItemActivityStat[]; -} -export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) - writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/getActivitiesByInterval/index.ts b/src/sites/item/getActivitiesByInterval/index.ts index 620d9220e1a..17f5536f949 100644 --- a/src/sites/item/getActivitiesByInterval/index.ts +++ b/src/sites/item/getActivitiesByInterval/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../models/itemActivityStat'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetActivitiesByIntervalGetResponseFromDiscriminatorValue } from './'; -import { type GetActivitiesByIntervalGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetActivitiesByIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), + "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ItemActivityStat[]; +} export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) + writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); +} /** * Provides operations to call the getActivitiesByInterval method. */ diff --git a/src/sites/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/sites/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts index d8c44ee45af..dea829922e8 100644 --- a/src/sites/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts +++ b/src/sites/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../models/itemActivityStat'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,102 +21,9 @@ export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInte */ value?: ItemActivityStat[]; } -export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value, serializeItemActivityStat); } -/** - * Provides operations to call the getActivitiesByInterval method. - */ -export class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: string | undefined, interval?: string | undefined, startDateTime?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["interval"] = interval - this.pathParameters["startDateTime"] = startDateTime - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder - */ - public withUrl(rawUrl: string) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/sites/item/getApplicableContentTypesForListWithListId/getApplicableContentTypesForListWithListIdGetResponse.ts b/src/sites/item/getApplicableContentTypesForListWithListId/getApplicableContentTypesForListWithListIdGetResponse.ts deleted file mode 100644 index ebb5c9465a2..00000000000 --- a/src/sites/item/getApplicableContentTypesForListWithListId/getApplicableContentTypesForListWithListIdGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../models/contentType'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetApplicableContentTypesForListWithListIdGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetApplicableContentTypesForListWithListIdGetResponse; -} -export function deserializeIntoGetApplicableContentTypesForListWithListIdGetResponse(getApplicableContentTypesForListWithListIdGetResponse: GetApplicableContentTypesForListWithListIdGetResponse | undefined = {} as GetApplicableContentTypesForListWithListIdGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getApplicableContentTypesForListWithListIdGetResponse), - "value": n => { getApplicableContentTypesForListWithListIdGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, - } -} -export interface GetApplicableContentTypesForListWithListIdGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ContentType[]; -} -export function serializeGetApplicableContentTypesForListWithListIdGetResponse(writer: SerializationWriter, getApplicableContentTypesForListWithListIdGetResponse: GetApplicableContentTypesForListWithListIdGetResponse | undefined = {} as GetApplicableContentTypesForListWithListIdGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getApplicableContentTypesForListWithListIdGetResponse) - writer.writeCollectionOfObjectValues("value", getApplicableContentTypesForListWithListIdGetResponse.value, serializeContentType); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/getApplicableContentTypesForListWithListId/index.ts b/src/sites/item/getApplicableContentTypesForListWithListId/index.ts index 4ef6da3f599..d99f3ca8144 100644 --- a/src/sites/item/getApplicableContentTypesForListWithListId/index.ts +++ b/src/sites/item/getApplicableContentTypesForListWithListId/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../models/contentType'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetApplicableContentTypesForListWithListIdGetResponseFromDiscriminatorValue } from './'; -import { type GetApplicableContentTypesForListWithListIdGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetApplicableContentTypesForListWithListIdGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetApplicableContentTypesForListWithListIdGetResponse; +} +export function deserializeIntoGetApplicableContentTypesForListWithListIdGetResponse(getApplicableContentTypesForListWithListIdGetResponse: GetApplicableContentTypesForListWithListIdGetResponse | undefined = {} as GetApplicableContentTypesForListWithListIdGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getApplicableContentTypesForListWithListIdGetResponse), + "value": n => { getApplicableContentTypesForListWithListIdGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, + } +} +export interface GetApplicableContentTypesForListWithListIdGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ContentType[]; +} export interface GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetApplicableContentTypesForListWithListIdRequestBuilderGetQuer */ top?: number; } +export function serializeGetApplicableContentTypesForListWithListIdGetResponse(writer: SerializationWriter, getApplicableContentTypesForListWithListIdGetResponse: GetApplicableContentTypesForListWithListIdGetResponse | undefined = {} as GetApplicableContentTypesForListWithListIdGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getApplicableContentTypesForListWithListIdGetResponse) + writer.writeCollectionOfObjectValues("value", getApplicableContentTypesForListWithListIdGetResponse.value, serializeContentType); +} /** * Provides operations to call the getApplicableContentTypesForList method. */ diff --git a/src/sites/item/getByPathWithPath/index.ts b/src/sites/item/getByPathWithPath/index.ts index 607cb281e8d..3cef0a585fa 100644 --- a/src/sites/item/getByPathWithPath/index.ts +++ b/src/sites/item/getByPathWithPath/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Site } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type Site } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue } from '../../../models/site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/index.ts b/src/sites/item/index.ts index 3a6b00a09f9..5ae4e7e5e4d 100644 --- a/src/sites/item/index.ts +++ b/src/sites/item/index.ts @@ -1,29 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue, deserializeIntoSite, serializeSite, type Site } from '../../models/site'; -import { AnalyticsRequestBuilder } from './analytics/'; -import { ColumnsRequestBuilder } from './columns/'; -import { ContentTypesRequestBuilder } from './contentTypes/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DriveRequestBuilder } from './drive/'; -import { DrivesRequestBuilder } from './drives/'; -import { ExternalColumnsRequestBuilder } from './externalColumns/'; -import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval/'; -import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/'; -import { GetApplicableContentTypesForListWithListIdRequestBuilder } from './getApplicableContentTypesForListWithListId/'; -import { GetByPathWithPathRequestBuilder } from './getByPathWithPath/'; -import { ItemsRequestBuilder } from './items/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { ListsRequestBuilder } from './lists/'; -import { OnenoteRequestBuilder } from './onenote/'; -import { OperationsRequestBuilder } from './operations/'; -import { PermissionsRequestBuilder } from './permissions/'; -import { SitesRequestBuilder } from './sites/'; -import { TermStoreRequestBuilder } from './termStore/'; -import { TermStoresRequestBuilder } from './termStores/'; +import { AnalyticsRequestBuilder } from './analytics'; +import { ColumnsRequestBuilder } from './columns'; +import { ContentTypesRequestBuilder } from './contentTypes'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DriveRequestBuilder } from './drive'; +import { DrivesRequestBuilder } from './drives'; +import { ExternalColumnsRequestBuilder } from './externalColumns'; +import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval'; +import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval'; +import { GetApplicableContentTypesForListWithListIdRequestBuilder } from './getApplicableContentTypesForListWithListId'; +import { GetByPathWithPathRequestBuilder } from './getByPathWithPath'; +import { ItemsRequestBuilder } from './items'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { ListsRequestBuilder } from './lists'; +import { OnenoteRequestBuilder } from './onenote'; +import { OperationsRequestBuilder } from './operations'; +import { PermissionsRequestBuilder } from './permissions'; +import { SitesRequestBuilder } from './sites'; +import { TermStoreRequestBuilder } from './termStore'; +import { TermStoresRequestBuilder } from './termStores'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SiteItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/items/count/index.ts b/src/sites/item/items/count/index.ts index b7d0f335e40..f52b75dc2de 100644 --- a/src/sites/item/items/count/index.ts +++ b/src/sites/item/items/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/items/index.ts b/src/sites/item/items/index.ts index b103dc3a018..b49a1c1579f 100644 --- a/src/sites/item/items/index.ts +++ b/src/sites/item/items/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BaseItemCollectionResponse } from '../../../models/'; +import { type BaseItemCollectionResponse } from '../../../models'; import { createBaseItemCollectionResponseFromDiscriminatorValue } from '../../../models/baseItemCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BaseItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BaseItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/items/item/index.ts b/src/sites/item/items/item/index.ts index d67d7a7f494..0a777cc9d0c 100644 --- a/src/sites/item/items/item/index.ts +++ b/src/sites/item/items/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BaseItem } from '../../../../models/'; +import { type BaseItem } from '../../../../models'; import { createBaseItemFromDiscriminatorValue } from '../../../../models/baseItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lastModifiedByUser/index.ts b/src/sites/item/lastModifiedByUser/index.ts index b043c6acd04..f06b68c46af 100644 --- a/src/sites/item/lastModifiedByUser/index.ts +++ b/src/sites/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lastModifiedByUser/mailboxSettings/index.ts b/src/sites/item/lastModifiedByUser/mailboxSettings/index.ts index dbdcec459fd..3556e10ab37 100644 --- a/src/sites/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/sites/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/sites/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 47f27a4720b..b99fa285c26 100644 --- a/src/sites/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/sites/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/sites/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index cd8595bde25..8f013364d48 100644 --- a/src/sites/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/sites/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/count/index.ts b/src/sites/item/lists/count/index.ts index 7fdf4cc1462..4054901ee42 100644 --- a/src/sites/item/lists/count/index.ts +++ b/src/sites/item/lists/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/index.ts b/src/sites/item/lists/index.ts index 415dafa40f4..99059df7e77 100644 --- a/src/sites/item/lists/index.ts +++ b/src/sites/item/lists/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListCollectionResponse } from '../../../models/'; +import { type ListCollectionResponse } from '../../../models'; import { createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List } from '../../../models/list'; import { createListCollectionResponseFromDiscriminatorValue } from '../../../models/listCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ListItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ListItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/columns/count/index.ts b/src/sites/item/lists/item/columns/count/index.ts index 8589218b0b2..4e52373aa7b 100644 --- a/src/sites/item/lists/item/columns/count/index.ts +++ b/src/sites/item/lists/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/columns/index.ts b/src/sites/item/lists/item/columns/index.ts index eeb8da75309..2f3f2dc38ed 100644 --- a/src/sites/item/lists/item/columns/index.ts +++ b/src/sites/item/lists/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/columns/item/index.ts b/src/sites/item/lists/item/columns/item/index.ts index 4f3b034fc6f..668181b767b 100644 --- a/src/sites/item/lists/item/columns/item/index.ts +++ b/src/sites/item/lists/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/columns/item/sourceColumn/index.ts b/src/sites/item/lists/item/columns/item/sourceColumn/index.ts index 53b78d4a266..b84d8239c36 100644 --- a/src/sites/item/lists/item/columns/item/sourceColumn/index.ts +++ b/src/sites/item/lists/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/addCopy/addCopyPostRequestBody.ts b/src/sites/item/lists/item/contentTypes/addCopy/addCopyPostRequestBody.ts deleted file mode 100644 index 85058f03a64..00000000000 --- a/src/sites/item/lists/item/contentTypes/addCopy/addCopyPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The contentType property - */ - contentType?: string; -} -export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddCopyPostRequestBody; -} -export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { - return { - "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, - } -} -export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { - writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); - writer.writeAdditionalData(addCopyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/lists/item/contentTypes/addCopy/index.ts b/src/sites/item/lists/item/contentTypes/addCopy/index.ts index c37d49403fe..1d99a41273f 100644 --- a/src/sites/item/lists/item/contentTypes/addCopy/index.ts +++ b/src/sites/item/lists/item/contentTypes/addCopy/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoAddCopyPostRequestBody, serializeAddCopyPostRequestBody, type AddCopyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface AddCopyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The contentType property + */ + contentType?: string; +} +export function createAddCopyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoAddCopyPostRequestBody; +} +export function deserializeIntoAddCopyPostRequestBody(addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : Record void> { + return { + "contentType": n => { addCopyPostRequestBody.contentType = n.getStringValue(); }, + } +} +export function serializeAddCopyPostRequestBody(writer: SerializationWriter, addCopyPostRequestBody: AddCopyPostRequestBody | undefined = {} as AddCopyPostRequestBody) : void { + writer.writeStringValue("contentType", addCopyPostRequestBody.contentType); + writer.writeAdditionalData(addCopyPostRequestBody.additionalData); +} /** * Provides operations to call the addCopy method. */ diff --git a/src/sites/item/lists/item/contentTypes/addCopyFromContentTypeHub/index.ts b/src/sites/item/lists/item/contentTypes/addCopyFromContentTypeHub/index.ts index ed7a3384ef6..b3a25387260 100644 --- a/src/sites/item/lists/item/contentTypes/addCopyFromContentTypeHub/index.ts +++ b/src/sites/item/lists/item/contentTypes/addCopyFromContentTypeHub/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AddCopyFromContentTypeHubPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeAddCopyFromContentTypeHubPostRequestBody(writer: Serial writer.writeStringValue("contentTypeId", addCopyFromContentTypeHubPostRequestBody.contentTypeId); writer.writeAdditionalData(addCopyFromContentTypeHubPostRequestBody.additionalData); } -/** - * Provides operations to call the addCopyFromContentTypeHub method. - */ -export class AddCopyFromContentTypeHubRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddCopyFromContentTypeHubRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopyFromContentTypeHub"); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of ContentType - * @see {@link https://learn.microsoft.com/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createContentTypeFromDiscriminatorValue, errorMapping); - }; - /** - * Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddCopyFromContentTypeHubPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddCopyFromContentTypeHubPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addCopyFromContentTypeHubRequestBuilder - */ - public withUrl(rawUrl: string) : AddCopyFromContentTypeHubRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddCopyFromContentTypeHubRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/lists/item/contentTypes/count/index.ts b/src/sites/item/lists/item/contentTypes/count/index.ts index 885fa52c283..8d9f7c2fe17 100644 --- a/src/sites/item/lists/item/contentTypes/count/index.ts +++ b/src/sites/item/lists/item/contentTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts b/src/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts deleted file mode 100644 index 3aab799089c..00000000000 --- a/src/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/getCompatibleHubContentTypesGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../../models/contentType'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetCompatibleHubContentTypesGetResponse; -} -export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), - "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, - } -} -export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ContentType[]; -} -export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) - writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/index.ts b/src/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/index.ts index 4c43746c4d9..0c3a06868f6 100644 --- a/src/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/index.ts +++ b/src/sites/item/lists/item/contentTypes/getCompatibleHubContentTypes/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; +import { createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType } from '../../../../../../models/contentType'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue } from './'; -import { type GetCompatibleHubContentTypesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetCompatibleHubContentTypesGetResponse; +} +export function deserializeIntoGetCompatibleHubContentTypesGetResponse(getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getCompatibleHubContentTypesGetResponse), + "value": n => { getCompatibleHubContentTypesGetResponse.value = n.getCollectionOfObjectValues(createContentTypeFromDiscriminatorValue); }, + } +} +export interface GetCompatibleHubContentTypesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ContentType[]; +} export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetCompatibleHubContentTypesGetResponse(writer: SerializationWriter, getCompatibleHubContentTypesGetResponse: GetCompatibleHubContentTypesGetResponse | undefined = {} as GetCompatibleHubContentTypesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getCompatibleHubContentTypesGetResponse) + writer.writeCollectionOfObjectValues("value", getCompatibleHubContentTypesGetResponse.value, serializeContentType); +} /** * Provides operations to call the getCompatibleHubContentTypes method. */ diff --git a/src/sites/item/lists/item/contentTypes/index.ts b/src/sites/item/lists/item/contentTypes/index.ts index ca8a303829b..550c290aa42 100644 --- a/src/sites/item/lists/item/contentTypes/index.ts +++ b/src/sites/item/lists/item/contentTypes/index.ts @@ -1,16 +1,16 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../models'; import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../models/contentType'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AddCopyRequestBuilder } from './addCopy/'; -import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub/'; -import { CountRequestBuilder } from './count/'; -import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { AddCopyRequestBuilder } from './addCopy'; +import { AddCopyFromContentTypeHubRequestBuilder } from './addCopyFromContentTypeHub'; +import { CountRequestBuilder } from './count'; +import { GetCompatibleHubContentTypesRequestBuilder } from './getCompatibleHubContentTypes'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/contentTypes/item/associateWithHubSites/index.ts b/src/sites/item/lists/item/contentTypes/item/associateWithHubSites/index.ts index 0e8842a042d..1c75d048bb8 100644 --- a/src/sites/item/lists/item/contentTypes/item/associateWithHubSites/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/associateWithHubSites/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AssociateWithHubSitesPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAssociateWithHubSitesPostRequestBody(writer: Serializat writer.writeBooleanValue("propagateToExistingLists", associateWithHubSitesPostRequestBody.propagateToExistingLists); writer.writeAdditionalData(associateWithHubSitesPostRequestBody.additionalData); } -/** - * Provides operations to call the associateWithHubSites method. - */ -export class AssociateWithHubSitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssociateWithHubSitesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites"); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-associatewithhubsites?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Associate a published [content type][contentType] present in a content type hub with a list of hub sites. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AssociateWithHubSitesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssociateWithHubSitesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a associateWithHubSitesRequestBuilder - */ - public withUrl(rawUrl: string) : AssociateWithHubSitesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssociateWithHubSitesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/lists/item/contentTypes/item/base/index.ts b/src/sites/item/lists/item/contentTypes/item/base/index.ts index 329180fcee7..9f066190f54 100644 --- a/src/sites/item/lists/item/contentTypes/item/base/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/base/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../../models/'; +import { type ContentType } from '../../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/baseTypes/count/index.ts b/src/sites/item/lists/item/contentTypes/item/baseTypes/count/index.ts index 4b11884a475..4cf9479ef10 100644 --- a/src/sites/item/lists/item/contentTypes/item/baseTypes/count/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/baseTypes/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/baseTypes/index.ts b/src/sites/item/lists/item/contentTypes/item/baseTypes/index.ts index a297504f0f8..f91cfb58494 100644 --- a/src/sites/item/lists/item/contentTypes/item/baseTypes/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/baseTypes/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentTypeCollectionResponse } from '../../../../../../../models/'; +import { type ContentTypeCollectionResponse } from '../../../../../../../models'; import { createContentTypeCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/contentTypeCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ContentTypeItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ContentTypeItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BaseTypesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/contentTypes/item/baseTypes/item/index.ts b/src/sites/item/lists/item/contentTypes/item/baseTypes/item/index.ts index bcb9eae875c..749ed29a9bd 100644 --- a/src/sites/item/lists/item/contentTypes/item/baseTypes/item/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/baseTypes/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContentType } from '../../../../../../../../models/'; +import { type ContentType } from '../../../../../../../../models'; import { createContentTypeFromDiscriminatorValue } from '../../../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/columnLinks/count/index.ts b/src/sites/item/lists/item/contentTypes/item/columnLinks/count/index.ts index 1899557de4e..fd228de8d75 100644 --- a/src/sites/item/lists/item/contentTypes/item/columnLinks/count/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columnLinks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/columnLinks/index.ts b/src/sites/item/lists/item/contentTypes/item/columnLinks/index.ts index a511c8c4b7b..34cd4e0eaaf 100644 --- a/src/sites/item/lists/item/contentTypes/item/columnLinks/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columnLinks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnLinkCollectionResponse } from '../../../../../../../models/'; +import { type ColumnLinkCollectionResponse } from '../../../../../../../models'; import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../../models/columnLink'; import { createColumnLinkCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/columnLinkCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnLinkItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnLinkItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnLinksRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/contentTypes/item/columnLinks/item/index.ts b/src/sites/item/lists/item/contentTypes/item/columnLinks/item/index.ts index 2a6edf635ca..3d02c6d895e 100644 --- a/src/sites/item/lists/item/contentTypes/item/columnLinks/item/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columnLinks/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnLinkFromDiscriminatorValue, deserializeIntoColumnLink, serializeColumnLink, type ColumnLink } from '../../../../../../../../models/columnLink'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/columnPositions/count/index.ts b/src/sites/item/lists/item/contentTypes/item/columnPositions/count/index.ts index ecc257d7255..59d3206b231 100644 --- a/src/sites/item/lists/item/contentTypes/item/columnPositions/count/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columnPositions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/columnPositions/index.ts b/src/sites/item/lists/item/contentTypes/item/columnPositions/index.ts index 9165fbf532a..82d6dcb1e6a 100644 --- a/src/sites/item/lists/item/contentTypes/item/columnPositions/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columnPositions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnPositionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/contentTypes/item/columnPositions/item/index.ts b/src/sites/item/lists/item/contentTypes/item/columnPositions/item/index.ts index c9036a997a6..687ae4081fa 100644 --- a/src/sites/item/lists/item/contentTypes/item/columnPositions/item/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columnPositions/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/columns/count/index.ts b/src/sites/item/lists/item/contentTypes/item/columns/count/index.ts index ea97c906557..973e5d88d6d 100644 --- a/src/sites/item/lists/item/contentTypes/item/columns/count/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columns/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/columns/index.ts b/src/sites/item/lists/item/contentTypes/item/columns/index.ts index 03b04f11db2..4e1322ec7af 100644 --- a/src/sites/item/lists/item/contentTypes/item/columns/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columns/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models/'; +import { type ColumnDefinitionCollectionResponse } from '../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../models/columnDefinition'; import { createColumnDefinitionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/columnDefinitionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ColumnDefinitionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ColumnDefinitionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/contentTypes/item/columns/item/index.ts b/src/sites/item/lists/item/contentTypes/item/columns/item/index.ts index e728a3bad9c..1dd1c1a4697 100644 --- a/src/sites/item/lists/item/contentTypes/item/columns/item/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columns/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition } from '../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { SourceColumnRequestBuilder } from './sourceColumn/'; +import { SourceColumnRequestBuilder } from './sourceColumn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ColumnDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/contentTypes/item/columns/item/sourceColumn/index.ts b/src/sites/item/lists/item/contentTypes/item/columns/item/sourceColumn/index.ts index 0da7f39ad8a..24659a919ba 100644 --- a/src/sites/item/lists/item/contentTypes/item/columns/item/sourceColumn/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/columns/item/sourceColumn/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ColumnDefinition } from '../../../../../../../../../models/'; +import { type ColumnDefinition } from '../../../../../../../../../models'; import { createColumnDefinitionFromDiscriminatorValue } from '../../../../../../../../../models/columnDefinition'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/copyToDefaultContentLocation/index.ts b/src/sites/item/lists/item/contentTypes/item/copyToDefaultContentLocation/index.ts index 9ceef1accd1..879d439482a 100644 --- a/src/sites/item/lists/item/contentTypes/item/copyToDefaultContentLocation/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/copyToDefaultContentLocation/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createItemReferenceFromDiscriminatorValue, serializeItemReference, type ItemReference } from '../../../../../../../models/itemReference'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToDefaultContentLocationPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -35,57 +33,5 @@ export function serializeCopyToDefaultContentLocationPostRequestBody(writer: Ser writer.writeObjectValue("sourceFile", copyToDefaultContentLocationPostRequestBody.sourceFile, serializeItemReference); writer.writeAdditionalData(copyToDefaultContentLocationPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToDefaultContentLocation method. - */ -export class CopyToDefaultContentLocationRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToDefaultContentLocationRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation"); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/contenttype-copytodefaultcontentlocation?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToDefaultContentLocationPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToDefaultContentLocationPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToDefaultContentLocationRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToDefaultContentLocationRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToDefaultContentLocationRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/lists/item/contentTypes/item/index.ts b/src/sites/item/lists/item/contentTypes/item/index.ts index 35e90850c21..923600de5ce 100644 --- a/src/sites/item/lists/item/contentTypes/item/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/index.ts @@ -2,18 +2,18 @@ // eslint-disable // Generated by Microsoft Kiota import { createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType } from '../../../../../../models/contentType'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites/'; -import { BaseRequestBuilderEscaped } from './base/'; -import { BaseTypesRequestBuilder } from './baseTypes/'; -import { ColumnLinksRequestBuilder } from './columnLinks/'; -import { ColumnPositionsRequestBuilder } from './columnPositions/'; -import { ColumnsRequestBuilder } from './columns/'; -import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation/'; -import { IsPublishedRequestBuilder } from './isPublished/'; -import { PublishRequestBuilder } from './publish/'; -import { UnpublishRequestBuilder } from './unpublish/'; +import { AssociateWithHubSitesRequestBuilder } from './associateWithHubSites'; +import { BaseRequestBuilderEscaped } from './base'; +import { BaseTypesRequestBuilder } from './baseTypes'; +import { ColumnLinksRequestBuilder } from './columnLinks'; +import { ColumnPositionsRequestBuilder } from './columnPositions'; +import { ColumnsRequestBuilder } from './columns'; +import { CopyToDefaultContentLocationRequestBuilder } from './copyToDefaultContentLocation'; +import { IsPublishedRequestBuilder } from './isPublished'; +import { PublishRequestBuilder } from './publish'; +import { UnpublishRequestBuilder } from './unpublish'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContentTypeItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/contentTypes/item/isPublished/index.ts b/src/sites/item/lists/item/contentTypes/item/isPublished/index.ts index 4022c897cc9..5c7e3372eff 100644 --- a/src/sites/item/lists/item/contentTypes/item/isPublished/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/isPublished/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createIsPublishedGetResponseFromDiscriminatorValue } from './'; -import { type IsPublishedGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoIsPublishedGetResponse; +} +export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { + return { + "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, + } +} +export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} +export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { + writer.writeBooleanValue("value", isPublishedGetResponse.value); + writer.writeAdditionalData(isPublishedGetResponse.additionalData); +} /** * Provides operations to call the isPublished method. */ diff --git a/src/sites/item/lists/item/contentTypes/item/isPublished/isPublishedGetResponse.ts b/src/sites/item/lists/item/contentTypes/item/isPublished/isPublishedGetResponse.ts deleted file mode 100644 index e6621aa5f27..00000000000 --- a/src/sites/item/lists/item/contentTypes/item/isPublished/isPublishedGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createIsPublishedGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoIsPublishedGetResponse; -} -export function deserializeIntoIsPublishedGetResponse(isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : Record void> { - return { - "value": n => { isPublishedGetResponse.value = n.getBooleanValue(); }, - } -} -export interface IsPublishedGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeIsPublishedGetResponse(writer: SerializationWriter, isPublishedGetResponse: IsPublishedGetResponse | undefined = {} as IsPublishedGetResponse) : void { - writer.writeBooleanValue("value", isPublishedGetResponse.value); - writer.writeAdditionalData(isPublishedGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/lists/item/contentTypes/item/publish/index.ts b/src/sites/item/lists/item/contentTypes/item/publish/index.ts index 88a92d16a39..5f6de804772 100644 --- a/src/sites/item/lists/item/contentTypes/item/publish/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/publish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/contentTypes/item/unpublish/index.ts b/src/sites/item/lists/item/contentTypes/item/unpublish/index.ts index 322542315a4..3fd5eb78011 100644 --- a/src/sites/item/lists/item/contentTypes/item/unpublish/index.ts +++ b/src/sites/item/lists/item/contentTypes/item/unpublish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/createdByUser/index.ts b/src/sites/item/lists/item/createdByUser/index.ts index c8604dfda26..a39dc3264bf 100644 --- a/src/sites/item/lists/item/createdByUser/index.ts +++ b/src/sites/item/lists/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/createdByUser/mailboxSettings/index.ts b/src/sites/item/lists/item/createdByUser/mailboxSettings/index.ts index 983ca19f1c5..111da1deb07 100644 --- a/src/sites/item/lists/item/createdByUser/mailboxSettings/index.ts +++ b/src/sites/item/lists/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/sites/item/lists/item/createdByUser/serviceProvisioningErrors/count/index.ts index 1068e47d8aa..f231d60ac58 100644 --- a/src/sites/item/lists/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/sites/item/lists/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/createdByUser/serviceProvisioningErrors/index.ts b/src/sites/item/lists/item/createdByUser/serviceProvisioningErrors/index.ts index 3d2c219de2b..345dac1ee08 100644 --- a/src/sites/item/lists/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/sites/item/lists/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/drive/index.ts b/src/sites/item/lists/item/drive/index.ts index 6a0e641a7b8..b25f9f556b7 100644 --- a/src/sites/item/lists/item/drive/index.ts +++ b/src/sites/item/lists/item/drive/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../../models/'; +import { type Drive } from '../../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../../models/drive'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/index.ts b/src/sites/item/lists/item/index.ts index 764466dff37..6bf626aa3bb 100644 --- a/src/sites/item/lists/item/index.ts +++ b/src/sites/item/lists/item/index.ts @@ -2,16 +2,16 @@ // eslint-disable // Generated by Microsoft Kiota import { createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List } from '../../../../models/list'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ColumnsRequestBuilder } from './columns/'; -import { ContentTypesRequestBuilder } from './contentTypes/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DriveRequestBuilder } from './drive/'; -import { ItemsRequestBuilder } from './items/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { OperationsRequestBuilder } from './operations/'; -import { SubscriptionsRequestBuilder } from './subscriptions/'; +import { ColumnsRequestBuilder } from './columns'; +import { ContentTypesRequestBuilder } from './contentTypes'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DriveRequestBuilder } from './drive'; +import { ItemsRequestBuilder } from './items'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { OperationsRequestBuilder } from './operations'; +import { SubscriptionsRequestBuilder } from './subscriptions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemRequestBuilderGetQueryParameters { @@ -99,10 +99,10 @@ export class ListItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); }; /** - * Returns the metadata for a [list][]. + * Get a list of rich long-running operations associated with a list. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of List - * @see {@link https://learn.microsoft.com/graph/api/list-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -142,7 +142,7 @@ export class ListItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Returns the metadata for a [list][]. + * Get a list of rich long-running operations associated with a list. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/sites/item/lists/item/items/index.ts b/src/sites/item/lists/item/items/index.ts index 412645c2278..8f61cc49750 100644 --- a/src/sites/item/lists/item/items/index.ts +++ b/src/sites/item/lists/item/items/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItemCollectionResponse } from '../../../../../models/'; +import { type ListItemCollectionResponse } from '../../../../../models'; import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializeListItem, type ListItem } from '../../../../../models/listItem'; import { createListItemCollectionResponseFromDiscriminatorValue } from '../../../../../models/listItemCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ListItemItemRequestBuilder } from './item/'; +import { ListItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ItemsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/analytics/index.ts b/src/sites/item/lists/item/items/item/analytics/index.ts index fc959cdb1c2..0f93d553475 100644 --- a/src/sites/item/lists/item/items/item/analytics/index.ts +++ b/src/sites/item/lists/item/items/item/analytics/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ItemAnalytics } from '../../../../../../../models/'; +import { type ItemAnalytics } from '../../../../../../../models'; import { createItemAnalyticsFromDiscriminatorValue } from '../../../../../../../models/itemAnalytics'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/createdByUser/index.ts b/src/sites/item/lists/item/items/item/createdByUser/index.ts index 9f1c96746d9..51324eb4b61 100644 --- a/src/sites/item/lists/item/items/item/createdByUser/index.ts +++ b/src/sites/item/lists/item/items/item/createdByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedByUserRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/createdByUser/mailboxSettings/index.ts b/src/sites/item/lists/item/items/item/createdByUser/mailboxSettings/index.ts index 321f100de9b..100a56ea8c5 100644 --- a/src/sites/item/lists/item/items/item/createdByUser/mailboxSettings/index.ts +++ b/src/sites/item/lists/item/items/item/createdByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts b/src/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts index b1c13f5da43..acbf8bc948f 100644 --- a/src/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts +++ b/src/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/index.ts b/src/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/index.ts index 2ae909811e4..dcac2a80b7a 100644 --- a/src/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/index.ts +++ b/src/sites/item/lists/item/items/item/createdByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/documentSetVersions/count/index.ts b/src/sites/item/lists/item/items/item/documentSetVersions/count/index.ts index 443ced0903b..488f9d18c93 100644 --- a/src/sites/item/lists/item/items/item/documentSetVersions/count/index.ts +++ b/src/sites/item/lists/item/items/item/documentSetVersions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/documentSetVersions/index.ts b/src/sites/item/lists/item/items/item/documentSetVersions/index.ts index dc49e336d2c..5468da47258 100644 --- a/src/sites/item/lists/item/items/item/documentSetVersions/index.ts +++ b/src/sites/item/lists/item/items/item/documentSetVersions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DocumentSetVersionCollectionResponse } from '../../../../../../../models/'; +import { type DocumentSetVersionCollectionResponse } from '../../../../../../../models'; import { createDocumentSetVersionFromDiscriminatorValue, deserializeIntoDocumentSetVersion, serializeDocumentSetVersion, type DocumentSetVersion } from '../../../../../../../models/documentSetVersion'; import { createDocumentSetVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/documentSetVersionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DocumentSetVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DocumentSetVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentSetVersionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/documentSetVersions/item/fields/index.ts b/src/sites/item/lists/item/items/item/documentSetVersions/item/fields/index.ts index e63bb681d86..1f2718a4cc0 100644 --- a/src/sites/item/lists/item/items/item/documentSetVersions/item/fields/index.ts +++ b/src/sites/item/lists/item/items/item/documentSetVersions/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/documentSetVersions/item/index.ts b/src/sites/item/lists/item/items/item/documentSetVersions/item/index.ts index a23dc069d99..f86136649b7 100644 --- a/src/sites/item/lists/item/items/item/documentSetVersions/item/index.ts +++ b/src/sites/item/lists/item/items/item/documentSetVersions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createDocumentSetVersionFromDiscriminatorValue, deserializeIntoDocumentSetVersion, serializeDocumentSetVersion, type DocumentSetVersion } from '../../../../../../../../models/documentSetVersion'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { FieldsRequestBuilder } from './fields/'; -import { RestoreRequestBuilder } from './restore/'; +import { FieldsRequestBuilder } from './fields'; +import { RestoreRequestBuilder } from './restore'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DocumentSetVersionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/documentSetVersions/item/restore/index.ts b/src/sites/item/lists/item/items/item/documentSetVersions/item/restore/index.ts index d614baffcf6..0bdff4f4425 100644 --- a/src/sites/item/lists/item/items/item/documentSetVersions/item/restore/index.ts +++ b/src/sites/item/lists/item/items/item/documentSetVersions/item/restore/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/driveItem/content/index.ts b/src/sites/item/lists/item/items/item/driveItem/content/index.ts index 893fba80c7b..80bd34925b8 100644 --- a/src/sites/item/lists/item/items/item/driveItem/content/index.ts +++ b/src/sites/item/lists/item/items/item/driveItem/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/driveItem/index.ts b/src/sites/item/lists/item/items/item/driveItem/index.ts index 3789e1eb5e9..b380311b84a 100644 --- a/src/sites/item/lists/item/items/item/driveItem/index.ts +++ b/src/sites/item/lists/item/items/item/driveItem/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DriveItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/fields/index.ts b/src/sites/item/lists/item/items/item/fields/index.ts index bffd0bb8be7..ceba96a1bf0 100644 --- a/src/sites/item/lists/item/items/item/fields/index.ts +++ b/src/sites/item/lists/item/items/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts b/src/sites/item/lists/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts deleted file mode 100644 index bd8b1d9ac45..00000000000 --- a/src/sites/item/lists/item/items/item/getActivitiesByInterval/getActivitiesByIntervalGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../../models/itemActivityStat'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetActivitiesByIntervalGetResponse; -} -export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), - "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, - } -} -export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ItemActivityStat[]; -} -export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) - writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/lists/item/items/item/getActivitiesByInterval/index.ts b/src/sites/item/lists/item/items/item/getActivitiesByInterval/index.ts index 1174cf55d37..fd512fa12ed 100644 --- a/src/sites/item/lists/item/items/item/getActivitiesByInterval/index.ts +++ b/src/sites/item/lists/item/items/item/getActivitiesByInterval/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; +import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../../models/itemActivityStat'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createGetActivitiesByIntervalGetResponseFromDiscriminatorValue } from './'; -import { type GetActivitiesByIntervalGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetActivitiesByIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalGetResponse(getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalGetResponse), + "value": n => { getActivitiesByIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ItemActivityStat[]; +} export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetActivitiesByIntervalRequestBuilderGetQueryParameters { */ top?: number; } +export function serializeGetActivitiesByIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalGetResponse: GetActivitiesByIntervalGetResponse | undefined = {} as GetActivitiesByIntervalGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalGetResponse) + writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalGetResponse.value, serializeItemActivityStat); +} /** * Provides operations to call the getActivitiesByInterval method. */ diff --git a/src/sites/item/lists/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/sites/item/lists/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts index 1cef7bb86c0..dbb8b66e156 100644 --- a/src/sites/item/lists/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts +++ b/src/sites/item/lists/item/items/item/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; import { createItemActivityStatFromDiscriminatorValue, serializeItemActivityStat, type ItemActivityStat } from '../../../../../../../models/itemActivityStat'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,102 +21,9 @@ export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInte */ value?: ItemActivityStat[]; } -export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(writer: SerializationWriter, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) writer.writeCollectionOfObjectValues("value", getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value, serializeItemActivityStat); } -/** - * Provides operations to call the getActivitiesByInterval method. - */ -export class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. - * @param endDateTime Usage: endDateTime='{endDateTime}' - * @param interval Usage: interval='{interval}' - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param startDateTime Usage: startDateTime='{startDateTime}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, endDateTime?: string | undefined, interval?: string | undefined, startDateTime?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["endDateTime"] = endDateTime - this.pathParameters["interval"] = interval - this.pathParameters["startDateTime"] = startDateTime - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getActivitiesByInterval - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder - */ - public withUrl(rawUrl: string) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/sites/item/lists/item/items/item/index.ts b/src/sites/item/lists/item/items/item/index.ts index 4c2c7c82c88..9d0d052b03f 100644 --- a/src/sites/item/lists/item/items/item/index.ts +++ b/src/sites/item/lists/item/items/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializeListItem, type ListItem } from '../../../../../../models/listItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AnalyticsRequestBuilder } from './analytics/'; -import { CreatedByUserRequestBuilder } from './createdByUser/'; -import { DocumentSetVersionsRequestBuilder } from './documentSetVersions/'; -import { DriveItemRequestBuilder } from './driveItem/'; -import { FieldsRequestBuilder } from './fields/'; -import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval/'; -import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/'; -import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser/'; -import { VersionsRequestBuilder } from './versions/'; +import { AnalyticsRequestBuilder } from './analytics'; +import { CreatedByUserRequestBuilder } from './createdByUser'; +import { DocumentSetVersionsRequestBuilder } from './documentSetVersions'; +import { DriveItemRequestBuilder } from './driveItem'; +import { FieldsRequestBuilder } from './fields'; +import { GetActivitiesByIntervalRequestBuilder } from './getActivitiesByInterval'; +import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder } from './getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval'; +import { LastModifiedByUserRequestBuilder } from './lastModifiedByUser'; +import { VersionsRequestBuilder } from './versions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/lastModifiedByUser/index.ts b/src/sites/item/lists/item/items/item/lastModifiedByUser/index.ts index 8e5df7994bc..da176f09520 100644 --- a/src/sites/item/lists/item/items/item/lastModifiedByUser/index.ts +++ b/src/sites/item/lists/item/items/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type User } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/lastModifiedByUser/mailboxSettings/index.ts b/src/sites/item/lists/item/items/item/lastModifiedByUser/mailboxSettings/index.ts index d1351436c0e..2852ec2d17d 100644 --- a/src/sites/item/lists/item/items/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/sites/item/lists/item/items/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 4becd8edbd3..51b48dd7671 100644 --- a/src/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index 243db6441ec..f64311db6a0 100644 --- a/src/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/sites/item/lists/item/items/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/versions/count/index.ts b/src/sites/item/lists/item/items/item/versions/count/index.ts index e611c986dfc..ec124eb7a39 100644 --- a/src/sites/item/lists/item/items/item/versions/count/index.ts +++ b/src/sites/item/lists/item/items/item/versions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/versions/index.ts b/src/sites/item/lists/item/items/item/versions/index.ts index 8a0413640e0..7731537d393 100644 --- a/src/sites/item/lists/item/items/item/versions/index.ts +++ b/src/sites/item/lists/item/items/item/versions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ListItemVersionCollectionResponse } from '../../../../../../../models/'; +import { type ListItemVersionCollectionResponse } from '../../../../../../../models'; import { createListItemVersionFromDiscriminatorValue, deserializeIntoListItemVersion, serializeListItemVersion, type ListItemVersion } from '../../../../../../../models/listItemVersion'; import { createListItemVersionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/listItemVersionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ListItemVersionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ListItemVersionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VersionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/versions/item/fields/index.ts b/src/sites/item/lists/item/items/item/versions/item/fields/index.ts index 7b73e828b01..7bb8f8c5cc0 100644 --- a/src/sites/item/lists/item/items/item/versions/item/fields/index.ts +++ b/src/sites/item/lists/item/items/item/versions/item/fields/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createFieldValueSetFromDiscriminatorValue, deserializeIntoFieldValueSet, serializeFieldValueSet, type FieldValueSet } from '../../../../../../../../../models/fieldValueSet'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/items/item/versions/item/index.ts b/src/sites/item/lists/item/items/item/versions/item/index.ts index 5a1d6c5502d..c23cc464b63 100644 --- a/src/sites/item/lists/item/items/item/versions/item/index.ts +++ b/src/sites/item/lists/item/items/item/versions/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createListItemVersionFromDiscriminatorValue, deserializeIntoListItemVersion, serializeListItemVersion, type ListItemVersion } from '../../../../../../../../models/listItemVersion'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { FieldsRequestBuilder } from './fields/'; -import { RestoreVersionRequestBuilder } from './restoreVersion/'; +import { FieldsRequestBuilder } from './fields'; +import { RestoreVersionRequestBuilder } from './restoreVersion'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListItemVersionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/items/item/versions/item/restoreVersion/index.ts b/src/sites/item/lists/item/items/item/versions/item/restoreVersion/index.ts index 0c14a81c3d2..7d14696bd27 100644 --- a/src/sites/item/lists/item/items/item/versions/item/restoreVersion/index.ts +++ b/src/sites/item/lists/item/items/item/versions/item/restoreVersion/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/lastModifiedByUser/index.ts b/src/sites/item/lists/item/lastModifiedByUser/index.ts index c6b95649c6d..747b45b4f48 100644 --- a/src/sites/item/lists/item/lastModifiedByUser/index.ts +++ b/src/sites/item/lists/item/lastModifiedByUser/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LastModifiedByUserRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/lastModifiedByUser/mailboxSettings/index.ts b/src/sites/item/lists/item/lastModifiedByUser/mailboxSettings/index.ts index 0e132b0aa25..6b238b2d9f3 100644 --- a/src/sites/item/lists/item/lastModifiedByUser/mailboxSettings/index.ts +++ b/src/sites/item/lists/item/lastModifiedByUser/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../../../../models/mailboxSettings'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts b/src/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts index 6d8ab6ddb2c..993b2255da1 100644 --- a/src/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts +++ b/src/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/index.ts b/src/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/index.ts index c252dc2d63d..3a38f2ee75b 100644 --- a/src/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/index.ts +++ b/src/sites/item/lists/item/lastModifiedByUser/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/operations/count/index.ts b/src/sites/item/lists/item/operations/count/index.ts index 37b4161eaf0..3c7337130b1 100644 --- a/src/sites/item/lists/item/operations/count/index.ts +++ b/src/sites/item/lists/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/operations/index.ts b/src/sites/item/lists/item/operations/index.ts index 1b7fe4f0be0..aae2b6fa9aa 100644 --- a/src/sites/item/lists/item/operations/index.ts +++ b/src/sites/item/lists/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RichLongRunningOperationCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type RichLongRunningOperationCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../../models/richLongRunningOperation'; import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue } from '../../../../../models/richLongRunningOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RichLongRunningOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RichLongRunningOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/operations/item/index.ts b/src/sites/item/lists/item/operations/item/index.ts index fab3cadd1e0..d837c3ed5f8 100644 --- a/src/sites/item/lists/item/operations/item/index.ts +++ b/src/sites/item/lists/item/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../../../models/richLongRunningOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/subscriptions/count/index.ts b/src/sites/item/lists/item/subscriptions/count/index.ts index a352df2bb04..df771ae57ec 100644 --- a/src/sites/item/lists/item/subscriptions/count/index.ts +++ b/src/sites/item/lists/item/subscriptions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/lists/item/subscriptions/index.ts b/src/sites/item/lists/item/subscriptions/index.ts index 3ed54a9564c..2c6c3947de1 100644 --- a/src/sites/item/lists/item/subscriptions/index.ts +++ b/src/sites/item/lists/item/subscriptions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubscriptionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SubscriptionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../../models/subscription'; import { createSubscriptionCollectionResponseFromDiscriminatorValue } from '../../../../../models/subscriptionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SubscriptionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SubscriptionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/subscriptions/item/index.ts b/src/sites/item/lists/item/subscriptions/item/index.ts index 3d030037bce..2927882ac8d 100644 --- a/src/sites/item/lists/item/subscriptions/item/index.ts +++ b/src/sites/item/lists/item/subscriptions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../../../../../models/subscription'; -import { ReauthorizeRequestBuilder } from './reauthorize/'; +import { ReauthorizeRequestBuilder } from './reauthorize'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/lists/item/subscriptions/item/reauthorize/index.ts b/src/sites/item/lists/item/subscriptions/item/reauthorize/index.ts index 488dd8c26c7..7f696585ad9 100644 --- a/src/sites/item/lists/item/subscriptions/item/reauthorize/index.ts +++ b/src/sites/item/lists/item/subscriptions/item/reauthorize/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/index.ts b/src/sites/item/onenote/index.ts index 70af3c45828..22823227dff 100644 --- a/src/sites/item/onenote/index.ts +++ b/src/sites/item/onenote/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOnenoteFromDiscriminatorValue, deserializeIntoOnenote, serializeOnenote, type Onenote } from '../../../models/onenote'; -import { NotebooksRequestBuilder } from './notebooks/'; -import { OperationsRequestBuilder } from './operations/'; -import { PagesRequestBuilder } from './pages/'; -import { ResourcesRequestBuilder } from './resources/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { NotebooksRequestBuilder } from './notebooks'; +import { OperationsRequestBuilder } from './operations'; +import { PagesRequestBuilder } from './pages'; +import { ResourcesRequestBuilder } from './resources'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/count/index.ts b/src/sites/item/onenote/notebooks/count/index.ts index 8202b6fc6fb..716916ce65c 100644 --- a/src/sites/item/onenote/notebooks/count/index.ts +++ b/src/sites/item/onenote/notebooks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts b/src/sites/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts deleted file mode 100644 index 5de000d11c3..00000000000 --- a/src/sites/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetNotebookFromWebUrlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetNotebookFromWebUrlPostRequestBody; -} -export function deserializeIntoGetNotebookFromWebUrlPostRequestBody(getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : Record void> { - return { - "webUrl": n => { getNotebookFromWebUrlPostRequestBody.webUrl = n.getStringValue(); }, - } -} -export interface GetNotebookFromWebUrlPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The webUrl property - */ - webUrl?: string; -} -export function serializeGetNotebookFromWebUrlPostRequestBody(writer: SerializationWriter, getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : void { - writer.writeStringValue("webUrl", getNotebookFromWebUrlPostRequestBody.webUrl); - writer.writeAdditionalData(getNotebookFromWebUrlPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/notebooks/getNotebookFromWebUrl/index.ts b/src/sites/item/onenote/notebooks/getNotebookFromWebUrl/index.ts index 7f31832a555..0f313c7a70f 100644 --- a/src/sites/item/onenote/notebooks/getNotebookFromWebUrl/index.ts +++ b/src/sites/item/onenote/notebooks/getNotebookFromWebUrl/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createCopyNotebookModelFromDiscriminatorValue, deserializeIntoCopyNotebookModel, serializeCopyNotebookModel, type CopyNotebookModel } from '../../../../../models/copyNotebookModel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetNotebookFromWebUrlPostRequestBody, serializeGetNotebookFromWebUrlPostRequestBody, type GetNotebookFromWebUrlPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetNotebookFromWebUrlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetNotebookFromWebUrlPostRequestBody; +} +export function deserializeIntoGetNotebookFromWebUrlPostRequestBody(getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : Record void> { + return { + "webUrl": n => { getNotebookFromWebUrlPostRequestBody.webUrl = n.getStringValue(); }, + } +} +export interface GetNotebookFromWebUrlPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The webUrl property + */ + webUrl?: string; +} +export function serializeGetNotebookFromWebUrlPostRequestBody(writer: SerializationWriter, getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : void { + writer.writeStringValue("webUrl", getNotebookFromWebUrlPostRequestBody.webUrl); + writer.writeAdditionalData(getNotebookFromWebUrlPostRequestBody.additionalData); +} /** * Provides operations to call the getNotebookFromWebUrl method. */ diff --git a/src/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts b/src/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts deleted file mode 100644 index 9e139d24770..00000000000 --- a/src/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createRecentNotebookFromDiscriminatorValue, serializeRecentNotebook, type RecentNotebook } from '../../../../../models/recentNotebook'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse; -} -export function deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse), - "value": n => { getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value = n.getCollectionOfObjectValues(createRecentNotebookFromDiscriminatorValue); }, - } -} -export interface GetRecentNotebooksWithIncludePersonalNotebooksGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: RecentNotebook[]; -} -export function serializeGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(writer: SerializationWriter, getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getRecentNotebooksWithIncludePersonalNotebooksGetResponse) - writer.writeCollectionOfObjectValues("value", getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value, serializeRecentNotebook); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts b/src/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts index 531514dc93b..c90a9a6e0a6 100644 --- a/src/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts +++ b/src/sites/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue } from './'; -import { type GetRecentNotebooksWithIncludePersonalNotebooksGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecentNotebookFromDiscriminatorValue, serializeRecentNotebook, type RecentNotebook } from '../../../../../models/recentNotebook'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse; +} +export function deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse), + "value": n => { getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value = n.getCollectionOfObjectValues(createRecentNotebookFromDiscriminatorValue); }, + } +} +export interface GetRecentNotebooksWithIncludePersonalNotebooksGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: RecentNotebook[]; +} export interface GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGet */ top?: number; } +export function serializeGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(writer: SerializationWriter, getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getRecentNotebooksWithIncludePersonalNotebooksGetResponse) + writer.writeCollectionOfObjectValues("value", getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value, serializeRecentNotebook); +} /** * Provides operations to call the getRecentNotebooks method. */ diff --git a/src/sites/item/onenote/notebooks/index.ts b/src/sites/item/onenote/notebooks/index.ts index 7eb7698db26..b82a96b8611 100644 --- a/src/sites/item/onenote/notebooks/index.ts +++ b/src/sites/item/onenote/notebooks/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type NotebookCollectionResponse } from '../../../../models/'; +import { type NotebookCollectionResponse } from '../../../../models'; import { createNotebookFromDiscriminatorValue, deserializeIntoNotebook, serializeNotebook, type Notebook } from '../../../../models/notebook'; import { createNotebookCollectionResponseFromDiscriminatorValue } from '../../../../models/notebookCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetNotebookFromWebUrlRequestBuilder } from './getNotebookFromWebUrl/'; -import { GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder } from './getRecentNotebooksWithIncludePersonalNotebooks/'; -import { NotebookItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetNotebookFromWebUrlRequestBuilder } from './getNotebookFromWebUrl'; +import { GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder } from './getRecentNotebooksWithIncludePersonalNotebooks'; +import { NotebookItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotebooksRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/copyNotebook/index.ts b/src/sites/item/onenote/notebooks/item/copyNotebook/index.ts index 3b7eb615d1f..27e2125b125 100644 --- a/src/sites/item/onenote/notebooks/item/copyNotebook/index.ts +++ b/src/sites/item/onenote/notebooks/item/copyNotebook/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyNotebookPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyNotebookPostRequestBody(writer: SerializationWriter writer.writeStringValue("siteId", copyNotebookPostRequestBody.siteId); writer.writeAdditionalData(copyNotebookPostRequestBody.additionalData); } -/** - * Provides operations to call the copyNotebook method. - */ -export class CopyNotebookRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyNotebookRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/notebook-copynotebook?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyNotebookPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyNotebookPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyNotebookPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyNotebookRequestBuilder - */ - public withUrl(rawUrl: string) : CopyNotebookRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyNotebookRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/index.ts b/src/sites/item/onenote/notebooks/item/index.ts index abbd03d6da8..e15af8394cb 100644 --- a/src/sites/item/onenote/notebooks/item/index.ts +++ b/src/sites/item/onenote/notebooks/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createNotebookFromDiscriminatorValue, deserializeIntoNotebook, serializeNotebook, type Notebook } from '../../../../../models/notebook'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CopyNotebookRequestBuilder } from './copyNotebook/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { CopyNotebookRequestBuilder } from './copyNotebook'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotebookItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/count/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/count/index.ts index 91d7ac6a456..d15e0734c1e 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/count/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/index.ts index 2e29f9fbd60..f68e5727cd5 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../models/sectionGroup'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/index.ts index f54e7bf9716..c7a9992a2c7 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../../models/sectionGroup'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts index 7ed70bfb138..c4ebdd72911 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts index 616e3e9a3d9..55cabe4808a 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts index 57d8f946f6d..fb70035b5de 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts index 811ae4719ee..0831a92b72a 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts index a68135ff21d..f018c54d331 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts index 1aef1e06e40..ca5aab02adf 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts index 4e97c61ffb9..11a4e3f294d 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts index 60234b4f937..9733718fed6 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts index b3dcc17c4ca..f36d6e18262 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts index fd561a98381..cd5aed0b037 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts index 20e5d01925f..ed4034ec163 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts index 45acc9eefa4..da123f39c28 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts index 5808cc096de..7e5d6ad7e62 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts index 178973b1a46..261b84be12d 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts index cc0b6b8d3f1..7b22c0583d7 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts index d1b39f4c8e1..b7fd7c4a5bb 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index dd586b162a1..00000000000 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts index 639234cea1b..c4f65e5566f 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts index 859dc75b9e0..3538622742d 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts index 938d18d7737..00f80d21730 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts index fb571827266..d1eb6fcfd8d 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts index 1efa3146c6f..543607dff9f 100644 --- a/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts +++ b/src/sites/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sections/count/index.ts b/src/sites/item/onenote/notebooks/item/sections/count/index.ts index 9a0635f3290..376f658e7c4 100644 --- a/src/sites/item/onenote/notebooks/item/sections/count/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sections/index.ts b/src/sites/item/onenote/notebooks/item/sections/index.ts index 9524f892423..4a981ff8e17 100644 --- a/src/sites/item/onenote/notebooks/item/sections/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts index cff4910b25f..e6165a3359c 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/sites/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts index 8ef01c45887..f36d6e18262 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/sections/item/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/index.ts index af2b844e630..4cc01fd9353 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/count/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/count/index.ts index c727e7ed6fc..68233bede06 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/count/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/index.ts index 86b8a82ad9b..83f08815c4c 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts index a528b0c7f90..aa3afbcd86f 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts index 0bf968e3eaf..cde8aa28d06 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/index.ts index 05e9f1ccb07..8cd8c131ee3 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts index 31dcae9b4a7..5a31c347eed 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 880ee726f2b..00000000000 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts index 4cf0688bbec..e5ddfc42830 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts index 1c997ae1781..ce1225baf02 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts index 1412260efbd..969af0fa60f 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts index 07e50e2c4fd..7af7994377c 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts b/src/sites/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts index 747797e88cd..f297d70e2ed 100644 --- a/src/sites/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts +++ b/src/sites/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/operations/count/index.ts b/src/sites/item/onenote/operations/count/index.ts index 7fdf0cb6c2a..8b61f2fc996 100644 --- a/src/sites/item/onenote/operations/count/index.ts +++ b/src/sites/item/onenote/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/operations/index.ts b/src/sites/item/onenote/operations/index.ts index 94008a47a89..e6d2c95e3c3 100644 --- a/src/sites/item/onenote/operations/index.ts +++ b/src/sites/item/onenote/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteOperationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteOperationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../models/onenoteOperation'; import { createOnenoteOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/operations/item/index.ts b/src/sites/item/onenote/operations/item/index.ts index 23ce172e6e6..26af99ee21c 100644 --- a/src/sites/item/onenote/operations/item/index.ts +++ b/src/sites/item/onenote/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../models/onenoteOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/pages/count/index.ts b/src/sites/item/onenote/pages/count/index.ts index bd677c5ed96..adcd33830b7 100644 --- a/src/sites/item/onenote/pages/count/index.ts +++ b/src/sites/item/onenote/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/pages/index.ts b/src/sites/item/onenote/pages/index.ts index c55c37d454c..834491debaf 100644 --- a/src/sites/item/onenote/pages/index.ts +++ b/src/sites/item/onenote/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/pages/item/content/index.ts b/src/sites/item/onenote/pages/item/content/index.ts index 137086b25a9..f9de5ab0f55 100644 --- a/src/sites/item/onenote/pages/item/content/index.ts +++ b/src/sites/item/onenote/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/sites/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/sites/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/pages/item/copyToSection/index.ts b/src/sites/item/onenote/pages/item/copyToSection/index.ts index aaf4086732f..45a18501afd 100644 --- a/src/sites/item/onenote/pages/item/copyToSection/index.ts +++ b/src/sites/item/onenote/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/sites/item/onenote/pages/item/index.ts b/src/sites/item/onenote/pages/item/index.ts index 8982594ba4f..473aa21f5c9 100644 --- a/src/sites/item/onenote/pages/item/index.ts +++ b/src/sites/item/onenote/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/pages/item/onenotePatchContent/index.ts b/src/sites/item/onenote/pages/item/onenotePatchContent/index.ts index 28b319cec64..75c05fa30ce 100644 --- a/src/sites/item/onenote/pages/item/onenotePatchContent/index.ts +++ b/src/sites/item/onenote/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/sites/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/sites/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index c24c48eedf2..00000000000 --- a/src/sites/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/pages/item/parentNotebook/index.ts b/src/sites/item/onenote/pages/item/parentNotebook/index.ts index a1d03e2fe7f..8ebae851566 100644 --- a/src/sites/item/onenote/pages/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/pages/item/parentSection/index.ts b/src/sites/item/onenote/pages/item/parentSection/index.ts index acb93deb331..395759173ce 100644 --- a/src/sites/item/onenote/pages/item/parentSection/index.ts +++ b/src/sites/item/onenote/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/pages/item/preview/index.ts b/src/sites/item/onenote/pages/item/preview/index.ts index 568e71ca5d3..6f65e027418 100644 --- a/src/sites/item/onenote/pages/item/preview/index.ts +++ b/src/sites/item/onenote/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/resources/count/index.ts b/src/sites/item/onenote/resources/count/index.ts index f645fcb8e01..d142d5870f9 100644 --- a/src/sites/item/onenote/resources/count/index.ts +++ b/src/sites/item/onenote/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/resources/index.ts b/src/sites/item/onenote/resources/index.ts index 2823ea1fa8b..6ddef61f48c 100644 --- a/src/sites/item/onenote/resources/index.ts +++ b/src/sites/item/onenote/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteResourceCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteResourceCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue, deserializeIntoOnenoteResource, serializeOnenoteResource, type OnenoteResource } from '../../../../models/onenoteResource'; import { createOnenoteResourceCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteResourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/resources/item/content/index.ts b/src/sites/item/onenote/resources/item/content/index.ts index 35b69b131b3..86e92daf02d 100644 --- a/src/sites/item/onenote/resources/item/content/index.ts +++ b/src/sites/item/onenote/resources/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteResource } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteResource } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue } from '../../../../../../models/onenoteResource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/resources/item/index.ts b/src/sites/item/onenote/resources/item/index.ts index 37b827edd98..ee45f49f15b 100644 --- a/src/sites/item/onenote/resources/item/index.ts +++ b/src/sites/item/onenote/resources/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue, deserializeIntoOnenoteResource, serializeOnenoteResource, type OnenoteResource } from '../../../../../models/onenoteResource'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteResourceItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sectionGroups/count/index.ts b/src/sites/item/onenote/sectionGroups/count/index.ts index 19c44080d71..69a78951d8b 100644 --- a/src/sites/item/onenote/sectionGroups/count/index.ts +++ b/src/sites/item/onenote/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/index.ts b/src/sites/item/onenote/sectionGroups/index.ts index ac830f7dc32..05af99405b8 100644 --- a/src/sites/item/onenote/sectionGroups/index.ts +++ b/src/sites/item/onenote/sectionGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../models/sectionGroup'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sectionGroups/item/index.ts b/src/sites/item/onenote/sectionGroups/item/index.ts index bdc470c1820..ab99f0825d7 100644 --- a/src/sites/item/onenote/sectionGroups/item/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../models/sectionGroup'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sectionGroups/item/parentNotebook/index.ts b/src/sites/item/onenote/sectionGroups/item/parentNotebook/index.ts index 317e634f47f..b6436bf3f16 100644 --- a/src/sites/item/onenote/sectionGroups/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/parentSectionGroup/index.ts b/src/sites/item/onenote/sectionGroups/item/parentSectionGroup/index.ts index 92c590a766c..8d8f74e39ed 100644 --- a/src/sites/item/onenote/sectionGroups/item/parentSectionGroup/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sectionGroups/count/index.ts b/src/sites/item/onenote/sectionGroups/item/sectionGroups/count/index.ts index 4176924fbde..e42b28e3eeb 100644 --- a/src/sites/item/onenote/sectionGroups/item/sectionGroups/count/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sectionGroups/index.ts b/src/sites/item/onenote/sectionGroups/item/sectionGroups/index.ts index 5aef419e957..400416a8a02 100644 --- a/src/sites/item/onenote/sectionGroups/item/sectionGroups/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sectionGroups/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sectionGroups/item/sectionGroups/item/index.ts b/src/sites/item/onenote/sectionGroups/item/sectionGroups/item/index.ts index 74f1d8ae85f..81940d293b0 100644 --- a/src/sites/item/onenote/sectionGroups/item/sectionGroups/item/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sectionGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sections/count/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/count/index.ts index 2901ff679b5..ebea8a58631 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/count/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sections/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/index.ts index 1f93f429272..a8fc78427d0 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts index 579dee39ebd..72383e0ce86 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts index 52338da3d0d..f36d6e18262 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/index.ts index 42008ee75ff..665ff2123b9 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts index df5c8bee1ff..c137218c184 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/index.ts index d7fa5f4e19f..013622467c4 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts index a9214dc4b4b..e537e770c9d 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts index 3a54a264dd0..856b9149e45 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts index d77e005c3ff..9c6b6131315 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts index fdc1590eaee..fe0666baa7e 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 880ee726f2b..00000000000 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts index dca1ba05104..93b53451395 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts index 33f2b586dd7..306b5c8cf6b 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts index c93da4989ca..6d1d27aedc2 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts index 9516be8d157..04d9ff8f860 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts b/src/sites/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts index 14963d17f06..dece01e6ba2 100644 --- a/src/sites/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts +++ b/src/sites/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sections/count/index.ts b/src/sites/item/onenote/sections/count/index.ts index a9febd2d31a..503555e6e30 100644 --- a/src/sites/item/onenote/sections/count/index.ts +++ b/src/sites/item/onenote/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sections/index.ts b/src/sites/item/onenote/sections/index.ts index 0e9f722e763..a663193b07f 100644 --- a/src/sites/item/onenote/sections/index.ts +++ b/src/sites/item/onenote/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/sites/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/sites/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/sections/item/copyToNotebook/index.ts b/src/sites/item/onenote/sections/item/copyToNotebook/index.ts index aa7c3688708..4be70d6594b 100644 --- a/src/sites/item/onenote/sections/item/copyToNotebook/index.ts +++ b/src/sites/item/onenote/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/sites/item/onenote/sections/item/copyToSectionGroup/index.ts b/src/sites/item/onenote/sections/item/copyToSectionGroup/index.ts index 39ebdf67fb1..f36d6e18262 100644 --- a/src/sites/item/onenote/sections/item/copyToSectionGroup/index.ts +++ b/src/sites/item/onenote/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/onenote/sections/item/index.ts b/src/sites/item/onenote/sections/item/index.ts index 2d699788fd1..5695cb74ead 100644 --- a/src/sites/item/onenote/sections/item/index.ts +++ b/src/sites/item/onenote/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sections/item/pages/count/index.ts b/src/sites/item/onenote/sections/item/pages/count/index.ts index fecfe6254ab..3b548f3371a 100644 --- a/src/sites/item/onenote/sections/item/pages/count/index.ts +++ b/src/sites/item/onenote/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sections/item/pages/index.ts b/src/sites/item/onenote/sections/item/pages/index.ts index b6efeb171cd..46444ad0831 100644 --- a/src/sites/item/onenote/sections/item/pages/index.ts +++ b/src/sites/item/onenote/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sections/item/pages/item/content/index.ts b/src/sites/item/onenote/sections/item/pages/item/content/index.ts index e4a09d143e0..c78b0e7fb89 100644 --- a/src/sites/item/onenote/sections/item/pages/item/content/index.ts +++ b/src/sites/item/onenote/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/sites/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/sites/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/sections/item/pages/item/copyToSection/index.ts b/src/sites/item/onenote/sections/item/pages/item/copyToSection/index.ts index 2fc527c596a..b93d13a4b7d 100644 --- a/src/sites/item/onenote/sections/item/pages/item/copyToSection/index.ts +++ b/src/sites/item/onenote/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/sites/item/onenote/sections/item/pages/item/index.ts b/src/sites/item/onenote/sections/item/pages/item/index.ts index 5179acdca80..ac36160a9b4 100644 --- a/src/sites/item/onenote/sections/item/pages/item/index.ts +++ b/src/sites/item/onenote/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts b/src/sites/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts index 71858ac520c..cf2d31f2914 100644 --- a/src/sites/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/sites/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/sites/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/sites/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 88f8cace3bc..00000000000 --- a/src/sites/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/item/onenote/sections/item/pages/item/parentNotebook/index.ts b/src/sites/item/onenote/sections/item/pages/item/parentNotebook/index.ts index c93598a53d9..3a86b685333 100644 --- a/src/sites/item/onenote/sections/item/pages/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sections/item/pages/item/parentSection/index.ts b/src/sites/item/onenote/sections/item/pages/item/parentSection/index.ts index df4ac10b43b..43b0233f9eb 100644 --- a/src/sites/item/onenote/sections/item/pages/item/parentSection/index.ts +++ b/src/sites/item/onenote/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sections/item/pages/item/preview/index.ts b/src/sites/item/onenote/sections/item/pages/item/preview/index.ts index 9c0e20b3002..d20af81b620 100644 --- a/src/sites/item/onenote/sections/item/pages/item/preview/index.ts +++ b/src/sites/item/onenote/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sections/item/parentNotebook/index.ts b/src/sites/item/onenote/sections/item/parentNotebook/index.ts index 17cb7aa9ebc..363cefc2207 100644 --- a/src/sites/item/onenote/sections/item/parentNotebook/index.ts +++ b/src/sites/item/onenote/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/onenote/sections/item/parentSectionGroup/index.ts b/src/sites/item/onenote/sections/item/parentSectionGroup/index.ts index b15312b9d9a..05bf9374800 100644 --- a/src/sites/item/onenote/sections/item/parentSectionGroup/index.ts +++ b/src/sites/item/onenote/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/operations/count/index.ts b/src/sites/item/operations/count/index.ts index 4c6fdb7fe06..3c04af0e32b 100644 --- a/src/sites/item/operations/count/index.ts +++ b/src/sites/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/operations/index.ts b/src/sites/item/operations/index.ts index fbc200a5555..658b0e0fdb8 100644 --- a/src/sites/item/operations/index.ts +++ b/src/sites/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type RichLongRunningOperationCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type RichLongRunningOperationCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../models/richLongRunningOperation'; import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue } from '../../../models/richLongRunningOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RichLongRunningOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RichLongRunningOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/operations/item/index.ts b/src/sites/item/operations/item/index.ts index 6f16facdd8e..8c638c36eb4 100644 --- a/src/sites/item/operations/item/index.ts +++ b/src/sites/item/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation } from '../../../../models/richLongRunningOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/permissions/count/index.ts b/src/sites/item/permissions/count/index.ts index bcc4139669a..db6a1d5925b 100644 --- a/src/sites/item/permissions/count/index.ts +++ b/src/sites/item/permissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/permissions/index.ts b/src/sites/item/permissions/index.ts index 101a3b86807..50687478e96 100644 --- a/src/sites/item/permissions/index.ts +++ b/src/sites/item/permissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PermissionCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type PermissionCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../models/permission'; import { createPermissionCollectionResponseFromDiscriminatorValue } from '../../../models/permissionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PermissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PermissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/permissions/item/grant/index.ts b/src/sites/item/permissions/item/grant/index.ts index 8236d7025c4..c2b754b8d86 100644 --- a/src/sites/item/permissions/item/grant/index.ts +++ b/src/sites/item/permissions/item/grant/index.ts @@ -2,113 +2,28 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createDriveRecipientFromDiscriminatorValue, serializeDriveRecipient, type DriveRecipient } from '../../../../../models/driveRecipient'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, serializePermission, type Permission } from '../../../../../models/permission'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export function createGrantPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGrantPostRequestBody; -} export function createGrantPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGrantPostResponse; } -export function deserializeIntoGrantPostRequestBody(grantPostRequestBody: GrantPostRequestBody | undefined = {} as GrantPostRequestBody) : Record void> { - return { - "recipients": n => { grantPostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); }, - "roles": n => { grantPostRequestBody.roles = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoGrantPostResponse(grantPostResponse: GrantPostResponse | undefined = {} as GrantPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(grantPostResponse), "value": n => { grantPostResponse.value = n.getCollectionOfObjectValues(createPermissionFromDiscriminatorValue); }, } } -export interface GrantPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The recipients property - */ - recipients?: DriveRecipient[]; - /** - * The roles property - */ - roles?: string[]; -} export interface GrantPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: Permission[]; } -export function serializeGrantPostRequestBody(writer: SerializationWriter, grantPostRequestBody: GrantPostRequestBody | undefined = {} as GrantPostRequestBody) : void { - writer.writeCollectionOfObjectValues("recipients", grantPostRequestBody.recipients, serializeDriveRecipient); - writer.writeCollectionOfPrimitiveValues("roles", grantPostRequestBody.roles); - writer.writeAdditionalData(grantPostRequestBody.additionalData); -} export function serializeGrantPostResponse(writer: SerializationWriter, grantPostResponse: GrantPostResponse | undefined = {} as GrantPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, grantPostResponse) writer.writeCollectionOfObjectValues("value", grantPostResponse.value, serializePermission); } -/** - * Provides operations to call the grant method. - */ -export class GrantRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GrantRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/permissions/{permission%2Did}/grant"); - }; - /** - * Grant users access to a link represented by a [permission][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GrantPostResponse - * @see {@link https://learn.microsoft.com/graph/api/permission-grant?view=graph-rest-1.0|Find more info here} - */ - public post(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGrantPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Grant users access to a link represented by a [permission][]. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GrantPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGrantPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a grantRequestBuilder - */ - public withUrl(rawUrl: string) : GrantRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GrantRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/sites/item/permissions/item/index.ts b/src/sites/item/permissions/item/index.ts index 9d5ba493f5d..3c41990aa18 100644 --- a/src/sites/item/permissions/item/index.ts +++ b/src/sites/item/permissions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../../models/permission'; -import { GrantRequestBuilder } from './grant/'; +import { GrantRequestBuilder } from './grant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/sites/count/index.ts b/src/sites/item/sites/count/index.ts index f6c20991263..58e3cfc429c 100644 --- a/src/sites/item/sites/count/index.ts +++ b/src/sites/item/sites/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/sites/index.ts b/src/sites/item/sites/index.ts index fb3a1d449fe..8c19914ddbd 100644 --- a/src/sites/item/sites/index.ts +++ b/src/sites/item/sites/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SiteCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type SiteCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSiteCollectionResponseFromDiscriminatorValue } from '../../../models/siteCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SiteItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SiteItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SitesRequestBuilderGetQueryParameters { diff --git a/src/sites/item/sites/item/index.ts b/src/sites/item/sites/item/index.ts index 158477c6ba2..e3ee11802e6 100644 --- a/src/sites/item/sites/item/index.ts +++ b/src/sites/item/sites/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Site } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type Site } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue } from '../../../../models/site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/count/index.ts b/src/sites/item/termStore/groups/count/index.ts index 315e924a11f..e32917be06e 100644 --- a/src/sites/item/termStore/groups/count/index.ts +++ b/src/sites/item/termStore/groups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/index.ts b/src/sites/item/termStore/groups/index.ts index aa0ebea3f18..accfa19c03a 100644 --- a/src/sites/item/termStore/groups/index.ts +++ b/src/sites/item/termStore/groups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { type GroupCollectionResponse } from '../../../../models/termStore/'; +import { type GroupCollectionResponse } from '../../../../models/termStore'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../models/termStore/group'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/termStore/groupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { GroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/index.ts b/src/sites/item/termStore/groups/item/index.ts index 1c0a33cfa3d..99a9845c735 100644 --- a/src/sites/item/termStore/groups/item/index.ts +++ b/src/sites/item/termStore/groups/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../models/termStore/group'; -import { SetsRequestBuilder } from './sets/'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/count/index.ts b/src/sites/item/termStore/groups/item/sets/count/index.ts index 855e440294a..0c3eb0e5c4c 100644 --- a/src/sites/item/termStore/groups/item/sets/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/index.ts b/src/sites/item/termStore/groups/item/sets/index.ts index 3050b49694c..f7fafb440f4 100644 --- a/src/sites/item/termStore/groups/item/sets/index.ts +++ b/src/sites/item/termStore/groups/item/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/count/index.ts index d43bfcbe999..d823a8b3882 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/index.ts index 3dfe9049d4b..e055a175673 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/count/index.ts index db7c58f842b..3300247b8a3 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/index.ts index b7d36577221..731d8d7185f 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/index.ts index 379fd46f7dc..34d7a809516 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/count/index.ts index 9ce11a8eb30..c235eddc89c 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/index.ts index 73f03805c78..5958ea5e09d 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 9484511b0f2..91685328203 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/index.ts index 4ab2622bddd..1269cb5ea8f 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts index 2d1ed3a14e0..0ccc2b6eb73 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts index 951eb9f96c3..62cdf0452ea 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/set/index.ts index e39434cd6b1..fe6369d0757 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/index.ts index 9a4d1fff714..b1adf630f74 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/count/index.ts index d44be98fca6..e850efe5bcc 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/index.ts index 58a43b52df2..6ddabeff2e9 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts index ee2f6555165..f40cd790c15 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/index.ts index e7ff429eceb..8f422a55692 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/set/index.ts index 3272173b19b..ba3de7f5687 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/toTerm/index.ts index 3e6ecac8dab..e1b25f108b3 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/children/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/children/item/set/index.ts index 40c7c6949f5..cb59d13842d 100644 --- a/src/sites/item/termStore/groups/item/sets/item/children/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/index.ts index 5158015e519..6d7ba6b27a5 100644 --- a/src/sites/item/termStore/groups/item/sets/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { ParentGroupRequestBuilder } from './parentGroup/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { ParentGroupRequestBuilder } from './parentGroup'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/parentGroup/index.ts b/src/sites/item/termStore/groups/item/sets/item/parentGroup/index.ts index 8f128141085..c428c3dcaee 100644 --- a/src/sites/item/termStore/groups/item/sets/item/parentGroup/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/parentGroup/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../../models/termStore/group'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/relations/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/relations/count/index.ts index e6e5df7ded4..b573bc685ad 100644 --- a/src/sites/item/termStore/groups/item/sets/item/relations/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/relations/index.ts b/src/sites/item/termStore/groups/item/sets/item/relations/index.ts index 0d7603167ef..be37aa8b470 100644 --- a/src/sites/item/termStore/groups/item/sets/item/relations/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/relations/item/fromTerm/index.ts index cdca01ab57c..c562789015c 100644 --- a/src/sites/item/termStore/groups/item/sets/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/relations/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/relations/item/index.ts index a92ef1d0d8f..2580d94ed81 100644 --- a/src/sites/item/termStore/groups/item/sets/item/relations/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/relations/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/relations/item/set/index.ts index 3d7744bf042..8c9e4b015eb 100644 --- a/src/sites/item/termStore/groups/item/sets/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/relations/item/toTerm/index.ts index 567833a3363..dbe508cff00 100644 --- a/src/sites/item/termStore/groups/item/sets/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/count/index.ts index dd9259b7385..b098f29da9f 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/index.ts index 232c69e1f34..4fdd1dd0990 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/count/index.ts index af6ac59e318..bdf145c4d67 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/index.ts index b2b8fc40086..a1419119786 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/index.ts index ce08c6efbf1..fa6aebe1ce8 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/count/index.ts index 8d00524003b..ce0fd64dd90 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/index.ts index 9bb10ae9602..62c3dc2b358 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index cfdb99f2fff..ef55b2ff0c4 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/index.ts index 7f1074625d1..daab0dd5c14 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts index d6b251d0224..fc5d1602587 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index 2548ea5e281..434363b13a5 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/set/index.ts index fdf7a0145e3..0b47ebc96e6 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/index.ts index 7b2caaefcb9..c2fd728840a 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/count/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/count/index.ts index e3296a398ae..9d1aa126570 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/count/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/index.ts index 01ed175e3cc..87051d097e2 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts index 0bb65e07ded..b147af3a64b 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/index.ts index 5ca83d93821..0cf31ad96f4 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/set/index.ts index 3995e3132a1..beb9a327118 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts index 26912048646..4e4ad5e5c9e 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/groups/item/sets/item/terms/item/set/index.ts b/src/sites/item/termStore/groups/item/sets/item/terms/item/set/index.ts index 757607c48a4..83f668064a9 100644 --- a/src/sites/item/termStore/groups/item/sets/item/terms/item/set/index.ts +++ b/src/sites/item/termStore/groups/item/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/index.ts b/src/sites/item/termStore/index.ts index f4a0a545807..b19db4ff176 100644 --- a/src/sites/item/termStore/index.ts +++ b/src/sites/item/termStore/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../models/termStore/store'; -import { GroupsRequestBuilder } from './groups/'; -import { SetsRequestBuilder } from './sets/'; +import { GroupsRequestBuilder } from './groups'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermStoreRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/count/index.ts b/src/sites/item/termStore/sets/count/index.ts index e2904c22d7e..c6531d8887d 100644 --- a/src/sites/item/termStore/sets/count/index.ts +++ b/src/sites/item/termStore/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/index.ts b/src/sites/item/termStore/sets/index.ts index a68d5c54f71..61926db1c6c 100644 --- a/src/sites/item/termStore/sets/index.ts +++ b/src/sites/item/termStore/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/count/index.ts b/src/sites/item/termStore/sets/item/children/count/index.ts index 5ff0c2f4c91..e77acf15f89 100644 --- a/src/sites/item/termStore/sets/item/children/count/index.ts +++ b/src/sites/item/termStore/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/index.ts b/src/sites/item/termStore/sets/item/children/index.ts index f58c020dcf8..847c27ef496 100644 --- a/src/sites/item/termStore/sets/item/children/index.ts +++ b/src/sites/item/termStore/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/item/children/count/index.ts b/src/sites/item/termStore/sets/item/children/item/children/count/index.ts index 215142ed748..eb7abd2302d 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/count/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/children/index.ts b/src/sites/item/termStore/sets/item/children/item/children/index.ts index e9aff949c83..7a665f5ce31 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/item/children/item/index.ts b/src/sites/item/termStore/sets/item/children/item/children/item/index.ts index eecfd9c491f..da741e9d093 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/item/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/item/children/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/children/item/children/item/relations/count/index.ts index fb4a04776dc..7371761f493 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/children/item/relations/index.ts b/src/sites/item/termStore/sets/item/children/item/children/item/relations/index.ts index a85c4691e87..7a21f5f222e 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 663718c05fb..3b439650e89 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/index.ts index 761298e23a1..427b63a707a 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/set/index.ts index cc1d4c79e11..0c95eb1cb0e 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/toTerm/index.ts index 9ab0dbd0973..ee3c10d60bc 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/children/item/set/index.ts b/src/sites/item/termStore/sets/item/children/item/children/item/set/index.ts index e183160b549..827b31bf5e7 100644 --- a/src/sites/item/termStore/sets/item/children/item/children/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/index.ts b/src/sites/item/termStore/sets/item/children/item/index.ts index 6336b3c2e30..34299e1c87a 100644 --- a/src/sites/item/termStore/sets/item/children/item/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/children/item/relations/count/index.ts index 7a9761abae6..a09b3702843 100644 --- a/src/sites/item/termStore/sets/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/relations/index.ts b/src/sites/item/termStore/sets/item/children/item/relations/index.ts index 78e1400a3d2..cc4333afef4 100644 --- a/src/sites/item/termStore/sets/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/children/item/relations/item/fromTerm/index.ts index a365bbc5f9a..5797b2b18fc 100644 --- a/src/sites/item/termStore/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/children/item/relations/item/index.ts index c2e1eff72d5..1f4908003e4 100644 --- a/src/sites/item/termStore/sets/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/children/item/relations/item/set/index.ts index 908c42c7760..42362fb6b86 100644 --- a/src/sites/item/termStore/sets/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/children/item/relations/item/toTerm/index.ts index 9e6ff3509d0..1e32e4a47a7 100644 --- a/src/sites/item/termStore/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/children/item/set/index.ts b/src/sites/item/termStore/sets/item/children/item/set/index.ts index a181643870c..b13c2f048da 100644 --- a/src/sites/item/termStore/sets/item/children/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/index.ts b/src/sites/item/termStore/sets/item/index.ts index a2b0ee5f080..534cb79ced9 100644 --- a/src/sites/item/termStore/sets/item/index.ts +++ b/src/sites/item/termStore/sets/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { ParentGroupRequestBuilder } from './parentGroup/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { ParentGroupRequestBuilder } from './parentGroup'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/index.ts b/src/sites/item/termStore/sets/item/parentGroup/index.ts index f48d9c8cf9d..84b100ebcce 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../models/termStore/group'; -import { SetsRequestBuilder } from './sets/'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ParentGroupRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/count/index.ts index 2d895ed9f32..0d8ce7c6a50 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/index.ts index c1a29929a6a..b5d3893ccb5 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/count/index.ts index c0474e7a5c1..060c9b2cea1 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/index.ts index 13a59656a77..84e1c6ae382 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/count/index.ts index c6501a04db4..9ccafb38efb 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/index.ts index 3af7bfde0d8..020c78a3034 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/index.ts index 0365b88fe22..1d06135958c 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts index cdc053f9a09..20173936fd8 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts index 951ccc5e0c6..7fc41e084ef 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 8cbe4d3b530..139f1a01273 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts index f09bfc91953..e7cb96f34d4 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts index 4f54b858f09..571a538d46e 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts index a62ce705429..20e27cf1ee9 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts index cd93d3c3aee..7221f24ca11 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/index.ts index f10ce5f4e37..5174a8633b8 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts index 032532081a2..d578233370f 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/index.ts index a59ac6de2cd..25ed74ea8ba 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts index ab873089ef0..de35a8b41c0 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts index 26219787f03..836ceb20d82 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts index 896b1957c3d..683198e4350 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts index 30f967fdd78..13d7c4fa2af 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/set/index.ts index b6115e028df..6b7390f2924 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/index.ts index fb2895feb14..af1ddb9d757 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/count/index.ts index d2865916835..5bbfc3f262c 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/index.ts index d24265dd6b4..ae14fee291a 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts index c0b656aef2f..24220c769aa 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/index.ts index f0c2205eb83..aa45fafcdd4 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/set/index.ts index 87e4f1276dd..ae1fc0eaf54 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts index 604d6f99cac..f45af091855 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/count/index.ts index dee8243a3ed..98250b615e7 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/index.ts index 076cc378737..590a62ba7a0 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts index fc2d1bd1768..117412487f0 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/index.ts index e63d108bf61..5cc2292603a 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts index c4227e215c8..38fc6677bbe 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts index 9e7b917ed13..44dce6e48ae 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts index 5b5b3e8c065..be8550b0b2a 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 6ef8fcda341..bc02dc9cb97 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts index 242ca961852..7f9de27a6d8 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts index fadf2a23557..094657572e3 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index d02ea8a3ffe..4761427856f 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts index ab994aaaecf..c3aeaf36d49 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/index.ts index c2711a421e4..7214f43dce6 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts index 5030fc5dc45..0ac3e532f77 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/index.ts index 0e265b6fa7d..657bfbc9875 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts index ee5dd82e429..249c5a6d972 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts index 2be14269c07..f5cf797a684 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts index ddf617cd649..45c41dfbb54 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts index 527ba97a43b..1fbff22e011 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/set/index.ts b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/set/index.ts index d51644a466d..a7c090816cc 100644 --- a/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/parentGroup/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/relations/count/index.ts index 964448952eb..bc23cd18c38 100644 --- a/src/sites/item/termStore/sets/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/relations/index.ts b/src/sites/item/termStore/sets/item/relations/index.ts index ded4bc9872c..b41ce7a584e 100644 --- a/src/sites/item/termStore/sets/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/relations/item/fromTerm/index.ts index ec5c55ef28f..a87428f1daa 100644 --- a/src/sites/item/termStore/sets/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/relations/item/index.ts index 11186a3995e..e2dc35dad0f 100644 --- a/src/sites/item/termStore/sets/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/relations/item/set/index.ts index ef02dc9239c..e841813efaf 100644 --- a/src/sites/item/termStore/sets/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/relations/item/toTerm/index.ts index 3f753c01fdf..c9eb18042bd 100644 --- a/src/sites/item/termStore/sets/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/count/index.ts b/src/sites/item/termStore/sets/item/terms/count/index.ts index e488a151ae8..9605759cf28 100644 --- a/src/sites/item/termStore/sets/item/terms/count/index.ts +++ b/src/sites/item/termStore/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/index.ts b/src/sites/item/termStore/sets/item/terms/index.ts index 44213c9af0f..b18dfd9ba8b 100644 --- a/src/sites/item/termStore/sets/item/terms/index.ts +++ b/src/sites/item/termStore/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/terms/item/children/count/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/count/index.ts index ad3445c3a6d..9c889ec6f75 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/count/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/children/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/index.ts index 60cfc63724d..63469238545 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/terms/item/children/item/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/item/index.ts index 14d4b68f0e2..cfe4b00d008 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/item/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/count/index.ts index ff01833af64..3a1e418f298 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/index.ts index 21e3ab4cade..2c3c03d4513 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 01e05a2bdca..1774aa75172 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/index.ts index 6bb5ee47cd4..1ed7eaf8346 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/set/index.ts index b2626f5fb93..02e80d34ea0 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index d1d14f7ab6a..af771cededc 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/children/item/set/index.ts b/src/sites/item/termStore/sets/item/terms/item/children/item/set/index.ts index 56882a20738..f44df26f6d9 100644 --- a/src/sites/item/termStore/sets/item/terms/item/children/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/index.ts b/src/sites/item/termStore/sets/item/terms/item/index.ts index 6799273ea8a..d6407ee0edb 100644 --- a/src/sites/item/termStore/sets/item/terms/item/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/terms/item/relations/count/index.ts b/src/sites/item/termStore/sets/item/terms/item/relations/count/index.ts index b50b515106a..0377e362d02 100644 --- a/src/sites/item/termStore/sets/item/terms/item/relations/count/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/relations/index.ts b/src/sites/item/termStore/sets/item/terms/item/relations/index.ts index d38854be423..b17e599cd0b 100644 --- a/src/sites/item/termStore/sets/item/terms/item/relations/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/sites/item/termStore/sets/item/terms/item/relations/item/fromTerm/index.ts index 45504154fe5..69742ea5703 100644 --- a/src/sites/item/termStore/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/relations/item/index.ts b/src/sites/item/termStore/sets/item/terms/item/relations/item/index.ts index 823917ef5bb..aa0ad370fd4 100644 --- a/src/sites/item/termStore/sets/item/terms/item/relations/item/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStore/sets/item/terms/item/relations/item/set/index.ts b/src/sites/item/termStore/sets/item/terms/item/relations/item/set/index.ts index e0e3adb0873..1898b76d8d5 100644 --- a/src/sites/item/termStore/sets/item/terms/item/relations/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/relations/item/toTerm/index.ts b/src/sites/item/termStore/sets/item/terms/item/relations/item/toTerm/index.ts index f0eace337ce..b472d715f56 100644 --- a/src/sites/item/termStore/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStore/sets/item/terms/item/set/index.ts b/src/sites/item/termStore/sets/item/terms/item/set/index.ts index a1f48fb7770..7bf5d940237 100644 --- a/src/sites/item/termStore/sets/item/terms/item/set/index.ts +++ b/src/sites/item/termStore/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/count/index.ts b/src/sites/item/termStores/count/index.ts index 18b3aa854ce..dbbd4121c2e 100644 --- a/src/sites/item/termStores/count/index.ts +++ b/src/sites/item/termStores/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/index.ts b/src/sites/item/termStores/index.ts index 066f30d4abb..20ad6fb9f2a 100644 --- a/src/sites/item/termStores/index.ts +++ b/src/sites/item/termStores/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { type StoreCollectionResponse } from '../../../models/termStore/'; +import { type StoreCollectionResponse } from '../../../models/termStore'; import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../models/termStore/store'; import { createStoreCollectionResponseFromDiscriminatorValue } from '../../../models/termStore/storeCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { StoreItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { StoreItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermStoresRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/count/index.ts b/src/sites/item/termStores/item/groups/count/index.ts index 89fef2ffd45..196423cbd63 100644 --- a/src/sites/item/termStores/item/groups/count/index.ts +++ b/src/sites/item/termStores/item/groups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/index.ts b/src/sites/item/termStores/item/groups/index.ts index c38e65f34ca..30ab78002d0 100644 --- a/src/sites/item/termStores/item/groups/index.ts +++ b/src/sites/item/termStores/item/groups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type GroupCollectionResponse } from '../../../../../models/termStore/'; +import { type GroupCollectionResponse } from '../../../../../models/termStore'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../models/termStore/group'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../../models/termStore/groupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { GroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/index.ts b/src/sites/item/termStores/item/groups/item/index.ts index 3a6100ef8a7..f6bb2ca18bb 100644 --- a/src/sites/item/termStores/item/groups/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../models/termStore/group'; -import { SetsRequestBuilder } from './sets/'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/count/index.ts index 848d3959415..e31d3a60917 100644 --- a/src/sites/item/termStores/item/groups/item/sets/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/index.ts b/src/sites/item/termStores/item/groups/item/sets/index.ts index b3946e2e7da..07abd9c006d 100644 --- a/src/sites/item/termStores/item/groups/item/sets/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/count/index.ts index 14454b36b93..bfba193feeb 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/index.ts index 0cd19f87268..66663568126 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/count/index.ts index 04b6d974f4e..14b4fc55fc0 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/index.ts index b57b1c95c6b..20040dbe467 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/index.ts index 05db462342e..10f4a940571 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/count/index.ts index 4e1a5f85120..c2b57a04634 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/index.ts index b57a590ff3a..35ce8a766f0 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 26252ffd79f..7bd3789c0c0 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/index.ts index e75083e2f9a..135d38acad1 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts index fd970d89b05..62b87ff9c2d 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts index a5e6b90385d..dce22ecb1b4 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/set/index.ts index 3856a3e1503..db10a1cab4f 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/index.ts index 4b78ef81025..f30bdce27c3 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/count/index.ts index da9a472a8b6..d92692caeda 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/index.ts index def6eece483..af172b0b9e7 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts index 90f4d3e7bab..4dc04620e92 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/index.ts index 5bf7aac06e2..ae26d0908e6 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/set/index.ts index ade2b292427..72f0c09cb48 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/toTerm/index.ts index 5154aa89adf..5e30c26b3ca 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/children/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/children/item/set/index.ts index 8227083bb71..ccea912dd7b 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/index.ts index 9f312ac88fd..490304c40ce 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { ParentGroupRequestBuilder } from './parentGroup/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { ParentGroupRequestBuilder } from './parentGroup'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/parentGroup/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/parentGroup/index.ts index 61627352788..f69c6ef85c6 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/parentGroup/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/parentGroup/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../../../models/termStore/group'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/relations/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/relations/count/index.ts index 0e9fa2982d4..73e43820fe1 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/relations/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/relations/index.ts index b8c12d1c570..6f06b05041d 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/relations/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/relations/item/fromTerm/index.ts index 97dfa7d0b63..b5eef198f81 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/relations/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/relations/item/index.ts index f7289a6714c..6fefbe9ea4f 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/relations/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/relations/item/set/index.ts index f8d4b7618ae..62872cc78e0 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/relations/item/toTerm/index.ts index bb99c16fe0b..5af7fd44936 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/count/index.ts index da3c28f2e89..4bad9aefd6b 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/index.ts index f4d0fc0a162..8c964401a5c 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/count/index.ts index e76228ffc3a..f822d6b3def 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/index.ts index 2d52223e20f..fb0961851ca 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/index.ts index a77675c4d9a..528eae31868 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/count/index.ts index e47a837924a..f3f69a06e5e 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/index.ts index ab00125ec49..06bf87c49bf 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index d13a35f9c9c..c7acad995af 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/index.ts index 103a12e8e21..08adb7aa3d0 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts index 3b884f25f61..2a5d873c93a 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index 41ce2c22d59..3aef291c3c6 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/set/index.ts index c05f1559e4d..b15aa8e4ac4 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/index.ts index 343f3f0dcb5..f9583168688 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/count/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/count/index.ts index 45c110071ab..57b0f647c06 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/index.ts index 3d99bd9e354..b7824ea18ce 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts index d535d99dc9b..186ce1affc3 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/index.ts index d84fe9686a9..ab59df91330 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/set/index.ts index fe67b103864..72feb132e6e 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts index 140a43faff1..829aea337b2 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/set/index.ts b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/set/index.ts index 1f64968d189..692d43daef8 100644 --- a/src/sites/item/termStores/item/groups/item/sets/item/terms/item/set/index.ts +++ b/src/sites/item/termStores/item/groups/item/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/index.ts b/src/sites/item/termStores/item/index.ts index 83b39522919..11d89dbe1d9 100644 --- a/src/sites/item/termStores/item/index.ts +++ b/src/sites/item/termStores/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../../models/termStore/store'; -import { GroupsRequestBuilder } from './groups/'; -import { SetsRequestBuilder } from './sets/'; +import { GroupsRequestBuilder } from './groups'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface StoreItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/count/index.ts b/src/sites/item/termStores/item/sets/count/index.ts index 50668c7d83d..a2c8a290b06 100644 --- a/src/sites/item/termStores/item/sets/count/index.ts +++ b/src/sites/item/termStores/item/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/index.ts b/src/sites/item/termStores/item/sets/index.ts index b2b232dab15..2671f91a129 100644 --- a/src/sites/item/termStores/item/sets/index.ts +++ b/src/sites/item/termStores/item/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/count/index.ts b/src/sites/item/termStores/item/sets/item/children/count/index.ts index 90150135a75..0c47a695d92 100644 --- a/src/sites/item/termStores/item/sets/item/children/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/index.ts b/src/sites/item/termStores/item/sets/item/children/index.ts index 9f429bbc55c..f73edb8aca4 100644 --- a/src/sites/item/termStores/item/sets/item/children/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/count/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/count/index.ts index facdcb712e0..7e5a484df14 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/index.ts index 050d1993ea7..743ccf4ec58 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/item/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/item/index.ts index f9b1aaf7173..ce4cfd197b6 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/count/index.ts index 8db3506988e..ad1ad429f76 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/index.ts index 7a8255fceee..1a458c5be33 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 940162fabac..e997461fe81 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/index.ts index 58787ba5698..bcd91788e1d 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/set/index.ts index 3856dc30876..178c09aa708 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts index 741c2d4b333..ba5221a4ad9 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/children/item/set/index.ts b/src/sites/item/termStores/item/sets/item/children/item/children/item/set/index.ts index bc1eb307120..1b251dc3906 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/index.ts b/src/sites/item/termStores/item/sets/item/children/item/index.ts index 87a7b562d9f..5d67541c8fe 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/children/item/relations/count/index.ts index bf0d3c0ecf6..d0bc9d72fbf 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/children/item/relations/index.ts index 2a0cc324646..120e0030757 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/children/item/relations/item/fromTerm/index.ts index 4575333a088..698179d3fda 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/children/item/relations/item/index.ts index 7213cc61636..e5de89f516b 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/children/item/relations/item/set/index.ts index a7e4ac41403..f0d3a2c1dad 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/children/item/relations/item/toTerm/index.ts index 8f44c394da4..48481dbf3e8 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/children/item/set/index.ts b/src/sites/item/termStores/item/sets/item/children/item/set/index.ts index 7fffa6ef710..297df20e68b 100644 --- a/src/sites/item/termStores/item/sets/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/index.ts b/src/sites/item/termStores/item/sets/item/index.ts index 4fe6ff8f727..883490ee61d 100644 --- a/src/sites/item/termStores/item/sets/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { ParentGroupRequestBuilder } from './parentGroup/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { ParentGroupRequestBuilder } from './parentGroup'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/index.ts index ecd538f9eeb..2042ade271d 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createGroupFromDiscriminatorValue, deserializeIntoGroup, serializeGroup, type Group } from '../../../../../../../models/termStore/group'; -import { SetsRequestBuilder } from './sets/'; +import { SetsRequestBuilder } from './sets'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ParentGroupRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/count/index.ts index b79047ebd2c..e5f5a3f948b 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/index.ts index d4106da6d14..85180e19dfd 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { type SetCollectionResponse } from '../../../../../../../../models/termStore/'; +import { type SetCollectionResponse } from '../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../models/termStore/set'; import { createSetCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/termStore/setCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SetItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SetItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/count/index.ts index 7705a6c59d8..8dbb64e66a6 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/index.ts index 34e155b964c..a3becc511da 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/count/index.ts index 226f965e51e..b8bc982b7f1 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/index.ts index 5203a339aa2..b3fadd918dc 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/index.ts index f87286b2f28..9eb1cbb5e55 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts index cdf8e8cd7e6..0df1de1d398 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts index ca47b6a746b..ded5992a74f 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts index 57247d664a3..d80ca1b71c6 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts index 11b28f2db8d..f28dae00e0b 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts index 32e33dd51af..e7343d8c0de 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts index d4699b30f80..da35d3c8575 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts index 4c1652980d1..43f4900224e 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/index.ts index 119ba80a56c..49f640875b8 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts index 57753b27cd6..bdbd7939286 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/index.ts index a18a6909069..a94484af6ca 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts index 7df4778519f..e462b4b4af5 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts index bdc849b6a14..2647b16dcc2 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts index 49c2e5918f8..60b4779aa98 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts index 79e4e8e4487..898e3f5d6b5 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/set/index.ts index fcd57e01d16..8347f6ce98d 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/index.ts index 6b6b81de74b..d9e53ea84a3 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createSetFromDiscriminatorValue, deserializeIntoSet, serializeSet, type Set } from '../../../../../../../../../models/termStore/set'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { TermsRequestBuilder } from './terms/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { TermsRequestBuilder } from './terms'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SetItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/count/index.ts index 67f59f2babf..7daf735557e 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/index.ts index cbb93849e60..bb205f34b53 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts index c34fbd26210..23983cbed79 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/index.ts index 0a10741eb6f..c71a5e3b456 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/set/index.ts index 400a187f243..c82a4860ccb 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts index 2f9b5b6b2f5..e84252cf6d3 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/count/index.ts index bf43308913a..52856a14110 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/index.ts index 261234c1576..273229ced18 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts index 27e9270b441..6851a1265bc 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/index.ts index 6512e244df7..43b5198ed6e 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts index cc5626cca7a..ae5db6c9031 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts index 2b4d7e10d74..3505df44ca5 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts index bb51a81885c..e9830eb3f86 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 122a16e272d..4112f7fa7fd 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts index 005c52e1944..19259a22062 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts index 21f8b5ddd0e..2b1b04f4140 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index e2fa36681e9..e41a6aba68f 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts index 17fae698d60..52ef1c423bb 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/index.ts index 2d9c6fcfcde..71e82914aab 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts index 30cb4573dcd..8205b40b599 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/index.ts index 10127418ebb..c15446816de 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts index 92fb4a79e48..19be9ac7b30 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts index a4b4895a944..59230e592ab 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts index d72f4a25b65..7c94e1fe2d3 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts index e42cf6f7e2e..e63ed3dd7a3 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/set/index.ts b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/set/index.ts index 3d3fc99b9c8..5b609f9936e 100644 --- a/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/parentGroup/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/relations/count/index.ts index 21b2a4ebc09..86736760d30 100644 --- a/src/sites/item/termStores/item/sets/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/relations/index.ts index 5f103bc5df2..6cbdc060619 100644 --- a/src/sites/item/termStores/item/sets/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/relations/item/fromTerm/index.ts index 30c99b84525..3ef426cfca7 100644 --- a/src/sites/item/termStores/item/sets/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/relations/item/index.ts index 967e1a653bf..103c2f2aa8d 100644 --- a/src/sites/item/termStores/item/sets/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/relations/item/set/index.ts index 1f85f6c53ff..32e1a759d94 100644 --- a/src/sites/item/termStores/item/sets/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/relations/item/toTerm/index.ts index bab6261eaff..5c39e10c603 100644 --- a/src/sites/item/termStores/item/sets/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/count/index.ts b/src/sites/item/termStores/item/sets/item/terms/count/index.ts index c6bd640ab4b..8f663c5e897 100644 --- a/src/sites/item/termStores/item/sets/item/terms/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/index.ts b/src/sites/item/termStores/item/sets/item/terms/index.ts index fa44afacc53..0a4d986b2ee 100644 --- a/src/sites/item/termStores/item/sets/item/terms/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/count/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/count/index.ts index c87b6a66086..8bff939f8b9 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/index.ts index cabdcd7e7e9..ead4861dac0 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type TermCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type TermCollectionResponse } from '../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../models/termStore/term'; import { createTermCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/termCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TermItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TermItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildrenRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/item/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/item/index.ts index 44cce834608..292df618144 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../../../models/termStore/term'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/count/index.ts index 30c14900a16..62d314c4bcd 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/index.ts index 36ccd9aefa7..a7b295af546 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts index 65e85748525..6e305d61eb2 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/index.ts index 1498442f0f9..e8828b4314a 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/set/index.ts index fa92af9e994..1c05e57446d 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts index 2739ad2022e..82e8c26d4da 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/children/item/set/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/children/item/set/index.ts index 83a1349d39f..13112432513 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/children/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/children/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/index.ts index 16569aeb2ad..12dcf80e142 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTermFromDiscriminatorValue, deserializeIntoTerm, serializeTerm, type Term } from '../../../../../../../../models/termStore/term'; -import { ChildrenRequestBuilder } from './children/'; -import { RelationsRequestBuilder } from './relations/'; -import { SetRequestBuilder } from './set/'; +import { ChildrenRequestBuilder } from './children'; +import { RelationsRequestBuilder } from './relations'; +import { SetRequestBuilder } from './set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TermItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/terms/item/relations/count/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/relations/count/index.ts index 526ec30392f..63f616ef1a3 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/relations/count/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/relations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/relations/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/relations/index.ts index 5f98b98cbcb..06901d54dc5 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/relations/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/relations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore/'; +import { type RelationCollectionResponse } from '../../../../../../../../../models/termStore'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../models/termStore/relation'; import { createRelationCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/termStore/relationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { RelationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { RelationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationsRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/terms/item/relations/item/fromTerm/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/relations/item/fromTerm/index.ts index 1f0049f801a..191249fef5a 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/relations/item/fromTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/relations/item/fromTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/relations/item/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/relations/item/index.ts index 04cd2c1bd5c..ca76cd7c40b 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/relations/item/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/relations/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createRelationFromDiscriminatorValue, deserializeIntoRelation, serializeRelation, type Relation } from '../../../../../../../../../../models/termStore/relation'; -import { FromTermRequestBuilder } from './fromTerm/'; -import { SetRequestBuilder } from './set/'; -import { ToTermRequestBuilder } from './toTerm/'; +import { FromTermRequestBuilder } from './fromTerm'; +import { SetRequestBuilder } from './set'; +import { ToTermRequestBuilder } from './toTerm'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RelationItemRequestBuilderGetQueryParameters { diff --git a/src/sites/item/termStores/item/sets/item/terms/item/relations/item/set/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/relations/item/set/index.ts index 91970cd0bbe..8f168459995 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/relations/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/relations/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/relations/item/toTerm/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/relations/item/toTerm/index.ts index 441da4bb579..5bb8162d34a 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/relations/item/toTerm/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/relations/item/toTerm/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { type Term } from '../../../../../../../../../../../models/termStore/'; +import { type Term } from '../../../../../../../../../../../models/termStore'; import { createTermFromDiscriminatorValue } from '../../../../../../../../../../../models/termStore/term'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/item/termStores/item/sets/item/terms/item/set/index.ts b/src/sites/item/termStores/item/sets/item/terms/item/set/index.ts index 9734bb7ca8b..5bd2d1571d3 100644 --- a/src/sites/item/termStores/item/sets/item/terms/item/set/index.ts +++ b/src/sites/item/termStores/item/sets/item/terms/item/set/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { type Set } from '../../../../../../../../../models/termStore/'; +import { type Set } from '../../../../../../../../../models/termStore'; import { createSetFromDiscriminatorValue } from '../../../../../../../../../models/termStore/set'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/sites/remove/index.ts b/src/sites/remove/index.ts index 2c58e83e274..ab4c619ef2e 100644 --- a/src/sites/remove/index.ts +++ b/src/sites/remove/index.ts @@ -1,11 +1,55 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { createRemovePostResponseFromDiscriminatorValue, deserializeIntoRemovePostRequestBody, deserializeIntoRemovePostResponse, serializeRemovePostRequestBody, serializeRemovePostResponse, type RemovePostRequestBody, type RemovePostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../models/site'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRemovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemovePostRequestBody; +} +export function createRemovePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRemovePostResponse; +} +export function deserializeIntoRemovePostRequestBody(removePostRequestBody: RemovePostRequestBody | undefined = {} as RemovePostRequestBody) : Record void> { + return { + "value": n => { removePostRequestBody.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, + } +} +export function deserializeIntoRemovePostResponse(removePostResponse: RemovePostResponse | undefined = {} as RemovePostResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(removePostResponse), + "value": n => { removePostResponse.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, + } +} +export interface RemovePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: Site[]; +} +export interface RemovePostResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: Site[]; +} +export function serializeRemovePostRequestBody(writer: SerializationWriter, removePostRequestBody: RemovePostRequestBody | undefined = {} as RemovePostRequestBody) : void { + writer.writeCollectionOfObjectValues("value", removePostRequestBody.value, serializeSite); + writer.writeAdditionalData(removePostRequestBody.additionalData); +} +export function serializeRemovePostResponse(writer: SerializationWriter, removePostResponse: RemovePostResponse | undefined = {} as RemovePostResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, removePostResponse) + writer.writeCollectionOfObjectValues("value", removePostResponse.value, serializeSite); +} /** * Provides operations to call the remove method. */ diff --git a/src/sites/remove/removePostRequestBody.ts b/src/sites/remove/removePostRequestBody.ts deleted file mode 100644 index 94f182066fc..00000000000 --- a/src/sites/remove/removePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../models/site'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRemovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemovePostRequestBody; -} -export function deserializeIntoRemovePostRequestBody(removePostRequestBody: RemovePostRequestBody | undefined = {} as RemovePostRequestBody) : Record void> { - return { - "value": n => { removePostRequestBody.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, - } -} -export interface RemovePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: Site[]; -} -export function serializeRemovePostRequestBody(writer: SerializationWriter, removePostRequestBody: RemovePostRequestBody | undefined = {} as RemovePostRequestBody) : void { - writer.writeCollectionOfObjectValues("value", removePostRequestBody.value, serializeSite); - writer.writeAdditionalData(removePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/sites/remove/removePostResponse.ts b/src/sites/remove/removePostResponse.ts deleted file mode 100644 index 0e853d4426d..00000000000 --- a/src/sites/remove/removePostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createSiteFromDiscriminatorValue, serializeSite, type Site } from '../../models/site'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRemovePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRemovePostResponse; -} -export function deserializeIntoRemovePostResponse(removePostResponse: RemovePostResponse | undefined = {} as RemovePostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(removePostResponse), - "value": n => { removePostResponse.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); }, - } -} -export interface RemovePostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: Site[]; -} -export function serializeRemovePostResponse(writer: SerializationWriter, removePostResponse: RemovePostResponse | undefined = {} as RemovePostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, removePostResponse) - writer.writeCollectionOfObjectValues("value", removePostResponse.value, serializeSite); -} -// tslint:enable -// eslint-enable diff --git a/src/solutions/bookingBusinesses/count/index.ts b/src/solutions/bookingBusinesses/count/index.ts index 3f7c5c74e94..724423bb658 100644 --- a/src/solutions/bookingBusinesses/count/index.ts +++ b/src/solutions/bookingBusinesses/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/index.ts b/src/solutions/bookingBusinesses/index.ts index 9799513af03..7258ed9996b 100644 --- a/src/solutions/bookingBusinesses/index.ts +++ b/src/solutions/bookingBusinesses/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BookingBusinessCollectionResponse } from '../../models/'; +import { type BookingBusinessCollectionResponse } from '../../models'; import { createBookingBusinessFromDiscriminatorValue, deserializeIntoBookingBusiness, serializeBookingBusiness, type BookingBusiness } from '../../models/bookingBusiness'; import { createBookingBusinessCollectionResponseFromDiscriminatorValue } from '../../models/bookingBusinessCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BookingBusinessItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BookingBusinessItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BookingBusinessesRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/appointments/count/index.ts b/src/solutions/bookingBusinesses/item/appointments/count/index.ts index b4e45569282..92abfad99f5 100644 --- a/src/solutions/bookingBusinesses/item/appointments/count/index.ts +++ b/src/solutions/bookingBusinesses/item/appointments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/appointments/index.ts b/src/solutions/bookingBusinesses/item/appointments/index.ts index 3d0ce762902..ff6e4c873bc 100644 --- a/src/solutions/bookingBusinesses/item/appointments/index.ts +++ b/src/solutions/bookingBusinesses/item/appointments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BookingAppointmentCollectionResponse } from '../../../../models/'; +import { type BookingAppointmentCollectionResponse } from '../../../../models'; import { createBookingAppointmentFromDiscriminatorValue, deserializeIntoBookingAppointment, serializeBookingAppointment, type BookingAppointment } from '../../../../models/bookingAppointment'; import { createBookingAppointmentCollectionResponseFromDiscriminatorValue } from '../../../../models/bookingAppointmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BookingAppointmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BookingAppointmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppointmentsRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/appointments/item/cancel/cancelPostRequestBody.ts b/src/solutions/bookingBusinesses/item/appointments/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 8077eabd646..00000000000 --- a/src/solutions/bookingBusinesses/item/appointments/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cancellationMessage property - */ - cancellationMessage?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "cancellationMessage": n => { cancelPostRequestBody.cancellationMessage = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("cancellationMessage", cancelPostRequestBody.cancellationMessage); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/solutions/bookingBusinesses/item/appointments/item/cancel/index.ts b/src/solutions/bookingBusinesses/item/appointments/item/cancel/index.ts index c660d15b0bf..3e1865280f3 100644 --- a/src/solutions/bookingBusinesses/item/appointments/item/cancel/index.ts +++ b/src/solutions/bookingBusinesses/item/appointments/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cancellationMessage property + */ + cancellationMessage?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "cancellationMessage": n => { cancelPostRequestBody.cancellationMessage = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("cancellationMessage", cancelPostRequestBody.cancellationMessage); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/solutions/bookingBusinesses/item/appointments/item/index.ts b/src/solutions/bookingBusinesses/item/appointments/item/index.ts index 3d2d0adffee..f710ebfb654 100644 --- a/src/solutions/bookingBusinesses/item/appointments/item/index.ts +++ b/src/solutions/bookingBusinesses/item/appointments/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createBookingAppointmentFromDiscriminatorValue, deserializeIntoBookingAppointment, serializeBookingAppointment, type BookingAppointment } from '../../../../../models/bookingAppointment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CancelRequestBuilder } from './cancel/'; +import { CancelRequestBuilder } from './cancel'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BookingAppointmentItemRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/calendarView/count/index.ts b/src/solutions/bookingBusinesses/item/calendarView/count/index.ts index 99f0af63399..fca7925a6da 100644 --- a/src/solutions/bookingBusinesses/item/calendarView/count/index.ts +++ b/src/solutions/bookingBusinesses/item/calendarView/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/calendarView/index.ts b/src/solutions/bookingBusinesses/item/calendarView/index.ts index 6b8a41311ec..f3b148ae257 100644 --- a/src/solutions/bookingBusinesses/item/calendarView/index.ts +++ b/src/solutions/bookingBusinesses/item/calendarView/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BookingAppointmentCollectionResponse } from '../../../../models/'; +import { type BookingAppointmentCollectionResponse } from '../../../../models'; import { createBookingAppointmentFromDiscriminatorValue, deserializeIntoBookingAppointment, serializeBookingAppointment, type BookingAppointment } from '../../../../models/bookingAppointment'; import { createBookingAppointmentCollectionResponseFromDiscriminatorValue } from '../../../../models/bookingAppointmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BookingAppointmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BookingAppointmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarViewRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/calendarView/item/cancel/cancelPostRequestBody.ts b/src/solutions/bookingBusinesses/item/calendarView/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 8077eabd646..00000000000 --- a/src/solutions/bookingBusinesses/item/calendarView/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The cancellationMessage property - */ - cancellationMessage?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "cancellationMessage": n => { cancelPostRequestBody.cancellationMessage = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("cancellationMessage", cancelPostRequestBody.cancellationMessage); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/solutions/bookingBusinesses/item/calendarView/item/cancel/index.ts b/src/solutions/bookingBusinesses/item/calendarView/item/cancel/index.ts index 49b2378dfa0..6e0adfb5a9a 100644 --- a/src/solutions/bookingBusinesses/item/calendarView/item/cancel/index.ts +++ b/src/solutions/bookingBusinesses/item/calendarView/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The cancellationMessage property + */ + cancellationMessage?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "cancellationMessage": n => { cancelPostRequestBody.cancellationMessage = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("cancellationMessage", cancelPostRequestBody.cancellationMessage); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/solutions/bookingBusinesses/item/calendarView/item/index.ts b/src/solutions/bookingBusinesses/item/calendarView/item/index.ts index a1db3091c15..2e1dbb072ac 100644 --- a/src/solutions/bookingBusinesses/item/calendarView/item/index.ts +++ b/src/solutions/bookingBusinesses/item/calendarView/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createBookingAppointmentFromDiscriminatorValue, deserializeIntoBookingAppointment, serializeBookingAppointment, type BookingAppointment } from '../../../../../models/bookingAppointment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CancelRequestBuilder } from './cancel/'; +import { CancelRequestBuilder } from './cancel'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BookingAppointmentItemRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/customQuestions/count/index.ts b/src/solutions/bookingBusinesses/item/customQuestions/count/index.ts index d959e1b42e3..e4040b100fe 100644 --- a/src/solutions/bookingBusinesses/item/customQuestions/count/index.ts +++ b/src/solutions/bookingBusinesses/item/customQuestions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/customQuestions/index.ts b/src/solutions/bookingBusinesses/item/customQuestions/index.ts index 1e57a2e2601..20027203bdc 100644 --- a/src/solutions/bookingBusinesses/item/customQuestions/index.ts +++ b/src/solutions/bookingBusinesses/item/customQuestions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BookingCustomQuestionCollectionResponse } from '../../../../models/'; +import { type BookingCustomQuestionCollectionResponse } from '../../../../models'; import { createBookingCustomQuestionFromDiscriminatorValue, deserializeIntoBookingCustomQuestion, serializeBookingCustomQuestion, type BookingCustomQuestion } from '../../../../models/bookingCustomQuestion'; import { createBookingCustomQuestionCollectionResponseFromDiscriminatorValue } from '../../../../models/bookingCustomQuestionCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BookingCustomQuestionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BookingCustomQuestionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomQuestionsRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/customQuestions/item/index.ts b/src/solutions/bookingBusinesses/item/customQuestions/item/index.ts index b6912636f32..e7fec8ec689 100644 --- a/src/solutions/bookingBusinesses/item/customQuestions/item/index.ts +++ b/src/solutions/bookingBusinesses/item/customQuestions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createBookingCustomQuestionFromDiscriminatorValue, deserializeIntoBookingCustomQuestion, serializeBookingCustomQuestion, type BookingCustomQuestion } from '../../../../../models/bookingCustomQuestion'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/customers/count/index.ts b/src/solutions/bookingBusinesses/item/customers/count/index.ts index 87863348288..483433006f3 100644 --- a/src/solutions/bookingBusinesses/item/customers/count/index.ts +++ b/src/solutions/bookingBusinesses/item/customers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/customers/index.ts b/src/solutions/bookingBusinesses/item/customers/index.ts index 4db05219889..9f80d43c59f 100644 --- a/src/solutions/bookingBusinesses/item/customers/index.ts +++ b/src/solutions/bookingBusinesses/item/customers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BookingCustomerBaseCollectionResponse } from '../../../../models/'; +import { type BookingCustomerBaseCollectionResponse } from '../../../../models'; import { createBookingCustomerBaseFromDiscriminatorValue, deserializeIntoBookingCustomerBase, serializeBookingCustomerBase, type BookingCustomerBase } from '../../../../models/bookingCustomerBase'; import { createBookingCustomerBaseCollectionResponseFromDiscriminatorValue } from '../../../../models/bookingCustomerBaseCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BookingCustomerBaseItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BookingCustomerBaseItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CustomersRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/customers/item/index.ts b/src/solutions/bookingBusinesses/item/customers/item/index.ts index 82769ad370e..778f4422d84 100644 --- a/src/solutions/bookingBusinesses/item/customers/item/index.ts +++ b/src/solutions/bookingBusinesses/item/customers/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createBookingCustomerBaseFromDiscriminatorValue, deserializeIntoBookingCustomerBase, serializeBookingCustomerBase, type BookingCustomerBase } from '../../../../../models/bookingCustomerBase'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/getStaffAvailability/getStaffAvailabilityPostRequestBody.ts b/src/solutions/bookingBusinesses/item/getStaffAvailability/getStaffAvailabilityPostRequestBody.ts deleted file mode 100644 index 41cd0277366..00000000000 --- a/src/solutions/bookingBusinesses/item/getStaffAvailability/getStaffAvailabilityPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../models/dateTimeTimeZone'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetStaffAvailabilityPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetStaffAvailabilityPostRequestBody; -} -export function deserializeIntoGetStaffAvailabilityPostRequestBody(getStaffAvailabilityPostRequestBody: GetStaffAvailabilityPostRequestBody | undefined = {} as GetStaffAvailabilityPostRequestBody) : Record void> { - return { - "endDateTime": n => { getStaffAvailabilityPostRequestBody.endDateTime = n.getObjectValue(createDateTimeTimeZoneFromDiscriminatorValue); }, - "staffIds": n => { getStaffAvailabilityPostRequestBody.staffIds = n.getCollectionOfPrimitiveValues(); }, - "startDateTime": n => { getStaffAvailabilityPostRequestBody.startDateTime = n.getObjectValue(createDateTimeTimeZoneFromDiscriminatorValue); }, - } -} -export interface GetStaffAvailabilityPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The endDateTime property - */ - endDateTime?: DateTimeTimeZone; - /** - * The staffIds property - */ - staffIds?: string[]; - /** - * The startDateTime property - */ - startDateTime?: DateTimeTimeZone; -} -export function serializeGetStaffAvailabilityPostRequestBody(writer: SerializationWriter, getStaffAvailabilityPostRequestBody: GetStaffAvailabilityPostRequestBody | undefined = {} as GetStaffAvailabilityPostRequestBody) : void { - writer.writeObjectValue("endDateTime", getStaffAvailabilityPostRequestBody.endDateTime, serializeDateTimeTimeZone); - writer.writeCollectionOfPrimitiveValues("staffIds", getStaffAvailabilityPostRequestBody.staffIds); - writer.writeObjectValue("startDateTime", getStaffAvailabilityPostRequestBody.startDateTime, serializeDateTimeTimeZone); - writer.writeAdditionalData(getStaffAvailabilityPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/solutions/bookingBusinesses/item/getStaffAvailability/getStaffAvailabilityPostResponse.ts b/src/solutions/bookingBusinesses/item/getStaffAvailability/getStaffAvailabilityPostResponse.ts deleted file mode 100644 index f2af8482210..00000000000 --- a/src/solutions/bookingBusinesses/item/getStaffAvailability/getStaffAvailabilityPostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createStaffAvailabilityItemFromDiscriminatorValue, serializeStaffAvailabilityItem, type StaffAvailabilityItem } from '../../../../models/staffAvailabilityItem'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetStaffAvailabilityPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetStaffAvailabilityPostResponse; -} -export function deserializeIntoGetStaffAvailabilityPostResponse(getStaffAvailabilityPostResponse: GetStaffAvailabilityPostResponse | undefined = {} as GetStaffAvailabilityPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getStaffAvailabilityPostResponse), - "value": n => { getStaffAvailabilityPostResponse.value = n.getCollectionOfObjectValues(createStaffAvailabilityItemFromDiscriminatorValue); }, - } -} -export interface GetStaffAvailabilityPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: StaffAvailabilityItem[]; -} -export function serializeGetStaffAvailabilityPostResponse(writer: SerializationWriter, getStaffAvailabilityPostResponse: GetStaffAvailabilityPostResponse | undefined = {} as GetStaffAvailabilityPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getStaffAvailabilityPostResponse) - writer.writeCollectionOfObjectValues("value", getStaffAvailabilityPostResponse.value, serializeStaffAvailabilityItem); -} -// tslint:enable -// eslint-enable diff --git a/src/solutions/bookingBusinesses/item/getStaffAvailability/index.ts b/src/solutions/bookingBusinesses/item/getStaffAvailability/index.ts index 3c5f690fac6..3df9a6bc69a 100644 --- a/src/solutions/bookingBusinesses/item/getStaffAvailability/index.ts +++ b/src/solutions/bookingBusinesses/item/getStaffAvailability/index.ts @@ -2,28 +2,119 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../models/dateTimeTimeZone'; +import { type ODataError } from '../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createStaffAvailabilityItemFromDiscriminatorValue, serializeStaffAvailabilityItem, type StaffAvailabilityItem } from '../../../../models/staffAvailabilityItem'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetStaffAvailabilityPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetStaffAvailabilityPostRequestBody; +} export function createGetStaffAvailabilityPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetStaffAvailabilityPostResponse; } +export function deserializeIntoGetStaffAvailabilityPostRequestBody(getStaffAvailabilityPostRequestBody: GetStaffAvailabilityPostRequestBody | undefined = {} as GetStaffAvailabilityPostRequestBody) : Record void> { + return { + "endDateTime": n => { getStaffAvailabilityPostRequestBody.endDateTime = n.getObjectValue(createDateTimeTimeZoneFromDiscriminatorValue); }, + "staffIds": n => { getStaffAvailabilityPostRequestBody.staffIds = n.getCollectionOfPrimitiveValues(); }, + "startDateTime": n => { getStaffAvailabilityPostRequestBody.startDateTime = n.getObjectValue(createDateTimeTimeZoneFromDiscriminatorValue); }, + } +} export function deserializeIntoGetStaffAvailabilityPostResponse(getStaffAvailabilityPostResponse: GetStaffAvailabilityPostResponse | undefined = {} as GetStaffAvailabilityPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(getStaffAvailabilityPostResponse), "value": n => { getStaffAvailabilityPostResponse.value = n.getCollectionOfObjectValues(createStaffAvailabilityItemFromDiscriminatorValue); }, } } +export interface GetStaffAvailabilityPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The endDateTime property + */ + endDateTime?: DateTimeTimeZone; + /** + * The staffIds property + */ + staffIds?: string[]; + /** + * The startDateTime property + */ + startDateTime?: DateTimeTimeZone; +} export interface GetStaffAvailabilityPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: StaffAvailabilityItem[]; } +export function serializeGetStaffAvailabilityPostRequestBody(writer: SerializationWriter, getStaffAvailabilityPostRequestBody: GetStaffAvailabilityPostRequestBody | undefined = {} as GetStaffAvailabilityPostRequestBody) : void { + writer.writeObjectValue("endDateTime", getStaffAvailabilityPostRequestBody.endDateTime, serializeDateTimeTimeZone); + writer.writeCollectionOfPrimitiveValues("staffIds", getStaffAvailabilityPostRequestBody.staffIds); + writer.writeObjectValue("startDateTime", getStaffAvailabilityPostRequestBody.startDateTime, serializeDateTimeTimeZone); + writer.writeAdditionalData(getStaffAvailabilityPostRequestBody.additionalData); +} export function serializeGetStaffAvailabilityPostResponse(writer: SerializationWriter, getStaffAvailabilityPostResponse: GetStaffAvailabilityPostResponse | undefined = {} as GetStaffAvailabilityPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getStaffAvailabilityPostResponse) writer.writeCollectionOfObjectValues("value", getStaffAvailabilityPostResponse.value, serializeStaffAvailabilityItem); } +/** + * Provides operations to call the getStaffAvailability method. + */ +export class GetStaffAvailabilityRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new GetStaffAvailabilityRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/getStaffAvailability"); + }; + /** + * Get the availability information of staff members of a Microsoft Bookings calendar. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of GetStaffAvailabilityPostResponse + * @see {@link https://learn.microsoft.com/graph/api/bookingbusiness-getstaffavailability?view=graph-rest-1.0|Find more info here} + */ + public post(body: GetStaffAvailabilityPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createGetStaffAvailabilityPostResponseFromDiscriminatorValue, errorMapping); + }; + /** + * Get the availability information of staff members of a Microsoft Bookings calendar. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: GetStaffAvailabilityPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetStaffAvailabilityPostRequestBody); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a getStaffAvailabilityRequestBuilder + */ + public withUrl(rawUrl: string) : GetStaffAvailabilityRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new GetStaffAvailabilityRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/solutions/bookingBusinesses/item/index.ts b/src/solutions/bookingBusinesses/item/index.ts index 393a989e8be..c9f5c8406c4 100644 --- a/src/solutions/bookingBusinesses/item/index.ts +++ b/src/solutions/bookingBusinesses/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createBookingBusinessFromDiscriminatorValue, deserializeIntoBookingBusiness, serializeBookingBusiness, type BookingBusiness } from '../../../models/bookingBusiness'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AppointmentsRequestBuilder } from './appointments/'; -import { CalendarViewRequestBuilder } from './calendarView/'; -import { CustomersRequestBuilder } from './customers/'; -import { CustomQuestionsRequestBuilder } from './customQuestions/'; -import { GetStaffAvailabilityRequestBuilder } from './getStaffAvailability/'; -import { PublishRequestBuilder } from './publish/'; -import { ServicesRequestBuilder } from './services/'; -import { StaffMembersRequestBuilder } from './staffMembers/'; -import { UnpublishRequestBuilder } from './unpublish/'; +import { AppointmentsRequestBuilder } from './appointments'; +import { CalendarViewRequestBuilder } from './calendarView'; +import { CustomersRequestBuilder } from './customers'; +import { CustomQuestionsRequestBuilder } from './customQuestions'; +import { GetStaffAvailabilityRequestBuilder } from './getStaffAvailability'; +import { PublishRequestBuilder } from './publish'; +import { ServicesRequestBuilder } from './services'; +import { StaffMembersRequestBuilder } from './staffMembers'; +import { UnpublishRequestBuilder } from './unpublish'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BookingBusinessItemRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/publish/index.ts b/src/solutions/bookingBusinesses/item/publish/index.ts index d1d2ab28ab1..f9749f8f177 100644 --- a/src/solutions/bookingBusinesses/item/publish/index.ts +++ b/src/solutions/bookingBusinesses/item/publish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/services/count/index.ts b/src/solutions/bookingBusinesses/item/services/count/index.ts index 1e11c149519..16836ff1fa1 100644 --- a/src/solutions/bookingBusinesses/item/services/count/index.ts +++ b/src/solutions/bookingBusinesses/item/services/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/services/index.ts b/src/solutions/bookingBusinesses/item/services/index.ts index 2a0f6d37b34..b534a963d2b 100644 --- a/src/solutions/bookingBusinesses/item/services/index.ts +++ b/src/solutions/bookingBusinesses/item/services/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BookingServiceCollectionResponse } from '../../../../models/'; +import { type BookingServiceCollectionResponse } from '../../../../models'; import { createBookingServiceFromDiscriminatorValue, deserializeIntoBookingService, serializeBookingService, type BookingService } from '../../../../models/bookingService'; import { createBookingServiceCollectionResponseFromDiscriminatorValue } from '../../../../models/bookingServiceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BookingServiceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BookingServiceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServicesRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/services/item/index.ts b/src/solutions/bookingBusinesses/item/services/item/index.ts index 6f11ec06ffa..c654cac38dc 100644 --- a/src/solutions/bookingBusinesses/item/services/item/index.ts +++ b/src/solutions/bookingBusinesses/item/services/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createBookingServiceFromDiscriminatorValue, deserializeIntoBookingService, serializeBookingService, type BookingService } from '../../../../../models/bookingService'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/staffMembers/count/index.ts b/src/solutions/bookingBusinesses/item/staffMembers/count/index.ts index 26b9b6ce49d..c96372c5ef5 100644 --- a/src/solutions/bookingBusinesses/item/staffMembers/count/index.ts +++ b/src/solutions/bookingBusinesses/item/staffMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/staffMembers/index.ts b/src/solutions/bookingBusinesses/item/staffMembers/index.ts index 78843431a4f..bbe23cef8b8 100644 --- a/src/solutions/bookingBusinesses/item/staffMembers/index.ts +++ b/src/solutions/bookingBusinesses/item/staffMembers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BookingStaffMemberBaseCollectionResponse } from '../../../../models/'; +import { type BookingStaffMemberBaseCollectionResponse } from '../../../../models'; import { createBookingStaffMemberBaseFromDiscriminatorValue, deserializeIntoBookingStaffMemberBase, serializeBookingStaffMemberBase, type BookingStaffMemberBase } from '../../../../models/bookingStaffMemberBase'; import { createBookingStaffMemberBaseCollectionResponseFromDiscriminatorValue } from '../../../../models/bookingStaffMemberBaseCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BookingStaffMemberBaseItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BookingStaffMemberBaseItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface StaffMembersRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingBusinesses/item/staffMembers/item/index.ts b/src/solutions/bookingBusinesses/item/staffMembers/item/index.ts index 555a085067a..d1aa0c7e3a3 100644 --- a/src/solutions/bookingBusinesses/item/staffMembers/item/index.ts +++ b/src/solutions/bookingBusinesses/item/staffMembers/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createBookingStaffMemberBaseFromDiscriminatorValue, deserializeIntoBookingStaffMemberBase, serializeBookingStaffMemberBase, type BookingStaffMemberBase } from '../../../../../models/bookingStaffMemberBase'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingBusinesses/item/unpublish/index.ts b/src/solutions/bookingBusinesses/item/unpublish/index.ts index 29ddc7b2d97..be8362b68eb 100644 --- a/src/solutions/bookingBusinesses/item/unpublish/index.ts +++ b/src/solutions/bookingBusinesses/item/unpublish/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingCurrencies/count/index.ts b/src/solutions/bookingCurrencies/count/index.ts index 48ec4bc5b87..5b5f994233a 100644 --- a/src/solutions/bookingCurrencies/count/index.ts +++ b/src/solutions/bookingCurrencies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/bookingCurrencies/index.ts b/src/solutions/bookingCurrencies/index.ts index aa530961a57..90280d8b111 100644 --- a/src/solutions/bookingCurrencies/index.ts +++ b/src/solutions/bookingCurrencies/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type BookingCurrencyCollectionResponse } from '../../models/'; +import { type BookingCurrencyCollectionResponse } from '../../models'; import { createBookingCurrencyFromDiscriminatorValue, deserializeIntoBookingCurrency, serializeBookingCurrency, type BookingCurrency } from '../../models/bookingCurrency'; import { createBookingCurrencyCollectionResponseFromDiscriminatorValue } from '../../models/bookingCurrencyCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { BookingCurrencyItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { BookingCurrencyItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BookingCurrenciesRequestBuilderGetQueryParameters { diff --git a/src/solutions/bookingCurrencies/item/index.ts b/src/solutions/bookingCurrencies/item/index.ts index c879ba81170..e3f1fb61f3d 100644 --- a/src/solutions/bookingCurrencies/item/index.ts +++ b/src/solutions/bookingCurrencies/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createBookingCurrencyFromDiscriminatorValue, deserializeIntoBookingCurrency, serializeBookingCurrency, type BookingCurrency } from '../../../models/bookingCurrency'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/index.ts b/src/solutions/index.ts index c538dfc9fec..155778a5550 100644 --- a/src/solutions/index.ts +++ b/src/solutions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createSolutionsRootFromDiscriminatorValue, deserializeIntoSolutionsRoot, serializeSolutionsRoot, type SolutionsRoot } from '../models/solutionsRoot'; -import { BookingBusinessesRequestBuilder } from './bookingBusinesses/'; -import { BookingCurrenciesRequestBuilder } from './bookingCurrencies/'; -import { VirtualEventsRequestBuilder } from './virtualEvents/'; +import { BookingBusinessesRequestBuilder } from './bookingBusinesses'; +import { BookingCurrenciesRequestBuilder } from './bookingCurrencies'; +import { VirtualEventsRequestBuilder } from './virtualEvents'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SolutionsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/events/count/index.ts b/src/solutions/virtualEvents/events/count/index.ts index a335b0ec3f3..5c18b4aa9ce 100644 --- a/src/solutions/virtualEvents/events/count/index.ts +++ b/src/solutions/virtualEvents/events/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/events/index.ts b/src/solutions/virtualEvents/events/index.ts index 9cf399b6a43..12d52158984 100644 --- a/src/solutions/virtualEvents/events/index.ts +++ b/src/solutions/virtualEvents/events/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type VirtualEventCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type VirtualEventCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createVirtualEventFromDiscriminatorValue, deserializeIntoVirtualEvent, serializeVirtualEvent, type VirtualEvent } from '../../../models/virtualEvent'; import { createVirtualEventCollectionResponseFromDiscriminatorValue } from '../../../models/virtualEventCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { VirtualEventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { VirtualEventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/events/item/index.ts b/src/solutions/virtualEvents/events/item/index.ts index 7c445504403..8ab0a1b08f9 100644 --- a/src/solutions/virtualEvents/events/item/index.ts +++ b/src/solutions/virtualEvents/events/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createVirtualEventFromDiscriminatorValue, deserializeIntoVirtualEvent, serializeVirtualEvent, type VirtualEvent } from '../../../../models/virtualEvent'; -import { SessionsRequestBuilder } from './sessions/'; +import { SessionsRequestBuilder } from './sessions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VirtualEventItemRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/events/item/sessions/count/index.ts b/src/solutions/virtualEvents/events/item/sessions/count/index.ts index 075201b321e..c712477daba 100644 --- a/src/solutions/virtualEvents/events/item/sessions/count/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/events/item/sessions/index.ts b/src/solutions/virtualEvents/events/item/sessions/index.ts index 81ec30b4cf9..8836374f8e1 100644 --- a/src/solutions/virtualEvents/events/item/sessions/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type VirtualEventSessionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type VirtualEventSessionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createVirtualEventSessionFromDiscriminatorValue, deserializeIntoVirtualEventSession, serializeVirtualEventSession, type VirtualEventSession } from '../../../../../models/virtualEventSession'; import { createVirtualEventSessionCollectionResponseFromDiscriminatorValue } from '../../../../../models/virtualEventSessionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { VirtualEventSessionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { VirtualEventSessionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SessionsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/count/index.ts b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/count/index.ts index edb88f1b64b..2f5921942ab 100644 --- a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/count/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/index.ts b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/index.ts index a0be3606d7f..1a99369118c 100644 --- a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MeetingAttendanceReportCollectionResponse } from '../../../../../../../models/'; +import { type MeetingAttendanceReportCollectionResponse } from '../../../../../../../models'; import { createMeetingAttendanceReportFromDiscriminatorValue, deserializeIntoMeetingAttendanceReport, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '../../../../../../../models/meetingAttendanceReport'; import { createMeetingAttendanceReportCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/meetingAttendanceReportCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MeetingAttendanceReportItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MeetingAttendanceReportItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttendanceReportsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts index 2a3c475efd6..9385398eb22 100644 --- a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts index 576e38da5d9..54be79b4cd0 100644 --- a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttendanceRecordCollectionResponse } from '../../../../../../../../../models/'; +import { type AttendanceRecordCollectionResponse } from '../../../../../../../../../models'; import { createAttendanceRecordFromDiscriminatorValue, deserializeIntoAttendanceRecord, serializeAttendanceRecord, type AttendanceRecord } from '../../../../../../../../../models/attendanceRecord'; import { createAttendanceRecordCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/attendanceRecordCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AttendanceRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AttendanceRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttendanceRecordsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts index cc9fbc33a7d..af319d9d8cd 100644 --- a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttendanceRecordFromDiscriminatorValue, deserializeIntoAttendanceRecord, serializeAttendanceRecord, type AttendanceRecord } from '../../../../../../../../../../models/attendanceRecord'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/index.ts b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/index.ts index e811bdb88cf..fbef14220bc 100644 --- a/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/item/attendanceReports/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createMeetingAttendanceReportFromDiscriminatorValue, deserializeIntoMeetingAttendanceReport, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '../../../../../../../../models/meetingAttendanceReport'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AttendanceRecordsRequestBuilder } from './attendanceRecords/'; +import { AttendanceRecordsRequestBuilder } from './attendanceRecords'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MeetingAttendanceReportItemRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/events/item/sessions/item/index.ts b/src/solutions/virtualEvents/events/item/sessions/item/index.ts index 326910be663..4d8a44e59b7 100644 --- a/src/solutions/virtualEvents/events/item/sessions/item/index.ts +++ b/src/solutions/virtualEvents/events/item/sessions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createVirtualEventSessionFromDiscriminatorValue, deserializeIntoVirtualEventSession, serializeVirtualEventSession, type VirtualEventSession } from '../../../../../../models/virtualEventSession'; -import { AttendanceReportsRequestBuilder } from './attendanceReports/'; +import { AttendanceReportsRequestBuilder } from './attendanceReports'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VirtualEventSessionItemRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/index.ts b/src/solutions/virtualEvents/index.ts index 518408ef8cf..9d7cf0932d9 100644 --- a/src/solutions/virtualEvents/index.ts +++ b/src/solutions/virtualEvents/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createVirtualEventsRootFromDiscriminatorValue, deserializeIntoVirtualEventsRoot, serializeVirtualEventsRoot, type VirtualEventsRoot } from '../../models/virtualEventsRoot'; -import { EventsRequestBuilder } from './events/'; -import { WebinarsRequestBuilder } from './webinars/'; +import { EventsRequestBuilder } from './events'; +import { WebinarsRequestBuilder } from './webinars'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VirtualEventsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/webinars/count/index.ts b/src/solutions/virtualEvents/webinars/count/index.ts index 71106325a59..f889e18aaa6 100644 --- a/src/solutions/virtualEvents/webinars/count/index.ts +++ b/src/solutions/virtualEvents/webinars/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/webinars/getByUserIdAndRoleWithUserIdWithRole/getByUserIdAndRoleWithUserIdWithRoleGetResponse.ts b/src/solutions/virtualEvents/webinars/getByUserIdAndRoleWithUserIdWithRole/getByUserIdAndRoleWithUserIdWithRoleGetResponse.ts deleted file mode 100644 index 1b1f5fd5ccf..00000000000 --- a/src/solutions/virtualEvents/webinars/getByUserIdAndRoleWithUserIdWithRole/getByUserIdAndRoleWithUserIdWithRoleGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createVirtualEventWebinarFromDiscriminatorValue, serializeVirtualEventWebinar, type VirtualEventWebinar } from '../../../../models/virtualEventWebinar'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByUserIdAndRoleWithUserIdWithRoleGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByUserIdAndRoleWithUserIdWithRoleGetResponse; -} -export function deserializeIntoGetByUserIdAndRoleWithUserIdWithRoleGetResponse(getByUserIdAndRoleWithUserIdWithRoleGetResponse: GetByUserIdAndRoleWithUserIdWithRoleGetResponse | undefined = {} as GetByUserIdAndRoleWithUserIdWithRoleGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getByUserIdAndRoleWithUserIdWithRoleGetResponse), - "value": n => { getByUserIdAndRoleWithUserIdWithRoleGetResponse.value = n.getCollectionOfObjectValues(createVirtualEventWebinarFromDiscriminatorValue); }, - } -} -export interface GetByUserIdAndRoleWithUserIdWithRoleGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: VirtualEventWebinar[]; -} -export function serializeGetByUserIdAndRoleWithUserIdWithRoleGetResponse(writer: SerializationWriter, getByUserIdAndRoleWithUserIdWithRoleGetResponse: GetByUserIdAndRoleWithUserIdWithRoleGetResponse | undefined = {} as GetByUserIdAndRoleWithUserIdWithRoleGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getByUserIdAndRoleWithUserIdWithRoleGetResponse) - writer.writeCollectionOfObjectValues("value", getByUserIdAndRoleWithUserIdWithRoleGetResponse.value, serializeVirtualEventWebinar); -} -// tslint:enable -// eslint-enable diff --git a/src/solutions/virtualEvents/webinars/getByUserIdAndRoleWithUserIdWithRole/index.ts b/src/solutions/virtualEvents/webinars/getByUserIdAndRoleWithUserIdWithRole/index.ts index dada9e2a859..1243feaaf2a 100644 --- a/src/solutions/virtualEvents/webinars/getByUserIdAndRoleWithUserIdWithRole/index.ts +++ b/src/solutions/virtualEvents/webinars/getByUserIdAndRoleWithUserIdWithRole/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createGetByUserIdAndRoleWithUserIdWithRoleGetResponseFromDiscriminatorValue } from './'; -import { type GetByUserIdAndRoleWithUserIdWithRoleGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createVirtualEventWebinarFromDiscriminatorValue, serializeVirtualEventWebinar, type VirtualEventWebinar } from '../../../../models/virtualEventWebinar'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetByUserIdAndRoleWithUserIdWithRoleGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetByUserIdAndRoleWithUserIdWithRoleGetResponse; +} +export function deserializeIntoGetByUserIdAndRoleWithUserIdWithRoleGetResponse(getByUserIdAndRoleWithUserIdWithRoleGetResponse: GetByUserIdAndRoleWithUserIdWithRoleGetResponse | undefined = {} as GetByUserIdAndRoleWithUserIdWithRoleGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getByUserIdAndRoleWithUserIdWithRoleGetResponse), + "value": n => { getByUserIdAndRoleWithUserIdWithRoleGetResponse.value = n.getCollectionOfObjectValues(createVirtualEventWebinarFromDiscriminatorValue); }, + } +} +export interface GetByUserIdAndRoleWithUserIdWithRoleGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: VirtualEventWebinar[]; +} export interface GetByUserIdAndRoleWithUserIdWithRoleRequestBuilderGetQueryParameters { /** * Include count of items @@ -37,6 +53,10 @@ export interface GetByUserIdAndRoleWithUserIdWithRoleRequestBuilderGetQueryParam */ top?: number; } +export function serializeGetByUserIdAndRoleWithUserIdWithRoleGetResponse(writer: SerializationWriter, getByUserIdAndRoleWithUserIdWithRoleGetResponse: GetByUserIdAndRoleWithUserIdWithRoleGetResponse | undefined = {} as GetByUserIdAndRoleWithUserIdWithRoleGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getByUserIdAndRoleWithUserIdWithRoleGetResponse) + writer.writeCollectionOfObjectValues("value", getByUserIdAndRoleWithUserIdWithRoleGetResponse.value, serializeVirtualEventWebinar); +} /** * Provides operations to call the getByUserIdAndRole method. */ diff --git a/src/solutions/virtualEvents/webinars/getByUserRoleWithRole/index.ts b/src/solutions/virtualEvents/webinars/getByUserRoleWithRole/index.ts index 030b3d1bd31..e3d12abdc83 100644 --- a/src/solutions/virtualEvents/webinars/getByUserRoleWithRole/index.ts +++ b/src/solutions/virtualEvents/webinars/getByUserRoleWithRole/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createVirtualEventWebinarFromDiscriminatorValue, serializeVirtualEventWebinar, type VirtualEventWebinar } from '../../../../models/virtualEventWebinar'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByUserRoleWithRoleGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,98 +21,9 @@ export interface GetByUserRoleWithRoleGetResponse extends BaseCollectionPaginati */ value?: VirtualEventWebinar[]; } -export interface GetByUserRoleWithRoleRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetByUserRoleWithRoleGetResponse(writer: SerializationWriter, getByUserRoleWithRoleGetResponse: GetByUserRoleWithRoleGetResponse | undefined = {} as GetByUserRoleWithRoleGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getByUserRoleWithRoleGetResponse) writer.writeCollectionOfObjectValues("value", getByUserRoleWithRoleGetResponse.value, serializeVirtualEventWebinar); } -/** - * Provides operations to call the getByUserRole method. - */ -export class GetByUserRoleWithRoleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByUserRoleWithRoleRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param role Usage: role='{role}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, role?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/getByUserRole(role='{role}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - this.pathParameters["role"] = role - }; - /** - * Invoke function getByUserRole - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByUserRoleWithRoleGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByUserRoleWithRoleGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getByUserRole - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getByUserRoleWithRoleRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByUserRoleWithRoleRequestBuilder - */ - public withUrl(rawUrl: string) : GetByUserRoleWithRoleRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByUserRoleWithRoleRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getByUserRoleWithRoleRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/solutions/virtualEvents/webinars/index.ts b/src/solutions/virtualEvents/webinars/index.ts index 3c778dfec9c..4936400f127 100644 --- a/src/solutions/virtualEvents/webinars/index.ts +++ b/src/solutions/virtualEvents/webinars/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type VirtualEventWebinarCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type VirtualEventWebinarCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createVirtualEventWebinarFromDiscriminatorValue, deserializeIntoVirtualEventWebinar, serializeVirtualEventWebinar, type VirtualEventWebinar } from '../../../models/virtualEventWebinar'; import { createVirtualEventWebinarCollectionResponseFromDiscriminatorValue } from '../../../models/virtualEventWebinarCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder } from './getByUserIdAndRoleWithUserIdWithRole/'; -import { GetByUserRoleWithRoleRequestBuilder } from './getByUserRoleWithRole/'; -import { VirtualEventWebinarItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder } from './getByUserIdAndRoleWithUserIdWithRole'; +import { GetByUserRoleWithRoleRequestBuilder } from './getByUserRoleWithRole'; +import { VirtualEventWebinarItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WebinarsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/webinars/item/index.ts b/src/solutions/virtualEvents/webinars/item/index.ts index b60c29bdfd1..efc0f87f88c 100644 --- a/src/solutions/virtualEvents/webinars/item/index.ts +++ b/src/solutions/virtualEvents/webinars/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createVirtualEventWebinarFromDiscriminatorValue, deserializeIntoVirtualEventWebinar, serializeVirtualEventWebinar, type VirtualEventWebinar } from '../../../../models/virtualEventWebinar'; -import { RegistrationsRequestBuilder } from './registrations/'; -import { SessionsRequestBuilder } from './sessions/'; +import { RegistrationsRequestBuilder } from './registrations'; +import { SessionsRequestBuilder } from './sessions'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VirtualEventWebinarItemRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/webinars/item/registrations/count/index.ts b/src/solutions/virtualEvents/webinars/item/registrations/count/index.ts index ebaf3387a54..31f3e729de8 100644 --- a/src/solutions/virtualEvents/webinars/item/registrations/count/index.ts +++ b/src/solutions/virtualEvents/webinars/item/registrations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/webinars/item/registrations/index.ts b/src/solutions/virtualEvents/webinars/item/registrations/index.ts index b0c51734d05..5a34f935b30 100644 --- a/src/solutions/virtualEvents/webinars/item/registrations/index.ts +++ b/src/solutions/virtualEvents/webinars/item/registrations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type VirtualEventRegistrationCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type VirtualEventRegistrationCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createVirtualEventRegistrationFromDiscriminatorValue, deserializeIntoVirtualEventRegistration, serializeVirtualEventRegistration, type VirtualEventRegistration } from '../../../../../models/virtualEventRegistration'; import { createVirtualEventRegistrationCollectionResponseFromDiscriminatorValue } from '../../../../../models/virtualEventRegistrationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { VirtualEventRegistrationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { VirtualEventRegistrationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RegistrationsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/webinars/item/registrations/item/index.ts b/src/solutions/virtualEvents/webinars/item/registrations/item/index.ts index 1d558d9f8c6..fd69add5775 100644 --- a/src/solutions/virtualEvents/webinars/item/registrations/item/index.ts +++ b/src/solutions/virtualEvents/webinars/item/registrations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createVirtualEventRegistrationFromDiscriminatorValue, deserializeIntoVirtualEventRegistration, serializeVirtualEventRegistration, type VirtualEventRegistration } from '../../../../../../models/virtualEventRegistration'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/webinars/item/sessions/count/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/count/index.ts index da39233e7b8..38aed879103 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/count/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/webinars/item/sessions/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/index.ts index bab46a50cff..2214a8ddcb3 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type VirtualEventSessionCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type VirtualEventSessionCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createVirtualEventSessionFromDiscriminatorValue, deserializeIntoVirtualEventSession, serializeVirtualEventSession, type VirtualEventSession } from '../../../../../models/virtualEventSession'; import { createVirtualEventSessionCollectionResponseFromDiscriminatorValue } from '../../../../../models/virtualEventSessionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { VirtualEventSessionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { VirtualEventSessionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SessionsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/count/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/count/index.ts index 8f048a736f7..b2150769083 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/count/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/index.ts index e34d7f59197..ec68cbfc54a 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MeetingAttendanceReportCollectionResponse } from '../../../../../../../models/'; +import { type MeetingAttendanceReportCollectionResponse } from '../../../../../../../models'; import { createMeetingAttendanceReportFromDiscriminatorValue, deserializeIntoMeetingAttendanceReport, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '../../../../../../../models/meetingAttendanceReport'; import { createMeetingAttendanceReportCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/meetingAttendanceReportCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MeetingAttendanceReportItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MeetingAttendanceReportItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttendanceReportsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts index b12d1c4d713..bbaeedac08b 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts index b55bf660991..296ee96a3a3 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttendanceRecordCollectionResponse } from '../../../../../../../../../models/'; +import { type AttendanceRecordCollectionResponse } from '../../../../../../../../../models'; import { createAttendanceRecordFromDiscriminatorValue, deserializeIntoAttendanceRecord, serializeAttendanceRecord, type AttendanceRecord } from '../../../../../../../../../models/attendanceRecord'; import { createAttendanceRecordCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/attendanceRecordCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AttendanceRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AttendanceRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttendanceRecordsRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts index ab8274e7fce..3e246958bc2 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttendanceRecordFromDiscriminatorValue, deserializeIntoAttendanceRecord, serializeAttendanceRecord, type AttendanceRecord } from '../../../../../../../../../../models/attendanceRecord'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/index.ts index 88ce23c754a..01c7c83e8cd 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/item/attendanceReports/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createMeetingAttendanceReportFromDiscriminatorValue, deserializeIntoMeetingAttendanceReport, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '../../../../../../../../models/meetingAttendanceReport'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AttendanceRecordsRequestBuilder } from './attendanceRecords/'; +import { AttendanceRecordsRequestBuilder } from './attendanceRecords'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MeetingAttendanceReportItemRequestBuilderGetQueryParameters { diff --git a/src/solutions/virtualEvents/webinars/item/sessions/item/index.ts b/src/solutions/virtualEvents/webinars/item/sessions/item/index.ts index 10bfe2f29e8..d331ebd3012 100644 --- a/src/solutions/virtualEvents/webinars/item/sessions/item/index.ts +++ b/src/solutions/virtualEvents/webinars/item/sessions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createVirtualEventSessionFromDiscriminatorValue, deserializeIntoVirtualEventSession, serializeVirtualEventSession, type VirtualEventSession } from '../../../../../../models/virtualEventSession'; -import { AttendanceReportsRequestBuilder } from './attendanceReports/'; +import { AttendanceReportsRequestBuilder } from './attendanceReports'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface VirtualEventSessionItemRequestBuilderGetQueryParameters { diff --git a/src/subscribedSkus/index.ts b/src/subscribedSkus/index.ts index 5ef72c42163..9fe90c63c36 100644 --- a/src/subscribedSkus/index.ts +++ b/src/subscribedSkus/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubscribedSkuCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type SubscribedSkuCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createSubscribedSkuFromDiscriminatorValue, deserializeIntoSubscribedSku, serializeSubscribedSku, type SubscribedSku } from '../models/subscribedSku'; import { createSubscribedSkuCollectionResponseFromDiscriminatorValue } from '../models/subscribedSkuCollectionResponse'; -import { SubscribedSkuItemRequestBuilder } from './item/'; +import { SubscribedSkuItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscribedSkusRequestBuilderGetQueryParameters { diff --git a/src/subscribedSkus/item/index.ts b/src/subscribedSkus/item/index.ts index 4b6dd17af01..ce90f9d840e 100644 --- a/src/subscribedSkus/item/index.ts +++ b/src/subscribedSkus/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSubscribedSkuFromDiscriminatorValue, deserializeIntoSubscribedSku, serializeSubscribedSku, type SubscribedSku } from '../../models/subscribedSku'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/subscriptions/index.ts b/src/subscriptions/index.ts index ac7676a89ae..3ef90e56930 100644 --- a/src/subscriptions/index.ts +++ b/src/subscriptions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SubscriptionCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type SubscriptionCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../models/subscription'; import { createSubscriptionCollectionResponseFromDiscriminatorValue } from '../models/subscriptionCollectionResponse'; -import { SubscriptionItemRequestBuilder } from './item/'; +import { SubscriptionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionsRequestBuilderGetQueryParameters { diff --git a/src/subscriptions/item/index.ts b/src/subscriptions/item/index.ts index 2223e131f59..0d332e043b5 100644 --- a/src/subscriptions/item/index.ts +++ b/src/subscriptions/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createSubscriptionFromDiscriminatorValue, deserializeIntoSubscription, serializeSubscription, type Subscription } from '../../models/subscription'; -import { ReauthorizeRequestBuilder } from './reauthorize/'; +import { ReauthorizeRequestBuilder } from './reauthorize'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SubscriptionItemRequestBuilderGetQueryParameters { diff --git a/src/subscriptions/item/reauthorize/index.ts b/src/subscriptions/item/reauthorize/index.ts index 46cd469483a..f060310c30f 100644 --- a/src/subscriptions/item/reauthorize/index.ts +++ b/src/subscriptions/item/reauthorize/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/count/index.ts b/src/teams/count/index.ts index 34288b43188..7041b32daa6 100644 --- a/src/teams/count/index.ts +++ b/src/teams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/getAllMessages/index.ts b/src/teams/getAllMessages/index.ts index 4bdcaa10020..5d1bb73ec7e 100644 --- a/src/teams/getAllMessages/index.ts +++ b/src/teams/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../models/chatMessage'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teams/index.ts b/src/teams/index.ts index bb19112a69c..6d31d604773 100644 --- a/src/teams/index.ts +++ b/src/teams/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type TeamCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue, deserializeIntoTeam, serializeTeam, type Team } from '../models/team'; import { createTeamCollectionResponseFromDiscriminatorValue } from '../models/teamCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { TeamItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { TeamItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/allChannels/count/index.ts b/src/teams/item/allChannels/count/index.ts index c2dc81e40ad..a40ee026007 100644 --- a/src/teams/item/allChannels/count/index.ts +++ b/src/teams/item/allChannels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/allChannels/index.ts b/src/teams/item/allChannels/index.ts index f297d37dd92..37413e043bf 100644 --- a/src/teams/item/allChannels/index.ts +++ b/src/teams/item/allChannels/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../models/'; +import { type ChannelCollectionResponse } from '../../../models'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllChannelsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/allChannels/item/index.ts b/src/teams/item/allChannels/item/index.ts index 5d4055a5b66..ba7107ea5cd 100644 --- a/src/teams/item/allChannels/item/index.ts +++ b/src/teams/item/allChannels/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Channel } from '../../../../models/'; +import { type Channel } from '../../../../models'; import { createChannelFromDiscriminatorValue } from '../../../../models/channel'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/archive/index.ts b/src/teams/item/archive/index.ts index 62c4006b5b9..f8f55f0ca30 100644 --- a/src/teams/item/archive/index.ts +++ b/src/teams/item/archive/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ArchivePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,57 +26,5 @@ export function serializeArchivePostRequestBody(writer: SerializationWriter, arc writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); writer.writeAdditionalData(archivePostRequestBody.additionalData); } -/** - * Provides operations to call the archive method. - */ -export class ArchiveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ArchiveRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/archive"); - }; - /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/team-archive?view=graph-rest-1.0|Find more info here} - */ - public post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeArchivePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a archiveRequestBuilder - */ - public withUrl(rawUrl: string) : ArchiveRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ArchiveRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/teams/item/channels/count/index.ts b/src/teams/item/channels/count/index.ts index 5dade4084dd..1b61406092c 100644 --- a/src/teams/item/channels/count/index.ts +++ b/src/teams/item/channels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/getAllMessages/index.ts b/src/teams/item/channels/getAllMessages/index.ts index 76a544519f6..2367b37d7a3 100644 --- a/src/teams/item/channels/getAllMessages/index.ts +++ b/src/teams/item/channels/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../models/chatMessage'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teams/item/channels/index.ts b/src/teams/item/channels/index.ts index 1df4fcd9261..50184ed2927 100644 --- a/src/teams/item/channels/index.ts +++ b/src/teams/item/channels/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../models/'; +import { type ChannelCollectionResponse } from '../../../models'; import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../models/channel'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChannelsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/completeMigration/index.ts b/src/teams/item/channels/item/completeMigration/index.ts index b06e259228e..b47d9ef3094 100644 --- a/src/teams/item/channels/item/completeMigration/index.ts +++ b/src/teams/item/channels/item/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts b/src/teams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts deleted file mode 100644 index 1de9a049b82..00000000000 --- a/src/teams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; -} -export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { - return { - "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, - } -} -export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { - writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); - writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts b/src/teams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts index f483ea992cc..984fb686da7 100644 --- a/src/teams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts +++ b/src/teams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts @@ -1,12 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue } from './'; -import { type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; +} +export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { + return { + "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, + } +} +export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /** * Usage: tenantId='@tenantId' @@ -21,6 +38,10 @@ export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalName */ userPrincipalName?: string; } +export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { + writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); + writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); +} /** * Provides operations to call the doesUserHaveAccess method. */ diff --git a/src/teams/item/channels/item/filesFolder/content/index.ts b/src/teams/item/channels/item/filesFolder/content/index.ts index cb44e618056..003a2dbb0e4 100644 --- a/src/teams/item/channels/item/filesFolder/content/index.ts +++ b/src/teams/item/channels/item/filesFolder/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../models/'; +import { type DriveItem } from '../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/filesFolder/index.ts b/src/teams/item/channels/item/filesFolder/index.ts index 5cea636b9d2..e5514afc9d0 100644 --- a/src/teams/item/channels/item/filesFolder/index.ts +++ b/src/teams/item/channels/item/filesFolder/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/index.ts b/src/teams/item/channels/item/index.ts index 2511a3580b9..5f578b1f7a9 100644 --- a/src/teams/item/channels/item/index.ts +++ b/src/teams/item/channels/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../models/channel'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/'; -import { FilesFolderRequestBuilder } from './filesFolder/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { ProvisionEmailRequestBuilder } from './provisionEmail/'; -import { RemoveEmailRequestBuilder } from './removeEmail/'; -import { SharedWithTeamsRequestBuilder } from './sharedWithTeams/'; -import { TabsRequestBuilder } from './tabs/'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName'; +import { FilesFolderRequestBuilder } from './filesFolder'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { ProvisionEmailRequestBuilder } from './provisionEmail'; +import { RemoveEmailRequestBuilder } from './removeEmail'; +import { SharedWithTeamsRequestBuilder } from './sharedWithTeams'; +import { TabsRequestBuilder } from './tabs'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChannelItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/members/add/index.ts b/src/teams/item/channels/item/members/add/index.ts index 41d62b701eb..5f556cb66c2 100644 --- a/src/teams/item/channels/item/members/add/index.ts +++ b/src/teams/item/channels/item/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/teams/item/channels/item/members/count/index.ts b/src/teams/item/channels/item/members/count/index.ts index ce9bd534bac..3a3ef3b3dea 100644 --- a/src/teams/item/channels/item/members/count/index.ts +++ b/src/teams/item/channels/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/members/index.ts b/src/teams/item/channels/item/members/index.ts index e5333a656bd..59d3b2c350c 100644 --- a/src/teams/item/channels/item/members/index.ts +++ b/src/teams/item/channels/item/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0|Find more info here} */ public post(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/channels/item/members/item/index.ts b/src/teams/item/channels/item/members/item/index.ts index d4ae0ff8e1c..450f6165158 100644 --- a/src/teams/item/channels/item/members/item/index.ts +++ b/src/teams/item/channels/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -29,9 +29,9 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}"); }; /** - * 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. - * @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} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -60,11 +60,11 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -77,7 +77,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation */ @@ -99,7 +99,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/channels/item/messages/count/index.ts b/src/teams/item/channels/item/messages/count/index.ts index 252eaeb1d61..33cea67bf75 100644 --- a/src/teams/item/channels/item/messages/count/index.ts +++ b/src/teams/item/channels/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/delta/index.ts b/src/teams/item/channels/item/messages/delta/index.ts index ccca8a40f71..2583531097d 100644 --- a/src/teams/item/channels/item/messages/delta/index.ts +++ b/src/teams/item/channels/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teams/item/channels/item/messages/index.ts b/src/teams/item/channels/item/messages/index.ts index feb7e55ee38..3e65983315d 100644 --- a/src/teams/item/channels/item/messages/index.ts +++ b/src/teams/item/channels/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/channels/item/messages/item/hostedContents/count/index.ts b/src/teams/item/channels/item/messages/item/hostedContents/count/index.ts index 9c6dde0d370..f4ea58ae1ef 100644 --- a/src/teams/item/channels/item/messages/item/hostedContents/count/index.ts +++ b/src/teams/item/channels/item/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/hostedContents/index.ts b/src/teams/item/channels/item/messages/item/hostedContents/index.ts index 8ecc665e5f3..b45ac9f1335 100644 --- a/src/teams/item/channels/item/messages/item/hostedContents/index.ts +++ b/src/teams/item/channels/item/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/messages/item/hostedContents/item/index.ts b/src/teams/item/channels/item/messages/item/hostedContents/item/index.ts index 094120d0993..24aeeec4db2 100644 --- a/src/teams/item/channels/item/messages/item/hostedContents/item/index.ts +++ b/src/teams/item/channels/item/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/messages/item/hostedContents/item/value/index.ts b/src/teams/item/channels/item/messages/item/hostedContents/item/value/index.ts index 5bd84aba6a0..ddbb5550f6b 100644 --- a/src/teams/item/channels/item/messages/item/hostedContents/item/value/index.ts +++ b/src/teams/item/channels/item/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/index.ts b/src/teams/item/channels/item/messages/item/index.ts index 77c319fd54a..a91c78f011f 100644 --- a/src/teams/item/channels/item/messages/item/index.ts +++ b/src/teams/item/channels/item/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/messages/item/replies/count/index.ts b/src/teams/item/channels/item/messages/item/replies/count/index.ts index 0f6149db521..6fe1e6b913b 100644 --- a/src/teams/item/channels/item/messages/item/replies/count/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/replies/delta/index.ts b/src/teams/item/channels/item/messages/item/replies/delta/index.ts index f8dba11ea40..90e4229bb0c 100644 --- a/src/teams/item/channels/item/messages/item/replies/delta/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teams/item/channels/item/messages/item/replies/index.ts b/src/teams/item/channels/item/messages/item/replies/index.ts index d64e4dbf256..a33fcc5ba2f 100644 --- a/src/teams/item/channels/item/messages/item/replies/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts b/src/teams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts index dfa5cc0530f..12a4a1c79e0 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/replies/item/hostedContents/index.ts b/src/teams/item/channels/item/messages/item/replies/item/hostedContents/index.ts index 6271173a805..c3685b6e3aa 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/hostedContents/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts b/src/teams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts index 0326130665d..2a9b9ce8bc0 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts b/src/teams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts index ac193d2436d..e5ec3c343fc 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/replies/item/index.ts b/src/teams/item/channels/item/messages/item/replies/item/index.ts index c2da0bdc24c..86de1530034 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/messages/item/replies/item/setReaction/index.ts b/src/teams/item/channels/item/messages/item/replies/item/setReaction/index.ts index 0e48baefd80..2372a49c438 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/setReaction/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/teams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/teams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/teams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/channels/item/messages/item/replies/item/softDelete/index.ts b/src/teams/item/channels/item/messages/item/replies/item/softDelete/index.ts index e567bdc2ec9..d35decf1e22 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/softDelete/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts b/src/teams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts index 4ea4ce53fb2..afbed62edc8 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts b/src/teams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts index f50320e0adb..e73f7de7b9c 100644 --- a/src/teams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts +++ b/src/teams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/teams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/teams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/teams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/channels/item/messages/item/setReaction/index.ts b/src/teams/item/channels/item/messages/item/setReaction/index.ts index c2aee5ed6d5..38b74bbbd66 100644 --- a/src/teams/item/channels/item/messages/item/setReaction/index.ts +++ b/src/teams/item/channels/item/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/teams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts b/src/teams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/teams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/channels/item/messages/item/softDelete/index.ts b/src/teams/item/channels/item/messages/item/softDelete/index.ts index df4b3cb4af4..94b409e13aa 100644 --- a/src/teams/item/channels/item/messages/item/softDelete/index.ts +++ b/src/teams/item/channels/item/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/undoSoftDelete/index.ts b/src/teams/item/channels/item/messages/item/undoSoftDelete/index.ts index 2400718b930..c80e734aa06 100644 --- a/src/teams/item/channels/item/messages/item/undoSoftDelete/index.ts +++ b/src/teams/item/channels/item/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/messages/item/unsetReaction/index.ts b/src/teams/item/channels/item/messages/item/unsetReaction/index.ts index e19407f618f..4af6b3f8110 100644 --- a/src/teams/item/channels/item/messages/item/unsetReaction/index.ts +++ b/src/teams/item/channels/item/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/teams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/teams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/teams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/channels/item/provisionEmail/index.ts b/src/teams/item/channels/item/provisionEmail/index.ts index d2536dd2dd7..c774f5cd5f3 100644 --- a/src/teams/item/channels/item/provisionEmail/index.ts +++ b/src/teams/item/channels/item/provisionEmail/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProvisionChannelEmailResult } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ProvisionChannelEmailResult } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createProvisionChannelEmailResultFromDiscriminatorValue } from '../../../../../models/provisionChannelEmailResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/removeEmail/index.ts b/src/teams/item/channels/item/removeEmail/index.ts index 1d6ce636de5..a73fd0ea61d 100644 --- a/src/teams/item/channels/item/removeEmail/index.ts +++ b/src/teams/item/channels/item/removeEmail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/sharedWithTeams/count/index.ts b/src/teams/item/channels/item/sharedWithTeams/count/index.ts index 1fc1e48d8c7..b19b1c5bef3 100644 --- a/src/teams/item/channels/item/sharedWithTeams/count/index.ts +++ b/src/teams/item/channels/item/sharedWithTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/sharedWithTeams/index.ts b/src/teams/item/channels/item/sharedWithTeams/index.ts index 7c68166b3fd..fe5be3e47ed 100644 --- a/src/teams/item/channels/item/sharedWithTeams/index.ts +++ b/src/teams/item/channels/item/sharedWithTeams/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../models/sharedWithChannelTeamInfo'; import { createSharedWithChannelTeamInfoCollectionResponseFromDiscriminatorValue } from '../../../../../models/sharedWithChannelTeamInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedWithChannelTeamInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedWithChannelTeamInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts b/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts index 81ac372cc92..6f3a5aa6f66 100644 --- a/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts +++ b/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts b/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts index 94e7f420548..f88ced0f2a7 100644 --- a/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts +++ b/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../../models'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts b/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts index ac8a18e0ef3..0b5e360c10b 100644 --- a/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts +++ b/src/teams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMember } from '../../../../../../../../models/'; +import { type ConversationMember } from '../../../../../../../../models'; import { createConversationMemberFromDiscriminatorValue } from '../../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/sharedWithTeams/item/index.ts b/src/teams/item/channels/item/sharedWithTeams/item/index.ts index a4969851870..ec688257046 100644 --- a/src/teams/item/channels/item/sharedWithTeams/item/index.ts +++ b/src/teams/item/channels/item/sharedWithTeams/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../models/sharedWithChannelTeamInfo'; -import { AllowedMembersRequestBuilder } from './allowedMembers/'; -import { TeamRequestBuilder } from './team/'; +import { AllowedMembersRequestBuilder } from './allowedMembers'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/sharedWithTeams/item/team/index.ts b/src/teams/item/channels/item/sharedWithTeams/item/team/index.ts index 0d2c086e0c0..1a4d224712b 100644 --- a/src/teams/item/channels/item/sharedWithTeams/item/team/index.ts +++ b/src/teams/item/channels/item/sharedWithTeams/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type Team } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/tabs/count/index.ts b/src/teams/item/channels/item/tabs/count/index.ts index fe027b1040d..d84e2f97fa8 100644 --- a/src/teams/item/channels/item/tabs/count/index.ts +++ b/src/teams/item/channels/item/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/channels/item/tabs/index.ts b/src/teams/item/channels/item/tabs/index.ts index 457acc0f1c4..5075d5fdb18 100644 --- a/src/teams/item/channels/item/tabs/index.ts +++ b/src/teams/item/channels/item/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { @@ -90,7 +90,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createTeamsTabCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of TeamsTab @@ -118,7 +118,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/channels/item/tabs/item/index.ts b/src/teams/item/channels/item/tabs/item/index.ts index 2ca1fb21f22..2f31a07755a 100644 --- a/src/teams/item/channels/item/tabs/item/index.ts +++ b/src/teams/item/channels/item/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/channels/item/tabs/item/teamsApp/index.ts b/src/teams/item/channels/item/tabs/item/teamsApp/index.ts index ccdd9d6ebe8..a9fafd0bf45 100644 --- a/src/teams/item/channels/item/tabs/item/teamsApp/index.ts +++ b/src/teams/item/channels/item/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/clone/clonePostRequestBody.ts b/src/teams/item/clone/clonePostRequestBody.ts deleted file mode 100644 index bf4ffd76a09..00000000000 --- a/src/teams/item/clone/clonePostRequestBody.ts +++ /dev/null @@ -1,62 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { ClonableTeamParts } from '../../../models/clonableTeamParts'; -import { TeamVisibilityType } from '../../../models/teamVisibilityType'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ClonePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The classification property - */ - classification?: string; - /** - * The description property - */ - description?: string; - /** - * The displayName property - */ - displayName?: string; - /** - * The mailNickname property - */ - mailNickname?: string; - /** - * The partsToClone property - */ - partsToClone?: ClonableTeamParts[]; - /** - * The visibility property - */ - visibility?: TeamVisibilityType; -} -export function createClonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoClonePostRequestBody; -} -export function deserializeIntoClonePostRequestBody(clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : Record void> { - return { - "classification": n => { clonePostRequestBody.classification = n.getStringValue(); }, - "description": n => { clonePostRequestBody.description = n.getStringValue(); }, - "displayName": n => { clonePostRequestBody.displayName = n.getStringValue(); }, - "mailNickname": n => { clonePostRequestBody.mailNickname = n.getStringValue(); }, - "partsToClone": n => { clonePostRequestBody.partsToClone = n.getCollectionOfEnumValues(ClonableTeamParts); }, - "visibility": n => { clonePostRequestBody.visibility = n.getEnumValue(TeamVisibilityType); }, - } -} -export function serializeClonePostRequestBody(writer: SerializationWriter, clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : void { - writer.writeStringValue("classification", clonePostRequestBody.classification); - writer.writeStringValue("description", clonePostRequestBody.description); - writer.writeStringValue("displayName", clonePostRequestBody.displayName); - writer.writeStringValue("mailNickname", clonePostRequestBody.mailNickname); - writer.writeEnumValue("partsToClone", clonePostRequestBody.partsToClone); - writer.writeEnumValue("visibility", clonePostRequestBody.visibility); - writer.writeAdditionalData(clonePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/clone/index.ts b/src/teams/item/clone/index.ts index 7c96aea0493..a45aca39f6f 100644 --- a/src/teams/item/clone/index.ts +++ b/src/teams/item/clone/index.ts @@ -1,11 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { ClonableTeamParts } from '../../../models/clonableTeamParts'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoClonePostRequestBody, serializeClonePostRequestBody, type ClonePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { TeamVisibilityType } from '../../../models/teamVisibilityType'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ClonePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The classification property + */ + classification?: string; + /** + * The description property + */ + description?: string; + /** + * The displayName property + */ + displayName?: string; + /** + * The mailNickname property + */ + mailNickname?: string; + /** + * The partsToClone property + */ + partsToClone?: ClonableTeamParts[]; + /** + * The visibility property + */ + visibility?: TeamVisibilityType; +} +export function createClonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoClonePostRequestBody; +} +export function deserializeIntoClonePostRequestBody(clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : Record void> { + return { + "classification": n => { clonePostRequestBody.classification = n.getStringValue(); }, + "description": n => { clonePostRequestBody.description = n.getStringValue(); }, + "displayName": n => { clonePostRequestBody.displayName = n.getStringValue(); }, + "mailNickname": n => { clonePostRequestBody.mailNickname = n.getStringValue(); }, + "partsToClone": n => { clonePostRequestBody.partsToClone = n.getCollectionOfEnumValues(ClonableTeamParts); }, + "visibility": n => { clonePostRequestBody.visibility = n.getEnumValue(TeamVisibilityType); }, + } +} +export function serializeClonePostRequestBody(writer: SerializationWriter, clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : void { + writer.writeStringValue("classification", clonePostRequestBody.classification); + writer.writeStringValue("description", clonePostRequestBody.description); + writer.writeStringValue("displayName", clonePostRequestBody.displayName); + writer.writeStringValue("mailNickname", clonePostRequestBody.mailNickname); + writer.writeEnumValue("partsToClone", clonePostRequestBody.partsToClone); + writer.writeEnumValue("visibility", clonePostRequestBody.visibility); + writer.writeAdditionalData(clonePostRequestBody.additionalData); +} /** * Provides operations to call the clone method. */ diff --git a/src/teams/item/completeMigration/index.ts b/src/teams/item/completeMigration/index.ts index 178e8e2ec23..397649016d1 100644 --- a/src/teams/item/completeMigration/index.ts +++ b/src/teams/item/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/group/index.ts b/src/teams/item/group/index.ts index 3b7c5468d27..4e7e63c7ee2 100644 --- a/src/teams/item/group/index.ts +++ b/src/teams/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../models/'; +import { type Group } from '../../../models'; import { createGroupFromDiscriminatorValue } from '../../../models/group'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/teams/item/group/serviceProvisioningErrors/count/index.ts b/src/teams/item/group/serviceProvisioningErrors/count/index.ts index c8f0589a962..266fa50c67b 100644 --- a/src/teams/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/teams/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/group/serviceProvisioningErrors/index.ts b/src/teams/item/group/serviceProvisioningErrors/index.ts index 6ff325d0021..496ddb59388 100644 --- a/src/teams/item/group/serviceProvisioningErrors/index.ts +++ b/src/teams/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/incomingChannels/count/index.ts b/src/teams/item/incomingChannels/count/index.ts index d841c020e0d..27ca7bd489b 100644 --- a/src/teams/item/incomingChannels/count/index.ts +++ b/src/teams/item/incomingChannels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/incomingChannels/index.ts b/src/teams/item/incomingChannels/index.ts index c691285ec12..e7ac808857b 100644 --- a/src/teams/item/incomingChannels/index.ts +++ b/src/teams/item/incomingChannels/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../models/'; +import { type ChannelCollectionResponse } from '../../../models'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IncomingChannelsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/incomingChannels/item/index.ts b/src/teams/item/incomingChannels/item/index.ts index 40daae9d027..743961c216f 100644 --- a/src/teams/item/incomingChannels/item/index.ts +++ b/src/teams/item/incomingChannels/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Channel } from '../../../../models/'; +import { type Channel } from '../../../../models'; import { createChannelFromDiscriminatorValue } from '../../../../models/channel'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/index.ts b/src/teams/item/index.ts index 908b7251824..748cda39e7c 100644 --- a/src/teams/item/index.ts +++ b/src/teams/item/index.ts @@ -1,27 +1,27 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue, deserializeIntoTeam, serializeTeam, type Team } from '../../models/team'; -import { AllChannelsRequestBuilder } from './allChannels/'; -import { ArchiveRequestBuilder } from './archive/'; -import { ChannelsRequestBuilder } from './channels/'; -import { CloneRequestBuilder } from './clone/'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { GroupRequestBuilder } from './group/'; -import { IncomingChannelsRequestBuilder } from './incomingChannels/'; -import { InstalledAppsRequestBuilder } from './installedApps/'; -import { MembersRequestBuilder } from './members/'; -import { OperationsRequestBuilder } from './operations/'; -import { PermissionGrantsRequestBuilder } from './permissionGrants/'; -import { PhotoRequestBuilder } from './photo/'; -import { PrimaryChannelRequestBuilder } from './primaryChannel/'; -import { ScheduleRequestBuilder } from './schedule/'; -import { SendActivityNotificationRequestBuilder } from './sendActivityNotification/'; -import { TagsRequestBuilder } from './tags/'; -import { TemplateRequestBuilder } from './template/'; -import { UnarchiveRequestBuilder } from './unarchive/'; +import { AllChannelsRequestBuilder } from './allChannels'; +import { ArchiveRequestBuilder } from './archive'; +import { ChannelsRequestBuilder } from './channels'; +import { CloneRequestBuilder } from './clone'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { GroupRequestBuilder } from './group'; +import { IncomingChannelsRequestBuilder } from './incomingChannels'; +import { InstalledAppsRequestBuilder } from './installedApps'; +import { MembersRequestBuilder } from './members'; +import { OperationsRequestBuilder } from './operations'; +import { PermissionGrantsRequestBuilder } from './permissionGrants'; +import { PhotoRequestBuilder } from './photo'; +import { PrimaryChannelRequestBuilder } from './primaryChannel'; +import { ScheduleRequestBuilder } from './schedule'; +import { SendActivityNotificationRequestBuilder } from './sendActivityNotification'; +import { TagsRequestBuilder } from './tags'; +import { TemplateRequestBuilder } from './template'; +import { UnarchiveRequestBuilder } from './unarchive'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/installedApps/count/index.ts b/src/teams/item/installedApps/count/index.ts index 04b56f011b9..ff9f0519a04 100644 --- a/src/teams/item/installedApps/count/index.ts +++ b/src/teams/item/installedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/installedApps/index.ts b/src/teams/item/installedApps/index.ts index 2e3c79c3f36..4e8aed58f44 100644 --- a/src/teams/item/installedApps/index.ts +++ b/src/teams/item/installedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppInstallationCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TeamsAppInstallationCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../models/teamsAppInstallation'; import { createTeamsAppInstallationCollectionResponseFromDiscriminatorValue } from '../../../models/teamsAppInstallationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAppInstallationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAppInstallationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstalledAppsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/installedApps/item/index.ts b/src/teams/item/installedApps/item/index.ts index 138d2f7f91d..b61b3733b89 100644 --- a/src/teams/item/installedApps/item/index.ts +++ b/src/teams/item/installedApps/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../../models/teamsAppInstallation'; -import { TeamsAppRequestBuilder } from './teamsApp/'; -import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition/'; -import { UpgradeRequestBuilder } from './upgrade/'; +import { TeamsAppRequestBuilder } from './teamsApp'; +import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition'; +import { UpgradeRequestBuilder } from './upgrade'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsAppInstallationItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/installedApps/item/teamsApp/index.ts b/src/teams/item/installedApps/item/teamsApp/index.ts index f541d8a55e6..af361bdb338 100644 --- a/src/teams/item/installedApps/item/teamsApp/index.ts +++ b/src/teams/item/installedApps/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/installedApps/item/teamsAppDefinition/index.ts b/src/teams/item/installedApps/item/teamsAppDefinition/index.ts index 10660b4b390..ff90748f024 100644 --- a/src/teams/item/installedApps/item/teamsAppDefinition/index.ts +++ b/src/teams/item/installedApps/item/teamsAppDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppDefinition } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsAppDefinition } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppDefinitionFromDiscriminatorValue } from '../../../../../models/teamsAppDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/installedApps/item/upgrade/index.ts b/src/teams/item/installedApps/item/upgrade/index.ts index f0edea97084..f6a34ef1e6c 100644 --- a/src/teams/item/installedApps/item/upgrade/index.ts +++ b/src/teams/item/installedApps/item/upgrade/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUpgradePostRequestBody, serializeUpgradePostRequestBody, type UpgradePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../models/teamsAppPermissionSet'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpgradePostRequestBody; +} +export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { + return { + "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, + } +} +export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { + writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); + writer.writeAdditionalData(upgradePostRequestBody.additionalData); +} +export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The consentedPermissionSet property + */ + consentedPermissionSet?: TeamsAppPermissionSet; +} /** * Provides operations to call the upgrade method. */ diff --git a/src/teams/item/installedApps/item/upgrade/upgradePostRequestBody.ts b/src/teams/item/installedApps/item/upgrade/upgradePostRequestBody.ts deleted file mode 100644 index b49752a10b1..00000000000 --- a/src/teams/item/installedApps/item/upgrade/upgradePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../models/teamsAppPermissionSet'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpgradePostRequestBody; -} -export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { - return { - "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, - } -} -export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { - writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); - writer.writeAdditionalData(upgradePostRequestBody.additionalData); -} -export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The consentedPermissionSet property - */ - consentedPermissionSet?: TeamsAppPermissionSet; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/members/add/index.ts b/src/teams/item/members/add/index.ts index f4c335e14ca..431520a5c81 100644 --- a/src/teams/item/members/add/index.ts +++ b/src/teams/item/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../models/conversationMember'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/teams/item/members/count/index.ts b/src/teams/item/members/count/index.ts index 3077dca8a13..373131aa93f 100644 --- a/src/teams/item/members/count/index.ts +++ b/src/teams/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/members/index.ts b/src/teams/item/members/index.ts index 3939267d0b0..43590a0e795 100644 --- a/src/teams/item/members/index.ts +++ b/src/teams/item/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/teams/item/members/item/index.ts b/src/teams/item/members/item/index.ts index 5b802b9e35e..90a550136c3 100644 --- a/src/teams/item/members/item/index.ts +++ b/src/teams/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../models/conversationMember'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/operations/count/index.ts b/src/teams/item/operations/count/index.ts index f032189923a..6032b534848 100644 --- a/src/teams/item/operations/count/index.ts +++ b/src/teams/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/operations/index.ts b/src/teams/item/operations/index.ts index 9b5d0108490..1118b7c47ed 100644 --- a/src/teams/item/operations/index.ts +++ b/src/teams/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAsyncOperationCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TeamsAsyncOperationCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamsAsyncOperationFromDiscriminatorValue, deserializeIntoTeamsAsyncOperation, serializeTeamsAsyncOperation, type TeamsAsyncOperation } from '../../../models/teamsAsyncOperation'; import { createTeamsAsyncOperationCollectionResponseFromDiscriminatorValue } from '../../../models/teamsAsyncOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAsyncOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAsyncOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/operations/item/index.ts b/src/teams/item/operations/item/index.ts index 4ce1b4f9508..cfac775d3e2 100644 --- a/src/teams/item/operations/item/index.ts +++ b/src/teams/item/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsAsyncOperationFromDiscriminatorValue, deserializeIntoTeamsAsyncOperation, serializeTeamsAsyncOperation, type TeamsAsyncOperation } from '../../../../models/teamsAsyncOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/permissionGrants/count/index.ts b/src/teams/item/permissionGrants/count/index.ts index 6f6848015ce..fd88bad241c 100644 --- a/src/teams/item/permissionGrants/count/index.ts +++ b/src/teams/item/permissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/permissionGrants/index.ts b/src/teams/item/permissionGrants/index.ts index 2d83b2d8005..60a466b3a33 100644 --- a/src/teams/item/permissionGrants/index.ts +++ b/src/teams/item/permissionGrants/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../models/resourceSpecificPermissionGrant'; import { createResourceSpecificPermissionGrantCollectionResponseFromDiscriminatorValue } from '../../../models/resourceSpecificPermissionGrantCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/permissionGrants/item/index.ts b/src/teams/item/permissionGrants/item/index.ts index fc4d7cc980a..9368f8257f6 100644 --- a/src/teams/item/permissionGrants/item/index.ts +++ b/src/teams/item/permissionGrants/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../models/resourceSpecificPermissionGrant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/photo/index.ts b/src/teams/item/photo/index.ts index aa2b0eee0c7..d4b36643d97 100644 --- a/src/teams/item/photo/index.ts +++ b/src/teams/item/photo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue, deserializeIntoProfilePhoto, serializeProfilePhoto, type ProfilePhoto } from '../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotoRequestBuilderGetQueryParameters { diff --git a/src/teams/item/photo/value/index.ts b/src/teams/item/photo/value/index.ts index c6d2a11276d..9872044bcfc 100644 --- a/src/teams/item/photo/value/index.ts +++ b/src/teams/item/photo/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/completeMigration/index.ts b/src/teams/item/primaryChannel/completeMigration/index.ts index 02df3869a4d..b07c5f36dd1 100644 --- a/src/teams/item/primaryChannel/completeMigration/index.ts +++ b/src/teams/item/primaryChannel/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts b/src/teams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts deleted file mode 100644 index 1de9a049b82..00000000000 --- a/src/teams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; -} -export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { - return { - "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, - } -} -export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { - writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); - writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts b/src/teams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts index 31962225d9d..94cb70401ff 100644 --- a/src/teams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts +++ b/src/teams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts @@ -1,12 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue } from './'; -import { type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; +} +export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { + return { + "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, + } +} +export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /** * Usage: tenantId='@tenantId' @@ -21,6 +38,10 @@ export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalName */ userPrincipalName?: string; } +export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { + writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); + writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); +} /** * Provides operations to call the doesUserHaveAccess method. */ diff --git a/src/teams/item/primaryChannel/filesFolder/content/index.ts b/src/teams/item/primaryChannel/filesFolder/content/index.ts index e07d95c2a62..210c1e1c6fa 100644 --- a/src/teams/item/primaryChannel/filesFolder/content/index.ts +++ b/src/teams/item/primaryChannel/filesFolder/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../models/'; +import { type DriveItem } from '../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../models/driveItem'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/filesFolder/index.ts b/src/teams/item/primaryChannel/filesFolder/index.ts index 4776b395242..4f7716d2b9c 100644 --- a/src/teams/item/primaryChannel/filesFolder/index.ts +++ b/src/teams/item/primaryChannel/filesFolder/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../models/'; +import { type DriveItem } from '../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../models/driveItem'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/index.ts b/src/teams/item/primaryChannel/index.ts index d6274d0d8db..b911f8ebd91 100644 --- a/src/teams/item/primaryChannel/index.ts +++ b/src/teams/item/primaryChannel/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../models/channel'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/'; -import { FilesFolderRequestBuilder } from './filesFolder/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { ProvisionEmailRequestBuilder } from './provisionEmail/'; -import { RemoveEmailRequestBuilder } from './removeEmail/'; -import { SharedWithTeamsRequestBuilder } from './sharedWithTeams/'; -import { TabsRequestBuilder } from './tabs/'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName'; +import { FilesFolderRequestBuilder } from './filesFolder'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { ProvisionEmailRequestBuilder } from './provisionEmail'; +import { RemoveEmailRequestBuilder } from './removeEmail'; +import { SharedWithTeamsRequestBuilder } from './sharedWithTeams'; +import { TabsRequestBuilder } from './tabs'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrimaryChannelRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/members/add/index.ts b/src/teams/item/primaryChannel/members/add/index.ts index 5e58b6ef02e..65617dc7c5c 100644 --- a/src/teams/item/primaryChannel/members/add/index.ts +++ b/src/teams/item/primaryChannel/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/teams/item/primaryChannel/members/count/index.ts b/src/teams/item/primaryChannel/members/count/index.ts index d92baf25a3f..9caf0b22154 100644 --- a/src/teams/item/primaryChannel/members/count/index.ts +++ b/src/teams/item/primaryChannel/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/members/index.ts b/src/teams/item/primaryChannel/members/index.ts index a6c537abcc3..d0e1acc7f05 100644 --- a/src/teams/item/primaryChannel/members/index.ts +++ b/src/teams/item/primaryChannel/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0|Find more info here} */ public post(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/primaryChannel/members/item/index.ts b/src/teams/item/primaryChannel/members/item/index.ts index 2f9d59a00f7..8ca9b7139bb 100644 --- a/src/teams/item/primaryChannel/members/item/index.ts +++ b/src/teams/item/primaryChannel/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -29,9 +29,9 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}"); }; /** - * 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. - * @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} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -60,11 +60,11 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -77,7 +77,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation */ @@ -99,7 +99,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/primaryChannel/messages/count/index.ts b/src/teams/item/primaryChannel/messages/count/index.ts index 1ad2118f310..6633a8165e4 100644 --- a/src/teams/item/primaryChannel/messages/count/index.ts +++ b/src/teams/item/primaryChannel/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/delta/index.ts b/src/teams/item/primaryChannel/messages/delta/index.ts index 394a958a9da..0ae8081604f 100644 --- a/src/teams/item/primaryChannel/messages/delta/index.ts +++ b/src/teams/item/primaryChannel/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teams/item/primaryChannel/messages/index.ts b/src/teams/item/primaryChannel/messages/index.ts index c01b1ceb7d4..5c0de2efc41 100644 --- a/src/teams/item/primaryChannel/messages/index.ts +++ b/src/teams/item/primaryChannel/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/primaryChannel/messages/item/hostedContents/count/index.ts b/src/teams/item/primaryChannel/messages/item/hostedContents/count/index.ts index 06e62ec4d78..04bcffa1753 100644 --- a/src/teams/item/primaryChannel/messages/item/hostedContents/count/index.ts +++ b/src/teams/item/primaryChannel/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/hostedContents/index.ts b/src/teams/item/primaryChannel/messages/item/hostedContents/index.ts index ef79b822748..752d42e65d2 100644 --- a/src/teams/item/primaryChannel/messages/item/hostedContents/index.ts +++ b/src/teams/item/primaryChannel/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/messages/item/hostedContents/item/index.ts b/src/teams/item/primaryChannel/messages/item/hostedContents/item/index.ts index 6ccbfa9165c..28a1409d773 100644 --- a/src/teams/item/primaryChannel/messages/item/hostedContents/item/index.ts +++ b/src/teams/item/primaryChannel/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/messages/item/hostedContents/item/value/index.ts b/src/teams/item/primaryChannel/messages/item/hostedContents/item/value/index.ts index 77f63b152af..a037595a1da 100644 --- a/src/teams/item/primaryChannel/messages/item/hostedContents/item/value/index.ts +++ b/src/teams/item/primaryChannel/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/index.ts b/src/teams/item/primaryChannel/messages/item/index.ts index cb442f3b61b..407ad6b540f 100644 --- a/src/teams/item/primaryChannel/messages/item/index.ts +++ b/src/teams/item/primaryChannel/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/messages/item/replies/count/index.ts b/src/teams/item/primaryChannel/messages/item/replies/count/index.ts index 306fdf56922..b787611c618 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/count/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/replies/delta/index.ts b/src/teams/item/primaryChannel/messages/item/replies/delta/index.ts index 58e12609b4b..59d96a1d51a 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/delta/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teams/item/primaryChannel/messages/item/replies/index.ts b/src/teams/item/primaryChannel/messages/item/replies/index.ts index 402887ce4ea..145ac3c821b 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts index 73fcae3676e..948b5262de2 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/index.ts index c349b350052..83d89d62e07 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts index ceb2313728e..fe127a661c2 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts index fe70ac24180..45b403a0b0c 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/index.ts index 6b93f6bf291..acdb34f9a98 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/setReaction/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/setReaction/index.ts index 1f90630a85a..0aa42275184 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/setReaction/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/teams/item/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/teams/item/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/softDelete/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/softDelete/index.ts index e28e3ef3d2f..8e73c8db84a 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/softDelete/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts index ee70015971d..3d508b4fd5d 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/unsetReaction/index.ts b/src/teams/item/primaryChannel/messages/item/replies/item/unsetReaction/index.ts index 882570efa3e..d97035dc117 100644 --- a/src/teams/item/primaryChannel/messages/item/replies/item/unsetReaction/index.ts +++ b/src/teams/item/primaryChannel/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/teams/item/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/teams/item/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/teams/item/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/primaryChannel/messages/item/setReaction/index.ts b/src/teams/item/primaryChannel/messages/item/setReaction/index.ts index a3ff0082fed..2fe5e174288 100644 --- a/src/teams/item/primaryChannel/messages/item/setReaction/index.ts +++ b/src/teams/item/primaryChannel/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/teams/item/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts b/src/teams/item/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/teams/item/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/primaryChannel/messages/item/softDelete/index.ts b/src/teams/item/primaryChannel/messages/item/softDelete/index.ts index 85db6b86f0a..800a1404a1e 100644 --- a/src/teams/item/primaryChannel/messages/item/softDelete/index.ts +++ b/src/teams/item/primaryChannel/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/undoSoftDelete/index.ts b/src/teams/item/primaryChannel/messages/item/undoSoftDelete/index.ts index 4070dd22d43..25869e71c58 100644 --- a/src/teams/item/primaryChannel/messages/item/undoSoftDelete/index.ts +++ b/src/teams/item/primaryChannel/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/messages/item/unsetReaction/index.ts b/src/teams/item/primaryChannel/messages/item/unsetReaction/index.ts index 19973122bc3..0f21a6fa0e2 100644 --- a/src/teams/item/primaryChannel/messages/item/unsetReaction/index.ts +++ b/src/teams/item/primaryChannel/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/teams/item/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/teams/item/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/teams/item/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/primaryChannel/provisionEmail/index.ts b/src/teams/item/primaryChannel/provisionEmail/index.ts index 33dc5fe7e78..0ab9ac5b48e 100644 --- a/src/teams/item/primaryChannel/provisionEmail/index.ts +++ b/src/teams/item/primaryChannel/provisionEmail/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProvisionChannelEmailResult } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ProvisionChannelEmailResult } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createProvisionChannelEmailResultFromDiscriminatorValue } from '../../../../models/provisionChannelEmailResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/removeEmail/index.ts b/src/teams/item/primaryChannel/removeEmail/index.ts index b411c092250..8ed79b69c4c 100644 --- a/src/teams/item/primaryChannel/removeEmail/index.ts +++ b/src/teams/item/primaryChannel/removeEmail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/sharedWithTeams/count/index.ts b/src/teams/item/primaryChannel/sharedWithTeams/count/index.ts index 79795b91ea0..94f709109fa 100644 --- a/src/teams/item/primaryChannel/sharedWithTeams/count/index.ts +++ b/src/teams/item/primaryChannel/sharedWithTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/sharedWithTeams/index.ts b/src/teams/item/primaryChannel/sharedWithTeams/index.ts index 21d5c1df83b..2bff0a1231e 100644 --- a/src/teams/item/primaryChannel/sharedWithTeams/index.ts +++ b/src/teams/item/primaryChannel/sharedWithTeams/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../models/sharedWithChannelTeamInfo'; import { createSharedWithChannelTeamInfoCollectionResponseFromDiscriminatorValue } from '../../../../models/sharedWithChannelTeamInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedWithChannelTeamInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedWithChannelTeamInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts b/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts index f4766c39926..f76d1b25735 100644 --- a/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts +++ b/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts b/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts index 61dd9b6773d..01dec873f31 100644 --- a/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts +++ b/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../models'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts b/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts index 5db851a3131..a1fc163e2e0 100644 --- a/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts +++ b/src/teams/item/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMember } from '../../../../../../../models/'; +import { type ConversationMember } from '../../../../../../../models'; import { createConversationMemberFromDiscriminatorValue } from '../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/sharedWithTeams/item/index.ts b/src/teams/item/primaryChannel/sharedWithTeams/item/index.ts index f84011b4a4f..78ccde7847b 100644 --- a/src/teams/item/primaryChannel/sharedWithTeams/item/index.ts +++ b/src/teams/item/primaryChannel/sharedWithTeams/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../models/sharedWithChannelTeamInfo'; -import { AllowedMembersRequestBuilder } from './allowedMembers/'; -import { TeamRequestBuilder } from './team/'; +import { AllowedMembersRequestBuilder } from './allowedMembers'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/sharedWithTeams/item/team/index.ts b/src/teams/item/primaryChannel/sharedWithTeams/item/team/index.ts index 65fa173811c..1156614792b 100644 --- a/src/teams/item/primaryChannel/sharedWithTeams/item/team/index.ts +++ b/src/teams/item/primaryChannel/sharedWithTeams/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type Team } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/tabs/count/index.ts b/src/teams/item/primaryChannel/tabs/count/index.ts index 921b8205c62..ffbff9baf5a 100644 --- a/src/teams/item/primaryChannel/tabs/count/index.ts +++ b/src/teams/item/primaryChannel/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/primaryChannel/tabs/index.ts b/src/teams/item/primaryChannel/tabs/index.ts index b4341326c77..e218c765d2f 100644 --- a/src/teams/item/primaryChannel/tabs/index.ts +++ b/src/teams/item/primaryChannel/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { @@ -90,7 +90,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createTeamsTabCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of TeamsTab @@ -118,7 +118,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teams/item/primaryChannel/tabs/item/index.ts b/src/teams/item/primaryChannel/tabs/item/index.ts index 9a16058ae9d..8230c29a331 100644 --- a/src/teams/item/primaryChannel/tabs/item/index.ts +++ b/src/teams/item/primaryChannel/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/primaryChannel/tabs/item/teamsApp/index.ts b/src/teams/item/primaryChannel/tabs/item/teamsApp/index.ts index 93e4466d44e..c1bbd607f5b 100644 --- a/src/teams/item/primaryChannel/tabs/item/teamsApp/index.ts +++ b/src/teams/item/primaryChannel/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/index.ts b/src/teams/item/schedule/index.ts index e075e2dacfd..99415680b7f 100644 --- a/src/teams/item/schedule/index.ts +++ b/src/teams/item/schedule/index.ts @@ -1,19 +1,19 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createScheduleFromDiscriminatorValue, deserializeIntoSchedule, serializeSchedule, type Schedule } from '../../../models/schedule'; -import { OfferShiftRequestsRequestBuilder } from './offerShiftRequests/'; -import { OpenShiftChangeRequestsRequestBuilder } from './openShiftChangeRequests/'; -import { OpenShiftsRequestBuilder } from './openShifts/'; -import { SchedulingGroupsRequestBuilder } from './schedulingGroups/'; -import { ShareRequestBuilder } from './share/'; -import { ShiftsRequestBuilder } from './shifts/'; -import { SwapShiftsChangeRequestsRequestBuilder } from './swapShiftsChangeRequests/'; -import { TimeOffReasonsRequestBuilder } from './timeOffReasons/'; -import { TimeOffRequestsRequestBuilder } from './timeOffRequests/'; -import { TimesOffRequestBuilder } from './timesOff/'; +import { OfferShiftRequestsRequestBuilder } from './offerShiftRequests'; +import { OpenShiftChangeRequestsRequestBuilder } from './openShiftChangeRequests'; +import { OpenShiftsRequestBuilder } from './openShifts'; +import { SchedulingGroupsRequestBuilder } from './schedulingGroups'; +import { ShareRequestBuilder } from './share'; +import { ShiftsRequestBuilder } from './shifts'; +import { SwapShiftsChangeRequestsRequestBuilder } from './swapShiftsChangeRequests'; +import { TimeOffReasonsRequestBuilder } from './timeOffReasons'; +import { TimeOffRequestsRequestBuilder } from './timeOffRequests'; +import { TimesOffRequestBuilder } from './timesOff'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScheduleRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/offerShiftRequests/count/index.ts b/src/teams/item/schedule/offerShiftRequests/count/index.ts index 1287b4ac527..debbadf0083 100644 --- a/src/teams/item/schedule/offerShiftRequests/count/index.ts +++ b/src/teams/item/schedule/offerShiftRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/offerShiftRequests/index.ts b/src/teams/item/schedule/offerShiftRequests/index.ts index 26d7661b80c..8be48fe738f 100644 --- a/src/teams/item/schedule/offerShiftRequests/index.ts +++ b/src/teams/item/schedule/offerShiftRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OfferShiftRequestCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OfferShiftRequestCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOfferShiftRequestFromDiscriminatorValue, deserializeIntoOfferShiftRequest, serializeOfferShiftRequest, type OfferShiftRequest } from '../../../../models/offerShiftRequest'; import { createOfferShiftRequestCollectionResponseFromDiscriminatorValue } from '../../../../models/offerShiftRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OfferShiftRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OfferShiftRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OfferShiftRequestsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/offerShiftRequests/item/index.ts b/src/teams/item/schedule/offerShiftRequests/item/index.ts index 60dd6137d96..6250a64b0b6 100644 --- a/src/teams/item/schedule/offerShiftRequests/item/index.ts +++ b/src/teams/item/schedule/offerShiftRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOfferShiftRequestFromDiscriminatorValue, deserializeIntoOfferShiftRequest, serializeOfferShiftRequest, type OfferShiftRequest } from '../../../../../models/offerShiftRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/openShiftChangeRequests/count/index.ts b/src/teams/item/schedule/openShiftChangeRequests/count/index.ts index ea98bb642f6..fefc558c9ed 100644 --- a/src/teams/item/schedule/openShiftChangeRequests/count/index.ts +++ b/src/teams/item/schedule/openShiftChangeRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/openShiftChangeRequests/index.ts b/src/teams/item/schedule/openShiftChangeRequests/index.ts index e3d797d4702..893866c66c1 100644 --- a/src/teams/item/schedule/openShiftChangeRequests/index.ts +++ b/src/teams/item/schedule/openShiftChangeRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OpenShiftChangeRequestCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OpenShiftChangeRequestCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOpenShiftChangeRequestFromDiscriminatorValue, deserializeIntoOpenShiftChangeRequest, serializeOpenShiftChangeRequest, type OpenShiftChangeRequest } from '../../../../models/openShiftChangeRequest'; import { createOpenShiftChangeRequestCollectionResponseFromDiscriminatorValue } from '../../../../models/openShiftChangeRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OpenShiftChangeRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OpenShiftChangeRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OpenShiftChangeRequestsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/openShiftChangeRequests/item/index.ts b/src/teams/item/schedule/openShiftChangeRequests/item/index.ts index eb942cdb029..f40ac29b841 100644 --- a/src/teams/item/schedule/openShiftChangeRequests/item/index.ts +++ b/src/teams/item/schedule/openShiftChangeRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOpenShiftChangeRequestFromDiscriminatorValue, deserializeIntoOpenShiftChangeRequest, serializeOpenShiftChangeRequest, type OpenShiftChangeRequest } from '../../../../../models/openShiftChangeRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/openShifts/count/index.ts b/src/teams/item/schedule/openShifts/count/index.ts index ee92207db48..06b2e4ff0b4 100644 --- a/src/teams/item/schedule/openShifts/count/index.ts +++ b/src/teams/item/schedule/openShifts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/openShifts/index.ts b/src/teams/item/schedule/openShifts/index.ts index 995a8e6da18..6607d67d332 100644 --- a/src/teams/item/schedule/openShifts/index.ts +++ b/src/teams/item/schedule/openShifts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OpenShiftCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OpenShiftCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOpenShiftFromDiscriminatorValue, deserializeIntoOpenShift, serializeOpenShift, type OpenShift } from '../../../../models/openShift'; import { createOpenShiftCollectionResponseFromDiscriminatorValue } from '../../../../models/openShiftCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OpenShiftItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OpenShiftItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OpenShiftsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/openShifts/item/index.ts b/src/teams/item/schedule/openShifts/item/index.ts index b811e8e3063..9b4270b3e5c 100644 --- a/src/teams/item/schedule/openShifts/item/index.ts +++ b/src/teams/item/schedule/openShifts/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOpenShiftFromDiscriminatorValue, deserializeIntoOpenShift, serializeOpenShift, type OpenShift } from '../../../../../models/openShift'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/schedulingGroups/count/index.ts b/src/teams/item/schedule/schedulingGroups/count/index.ts index 81ea70b2607..cb7fcfc5c88 100644 --- a/src/teams/item/schedule/schedulingGroups/count/index.ts +++ b/src/teams/item/schedule/schedulingGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/schedulingGroups/index.ts b/src/teams/item/schedule/schedulingGroups/index.ts index 50926c6bd0d..a08f30976f5 100644 --- a/src/teams/item/schedule/schedulingGroups/index.ts +++ b/src/teams/item/schedule/schedulingGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SchedulingGroupCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SchedulingGroupCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSchedulingGroupFromDiscriminatorValue, deserializeIntoSchedulingGroup, serializeSchedulingGroup, type SchedulingGroup } from '../../../../models/schedulingGroup'; import { createSchedulingGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/schedulingGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SchedulingGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SchedulingGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchedulingGroupsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/schedulingGroups/item/index.ts b/src/teams/item/schedule/schedulingGroups/item/index.ts index 05e2ddc6dc2..6b95a022dc6 100644 --- a/src/teams/item/schedule/schedulingGroups/item/index.ts +++ b/src/teams/item/schedule/schedulingGroups/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSchedulingGroupFromDiscriminatorValue, deserializeIntoSchedulingGroup, serializeSchedulingGroup, type SchedulingGroup } from '../../../../../models/schedulingGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/share/index.ts b/src/teams/item/schedule/share/index.ts index 116ef68a129..6337d529ecd 100644 --- a/src/teams/item/schedule/share/index.ts +++ b/src/teams/item/schedule/share/index.ts @@ -1,11 +1,45 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSharePostRequestBody, serializeSharePostRequestBody, type SharePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSharePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSharePostRequestBody; +} +export function deserializeIntoSharePostRequestBody(sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : Record void> { + return { + "endDateTime": n => { sharePostRequestBody.endDateTime = n.getDateValue(); }, + "notifyTeam": n => { sharePostRequestBody.notifyTeam = n.getBooleanValue(); }, + "startDateTime": n => { sharePostRequestBody.startDateTime = n.getDateValue(); }, + } +} +export function serializeSharePostRequestBody(writer: SerializationWriter, sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : void { + writer.writeDateValue("endDateTime", sharePostRequestBody.endDateTime); + writer.writeBooleanValue("notifyTeam", sharePostRequestBody.notifyTeam); + writer.writeDateValue("startDateTime", sharePostRequestBody.startDateTime); + writer.writeAdditionalData(sharePostRequestBody.additionalData); +} +export interface SharePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The endDateTime property + */ + endDateTime?: Date; + /** + * The notifyTeam property + */ + notifyTeam?: boolean; + /** + * The startDateTime property + */ + startDateTime?: Date; +} /** * Provides operations to call the share method. */ diff --git a/src/teams/item/schedule/share/sharePostRequestBody.ts b/src/teams/item/schedule/share/sharePostRequestBody.ts deleted file mode 100644 index 6c1dabb3317..00000000000 --- a/src/teams/item/schedule/share/sharePostRequestBody.ts +++ /dev/null @@ -1,42 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSharePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSharePostRequestBody; -} -export function deserializeIntoSharePostRequestBody(sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : Record void> { - return { - "endDateTime": n => { sharePostRequestBody.endDateTime = n.getDateValue(); }, - "notifyTeam": n => { sharePostRequestBody.notifyTeam = n.getBooleanValue(); }, - "startDateTime": n => { sharePostRequestBody.startDateTime = n.getDateValue(); }, - } -} -export function serializeSharePostRequestBody(writer: SerializationWriter, sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : void { - writer.writeDateValue("endDateTime", sharePostRequestBody.endDateTime); - writer.writeBooleanValue("notifyTeam", sharePostRequestBody.notifyTeam); - writer.writeDateValue("startDateTime", sharePostRequestBody.startDateTime); - writer.writeAdditionalData(sharePostRequestBody.additionalData); -} -export interface SharePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The endDateTime property - */ - endDateTime?: Date; - /** - * The notifyTeam property - */ - notifyTeam?: boolean; - /** - * The startDateTime property - */ - startDateTime?: Date; -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/schedule/shifts/count/index.ts b/src/teams/item/schedule/shifts/count/index.ts index be3558a279c..70b1cd107f8 100644 --- a/src/teams/item/schedule/shifts/count/index.ts +++ b/src/teams/item/schedule/shifts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/shifts/index.ts b/src/teams/item/schedule/shifts/index.ts index 25695feadee..2a78ea11c5b 100644 --- a/src/teams/item/schedule/shifts/index.ts +++ b/src/teams/item/schedule/shifts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ShiftCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ShiftCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createShiftFromDiscriminatorValue, deserializeIntoShift, serializeShift, type Shift } from '../../../../models/shift'; import { createShiftCollectionResponseFromDiscriminatorValue } from '../../../../models/shiftCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ShiftItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ShiftItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ShiftsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/shifts/item/index.ts b/src/teams/item/schedule/shifts/item/index.ts index d87c645a1ac..0b74ee2c397 100644 --- a/src/teams/item/schedule/shifts/item/index.ts +++ b/src/teams/item/schedule/shifts/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createShiftFromDiscriminatorValue, deserializeIntoShift, serializeShift, type Shift } from '../../../../../models/shift'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/swapShiftsChangeRequests/count/index.ts b/src/teams/item/schedule/swapShiftsChangeRequests/count/index.ts index d38409c45ca..935afaf7c69 100644 --- a/src/teams/item/schedule/swapShiftsChangeRequests/count/index.ts +++ b/src/teams/item/schedule/swapShiftsChangeRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/swapShiftsChangeRequests/index.ts b/src/teams/item/schedule/swapShiftsChangeRequests/index.ts index 6c7d209f550..f76d067ca51 100644 --- a/src/teams/item/schedule/swapShiftsChangeRequests/index.ts +++ b/src/teams/item/schedule/swapShiftsChangeRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SwapShiftsChangeRequestCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SwapShiftsChangeRequestCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSwapShiftsChangeRequestFromDiscriminatorValue, deserializeIntoSwapShiftsChangeRequest, serializeSwapShiftsChangeRequest, type SwapShiftsChangeRequest } from '../../../../models/swapShiftsChangeRequest'; import { createSwapShiftsChangeRequestCollectionResponseFromDiscriminatorValue } from '../../../../models/swapShiftsChangeRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SwapShiftsChangeRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SwapShiftsChangeRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/swapShiftsChangeRequests/item/index.ts b/src/teams/item/schedule/swapShiftsChangeRequests/item/index.ts index 292abd2f276..ac90de1c7a3 100644 --- a/src/teams/item/schedule/swapShiftsChangeRequests/item/index.ts +++ b/src/teams/item/schedule/swapShiftsChangeRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSwapShiftsChangeRequestFromDiscriminatorValue, deserializeIntoSwapShiftsChangeRequest, serializeSwapShiftsChangeRequest, type SwapShiftsChangeRequest } from '../../../../../models/swapShiftsChangeRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/timeOffReasons/count/index.ts b/src/teams/item/schedule/timeOffReasons/count/index.ts index 0e91dd41948..d5319bddeb5 100644 --- a/src/teams/item/schedule/timeOffReasons/count/index.ts +++ b/src/teams/item/schedule/timeOffReasons/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/timeOffReasons/index.ts b/src/teams/item/schedule/timeOffReasons/index.ts index f424acbd863..6f14fd08ed9 100644 --- a/src/teams/item/schedule/timeOffReasons/index.ts +++ b/src/teams/item/schedule/timeOffReasons/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffReasonCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TimeOffReasonCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTimeOffReasonFromDiscriminatorValue, deserializeIntoTimeOffReason, serializeTimeOffReason, type TimeOffReason } from '../../../../models/timeOffReason'; import { createTimeOffReasonCollectionResponseFromDiscriminatorValue } from '../../../../models/timeOffReasonCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffReasonItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffReasonItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimeOffReasonsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/timeOffReasons/item/index.ts b/src/teams/item/schedule/timeOffReasons/item/index.ts index 6a04035a47e..93bd6da7657 100644 --- a/src/teams/item/schedule/timeOffReasons/item/index.ts +++ b/src/teams/item/schedule/timeOffReasons/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeOffReasonFromDiscriminatorValue, deserializeIntoTimeOffReason, serializeTimeOffReason, type TimeOffReason } from '../../../../../models/timeOffReason'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/timeOffRequests/count/index.ts b/src/teams/item/schedule/timeOffRequests/count/index.ts index a7d5e11e533..15d0601259f 100644 --- a/src/teams/item/schedule/timeOffRequests/count/index.ts +++ b/src/teams/item/schedule/timeOffRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/timeOffRequests/index.ts b/src/teams/item/schedule/timeOffRequests/index.ts index 31b45a68a91..675fb946f79 100644 --- a/src/teams/item/schedule/timeOffRequests/index.ts +++ b/src/teams/item/schedule/timeOffRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffRequestCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TimeOffRequestCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTimeOffRequestFromDiscriminatorValue, deserializeIntoTimeOffRequest, serializeTimeOffRequest, type TimeOffRequest } from '../../../../models/timeOffRequest'; import { createTimeOffRequestCollectionResponseFromDiscriminatorValue } from '../../../../models/timeOffRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimeOffRequestsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/timeOffRequests/item/index.ts b/src/teams/item/schedule/timeOffRequests/item/index.ts index aacd964e263..9e515f5f842 100644 --- a/src/teams/item/schedule/timeOffRequests/item/index.ts +++ b/src/teams/item/schedule/timeOffRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeOffRequestFromDiscriminatorValue, deserializeIntoTimeOffRequest, serializeTimeOffRequest, type TimeOffRequest } from '../../../../../models/timeOffRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/timesOff/count/index.ts b/src/teams/item/schedule/timesOff/count/index.ts index c718b3858dc..6ea675e6986 100644 --- a/src/teams/item/schedule/timesOff/count/index.ts +++ b/src/teams/item/schedule/timesOff/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/schedule/timesOff/index.ts b/src/teams/item/schedule/timesOff/index.ts index e97580bb6d8..7d3c3a5d7a4 100644 --- a/src/teams/item/schedule/timesOff/index.ts +++ b/src/teams/item/schedule/timesOff/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TimeOffCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTimeOffFromDiscriminatorValue, deserializeIntoTimeOff, serializeTimeOff, type TimeOff } from '../../../../models/timeOff'; import { createTimeOffCollectionResponseFromDiscriminatorValue } from '../../../../models/timeOffCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimesOffRequestBuilderGetQueryParameters { diff --git a/src/teams/item/schedule/timesOff/item/index.ts b/src/teams/item/schedule/timesOff/item/index.ts index a0adaf1215e..42919cb66c3 100644 --- a/src/teams/item/schedule/timesOff/item/index.ts +++ b/src/teams/item/schedule/timesOff/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeOffFromDiscriminatorValue, deserializeIntoTimeOff, serializeTimeOff, type TimeOff } from '../../../../../models/timeOff'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/sendActivityNotification/index.ts b/src/teams/item/sendActivityNotification/index.ts index f1ab416cc7c..d1f7bfffef9 100644 --- a/src/teams/item/sendActivityNotification/index.ts +++ b/src/teams/item/sendActivityNotification/index.ts @@ -1,11 +1,67 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../models/itemBody'; +import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../models/keyValuePair'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoSendActivityNotificationPostRequestBody, serializeSendActivityNotificationPostRequestBody, type SendActivityNotificationPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../models/teamworkActivityTopic'; +import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../models/teamworkNotificationRecipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSendActivityNotificationPostRequestBody; +} +export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { + return { + "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, + "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, + "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, + "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, + "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, + "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, + } +} +export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activityType property + */ + activityType?: string; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The chainId property + */ + chainId?: number; + /** + * The previewText property + */ + previewText?: ItemBody; + /** + * The recipient property + */ + recipient?: TeamworkNotificationRecipient; + /** + * The templateParameters property + */ + templateParameters?: KeyValuePair[]; + /** + * The topic property + */ + topic?: TeamworkActivityTopic; +} +export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { + writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); + writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); + writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); + writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); + writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); + writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); + writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); +} /** * Provides operations to call the sendActivityNotification method. */ diff --git a/src/teams/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts b/src/teams/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts deleted file mode 100644 index c9b4e2546ed..00000000000 --- a/src/teams/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts +++ /dev/null @@ -1,64 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../models/itemBody'; -import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../models/keyValuePair'; -import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../models/teamworkActivityTopic'; -import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../models/teamworkNotificationRecipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSendActivityNotificationPostRequestBody; -} -export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { - return { - "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, - "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, - "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, - "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, - "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, - "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, - } -} -export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activityType property - */ - activityType?: string; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The chainId property - */ - chainId?: number; - /** - * The previewText property - */ - previewText?: ItemBody; - /** - * The recipient property - */ - recipient?: TeamworkNotificationRecipient; - /** - * The templateParameters property - */ - templateParameters?: KeyValuePair[]; - /** - * The topic property - */ - topic?: TeamworkActivityTopic; -} -export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { - writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); - writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); - writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); - writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); - writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); - writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); - writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/teams/item/tags/count/index.ts b/src/teams/item/tags/count/index.ts index 1d722eaf6d4..938315aa024 100644 --- a/src/teams/item/tags/count/index.ts +++ b/src/teams/item/tags/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/tags/index.ts b/src/teams/item/tags/index.ts index abad613deb0..b155c7de9e6 100644 --- a/src/teams/item/tags/index.ts +++ b/src/teams/item/tags/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamworkTagCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TeamworkTagCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamworkTagFromDiscriminatorValue, deserializeIntoTeamworkTag, serializeTeamworkTag, type TeamworkTag } from '../../../models/teamworkTag'; import { createTeamworkTagCollectionResponseFromDiscriminatorValue } from '../../../models/teamworkTagCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamworkTagItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamworkTagItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TagsRequestBuilderGetQueryParameters { diff --git a/src/teams/item/tags/item/index.ts b/src/teams/item/tags/item/index.ts index d654098e0ad..4ad43589958 100644 --- a/src/teams/item/tags/item/index.ts +++ b/src/teams/item/tags/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamworkTagFromDiscriminatorValue, deserializeIntoTeamworkTag, serializeTeamworkTag, type TeamworkTag } from '../../../../models/teamworkTag'; -import { MembersRequestBuilder } from './members/'; +import { MembersRequestBuilder } from './members'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamworkTagItemRequestBuilderGetQueryParameters { diff --git a/src/teams/item/tags/item/members/count/index.ts b/src/teams/item/tags/item/members/count/index.ts index 9383ca3338a..7b52c3c79a9 100644 --- a/src/teams/item/tags/item/members/count/index.ts +++ b/src/teams/item/tags/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/tags/item/members/index.ts b/src/teams/item/tags/item/members/index.ts index 11b99348855..0ab6f211583 100644 --- a/src/teams/item/tags/item/members/index.ts +++ b/src/teams/item/tags/item/members/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamworkTagMemberCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamworkTagMemberCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagMemberFromDiscriminatorValue, deserializeIntoTeamworkTagMember, serializeTeamworkTagMember, type TeamworkTagMember } from '../../../../../models/teamworkTagMember'; import { createTeamworkTagMemberCollectionResponseFromDiscriminatorValue } from '../../../../../models/teamworkTagMemberCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamworkTagMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamworkTagMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/teams/item/tags/item/members/item/index.ts b/src/teams/item/tags/item/members/item/index.ts index b455aa0c244..028364befe1 100644 --- a/src/teams/item/tags/item/members/item/index.ts +++ b/src/teams/item/tags/item/members/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagMemberFromDiscriminatorValue, deserializeIntoTeamworkTagMember, serializeTeamworkTagMember, type TeamworkTagMember } from '../../../../../../models/teamworkTagMember'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/template/index.ts b/src/teams/item/template/index.ts index d12c7a2db79..88615f45bd7 100644 --- a/src/teams/item/template/index.ts +++ b/src/teams/item/template/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTemplate } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TeamsTemplate } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamsTemplateFromDiscriminatorValue } from '../../../models/teamsTemplate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teams/item/unarchive/index.ts b/src/teams/item/unarchive/index.ts index 2895721f344..e287c0e39ed 100644 --- a/src/teams/item/unarchive/index.ts +++ b/src/teams/item/unarchive/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamsTemplates/count/index.ts b/src/teamsTemplates/count/index.ts index 39bc68b3d84..6d7664648cb 100644 --- a/src/teamsTemplates/count/index.ts +++ b/src/teamsTemplates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamsTemplates/index.ts b/src/teamsTemplates/index.ts index 3d089426ee9..fd3cecc9f6a 100644 --- a/src/teamsTemplates/index.ts +++ b/src/teamsTemplates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTemplateCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type TeamsTemplateCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createTeamsTemplateFromDiscriminatorValue, deserializeIntoTeamsTemplate, serializeTeamsTemplate, type TeamsTemplate } from '../models/teamsTemplate'; import { createTeamsTemplateCollectionResponseFromDiscriminatorValue } from '../models/teamsTemplateCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTemplateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTemplateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTemplatesRequestBuilderGetQueryParameters { diff --git a/src/teamsTemplates/item/index.ts b/src/teamsTemplates/item/index.ts index 2890b1ad69f..3c0ad5f3ec5 100644 --- a/src/teamsTemplates/item/index.ts +++ b/src/teamsTemplates/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTeamsTemplateFromDiscriminatorValue, deserializeIntoTeamsTemplate, serializeTeamsTemplate, type TeamsTemplate } from '../../models/teamsTemplate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/count/index.ts b/src/teamwork/deletedTeams/count/index.ts index cc3f7e0314f..4cb6d3b2b56 100644 --- a/src/teamwork/deletedTeams/count/index.ts +++ b/src/teamwork/deletedTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/getAllMessages/index.ts b/src/teamwork/deletedTeams/getAllMessages/index.ts index 5d456c21e42..e6494849c9f 100644 --- a/src/teamwork/deletedTeams/getAllMessages/index.ts +++ b/src/teamwork/deletedTeams/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../models/chatMessage'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teamwork/deletedTeams/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teamwork/deletedTeams/index.ts b/src/teamwork/deletedTeams/index.ts index 09742739419..6157124d74a 100644 --- a/src/teamwork/deletedTeams/index.ts +++ b/src/teamwork/deletedTeams/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeletedTeamCollectionResponse } from '../../models/'; +import { type DeletedTeamCollectionResponse } from '../../models'; import { createDeletedTeamFromDiscriminatorValue, deserializeIntoDeletedTeam, serializeDeletedTeam, type DeletedTeam } from '../../models/deletedTeam'; import { createDeletedTeamCollectionResponseFromDiscriminatorValue } from '../../models/deletedTeamCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { DeletedTeamItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { DeletedTeamItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeletedTeamsRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/count/index.ts b/src/teamwork/deletedTeams/item/channels/count/index.ts index c5b88603d24..66cf69c170f 100644 --- a/src/teamwork/deletedTeams/item/channels/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/getAllMessages/index.ts b/src/teamwork/deletedTeams/item/channels/getAllMessages/index.ts index cc6207b6179..b0177f2e281 100644 --- a/src/teamwork/deletedTeams/item/channels/getAllMessages/index.ts +++ b/src/teamwork/deletedTeams/item/channels/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/index.ts b/src/teamwork/deletedTeams/item/channels/index.ts index a96e73fda0f..ab926832388 100644 --- a/src/teamwork/deletedTeams/item/channels/index.ts +++ b/src/teamwork/deletedTeams/item/channels/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../../models/'; +import { type ChannelCollectionResponse } from '../../../../models'; import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../models/channel'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChannelsRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/completeMigration/index.ts b/src/teamwork/deletedTeams/item/channels/item/completeMigration/index.ts index 3ea16e25098..db8c0c290db 100644 --- a/src/teamwork/deletedTeams/item/channels/item/completeMigration/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts b/src/teamwork/deletedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts deleted file mode 100644 index 1de9a049b82..00000000000 --- a/src/teamwork/deletedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; -} -export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { - return { - "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, - } -} -export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { - writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); - writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts b/src/teamwork/deletedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts index 442178d8a22..2a5b1c6d1e9 100644 --- a/src/teamwork/deletedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts @@ -1,12 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue } from './'; -import { type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; +} +export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { + return { + "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, + } +} +export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /** * Usage: tenantId='@tenantId' @@ -21,6 +38,10 @@ export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalName */ userPrincipalName?: string; } +export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { + writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); + writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); +} /** * Provides operations to call the doesUserHaveAccess method. */ diff --git a/src/teamwork/deletedTeams/item/channels/item/filesFolder/content/index.ts b/src/teamwork/deletedTeams/item/channels/item/filesFolder/content/index.ts index 8f05b29fb29..8e493f89a08 100644 --- a/src/teamwork/deletedTeams/item/channels/item/filesFolder/content/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/filesFolder/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/filesFolder/index.ts b/src/teamwork/deletedTeams/item/channels/item/filesFolder/index.ts index 487cb1de1c5..331d49c6fec 100644 --- a/src/teamwork/deletedTeams/item/channels/item/filesFolder/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/filesFolder/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../models/'; +import { type DriveItem } from '../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/index.ts index dfc00127032..0d1679fda53 100644 --- a/src/teamwork/deletedTeams/item/channels/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../../models/channel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/'; -import { FilesFolderRequestBuilder } from './filesFolder/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { ProvisionEmailRequestBuilder } from './provisionEmail/'; -import { RemoveEmailRequestBuilder } from './removeEmail/'; -import { SharedWithTeamsRequestBuilder } from './sharedWithTeams/'; -import { TabsRequestBuilder } from './tabs/'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName'; +import { FilesFolderRequestBuilder } from './filesFolder'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { ProvisionEmailRequestBuilder } from './provisionEmail'; +import { RemoveEmailRequestBuilder } from './removeEmail'; +import { SharedWithTeamsRequestBuilder } from './sharedWithTeams'; +import { TabsRequestBuilder } from './tabs'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChannelItemRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/members/add/index.ts b/src/teamwork/deletedTeams/item/channels/item/members/add/index.ts index dc96eca78ea..77f485d5a9d 100644 --- a/src/teamwork/deletedTeams/item/channels/item/members/add/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/item/members/count/index.ts b/src/teamwork/deletedTeams/item/channels/item/members/count/index.ts index eb536f439b0..ce171ba2c71 100644 --- a/src/teamwork/deletedTeams/item/channels/item/members/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/members/index.ts b/src/teamwork/deletedTeams/item/channels/item/members/index.ts index 03ed36e8c51..b085fbc440c 100644 --- a/src/teamwork/deletedTeams/item/channels/item/members/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0|Find more info here} */ public post(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teamwork/deletedTeams/item/channels/item/members/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/members/item/index.ts index 9f644bd894c..c50eb8424fb 100644 --- a/src/teamwork/deletedTeams/item/channels/item/members/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -29,9 +29,9 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}"); }; /** - * 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. - * @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} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -60,11 +60,11 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -77,7 +77,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation */ @@ -99,7 +99,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/count/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/count/index.ts index aad7b55ed58..52c84c7f1e9 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/delta/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/delta/index.ts index faaa47ebebf..59d96a1d51a 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/delta/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/index.ts index 69a110776b8..97d2f285b39 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/count/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/count/index.ts index fe7c3a6debb..a9eb6b7b80e 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/index.ts index f5c55c5705a..b40874daca9 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/item/index.ts index 274d5a52dc8..d6ecf75b921 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/item/value/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/item/value/index.ts index 13e2ba57b5a..010b8f0ca30 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/item/value/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/index.ts index 31d478b4be7..4ee4d4afbeb 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/count/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/count/index.ts index 23d07330ec2..f485fb42039 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/delta/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/delta/index.ts index 2fc8bd7ebb6..293a6fdf13a 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/delta/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/index.ts index 625dd577245..461102ecefa 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts index 4a0fdea24ea..cbfa6dc543d 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/index.ts index fb347c1d9f1..3d27a155b38 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts index 7319132a8a5..36be28b9f8f 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts index e15aeaf1e94..6f4ff0aba47 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/index.ts index 4134d9d6806..df9eb6f9294 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/setReaction/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/setReaction/index.ts index 432fe85e265..3dd6656a5d8 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/setReaction/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/softDelete/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/softDelete/index.ts index 5f3e1dbed22..309f58ab15e 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/softDelete/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts index 50c6bc6a8dc..25535885d7e 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts index 755381e8700..207cc4a9871 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/setReaction/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/setReaction/index.ts index 359c1f347ee..3d5695ad97c 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/setReaction/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/softDelete/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/softDelete/index.ts index e48d995cfc8..2d9cc04e87e 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/softDelete/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/undoSoftDelete/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/undoSoftDelete/index.ts index 1120591e7ae..c6b74855b54 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/undoSoftDelete/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/unsetReaction/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/unsetReaction/index.ts index 19c8e5d20c6..4fe6fc3a957 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/unsetReaction/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/teamwork/deletedTeams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/teamwork/deletedTeams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/teamwork/deletedTeams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/teamwork/deletedTeams/item/channels/item/provisionEmail/index.ts b/src/teamwork/deletedTeams/item/channels/item/provisionEmail/index.ts index 6abee36b1a1..0f69f0a540c 100644 --- a/src/teamwork/deletedTeams/item/channels/item/provisionEmail/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/provisionEmail/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProvisionChannelEmailResult } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ProvisionChannelEmailResult } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createProvisionChannelEmailResultFromDiscriminatorValue } from '../../../../../../models/provisionChannelEmailResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/removeEmail/index.ts b/src/teamwork/deletedTeams/item/channels/item/removeEmail/index.ts index 9e7f92fcf3b..5fe545c7de5 100644 --- a/src/teamwork/deletedTeams/item/channels/item/removeEmail/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/removeEmail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/count/index.ts b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/count/index.ts index 42ac951af90..257b940c44b 100644 --- a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/index.ts b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/index.ts index 1bfb19dd71d..dc4c31dd0b0 100644 --- a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../models/sharedWithChannelTeamInfo'; import { createSharedWithChannelTeamInfoCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sharedWithChannelTeamInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedWithChannelTeamInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedWithChannelTeamInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts index fdc44fa9aa2..def9834f55d 100644 --- a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts index eb301c82314..c6618614cd5 100644 --- a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../../../models'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts index ccc2b547692..a4ed9d778ad 100644 --- a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMember } from '../../../../../../../../../models/'; +import { type ConversationMember } from '../../../../../../../../../models'; import { createConversationMemberFromDiscriminatorValue } from '../../../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/index.ts index 642a6919c69..7b2535dd857 100644 --- a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../../models/sharedWithChannelTeamInfo'; -import { AllowedMembersRequestBuilder } from './allowedMembers/'; -import { TeamRequestBuilder } from './team/'; +import { AllowedMembersRequestBuilder } from './allowedMembers'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/team/index.ts b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/team/index.ts index af9d0c820d6..2e3be20a424 100644 --- a/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/team/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/sharedWithTeams/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type Team } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/tabs/count/index.ts b/src/teamwork/deletedTeams/item/channels/item/tabs/count/index.ts index 4656900e272..94f975fc301 100644 --- a/src/teamwork/deletedTeams/item/channels/item/tabs/count/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/channels/item/tabs/index.ts b/src/teamwork/deletedTeams/item/channels/item/tabs/index.ts index 06e62f33cd7..98b9f86c5aa 100644 --- a/src/teamwork/deletedTeams/item/channels/item/tabs/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { @@ -90,7 +90,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createTeamsTabCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of TeamsTab @@ -118,7 +118,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/teamwork/deletedTeams/item/channels/item/tabs/item/index.ts b/src/teamwork/deletedTeams/item/channels/item/tabs/item/index.ts index 6dc4b27215b..207d9a13f5c 100644 --- a/src/teamwork/deletedTeams/item/channels/item/tabs/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/teamwork/deletedTeams/item/channels/item/tabs/item/teamsApp/index.ts b/src/teamwork/deletedTeams/item/channels/item/tabs/item/teamsApp/index.ts index 56824cf4551..e6edc5a4a6a 100644 --- a/src/teamwork/deletedTeams/item/channels/item/tabs/item/teamsApp/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/deletedTeams/item/index.ts b/src/teamwork/deletedTeams/item/index.ts index 69e2afbd144..c3c61443405 100644 --- a/src/teamwork/deletedTeams/item/index.ts +++ b/src/teamwork/deletedTeams/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeletedTeamFromDiscriminatorValue, deserializeIntoDeletedTeam, serializeDeletedTeam, type DeletedTeam } from '../../../models/deletedTeam'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ChannelsRequestBuilder } from './channels/'; +import { ChannelsRequestBuilder } from './channels'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeletedTeamItemRequestBuilderGetQueryParameters { diff --git a/src/teamwork/index.ts b/src/teamwork/index.ts index 6088a413df7..246fd91defe 100644 --- a/src/teamwork/index.ts +++ b/src/teamwork/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createTeamworkFromDiscriminatorValue, deserializeIntoTeamwork, serializeTeamwork, type Teamwork } from '../models/teamwork'; -import { DeletedTeamsRequestBuilder } from './deletedTeams/'; -import { SendActivityNotificationToRecipientsRequestBuilder } from './sendActivityNotificationToRecipients/'; -import { TeamsAppSettingsRequestBuilder } from './teamsAppSettings/'; -import { WorkforceIntegrationsRequestBuilder } from './workforceIntegrations/'; +import { DeletedTeamsRequestBuilder } from './deletedTeams'; +import { SendActivityNotificationToRecipientsRequestBuilder } from './sendActivityNotificationToRecipients'; +import { TeamsAppSettingsRequestBuilder } from './teamsAppSettings'; +import { WorkforceIntegrationsRequestBuilder } from './workforceIntegrations'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamworkRequestBuilderGetQueryParameters { diff --git a/src/teamwork/sendActivityNotificationToRecipients/index.ts b/src/teamwork/sendActivityNotificationToRecipients/index.ts index 3910f0d7e59..218f3eb861b 100644 --- a/src/teamwork/sendActivityNotificationToRecipients/index.ts +++ b/src/teamwork/sendActivityNotificationToRecipients/index.ts @@ -3,11 +3,9 @@ // Generated by Microsoft Kiota import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../models/itemBody'; import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../models/keyValuePair'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../models/teamworkActivityTopic'; import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../models/teamworkNotificationRecipient'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSendActivityNotificationToRecipientsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -68,57 +66,5 @@ export function serializeSendActivityNotificationToRecipientsPostRequestBody(wri writer.writeObjectValue("topic", sendActivityNotificationToRecipientsPostRequestBody.topic, serializeTeamworkActivityTopic); writer.writeAdditionalData(sendActivityNotificationToRecipientsPostRequestBody.additionalData); } -/** - * Provides operations to call the sendActivityNotificationToRecipients method. - */ -export class SendActivityNotificationToRecipientsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SendActivityNotificationToRecipientsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/teamwork/sendActivityNotificationToRecipients"); - }; - /** - * Send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/teamwork-sendactivitynotificationtorecipients?view=graph-rest-1.0|Find more info here} - */ - public post(body: SendActivityNotificationToRecipientsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SendActivityNotificationToRecipientsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSendActivityNotificationToRecipientsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sendActivityNotificationToRecipientsRequestBuilder - */ - public withUrl(rawUrl: string) : SendActivityNotificationToRecipientsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SendActivityNotificationToRecipientsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/teamwork/teamsAppSettings/index.ts b/src/teamwork/teamsAppSettings/index.ts index 167cda994cb..5db89a4f1ea 100644 --- a/src/teamwork/teamsAppSettings/index.ts +++ b/src/teamwork/teamsAppSettings/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTeamsAppSettingsFromDiscriminatorValue, deserializeIntoTeamsAppSettings, serializeTeamsAppSettings, type TeamsAppSettings } from '../../models/teamsAppSettings'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/workforceIntegrations/count/index.ts b/src/teamwork/workforceIntegrations/count/index.ts index 89e4f2603dd..966c6a23734 100644 --- a/src/teamwork/workforceIntegrations/count/index.ts +++ b/src/teamwork/workforceIntegrations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/teamwork/workforceIntegrations/index.ts b/src/teamwork/workforceIntegrations/index.ts index 5cd893cddd4..274fdf4c2f7 100644 --- a/src/teamwork/workforceIntegrations/index.ts +++ b/src/teamwork/workforceIntegrations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WorkforceIntegrationCollectionResponse } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type WorkforceIntegrationCollectionResponse } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createWorkforceIntegrationFromDiscriminatorValue, deserializeIntoWorkforceIntegration, serializeWorkforceIntegration, type WorkforceIntegration } from '../../models/workforceIntegration'; import { createWorkforceIntegrationCollectionResponseFromDiscriminatorValue } from '../../models/workforceIntegrationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WorkforceIntegrationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WorkforceIntegrationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WorkforceIntegrationsRequestBuilderGetQueryParameters { diff --git a/src/teamwork/workforceIntegrations/item/index.ts b/src/teamwork/workforceIntegrations/item/index.ts index 754daea3bb2..8bcd386ada4 100644 --- a/src/teamwork/workforceIntegrations/item/index.ts +++ b/src/teamwork/workforceIntegrations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createWorkforceIntegrationFromDiscriminatorValue, deserializeIntoWorkforceIntegration, serializeWorkforceIntegration, type WorkforceIntegration } from '../../../models/workforceIntegration'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminCustomers/count/index.ts b/src/tenantRelationships/delegatedAdminCustomers/count/index.ts index 09f6c1be7b1..76545f41a32 100644 --- a/src/tenantRelationships/delegatedAdminCustomers/count/index.ts +++ b/src/tenantRelationships/delegatedAdminCustomers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminCustomers/index.ts b/src/tenantRelationships/delegatedAdminCustomers/index.ts index dbe967e1aaa..c23fe706095 100644 --- a/src/tenantRelationships/delegatedAdminCustomers/index.ts +++ b/src/tenantRelationships/delegatedAdminCustomers/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DelegatedAdminCustomerCollectionResponse } from '../../models/'; +import { type DelegatedAdminCustomerCollectionResponse } from '../../models'; import { createDelegatedAdminCustomerFromDiscriminatorValue, deserializeIntoDelegatedAdminCustomer, serializeDelegatedAdminCustomer, type DelegatedAdminCustomer } from '../../models/delegatedAdminCustomer'; import { createDelegatedAdminCustomerCollectionResponseFromDiscriminatorValue } from '../../models/delegatedAdminCustomerCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DelegatedAdminCustomerItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DelegatedAdminCustomerItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DelegatedAdminCustomersRequestBuilderGetQueryParameters { diff --git a/src/tenantRelationships/delegatedAdminCustomers/item/index.ts b/src/tenantRelationships/delegatedAdminCustomers/item/index.ts index fb9ad6ed57d..034506bef13 100644 --- a/src/tenantRelationships/delegatedAdminCustomers/item/index.ts +++ b/src/tenantRelationships/delegatedAdminCustomers/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDelegatedAdminCustomerFromDiscriminatorValue, deserializeIntoDelegatedAdminCustomer, serializeDelegatedAdminCustomer, type DelegatedAdminCustomer } from '../../../models/delegatedAdminCustomer'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { ServiceManagementDetailsRequestBuilder } from './serviceManagementDetails/'; +import { ServiceManagementDetailsRequestBuilder } from './serviceManagementDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DelegatedAdminCustomerItemRequestBuilderGetQueryParameters { diff --git a/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/count/index.ts b/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/count/index.ts index a866b379f4c..612ff9c1818 100644 --- a/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/count/index.ts +++ b/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/index.ts b/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/index.ts index 738cdd62908..eb48594670c 100644 --- a/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/index.ts +++ b/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DelegatedAdminServiceManagementDetailCollectionResponse } from '../../../../models/'; +import { type DelegatedAdminServiceManagementDetailCollectionResponse } from '../../../../models'; import { createDelegatedAdminServiceManagementDetailFromDiscriminatorValue, deserializeIntoDelegatedAdminServiceManagementDetail, serializeDelegatedAdminServiceManagementDetail, type DelegatedAdminServiceManagementDetail } from '../../../../models/delegatedAdminServiceManagementDetail'; import { createDelegatedAdminServiceManagementDetailCollectionResponseFromDiscriminatorValue } from '../../../../models/delegatedAdminServiceManagementDetailCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DelegatedAdminServiceManagementDetailItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DelegatedAdminServiceManagementDetailItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceManagementDetailsRequestBuilderGetQueryParameters { diff --git a/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/item/index.ts b/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/item/index.ts index 615704d05ad..af279bfce37 100644 --- a/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/item/index.ts +++ b/src/tenantRelationships/delegatedAdminCustomers/item/serviceManagementDetails/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDelegatedAdminServiceManagementDetailFromDiscriminatorValue, deserializeIntoDelegatedAdminServiceManagementDetail, serializeDelegatedAdminServiceManagementDetail, type DelegatedAdminServiceManagementDetail } from '../../../../../models/delegatedAdminServiceManagementDetail'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminRelationships/count/index.ts b/src/tenantRelationships/delegatedAdminRelationships/count/index.ts index ada04b45dff..afd045b4ad7 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/count/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminRelationships/index.ts b/src/tenantRelationships/delegatedAdminRelationships/index.ts index 3fef711e54e..fd8ccb8bb62 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DelegatedAdminRelationshipCollectionResponse } from '../../models/'; +import { type DelegatedAdminRelationshipCollectionResponse } from '../../models'; import { createDelegatedAdminRelationshipFromDiscriminatorValue, deserializeIntoDelegatedAdminRelationship, serializeDelegatedAdminRelationship, type DelegatedAdminRelationship } from '../../models/delegatedAdminRelationship'; import { createDelegatedAdminRelationshipCollectionResponseFromDiscriminatorValue } from '../../models/delegatedAdminRelationshipCollectionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DelegatedAdminRelationshipItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DelegatedAdminRelationshipItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DelegatedAdminRelationshipsRequestBuilderGetQueryParameters { diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/count/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/count/index.ts index fff8da5abfa..e55c3f4736b 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/count/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/index.ts index d6a7eccd980..68dca08931b 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DelegatedAdminAccessAssignmentCollectionResponse } from '../../../../models/'; +import { type DelegatedAdminAccessAssignmentCollectionResponse } from '../../../../models'; import { createDelegatedAdminAccessAssignmentFromDiscriminatorValue, deserializeIntoDelegatedAdminAccessAssignment, serializeDelegatedAdminAccessAssignment, type DelegatedAdminAccessAssignment } from '../../../../models/delegatedAdminAccessAssignment'; import { createDelegatedAdminAccessAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/delegatedAdminAccessAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DelegatedAdminAccessAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DelegatedAdminAccessAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AccessAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/item/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/item/index.ts index 067786d3fd5..3aa63d85fdd 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/item/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/accessAssignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDelegatedAdminAccessAssignmentFromDiscriminatorValue, deserializeIntoDelegatedAdminAccessAssignment, serializeDelegatedAdminAccessAssignment, type DelegatedAdminAccessAssignment } from '../../../../../models/delegatedAdminAccessAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/index.ts index 855a5992f46..00e23df8d02 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createDelegatedAdminRelationshipFromDiscriminatorValue, deserializeIntoDelegatedAdminRelationship, serializeDelegatedAdminRelationship, type DelegatedAdminRelationship } from '../../../models/delegatedAdminRelationship'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AccessAssignmentsRequestBuilder } from './accessAssignments/'; -import { OperationsRequestBuilder } from './operations/'; -import { RequestsRequestBuilder } from './requests/'; +import { AccessAssignmentsRequestBuilder } from './accessAssignments'; +import { OperationsRequestBuilder } from './operations'; +import { RequestsRequestBuilder } from './requests'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DelegatedAdminRelationshipItemRequestBuilderGetQueryParameters { diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/operations/count/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/operations/count/index.ts index a0bd365d254..eafc44dd41b 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/operations/count/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/operations/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/operations/index.ts index 04e7150ffc2..b619ec54db1 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/operations/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DelegatedAdminRelationshipOperationCollectionResponse } from '../../../../models/'; +import { type DelegatedAdminRelationshipOperationCollectionResponse } from '../../../../models'; import { createDelegatedAdminRelationshipOperationFromDiscriminatorValue, deserializeIntoDelegatedAdminRelationshipOperation, serializeDelegatedAdminRelationshipOperation, type DelegatedAdminRelationshipOperation } from '../../../../models/delegatedAdminRelationshipOperation'; import { createDelegatedAdminRelationshipOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/delegatedAdminRelationshipOperationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DelegatedAdminRelationshipOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DelegatedAdminRelationshipOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/operations/item/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/operations/item/index.ts index 21c509c19b1..86873afc906 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/operations/item/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/operations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDelegatedAdminRelationshipOperationFromDiscriminatorValue, deserializeIntoDelegatedAdminRelationshipOperation, serializeDelegatedAdminRelationshipOperation, type DelegatedAdminRelationshipOperation } from '../../../../../models/delegatedAdminRelationshipOperation'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/requests/count/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/requests/count/index.ts index 56dc9e47dfd..b46e9edae82 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/requests/count/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/requests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/requests/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/requests/index.ts index 0cf6c5c1e8a..fa040713040 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/requests/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/requests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DelegatedAdminRelationshipRequestCollectionResponse } from '../../../../models/'; +import { type DelegatedAdminRelationshipRequestCollectionResponse } from '../../../../models'; import { createDelegatedAdminRelationshipRequestFromDiscriminatorValue, deserializeIntoDelegatedAdminRelationshipRequest, serializeDelegatedAdminRelationshipRequest, type DelegatedAdminRelationshipRequest } from '../../../../models/delegatedAdminRelationshipRequest'; import { createDelegatedAdminRelationshipRequestCollectionResponseFromDiscriminatorValue } from '../../../../models/delegatedAdminRelationshipRequestCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DelegatedAdminRelationshipRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DelegatedAdminRelationshipRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RequestsRequestBuilderGetQueryParameters { diff --git a/src/tenantRelationships/delegatedAdminRelationships/item/requests/item/index.ts b/src/tenantRelationships/delegatedAdminRelationships/item/requests/item/index.ts index c056b4ff65d..d062096c294 100644 --- a/src/tenantRelationships/delegatedAdminRelationships/item/requests/item/index.ts +++ b/src/tenantRelationships/delegatedAdminRelationships/item/requests/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDelegatedAdminRelationshipRequestFromDiscriminatorValue, deserializeIntoDelegatedAdminRelationshipRequest, serializeDelegatedAdminRelationshipRequest, type DelegatedAdminRelationshipRequest } from '../../../../../models/delegatedAdminRelationshipRequest'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/findTenantInformationByDomainNameWithDomainName/index.ts b/src/tenantRelationships/findTenantInformationByDomainNameWithDomainName/index.ts index b1ce35dd787..7ce22867965 100644 --- a/src/tenantRelationships/findTenantInformationByDomainNameWithDomainName/index.ts +++ b/src/tenantRelationships/findTenantInformationByDomainNameWithDomainName/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TenantInformation } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type TenantInformation } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTenantInformationFromDiscriminatorValue } from '../../models/tenantInformation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/findTenantInformationByTenantIdWithTenantId/index.ts b/src/tenantRelationships/findTenantInformationByTenantIdWithTenantId/index.ts index a26b7bc81ae..3782c1c2f03 100644 --- a/src/tenantRelationships/findTenantInformationByTenantIdWithTenantId/index.ts +++ b/src/tenantRelationships/findTenantInformationByTenantIdWithTenantId/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TenantInformation } from '../../models/'; -import { type ODataError } from '../../models/oDataErrors/'; +import { type TenantInformation } from '../../models'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createTenantInformationFromDiscriminatorValue } from '../../models/tenantInformation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/tenantRelationships/index.ts b/src/tenantRelationships/index.ts index c3cb0a0f6d0..f413d249f7c 100644 --- a/src/tenantRelationships/index.ts +++ b/src/tenantRelationships/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../models/oDataErrors/'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createTenantRelationshipFromDiscriminatorValue, deserializeIntoTenantRelationship, serializeTenantRelationship, type TenantRelationship } from '../models/tenantRelationship'; -import { DelegatedAdminCustomersRequestBuilder } from './delegatedAdminCustomers/'; -import { DelegatedAdminRelationshipsRequestBuilder } from './delegatedAdminRelationships/'; -import { FindTenantInformationByDomainNameWithDomainNameRequestBuilder } from './findTenantInformationByDomainNameWithDomainName/'; -import { FindTenantInformationByTenantIdWithTenantIdRequestBuilder } from './findTenantInformationByTenantIdWithTenantId/'; +import { DelegatedAdminCustomersRequestBuilder } from './delegatedAdminCustomers'; +import { DelegatedAdminRelationshipsRequestBuilder } from './delegatedAdminRelationships'; +import { FindTenantInformationByDomainNameWithDomainNameRequestBuilder } from './findTenantInformationByDomainNameWithDomainName'; +import { FindTenantInformationByTenantIdWithTenantIdRequestBuilder } from './findTenantInformationByTenantIdWithTenantId'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TenantRelationshipsRequestBuilderGetQueryParameters { diff --git a/src/users/count/index.ts b/src/users/count/index.ts index 9d2e580be64..b782a70dab5 100644 --- a/src/users/count/index.ts +++ b/src/users/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/delta/index.ts b/src/users/delta/index.ts index 8d90b69a2ba..61cae54df96 100644 --- a/src/users/delta/index.ts +++ b/src/users/delta/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue, serializeUser, type User } from '../../models/user'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: User[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeUser); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/getAvailableExtensionProperties/index.ts b/src/users/getAvailableExtensionProperties/index.ts index 783d289302b..7800d3c8b0a 100644 --- a/src/users/getAvailableExtensionProperties/index.ts +++ b/src/users/getAvailableExtensionProperties/index.ts @@ -1,31 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; -import { createExtensionPropertyFromDiscriminatorValue, serializeExtensionProperty, type ExtensionProperty } from '../../models/extensionProperty'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAvailableExtensionPropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetAvailableExtensionPropertiesPostRequestBody; } -export function createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetAvailableExtensionPropertiesPostResponse; -} export function deserializeIntoGetAvailableExtensionPropertiesPostRequestBody(getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : Record void> { return { "isSyncedFromOnPremises": n => { getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises = n.getBooleanValue(); }, } } -export function deserializeIntoGetAvailableExtensionPropertiesPostResponse(getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getAvailableExtensionPropertiesPostResponse), - "value": n => { getAvailableExtensionPropertiesPostResponse.value = n.getCollectionOfObjectValues(createExtensionPropertyFromDiscriminatorValue); }, - } -} export interface GetAvailableExtensionPropertiesPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -36,72 +22,9 @@ export interface GetAvailableExtensionPropertiesPostRequestBody extends Addition */ isSyncedFromOnPremises?: boolean; } -export interface GetAvailableExtensionPropertiesPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ExtensionProperty[]; -} export function serializeGetAvailableExtensionPropertiesPostRequestBody(writer: SerializationWriter, getAvailableExtensionPropertiesPostRequestBody: GetAvailableExtensionPropertiesPostRequestBody | undefined = {} as GetAvailableExtensionPropertiesPostRequestBody) : void { writer.writeBooleanValue("isSyncedFromOnPremises", getAvailableExtensionPropertiesPostRequestBody.isSyncedFromOnPremises); writer.writeAdditionalData(getAvailableExtensionPropertiesPostRequestBody.additionalData); } -export function serializeGetAvailableExtensionPropertiesPostResponse(writer: SerializationWriter, getAvailableExtensionPropertiesPostResponse: GetAvailableExtensionPropertiesPostResponse | undefined = {} as GetAvailableExtensionPropertiesPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getAvailableExtensionPropertiesPostResponse) - writer.writeCollectionOfObjectValues("value", getAvailableExtensionPropertiesPostResponse.value, serializeExtensionProperty); -} -/** - * Provides operations to call the getAvailableExtensionProperties method. - */ -export class GetAvailableExtensionPropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/getAvailableExtensionProperties"); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAvailableExtensionPropertiesPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAvailableExtensionPropertiesPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetAvailableExtensionPropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetAvailableExtensionPropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAvailableExtensionPropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAvailableExtensionPropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/getByIds/getByIdsPostRequestBody.ts b/src/users/getByIds/getByIdsPostRequestBody.ts deleted file mode 100644 index 199808cf84f..00000000000 --- a/src/users/getByIds/getByIdsPostRequestBody.ts +++ /dev/null @@ -1,36 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetByIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetByIdsPostRequestBody; -} -export function deserializeIntoGetByIdsPostRequestBody(getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : Record void> { - return { - "ids": n => { getByIdsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - "types": n => { getByIdsPostRequestBody.types = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetByIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; - /** - * The types property - */ - types?: string[]; -} -export function serializeGetByIdsPostRequestBody(writer: SerializationWriter, getByIdsPostRequestBody: GetByIdsPostRequestBody | undefined = {} as GetByIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", getByIdsPostRequestBody.ids); - writer.writeCollectionOfPrimitiveValues("types", getByIdsPostRequestBody.types); - writer.writeAdditionalData(getByIdsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/getByIds/index.ts b/src/users/getByIds/index.ts index d4b7caf361a..49172d3c7dd 100644 --- a/src/users/getByIds/index.ts +++ b/src/users/getByIds/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../models/baseCollectionPaginationCountResponse'; import { createDirectoryObjectFromDiscriminatorValue, serializeDirectoryObject, type DirectoryObject } from '../../models/directoryObject'; -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { deserializeIntoGetByIdsPostRequestBody, serializeGetByIdsPostRequestBody, type GetByIdsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetByIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetByIdsPostResponse(writer: SerializationWriter, getBy serializeBaseCollectionPaginationCountResponse(writer, getByIdsPostResponse) writer.writeCollectionOfObjectValues("value", getByIdsPostResponse.value, serializeDirectoryObject); } -/** - * Provides operations to call the getByIds method. - */ -export class GetByIdsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetByIdsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/getByIds"); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetByIdsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetByIdsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetByIdsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetByIdsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getByIdsRequestBuilder - */ - public withUrl(rawUrl: string) : GetByIdsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetByIdsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/index.ts b/src/users/index.ts index d760f8403be..bde59502e1c 100644 --- a/src/users/index.ts +++ b/src/users/index.ts @@ -1,17 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../models/'; -import { type ODataError } from '../models/oDataErrors/'; +import { type UserCollectionResponse } from '../models'; +import { type ODataError } from '../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue, deserializeIntoUser, serializeUser, type User } from '../models/user'; import { createUserCollectionResponseFromDiscriminatorValue } from '../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/'; -import { GetByIdsRequestBuilder } from './getByIds/'; -import { UserItemRequestBuilder } from './item/'; -import { ValidatePropertiesRequestBuilder } from './validateProperties/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties'; +import { GetByIdsRequestBuilder } from './getByIds'; +import { UserItemRequestBuilder } from './item'; +import { ValidatePropertiesRequestBuilder } from './validateProperties'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UsersRequestBuilderGetQueryParameters { @@ -98,10 +98,10 @@ export class UsersRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/users{?%24top,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"); }; /** - * Retrieve a list of user objects. + * List properties and relationships of the user objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of UserCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/user-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-user-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -131,7 +131,7 @@ export class UsersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); }; /** - * Retrieve a list of user objects. + * List properties and relationships of the user objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/users/item/activities/count/index.ts b/src/users/item/activities/count/index.ts index 23449b65c3e..e0320a9370f 100644 --- a/src/users/item/activities/count/index.ts +++ b/src/users/item/activities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/activities/index.ts b/src/users/item/activities/index.ts index 3fd2516b08c..165ebd55b47 100644 --- a/src/users/item/activities/index.ts +++ b/src/users/item/activities/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserActivityCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type UserActivityCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserActivityFromDiscriminatorValue, deserializeIntoUserActivity, serializeUserActivity, type UserActivity } from '../../../models/userActivity'; import { createUserActivityCollectionResponseFromDiscriminatorValue } from '../../../models/userActivityCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserActivityItemRequestBuilder } from './item/'; -import { RecentRequestBuilder } from './recent/'; +import { CountRequestBuilder } from './count'; +import { UserActivityItemRequestBuilder } from './item'; +import { RecentRequestBuilder } from './recent'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivitiesRequestBuilderGetQueryParameters { diff --git a/src/users/item/activities/item/historyItems/count/index.ts b/src/users/item/activities/item/historyItems/count/index.ts index e8842fbba11..4fefefe9a7d 100644 --- a/src/users/item/activities/item/historyItems/count/index.ts +++ b/src/users/item/activities/item/historyItems/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/activities/item/historyItems/index.ts b/src/users/item/activities/item/historyItems/index.ts index 47c42f26481..b4296ee394c 100644 --- a/src/users/item/activities/item/historyItems/index.ts +++ b/src/users/item/activities/item/historyItems/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ActivityHistoryItemCollectionResponse } from '../../../../../models/'; +import { type ActivityHistoryItemCollectionResponse } from '../../../../../models'; import { createActivityHistoryItemFromDiscriminatorValue, deserializeIntoActivityHistoryItem, serializeActivityHistoryItem, type ActivityHistoryItem } from '../../../../../models/activityHistoryItem'; import { createActivityHistoryItemCollectionResponseFromDiscriminatorValue } from '../../../../../models/activityHistoryItemCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ActivityHistoryItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ActivityHistoryItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HistoryItemsRequestBuilderGetQueryParameters { diff --git a/src/users/item/activities/item/historyItems/item/activity/index.ts b/src/users/item/activities/item/historyItems/item/activity/index.ts index d07505f2958..f358bb7d337 100644 --- a/src/users/item/activities/item/historyItems/item/activity/index.ts +++ b/src/users/item/activities/item/historyItems/item/activity/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserActivity } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type UserActivity } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createUserActivityFromDiscriminatorValue } from '../../../../../../../models/userActivity'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/activities/item/historyItems/item/index.ts b/src/users/item/activities/item/historyItems/item/index.ts index 9d6638d57e3..29396fe12ae 100644 --- a/src/users/item/activities/item/historyItems/item/index.ts +++ b/src/users/item/activities/item/historyItems/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createActivityHistoryItemFromDiscriminatorValue, deserializeIntoActivityHistoryItem, serializeActivityHistoryItem, type ActivityHistoryItem } from '../../../../../../models/activityHistoryItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ActivityRequestBuilder } from './activity/'; +import { ActivityRequestBuilder } from './activity'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ActivityHistoryItemItemRequestBuilderGetQueryParameters { @@ -65,11 +65,11 @@ export class ActivityHistoryItemItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createActivityHistoryItemFromDiscriminatorValue, errorMapping); }; /** - * Delete an existing history item for an existing user activity. + * Create a new or replace an existing history item for an existing user activity. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ActivityHistoryItem - * @see {@link https://learn.microsoft.com/graph/api/projectrome-delete-historyitem?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/projectrome-put-historyitem?view=graph-rest-1.0|Find more info here} */ public patch(body: ActivityHistoryItem, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -104,7 +104,7 @@ export class ActivityHistoryItemItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Delete an existing history item for an existing user activity. + * Create a new or replace an existing history item for an existing user activity. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/activities/item/index.ts b/src/users/item/activities/item/index.ts index 823fb6b5cf6..807a744ce58 100644 --- a/src/users/item/activities/item/index.ts +++ b/src/users/item/activities/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserActivityFromDiscriminatorValue, deserializeIntoUserActivity, serializeUserActivity, type UserActivity } from '../../../../models/userActivity'; -import { HistoryItemsRequestBuilder } from './historyItems/'; +import { HistoryItemsRequestBuilder } from './historyItems'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserActivityItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/activities/recent/index.ts b/src/users/item/activities/recent/index.ts index 5cef93dce58..6e941affb90 100644 --- a/src/users/item/activities/recent/index.ts +++ b/src/users/item/activities/recent/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserActivityFromDiscriminatorValue, serializeUserActivity, type UserActivity } from '../../../../models/userActivity'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createRecentGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,97 +21,9 @@ export interface RecentGetResponse extends BaseCollectionPaginationCountResponse */ value?: UserActivity[]; } -export interface RecentRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeRecentGetResponse(writer: SerializationWriter, recentGetResponse: RecentGetResponse | undefined = {} as RecentGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, recentGetResponse) writer.writeCollectionOfObjectValues("value", recentGetResponse.value, serializeUserActivity); } -/** - * Provides operations to call the recent method. - */ -export class RecentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new RecentRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/activities/recent(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of RecentGetResponse - * @see {@link https://learn.microsoft.com/graph/api/projectrome-get-recent-activities?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createRecentGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, recentRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a recentRequestBuilder - */ - public withUrl(rawUrl: string) : RecentRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new RecentRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const recentRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/agreementAcceptances/count/index.ts b/src/users/item/agreementAcceptances/count/index.ts index 0c8520f7b92..82e1773cc27 100644 --- a/src/users/item/agreementAcceptances/count/index.ts +++ b/src/users/item/agreementAcceptances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/agreementAcceptances/index.ts b/src/users/item/agreementAcceptances/index.ts index 61300357821..a901feec628 100644 --- a/src/users/item/agreementAcceptances/index.ts +++ b/src/users/item/agreementAcceptances/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementAcceptanceCollectionResponse } from '../../../models/'; +import { type AgreementAcceptanceCollectionResponse } from '../../../models'; import { createAgreementAcceptanceCollectionResponseFromDiscriminatorValue } from '../../../models/agreementAcceptanceCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AgreementAcceptanceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AgreementAcceptanceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AgreementAcceptancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/agreementAcceptances/item/index.ts b/src/users/item/agreementAcceptances/item/index.ts index d3279df034f..c66be4a8be3 100644 --- a/src/users/item/agreementAcceptances/item/index.ts +++ b/src/users/item/agreementAcceptances/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AgreementAcceptance } from '../../../../models/'; +import { type AgreementAcceptance } from '../../../../models'; import { createAgreementAcceptanceFromDiscriminatorValue } from '../../../../models/agreementAcceptance'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/appRoleAssignments/count/index.ts b/src/users/item/appRoleAssignments/count/index.ts index 522f164b484..86842787149 100644 --- a/src/users/item/appRoleAssignments/count/index.ts +++ b/src/users/item/appRoleAssignments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/appRoleAssignments/index.ts b/src/users/item/appRoleAssignments/index.ts index 7bdea3cd64b..7fb3cdfc5d7 100644 --- a/src/users/item/appRoleAssignments/index.ts +++ b/src/users/item/appRoleAssignments/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue, deserializeIntoAppRoleAssignment, serializeAppRoleAssignment, type AppRoleAssignment } from '../../../models/appRoleAssignment'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AppRoleAssignmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AppRoleAssignmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AppRoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/appRoleAssignments/item/index.ts b/src/users/item/appRoleAssignments/item/index.ts index e710fded5c5..bbe69907ef8 100644 --- a/src/users/item/appRoleAssignments/item/index.ts +++ b/src/users/item/appRoleAssignments/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAppRoleAssignmentFromDiscriminatorValue, deserializeIntoAppRoleAssignment, serializeAppRoleAssignment, type AppRoleAssignment } from '../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/assignLicense/index.ts b/src/users/item/assignLicense/index.ts index 28ea63c2a24..151303c6558 100644 --- a/src/users/item/assignLicense/index.ts +++ b/src/users/item/assignLicense/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAssignedLicenseFromDiscriminatorValue, serializeAssignedLicense, type AssignedLicense } from '../../../models/assignedLicense'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createUserFromDiscriminatorValue, deserializeIntoUser, serializeUser, type User } from '../../../models/user'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export interface AssignLicensePostRequestBody extends AdditionalDataHolder, Parsable { @@ -37,58 +34,5 @@ export function serializeAssignLicensePostRequestBody(writer: SerializationWrite writer.writeCollectionOfPrimitiveValues("removeLicenses", assignLicensePostRequestBody.removeLicenses); writer.writeAdditionalData(assignLicensePostRequestBody.additionalData); } -/** - * Provides operations to call the assignLicense method. - */ -export class AssignLicenseRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AssignLicenseRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/assignLicense"); - }; - /** - * Add or remove subscriptions for the 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 a Promise of User - * @see {@link https://learn.microsoft.com/graph/api/user-assignlicense?view=graph-rest-1.0|Find more info here} - */ - public post(body: AssignLicensePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); - }; - /** - * Add or remove subscriptions for the 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 a RequestInformation - */ - public toPostRequestInformation(body: AssignLicensePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAssignLicensePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a assignLicenseRequestBuilder - */ - public withUrl(rawUrl: string) : AssignLicenseRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AssignLicenseRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/authentication/emailMethods/count/index.ts b/src/users/item/authentication/emailMethods/count/index.ts index 53132024ac2..827ad7262c0 100644 --- a/src/users/item/authentication/emailMethods/count/index.ts +++ b/src/users/item/authentication/emailMethods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/emailMethods/index.ts b/src/users/item/authentication/emailMethods/index.ts index cfc084e67af..83bccb6abe4 100644 --- a/src/users/item/authentication/emailMethods/index.ts +++ b/src/users/item/authentication/emailMethods/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EmailAuthenticationMethodCollectionResponse } from '../../../../models/'; +import { type EmailAuthenticationMethodCollectionResponse } from '../../../../models'; import { createEmailAuthenticationMethodFromDiscriminatorValue, deserializeIntoEmailAuthenticationMethod, serializeEmailAuthenticationMethod, type EmailAuthenticationMethod } from '../../../../models/emailAuthenticationMethod'; import { createEmailAuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/emailAuthenticationMethodCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { EmailAuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { EmailAuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EmailMethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/emailMethods/item/index.ts b/src/users/item/authentication/emailMethods/item/index.ts index 42d4cac9d52..cdfbfe8bcb2 100644 --- a/src/users/item/authentication/emailMethods/item/index.ts +++ b/src/users/item/authentication/emailMethods/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createEmailAuthenticationMethodFromDiscriminatorValue, deserializeIntoEmailAuthenticationMethod, serializeEmailAuthenticationMethod, type EmailAuthenticationMethod } from '../../../../../models/emailAuthenticationMethod'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/fido2Methods/count/index.ts b/src/users/item/authentication/fido2Methods/count/index.ts index f3b81042caf..8a8752f678c 100644 --- a/src/users/item/authentication/fido2Methods/count/index.ts +++ b/src/users/item/authentication/fido2Methods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/fido2Methods/index.ts b/src/users/item/authentication/fido2Methods/index.ts index 24e14abf5bf..6e28e4ee970 100644 --- a/src/users/item/authentication/fido2Methods/index.ts +++ b/src/users/item/authentication/fido2Methods/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Fido2AuthenticationMethodCollectionResponse } from '../../../../models/'; +import { type Fido2AuthenticationMethodCollectionResponse } from '../../../../models'; import { createFido2AuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/fido2AuthenticationMethodCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { Fido2AuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { Fido2AuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface Fido2MethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/fido2Methods/item/index.ts b/src/users/item/authentication/fido2Methods/item/index.ts index bf615077cc5..adad05abc24 100644 --- a/src/users/item/authentication/fido2Methods/item/index.ts +++ b/src/users/item/authentication/fido2Methods/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Fido2AuthenticationMethod } from '../../../../../models/'; +import { type Fido2AuthenticationMethod } from '../../../../../models'; import { createFido2AuthenticationMethodFromDiscriminatorValue } from '../../../../../models/fido2AuthenticationMethod'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/index.ts b/src/users/item/authentication/index.ts index 5db236f37ae..bf3fb0c501d 100644 --- a/src/users/item/authentication/index.ts +++ b/src/users/item/authentication/index.ts @@ -2,18 +2,18 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationFromDiscriminatorValue, deserializeIntoAuthentication, serializeAuthentication, type Authentication } from '../../../models/authentication'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { EmailMethodsRequestBuilder } from './emailMethods/'; -import { Fido2MethodsRequestBuilder } from './fido2Methods/'; -import { MethodsRequestBuilder } from './methods/'; -import { MicrosoftAuthenticatorMethodsRequestBuilder } from './microsoftAuthenticatorMethods/'; -import { OperationsRequestBuilder } from './operations/'; -import { PasswordMethodsRequestBuilder } from './passwordMethods/'; -import { PhoneMethodsRequestBuilder } from './phoneMethods/'; -import { SoftwareOathMethodsRequestBuilder } from './softwareOathMethods/'; -import { TemporaryAccessPassMethodsRequestBuilder } from './temporaryAccessPassMethods/'; -import { WindowsHelloForBusinessMethodsRequestBuilder } from './windowsHelloForBusinessMethods/'; +import { EmailMethodsRequestBuilder } from './emailMethods'; +import { Fido2MethodsRequestBuilder } from './fido2Methods'; +import { MethodsRequestBuilder } from './methods'; +import { MicrosoftAuthenticatorMethodsRequestBuilder } from './microsoftAuthenticatorMethods'; +import { OperationsRequestBuilder } from './operations'; +import { PasswordMethodsRequestBuilder } from './passwordMethods'; +import { PhoneMethodsRequestBuilder } from './phoneMethods'; +import { SoftwareOathMethodsRequestBuilder } from './softwareOathMethods'; +import { TemporaryAccessPassMethodsRequestBuilder } from './temporaryAccessPassMethods'; +import { WindowsHelloForBusinessMethodsRequestBuilder } from './windowsHelloForBusinessMethods'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/methods/count/index.ts b/src/users/item/authentication/methods/count/index.ts index 97150972987..96da6650cd9 100644 --- a/src/users/item/authentication/methods/count/index.ts +++ b/src/users/item/authentication/methods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/methods/index.ts b/src/users/item/authentication/methods/index.ts index d00acdc7720..e8a02f07914 100644 --- a/src/users/item/authentication/methods/index.ts +++ b/src/users/item/authentication/methods/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AuthenticationMethodCollectionResponse } from '../../../../models/'; +import { type AuthenticationMethodCollectionResponse } from '../../../../models'; import { createAuthenticationMethodFromDiscriminatorValue, deserializeIntoAuthenticationMethod, serializeAuthenticationMethod, type AuthenticationMethod } from '../../../../models/authenticationMethod'; import { createAuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/authenticationMethodCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/methods/item/index.ts b/src/users/item/authentication/methods/item/index.ts index 2c215c07bd0..32873551f8b 100644 --- a/src/users/item/authentication/methods/item/index.ts +++ b/src/users/item/authentication/methods/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAuthenticationMethodFromDiscriminatorValue, deserializeIntoAuthenticationMethod, serializeAuthenticationMethod, type AuthenticationMethod } from '../../../../../models/authenticationMethod'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ResetPasswordRequestBuilder } from './resetPassword/'; +import { ResetPasswordRequestBuilder } from './resetPassword'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AuthenticationMethodItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/methods/item/resetPassword/index.ts b/src/users/item/authentication/methods/item/resetPassword/index.ts index 69543b7ea64..b2d4c6f9355 100644 --- a/src/users/item/authentication/methods/item/resetPassword/index.ts +++ b/src/users/item/authentication/methods/item/resetPassword/index.ts @@ -1,12 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPasswordResetResponseFromDiscriminatorValue, deserializeIntoPasswordResetResponse, serializePasswordResetResponse, type PasswordResetResponse } from '../../../../../../models/passwordResetResponse'; -import { deserializeIntoResetPasswordPostRequestBody, serializeResetPasswordPostRequestBody, type ResetPasswordPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createResetPasswordPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoResetPasswordPostRequestBody; +} +export function deserializeIntoResetPasswordPostRequestBody(resetPasswordPostRequestBody: ResetPasswordPostRequestBody | undefined = {} as ResetPasswordPostRequestBody) : Record void> { + return { + "newPassword": n => { resetPasswordPostRequestBody.newPassword = n.getStringValue(); }, + } +} +export interface ResetPasswordPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The newPassword property + */ + newPassword?: string; +} +export function serializeResetPasswordPostRequestBody(writer: SerializationWriter, resetPasswordPostRequestBody: ResetPasswordPostRequestBody | undefined = {} as ResetPasswordPostRequestBody) : void { + writer.writeStringValue("newPassword", resetPasswordPostRequestBody.newPassword); + writer.writeAdditionalData(resetPasswordPostRequestBody.additionalData); +} /** * Provides operations to call the resetPassword method. */ diff --git a/src/users/item/authentication/methods/item/resetPassword/resetPasswordPostRequestBody.ts b/src/users/item/authentication/methods/item/resetPassword/resetPasswordPostRequestBody.ts deleted file mode 100644 index 1c603fb0d0d..00000000000 --- a/src/users/item/authentication/methods/item/resetPassword/resetPasswordPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createResetPasswordPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoResetPasswordPostRequestBody; -} -export function deserializeIntoResetPasswordPostRequestBody(resetPasswordPostRequestBody: ResetPasswordPostRequestBody | undefined = {} as ResetPasswordPostRequestBody) : Record void> { - return { - "newPassword": n => { resetPasswordPostRequestBody.newPassword = n.getStringValue(); }, - } -} -export interface ResetPasswordPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The newPassword property - */ - newPassword?: string; -} -export function serializeResetPasswordPostRequestBody(writer: SerializationWriter, resetPasswordPostRequestBody: ResetPasswordPostRequestBody | undefined = {} as ResetPasswordPostRequestBody) : void { - writer.writeStringValue("newPassword", resetPasswordPostRequestBody.newPassword); - writer.writeAdditionalData(resetPasswordPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/authentication/microsoftAuthenticatorMethods/count/index.ts b/src/users/item/authentication/microsoftAuthenticatorMethods/count/index.ts index 3d4358f0031..abf67ef9967 100644 --- a/src/users/item/authentication/microsoftAuthenticatorMethods/count/index.ts +++ b/src/users/item/authentication/microsoftAuthenticatorMethods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/microsoftAuthenticatorMethods/index.ts b/src/users/item/authentication/microsoftAuthenticatorMethods/index.ts index 2c17cc1d311..7dd0dea2637 100644 --- a/src/users/item/authentication/microsoftAuthenticatorMethods/index.ts +++ b/src/users/item/authentication/microsoftAuthenticatorMethods/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MicrosoftAuthenticatorAuthenticationMethodCollectionResponse } from '../../../../models/'; +import { type MicrosoftAuthenticatorAuthenticationMethodCollectionResponse } from '../../../../models'; import { createMicrosoftAuthenticatorAuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/microsoftAuthenticatorAuthenticationMethodCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MicrosoftAuthenticatorMethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/microsoftAuthenticatorMethods/item/device/index.ts b/src/users/item/authentication/microsoftAuthenticatorMethods/item/device/index.ts index 27a42a397d9..cdf8a3b8862 100644 --- a/src/users/item/authentication/microsoftAuthenticatorMethods/item/device/index.ts +++ b/src/users/item/authentication/microsoftAuthenticatorMethods/item/device/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../../models/'; +import { type Device } from '../../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../../models/device'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/microsoftAuthenticatorMethods/item/index.ts b/src/users/item/authentication/microsoftAuthenticatorMethods/item/index.ts index 7f7c827737a..6da433341e7 100644 --- a/src/users/item/authentication/microsoftAuthenticatorMethods/item/index.ts +++ b/src/users/item/authentication/microsoftAuthenticatorMethods/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MicrosoftAuthenticatorAuthenticationMethod } from '../../../../../models/'; +import { type MicrosoftAuthenticatorAuthenticationMethod } from '../../../../../models'; import { createMicrosoftAuthenticatorAuthenticationMethodFromDiscriminatorValue } from '../../../../../models/microsoftAuthenticatorAuthenticationMethod'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { DeviceRequestBuilder } from './device/'; +import { DeviceRequestBuilder } from './device'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/operations/count/index.ts b/src/users/item/authentication/operations/count/index.ts index 2894da4a21e..9ceb53cdeff 100644 --- a/src/users/item/authentication/operations/count/index.ts +++ b/src/users/item/authentication/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/operations/index.ts b/src/users/item/authentication/operations/index.ts index dbd1219e2aa..e825cde844b 100644 --- a/src/users/item/authentication/operations/index.ts +++ b/src/users/item/authentication/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LongRunningOperationCollectionResponse } from '../../../../models/'; +import { type LongRunningOperationCollectionResponse } from '../../../../models'; import { createLongRunningOperationFromDiscriminatorValue, deserializeIntoLongRunningOperation, serializeLongRunningOperation, type LongRunningOperation } from '../../../../models/longRunningOperation'; import { createLongRunningOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/longRunningOperationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LongRunningOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LongRunningOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/operations/item/index.ts b/src/users/item/authentication/operations/item/index.ts index b8977802f92..47dbfb8f90f 100644 --- a/src/users/item/authentication/operations/item/index.ts +++ b/src/users/item/authentication/operations/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLongRunningOperationFromDiscriminatorValue, deserializeIntoLongRunningOperation, serializeLongRunningOperation, type LongRunningOperation } from '../../../../../models/longRunningOperation'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/passwordMethods/count/index.ts b/src/users/item/authentication/passwordMethods/count/index.ts index 52222b74809..c2726866b5d 100644 --- a/src/users/item/authentication/passwordMethods/count/index.ts +++ b/src/users/item/authentication/passwordMethods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/passwordMethods/index.ts b/src/users/item/authentication/passwordMethods/index.ts index 8924a5c8d5f..9082a3a450a 100644 --- a/src/users/item/authentication/passwordMethods/index.ts +++ b/src/users/item/authentication/passwordMethods/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PasswordAuthenticationMethodCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PasswordAuthenticationMethodCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPasswordAuthenticationMethodFromDiscriminatorValue, deserializeIntoPasswordAuthenticationMethod, serializePasswordAuthenticationMethod, type PasswordAuthenticationMethod } from '../../../../models/passwordAuthenticationMethod'; import { createPasswordAuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/passwordAuthenticationMethodCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PasswordAuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PasswordAuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PasswordMethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/passwordMethods/item/index.ts b/src/users/item/authentication/passwordMethods/item/index.ts index c69a1cfe61a..cea27ad5558 100644 --- a/src/users/item/authentication/passwordMethods/item/index.ts +++ b/src/users/item/authentication/passwordMethods/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PasswordAuthenticationMethod } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type PasswordAuthenticationMethod } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPasswordAuthenticationMethodFromDiscriminatorValue } from '../../../../../models/passwordAuthenticationMethod'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/phoneMethods/count/index.ts b/src/users/item/authentication/phoneMethods/count/index.ts index ea294428136..115e2e7c198 100644 --- a/src/users/item/authentication/phoneMethods/count/index.ts +++ b/src/users/item/authentication/phoneMethods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/phoneMethods/index.ts b/src/users/item/authentication/phoneMethods/index.ts index dbe922bdac4..64f8a3d5d22 100644 --- a/src/users/item/authentication/phoneMethods/index.ts +++ b/src/users/item/authentication/phoneMethods/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PhoneAuthenticationMethodCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PhoneAuthenticationMethodCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPhoneAuthenticationMethodFromDiscriminatorValue, deserializeIntoPhoneAuthenticationMethod, serializePhoneAuthenticationMethod, type PhoneAuthenticationMethod } from '../../../../models/phoneAuthenticationMethod'; import { createPhoneAuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/phoneAuthenticationMethodCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PhoneAuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PhoneAuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhoneMethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/phoneMethods/item/disableSmsSignIn/index.ts b/src/users/item/authentication/phoneMethods/item/disableSmsSignIn/index.ts index 1e5df833cc6..53bdf8957c0 100644 --- a/src/users/item/authentication/phoneMethods/item/disableSmsSignIn/index.ts +++ b/src/users/item/authentication/phoneMethods/item/disableSmsSignIn/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/phoneMethods/item/enableSmsSignIn/index.ts b/src/users/item/authentication/phoneMethods/item/enableSmsSignIn/index.ts index be94b12a2f1..6b11f44b414 100644 --- a/src/users/item/authentication/phoneMethods/item/enableSmsSignIn/index.ts +++ b/src/users/item/authentication/phoneMethods/item/enableSmsSignIn/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/phoneMethods/item/index.ts b/src/users/item/authentication/phoneMethods/item/index.ts index eee25560294..1eb2438dc5b 100644 --- a/src/users/item/authentication/phoneMethods/item/index.ts +++ b/src/users/item/authentication/phoneMethods/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPhoneAuthenticationMethodFromDiscriminatorValue, deserializeIntoPhoneAuthenticationMethod, serializePhoneAuthenticationMethod, type PhoneAuthenticationMethod } from '../../../../../models/phoneAuthenticationMethod'; -import { DisableSmsSignInRequestBuilder } from './disableSmsSignIn/'; -import { EnableSmsSignInRequestBuilder } from './enableSmsSignIn/'; +import { DisableSmsSignInRequestBuilder } from './disableSmsSignIn'; +import { EnableSmsSignInRequestBuilder } from './enableSmsSignIn'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/softwareOathMethods/count/index.ts b/src/users/item/authentication/softwareOathMethods/count/index.ts index 3688d310d30..be0b04da913 100644 --- a/src/users/item/authentication/softwareOathMethods/count/index.ts +++ b/src/users/item/authentication/softwareOathMethods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/softwareOathMethods/index.ts b/src/users/item/authentication/softwareOathMethods/index.ts index a614dd70bae..d65202aa81f 100644 --- a/src/users/item/authentication/softwareOathMethods/index.ts +++ b/src/users/item/authentication/softwareOathMethods/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SoftwareOathAuthenticationMethodCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SoftwareOathAuthenticationMethodCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSoftwareOathAuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/softwareOathAuthenticationMethodCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SoftwareOathAuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SoftwareOathAuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SoftwareOathMethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/softwareOathMethods/item/index.ts b/src/users/item/authentication/softwareOathMethods/item/index.ts index 211a79b8919..b8cb08da46e 100644 --- a/src/users/item/authentication/softwareOathMethods/item/index.ts +++ b/src/users/item/authentication/softwareOathMethods/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SoftwareOathAuthenticationMethod } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type SoftwareOathAuthenticationMethod } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSoftwareOathAuthenticationMethodFromDiscriminatorValue } from '../../../../../models/softwareOathAuthenticationMethod'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/temporaryAccessPassMethods/count/index.ts b/src/users/item/authentication/temporaryAccessPassMethods/count/index.ts index f1c70bfce2c..ba0ac65931f 100644 --- a/src/users/item/authentication/temporaryAccessPassMethods/count/index.ts +++ b/src/users/item/authentication/temporaryAccessPassMethods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/temporaryAccessPassMethods/index.ts b/src/users/item/authentication/temporaryAccessPassMethods/index.ts index 6a4b7bc1971..d48680457c5 100644 --- a/src/users/item/authentication/temporaryAccessPassMethods/index.ts +++ b/src/users/item/authentication/temporaryAccessPassMethods/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TemporaryAccessPassAuthenticationMethodCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TemporaryAccessPassAuthenticationMethodCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTemporaryAccessPassAuthenticationMethodFromDiscriminatorValue, deserializeIntoTemporaryAccessPassAuthenticationMethod, serializeTemporaryAccessPassAuthenticationMethod, type TemporaryAccessPassAuthenticationMethod } from '../../../../models/temporaryAccessPassAuthenticationMethod'; import { createTemporaryAccessPassAuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/temporaryAccessPassAuthenticationMethodCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TemporaryAccessPassAuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TemporaryAccessPassAuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TemporaryAccessPassMethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/temporaryAccessPassMethods/item/index.ts b/src/users/item/authentication/temporaryAccessPassMethods/item/index.ts index b519aa475f1..5b323e45e48 100644 --- a/src/users/item/authentication/temporaryAccessPassMethods/item/index.ts +++ b/src/users/item/authentication/temporaryAccessPassMethods/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TemporaryAccessPassAuthenticationMethod } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TemporaryAccessPassAuthenticationMethod } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTemporaryAccessPassAuthenticationMethodFromDiscriminatorValue } from '../../../../../models/temporaryAccessPassAuthenticationMethod'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/windowsHelloForBusinessMethods/count/index.ts b/src/users/item/authentication/windowsHelloForBusinessMethods/count/index.ts index b7ecc3855b7..256d52d1225 100644 --- a/src/users/item/authentication/windowsHelloForBusinessMethods/count/index.ts +++ b/src/users/item/authentication/windowsHelloForBusinessMethods/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/windowsHelloForBusinessMethods/index.ts b/src/users/item/authentication/windowsHelloForBusinessMethods/index.ts index 1138ee84721..ac7e48c0b27 100644 --- a/src/users/item/authentication/windowsHelloForBusinessMethods/index.ts +++ b/src/users/item/authentication/windowsHelloForBusinessMethods/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsHelloForBusinessAuthenticationMethodCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type WindowsHelloForBusinessAuthenticationMethodCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createWindowsHelloForBusinessAuthenticationMethodCollectionResponseFromDiscriminatorValue } from '../../../../models/windowsHelloForBusinessAuthenticationMethodCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsHelloForBusinessMethodsRequestBuilderGetQueryParameters { diff --git a/src/users/item/authentication/windowsHelloForBusinessMethods/item/device/index.ts b/src/users/item/authentication/windowsHelloForBusinessMethods/item/device/index.ts index b9d00913ce6..676d2d72fcf 100644 --- a/src/users/item/authentication/windowsHelloForBusinessMethods/item/device/index.ts +++ b/src/users/item/authentication/windowsHelloForBusinessMethods/item/device/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../../models/'; +import { type Device } from '../../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../../models/device'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/authentication/windowsHelloForBusinessMethods/item/index.ts b/src/users/item/authentication/windowsHelloForBusinessMethods/item/index.ts index 3ea3f69d686..2e98f72d9b2 100644 --- a/src/users/item/authentication/windowsHelloForBusinessMethods/item/index.ts +++ b/src/users/item/authentication/windowsHelloForBusinessMethods/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsHelloForBusinessAuthenticationMethod } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type WindowsHelloForBusinessAuthenticationMethod } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createWindowsHelloForBusinessAuthenticationMethodFromDiscriminatorValue } from '../../../../../models/windowsHelloForBusinessAuthenticationMethod'; -import { DeviceRequestBuilder } from './device/'; +import { DeviceRequestBuilder } from './device'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsHelloForBusinessAuthenticationMethodItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/allowedCalendarSharingRolesWithUser/index.ts b/src/users/item/calendar/allowedCalendarSharingRolesWithUser/index.ts index bd4115018a0..f4613ac4c4c 100644 --- a/src/users/item/calendar/allowedCalendarSharingRolesWithUser/index.ts +++ b/src/users/item/calendar/allowedCalendarSharingRolesWithUser/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; import { CalendarRoleType } from '../../../../models/calendarRoleType'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AllowedCalendarSharingRolesWithUserGetResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -13,28 +11,6 @@ export interface AllowedCalendarSharingRolesWithUserGetResponse extends BaseColl */ value?: CalendarRoleType[]; } -export interface AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function createAllowedCalendarSharingRolesWithUserGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAllowedCalendarSharingRolesWithUserGetResponse; @@ -50,62 +26,5 @@ export function serializeAllowedCalendarSharingRolesWithUserGetResponse(writer: if(allowedCalendarSharingRolesWithUserGetResponse.value) writer.writeEnumValue("value", ...allowedCalendarSharingRolesWithUserGetResponse.value); } -/** - * Provides operations to call the allowedCalendarSharingRoles method. - */ -export class AllowedCalendarSharingRolesWithUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AllowedCalendarSharingRolesWithUserRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param User Usage: User='{User}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, user?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24top,%24skip,%24search,%24filter,%24count}"); - this.pathParameters["User"] = user - }; - /** - * Invoke function allowedCalendarSharingRoles - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AllowedCalendarSharingRolesWithUserGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAllowedCalendarSharingRolesWithUserGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function allowedCalendarSharingRoles - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, allowedCalendarSharingRolesWithUserRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a allowedCalendarSharingRolesWithUserRequestBuilder - */ - public withUrl(rawUrl: string) : AllowedCalendarSharingRolesWithUserRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const allowedCalendarSharingRolesWithUserRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarPermissions/count/index.ts b/src/users/item/calendar/calendarPermissions/count/index.ts index 77421c629d9..274542e17ff 100644 --- a/src/users/item/calendar/calendarPermissions/count/index.ts +++ b/src/users/item/calendar/calendarPermissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarPermissions/index.ts b/src/users/item/calendar/calendarPermissions/index.ts index 675489b0a0f..f448a1fa80b 100644 --- a/src/users/item/calendar/calendarPermissions/index.ts +++ b/src/users/item/calendar/calendarPermissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CalendarPermissionCollectionResponse } from '../../../../models/'; +import { type CalendarPermissionCollectionResponse } from '../../../../models'; import { createCalendarPermissionFromDiscriminatorValue, deserializeIntoCalendarPermission, serializeCalendarPermission, type CalendarPermission } from '../../../../models/calendarPermission'; import { createCalendarPermissionCollectionResponseFromDiscriminatorValue } from '../../../../models/calendarPermissionCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CalendarPermissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CalendarPermissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarPermissionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/calendarPermissions/item/index.ts b/src/users/item/calendar/calendarPermissions/item/index.ts index 6cc28042353..9ed28cf1bec 100644 --- a/src/users/item/calendar/calendarPermissions/item/index.ts +++ b/src/users/item/calendar/calendarPermissions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCalendarPermissionFromDiscriminatorValue, deserializeIntoCalendarPermission, serializeCalendarPermission, type CalendarPermission } from '../../../../../models/calendarPermission'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/count/index.ts b/src/users/item/calendar/calendarView/count/index.ts index f0046d31eaa..95ea38a4567 100644 --- a/src/users/item/calendar/calendarView/count/index.ts +++ b/src/users/item/calendar/calendarView/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/delta/index.ts b/src/users/item/calendar/calendarView/delta/index.ts index fbf4f20d0e8..4a82268c901 100644 --- a/src/users/item/calendar/calendarView/delta/index.ts +++ b/src/users/item/calendar/calendarView/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../models/event'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/index.ts b/src/users/item/calendar/calendarView/index.ts index 8cfc359bd64..23a99ade1c2 100644 --- a/src/users/item/calendar/calendarView/index.ts +++ b/src/users/item/calendar/calendarView/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../models/'; +import { type EventCollectionResponse } from '../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarViewRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/calendarView/item/accept/index.ts b/src/users/item/calendar/calendarView/item/accept/index.ts index 003799a6276..b5610d8248d 100644 --- a/src/users/item/calendar/calendarView/item/accept/index.ts +++ b/src/users/item/calendar/calendarView/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/attachments/count/index.ts b/src/users/item/calendar/calendarView/item/attachments/count/index.ts index be021e51e61..b19580e82ac 100644 --- a/src/users/item/calendar/calendarView/item/attachments/count/index.ts +++ b/src/users/item/calendar/calendarView/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/attachments/createUploadSession/index.ts b/src/users/item/calendar/calendarView/item/attachments/createUploadSession/index.ts index 74b290a6752..54687d79c67 100644 --- a/src/users/item/calendar/calendarView/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendar/calendarView/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/attachments/index.ts b/src/users/item/calendar/calendarView/item/attachments/index.ts index 3bf8e06746d..fb53eded5ed 100644 --- a/src/users/item/calendar/calendarView/item/attachments/index.ts +++ b/src/users/item/calendar/calendarView/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendar/calendarView/item/attachments/item/index.ts b/src/users/item/calendar/calendarView/item/attachments/item/index.ts index 85e9d8444ea..d184d7a3cda 100644 --- a/src/users/item/calendar/calendarView/item/attachments/item/index.ts +++ b/src/users/item/calendar/calendarView/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../models/'; +import { type Attachment } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/calendar/index.ts b/src/users/item/calendar/calendarView/item/calendar/index.ts index 30bd49642a9..efafeddc516 100644 --- a/src/users/item/calendar/calendarView/item/calendar/index.ts +++ b/src/users/item/calendar/calendarView/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../models/'; +import { type Calendar } from '../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendar/calendarView/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendar/calendarView/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/calendarView/item/cancel/index.ts b/src/users/item/calendar/calendarView/item/cancel/index.ts index f0798f7b354..8e2e1e83dd7 100644 --- a/src/users/item/calendar/calendarView/item/cancel/index.ts +++ b/src/users/item/calendar/calendarView/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendar/calendarView/item/decline/index.ts b/src/users/item/calendar/calendarView/item/decline/index.ts index 19c68a3e844..8a136bdb1c3 100644 --- a/src/users/item/calendar/calendarView/item/decline/index.ts +++ b/src/users/item/calendar/calendarView/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/dismissReminder/index.ts b/src/users/item/calendar/calendarView/item/dismissReminder/index.ts index c45e8245a9b..448143b6394 100644 --- a/src/users/item/calendar/calendarView/item/dismissReminder/index.ts +++ b/src/users/item/calendar/calendarView/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/extensions/count/index.ts b/src/users/item/calendar/calendarView/item/extensions/count/index.ts index 62b3ce3c2dd..482732b3844 100644 --- a/src/users/item/calendar/calendarView/item/extensions/count/index.ts +++ b/src/users/item/calendar/calendarView/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/extensions/index.ts b/src/users/item/calendar/calendarView/item/extensions/index.ts index bb9a6d6eb73..d184e79d555 100644 --- a/src/users/item/calendar/calendarView/item/extensions/index.ts +++ b/src/users/item/calendar/calendarView/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/calendarView/item/extensions/item/index.ts b/src/users/item/calendar/calendarView/item/extensions/item/index.ts index 999fad22741..16960a3346a 100644 --- a/src/users/item/calendar/calendarView/item/extensions/item/index.ts +++ b/src/users/item/calendar/calendarView/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/forward/forwardPostRequestBody.ts b/src/users/item/calendar/calendarView/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index c67b323605d..00000000000 --- a/src/users/item/calendar/calendarView/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/calendarView/item/forward/index.ts b/src/users/item/calendar/calendarView/item/forward/index.ts index 4cb41f4eb93..ed388113ade 100644 --- a/src/users/item/calendar/calendarView/item/forward/index.ts +++ b/src/users/item/calendar/calendarView/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendar/calendarView/item/index.ts b/src/users/item/calendar/calendarView/item/index.ts index 85ba8bea6c4..213c36c4f4b 100644 --- a/src/users/item/calendar/calendarView/item/index.ts +++ b/src/users/item/calendar/calendarView/item/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../models/'; +import { type Event } from '../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../models/event'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/calendarView/item/instances/count/index.ts b/src/users/item/calendar/calendarView/item/instances/count/index.ts index 1e4b83d6bbc..0a97a2bbb95 100644 --- a/src/users/item/calendar/calendarView/item/instances/count/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/instances/delta/index.ts b/src/users/item/calendar/calendarView/item/instances/delta/index.ts index d1380df5bd0..345a57a2320 100644 --- a/src/users/item/calendar/calendarView/item/instances/delta/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/instances/index.ts b/src/users/item/calendar/calendarView/item/instances/index.ts index d487685145e..772ebb0f69e 100644 --- a/src/users/item/calendar/calendarView/item/instances/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/calendarView/item/instances/item/accept/index.ts b/src/users/item/calendar/calendarView/item/instances/item/accept/index.ts index fac98a65f28..b5610d8248d 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/accept/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/instances/item/attachments/count/index.ts b/src/users/item/calendar/calendarView/item/instances/item/attachments/count/index.ts index f6c722adf72..e02c1dfc77c 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/attachments/count/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/instances/item/attachments/createUploadSession/index.ts b/src/users/item/calendar/calendarView/item/instances/item/attachments/createUploadSession/index.ts index 30af60643e0..52f5fca1468 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/instances/item/attachments/index.ts b/src/users/item/calendar/calendarView/item/instances/item/attachments/index.ts index 34e0bbd6a34..b573a8a5da3 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/attachments/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendar/calendarView/item/instances/item/attachments/item/index.ts b/src/users/item/calendar/calendarView/item/instances/item/attachments/item/index.ts index f19a46371b0..fa4c4045eca 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/attachments/item/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/instances/item/calendar/index.ts b/src/users/item/calendar/calendarView/item/instances/item/calendar/index.ts index 2f5621b85bd..d99a4a0524e 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/calendar/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendar/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendar/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/calendarView/item/instances/item/cancel/index.ts b/src/users/item/calendar/calendarView/item/instances/item/cancel/index.ts index b6aa41ea680..80e5aa3a262 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/cancel/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendar/calendarView/item/instances/item/decline/index.ts b/src/users/item/calendar/calendarView/item/instances/item/decline/index.ts index dd4bf7b321b..910f84649c0 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/decline/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/instances/item/dismissReminder/index.ts b/src/users/item/calendar/calendarView/item/instances/item/dismissReminder/index.ts index e6711d211e1..9fb49bf757d 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/dismissReminder/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/instances/item/extensions/count/index.ts b/src/users/item/calendar/calendarView/item/instances/item/extensions/count/index.ts index dc73739a21a..00c52ef573b 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/extensions/count/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/instances/item/extensions/index.ts b/src/users/item/calendar/calendarView/item/instances/item/extensions/index.ts index 5ee959dc826..630cfd265af 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/extensions/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/calendarView/item/instances/item/extensions/item/index.ts b/src/users/item/calendar/calendarView/item/instances/item/extensions/item/index.ts index 0eedcdb37fc..a19b8d1d575 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/extensions/item/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/calendarView/item/instances/item/forward/forwardPostRequestBody.ts b/src/users/item/calendar/calendarView/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 37dde22b05f..00000000000 --- a/src/users/item/calendar/calendarView/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/calendarView/item/instances/item/forward/index.ts b/src/users/item/calendar/calendarView/item/instances/item/forward/index.ts index 73b034ddf98..4a420a366b3 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/forward/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendar/calendarView/item/instances/item/index.ts b/src/users/item/calendar/calendarView/item/instances/item/index.ts index 21c40f65434..c396c06d9c6 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../models/'; +import { type Event } from '../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/calendarView/item/instances/item/snoozeReminder/index.ts b/src/users/item/calendar/calendarView/item/instances/item/snoozeReminder/index.ts index 645f7ed217b..d3a440b7f2c 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/snoozeReminder/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/instances/item/tentativelyAccept/index.ts b/src/users/item/calendar/calendarView/item/instances/item/tentativelyAccept/index.ts index 713bdcf1e57..923af51d576 100644 --- a/src/users/item/calendar/calendarView/item/instances/item/tentativelyAccept/index.ts +++ b/src/users/item/calendar/calendarView/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/snoozeReminder/index.ts b/src/users/item/calendar/calendarView/item/snoozeReminder/index.ts index 575c5452c15..5497b6947e1 100644 --- a/src/users/item/calendar/calendarView/item/snoozeReminder/index.ts +++ b/src/users/item/calendar/calendarView/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/calendarView/item/tentativelyAccept/index.ts b/src/users/item/calendar/calendarView/item/tentativelyAccept/index.ts index 47fc69803cb..48001c4a2e2 100644 --- a/src/users/item/calendar/calendarView/item/tentativelyAccept/index.ts +++ b/src/users/item/calendar/calendarView/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/count/index.ts b/src/users/item/calendar/events/count/index.ts index 5d343c111be..5702069b7a6 100644 --- a/src/users/item/calendar/events/count/index.ts +++ b/src/users/item/calendar/events/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/delta/index.ts b/src/users/item/calendar/events/delta/index.ts index 80619193c55..4a82268c901 100644 --- a/src/users/item/calendar/events/delta/index.ts +++ b/src/users/item/calendar/events/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../models/event'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/index.ts b/src/users/item/calendar/events/index.ts index 300e2d2a9aa..aee076b226f 100644 --- a/src/users/item/calendar/events/index.ts +++ b/src/users/item/calendar/events/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../models/'; +import { type EventCollectionResponse } from '../../../../models'; import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../models/event'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/events/item/accept/index.ts b/src/users/item/calendar/events/item/accept/index.ts index c99f2ce5a9c..b5610d8248d 100644 --- a/src/users/item/calendar/events/item/accept/index.ts +++ b/src/users/item/calendar/events/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/attachments/count/index.ts b/src/users/item/calendar/events/item/attachments/count/index.ts index a73e7e3c844..89cd3326d18 100644 --- a/src/users/item/calendar/events/item/attachments/count/index.ts +++ b/src/users/item/calendar/events/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/attachments/createUploadSession/index.ts b/src/users/item/calendar/events/item/attachments/createUploadSession/index.ts index a43a69f2022..54687d79c67 100644 --- a/src/users/item/calendar/events/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendar/events/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/attachments/index.ts b/src/users/item/calendar/events/item/attachments/index.ts index 5a2939fc925..da5f60c1876 100644 --- a/src/users/item/calendar/events/item/attachments/index.ts +++ b/src/users/item/calendar/events/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendar/events/item/attachments/item/index.ts b/src/users/item/calendar/events/item/attachments/item/index.ts index 5ac795f8fc9..9ca45c10c90 100644 --- a/src/users/item/calendar/events/item/attachments/item/index.ts +++ b/src/users/item/calendar/events/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../models/'; +import { type Attachment } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/calendar/index.ts b/src/users/item/calendar/events/item/calendar/index.ts index c86d361c7f8..64bf9ee9060 100644 --- a/src/users/item/calendar/events/item/calendar/index.ts +++ b/src/users/item/calendar/events/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../models/'; +import { type Calendar } from '../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendar/events/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendar/events/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/events/item/cancel/index.ts b/src/users/item/calendar/events/item/cancel/index.ts index 61c84d6f380..eb324725d62 100644 --- a/src/users/item/calendar/events/item/cancel/index.ts +++ b/src/users/item/calendar/events/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendar/events/item/decline/index.ts b/src/users/item/calendar/events/item/decline/index.ts index 7b5b83016c8..8a136bdb1c3 100644 --- a/src/users/item/calendar/events/item/decline/index.ts +++ b/src/users/item/calendar/events/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/dismissReminder/index.ts b/src/users/item/calendar/events/item/dismissReminder/index.ts index 3385f37c56a..919750a4871 100644 --- a/src/users/item/calendar/events/item/dismissReminder/index.ts +++ b/src/users/item/calendar/events/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/extensions/count/index.ts b/src/users/item/calendar/events/item/extensions/count/index.ts index 2f265ff3805..367eb7d0f32 100644 --- a/src/users/item/calendar/events/item/extensions/count/index.ts +++ b/src/users/item/calendar/events/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/extensions/index.ts b/src/users/item/calendar/events/item/extensions/index.ts index d3525353c4f..5306ce0982f 100644 --- a/src/users/item/calendar/events/item/extensions/index.ts +++ b/src/users/item/calendar/events/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/events/item/extensions/item/index.ts b/src/users/item/calendar/events/item/extensions/item/index.ts index bf40bfc30c1..c1088c8c8e3 100644 --- a/src/users/item/calendar/events/item/extensions/item/index.ts +++ b/src/users/item/calendar/events/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/forward/forwardPostRequestBody.ts b/src/users/item/calendar/events/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index c67b323605d..00000000000 --- a/src/users/item/calendar/events/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/events/item/forward/index.ts b/src/users/item/calendar/events/item/forward/index.ts index 9e61d374bc4..6649a9f2461 100644 --- a/src/users/item/calendar/events/item/forward/index.ts +++ b/src/users/item/calendar/events/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendar/events/item/index.ts b/src/users/item/calendar/events/item/index.ts index c6ed0eab2f6..99e238753e9 100644 --- a/src/users/item/calendar/events/item/index.ts +++ b/src/users/item/calendar/events/item/index.ts @@ -2,19 +2,19 @@ // eslint-disable // Generated by Microsoft Kiota import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../../models/event'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/events/item/instances/count/index.ts b/src/users/item/calendar/events/item/instances/count/index.ts index 1fef479d126..bf7d7436781 100644 --- a/src/users/item/calendar/events/item/instances/count/index.ts +++ b/src/users/item/calendar/events/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/instances/delta/index.ts b/src/users/item/calendar/events/item/instances/delta/index.ts index 61196c44152..345a57a2320 100644 --- a/src/users/item/calendar/events/item/instances/delta/index.ts +++ b/src/users/item/calendar/events/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/instances/index.ts b/src/users/item/calendar/events/item/instances/index.ts index 1ae130b0a25..70496b1ce3e 100644 --- a/src/users/item/calendar/events/item/instances/index.ts +++ b/src/users/item/calendar/events/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/events/item/instances/item/accept/index.ts b/src/users/item/calendar/events/item/instances/item/accept/index.ts index 0a064fdd9e8..b5610d8248d 100644 --- a/src/users/item/calendar/events/item/instances/item/accept/index.ts +++ b/src/users/item/calendar/events/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/instances/item/attachments/count/index.ts b/src/users/item/calendar/events/item/instances/item/attachments/count/index.ts index 7a2fd7434da..11e3200abad 100644 --- a/src/users/item/calendar/events/item/instances/item/attachments/count/index.ts +++ b/src/users/item/calendar/events/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/instances/item/attachments/createUploadSession/index.ts b/src/users/item/calendar/events/item/instances/item/attachments/createUploadSession/index.ts index 3a0f3657253..52f5fca1468 100644 --- a/src/users/item/calendar/events/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendar/events/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/instances/item/attachments/index.ts b/src/users/item/calendar/events/item/instances/item/attachments/index.ts index 0d73eccd48d..c31791cedbf 100644 --- a/src/users/item/calendar/events/item/instances/item/attachments/index.ts +++ b/src/users/item/calendar/events/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendar/events/item/instances/item/attachments/item/index.ts b/src/users/item/calendar/events/item/instances/item/attachments/item/index.ts index 07343aabc95..b524e0d9053 100644 --- a/src/users/item/calendar/events/item/instances/item/attachments/item/index.ts +++ b/src/users/item/calendar/events/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/instances/item/calendar/index.ts b/src/users/item/calendar/events/item/instances/item/calendar/index.ts index ccba3e497a9..4d655a8e075 100644 --- a/src/users/item/calendar/events/item/instances/item/calendar/index.ts +++ b/src/users/item/calendar/events/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/instances/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendar/events/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendar/events/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/events/item/instances/item/cancel/index.ts b/src/users/item/calendar/events/item/instances/item/cancel/index.ts index a206ac875d1..0773d01c9ee 100644 --- a/src/users/item/calendar/events/item/instances/item/cancel/index.ts +++ b/src/users/item/calendar/events/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendar/events/item/instances/item/decline/index.ts b/src/users/item/calendar/events/item/instances/item/decline/index.ts index 3e52efb5168..910f84649c0 100644 --- a/src/users/item/calendar/events/item/instances/item/decline/index.ts +++ b/src/users/item/calendar/events/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/instances/item/dismissReminder/index.ts b/src/users/item/calendar/events/item/instances/item/dismissReminder/index.ts index 8a4d8d32e3a..57ff88e8019 100644 --- a/src/users/item/calendar/events/item/instances/item/dismissReminder/index.ts +++ b/src/users/item/calendar/events/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/instances/item/extensions/count/index.ts b/src/users/item/calendar/events/item/instances/item/extensions/count/index.ts index d918afb0ca7..182178e22cc 100644 --- a/src/users/item/calendar/events/item/instances/item/extensions/count/index.ts +++ b/src/users/item/calendar/events/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/instances/item/extensions/index.ts b/src/users/item/calendar/events/item/instances/item/extensions/index.ts index 0ba8938f263..8843b640f71 100644 --- a/src/users/item/calendar/events/item/instances/item/extensions/index.ts +++ b/src/users/item/calendar/events/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/events/item/instances/item/extensions/item/index.ts b/src/users/item/calendar/events/item/instances/item/extensions/item/index.ts index f5b35b6c1c1..48c28e4a5b1 100644 --- a/src/users/item/calendar/events/item/instances/item/extensions/item/index.ts +++ b/src/users/item/calendar/events/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendar/events/item/instances/item/forward/forwardPostRequestBody.ts b/src/users/item/calendar/events/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 37dde22b05f..00000000000 --- a/src/users/item/calendar/events/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/events/item/instances/item/forward/index.ts b/src/users/item/calendar/events/item/instances/item/forward/index.ts index 2925c154c96..87953e68983 100644 --- a/src/users/item/calendar/events/item/instances/item/forward/index.ts +++ b/src/users/item/calendar/events/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendar/events/item/instances/item/index.ts b/src/users/item/calendar/events/item/instances/item/index.ts index 60b8a5e1255..c9ae0b00e46 100644 --- a/src/users/item/calendar/events/item/instances/item/index.ts +++ b/src/users/item/calendar/events/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../models/'; +import { type Event } from '../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendar/events/item/instances/item/snoozeReminder/index.ts b/src/users/item/calendar/events/item/instances/item/snoozeReminder/index.ts index 7f71dd95b20..d3a440b7f2c 100644 --- a/src/users/item/calendar/events/item/instances/item/snoozeReminder/index.ts +++ b/src/users/item/calendar/events/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/instances/item/tentativelyAccept/index.ts b/src/users/item/calendar/events/item/instances/item/tentativelyAccept/index.ts index 8a79d105942..923af51d576 100644 --- a/src/users/item/calendar/events/item/instances/item/tentativelyAccept/index.ts +++ b/src/users/item/calendar/events/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/snoozeReminder/index.ts b/src/users/item/calendar/events/item/snoozeReminder/index.ts index 23a59348891..5497b6947e1 100644 --- a/src/users/item/calendar/events/item/snoozeReminder/index.ts +++ b/src/users/item/calendar/events/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/events/item/tentativelyAccept/index.ts b/src/users/item/calendar/events/item/tentativelyAccept/index.ts index dcf5a6a6a4e..48001c4a2e2 100644 --- a/src/users/item/calendar/events/item/tentativelyAccept/index.ts +++ b/src/users/item/calendar/events/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/getSchedule/getSchedulePostResponse.ts b/src/users/item/calendar/getSchedule/getSchedulePostResponse.ts deleted file mode 100644 index 805879805a0..00000000000 --- a/src/users/item/calendar/getSchedule/getSchedulePostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createScheduleInformationFromDiscriminatorValue, serializeScheduleInformation, type ScheduleInformation } from '../../../../models/scheduleInformation'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetSchedulePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetSchedulePostResponse; -} -export function deserializeIntoGetSchedulePostResponse(getSchedulePostResponse: GetSchedulePostResponse | undefined = {} as GetSchedulePostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getSchedulePostResponse), - "value": n => { getSchedulePostResponse.value = n.getCollectionOfObjectValues(createScheduleInformationFromDiscriminatorValue); }, - } -} -export interface GetSchedulePostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ScheduleInformation[]; -} -export function serializeGetSchedulePostResponse(writer: SerializationWriter, getSchedulePostResponse: GetSchedulePostResponse | undefined = {} as GetSchedulePostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getSchedulePostResponse) - writer.writeCollectionOfObjectValues("value", getSchedulePostResponse.value, serializeScheduleInformation); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendar/getSchedule/index.ts b/src/users/item/calendar/getSchedule/index.ts index c424280711d..0535387fedc 100644 --- a/src/users/item/calendar/getSchedule/index.ts +++ b/src/users/item/calendar/getSchedule/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createGetSchedulePostResponseFromDiscriminatorValue, deserializeIntoGetSchedulePostResponse, serializeGetSchedulePostResponse, type GetSchedulePostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetSchedulePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,58 +45,5 @@ export function serializeGetSchedulePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("StartTime", getSchedulePostRequestBody.startTime, serializeDateTimeTimeZone); writer.writeAdditionalData(getSchedulePostRequestBody.additionalData); } -/** - * Provides operations to call the getSchedule method. - */ -export class GetScheduleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetScheduleRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/getSchedule"); - }; - /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetSchedulePostResponse - * @see {@link https://learn.microsoft.com/graph/api/calendar-getschedule?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetSchedulePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetSchedulePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetSchedulePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetSchedulePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getScheduleRequestBuilder - */ - public withUrl(rawUrl: string) : GetScheduleRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetScheduleRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendar/index.ts b/src/users/item/calendar/index.ts index c7d64c07014..2ad9ae49506 100644 --- a/src/users/item/calendar/index.ts +++ b/src/users/item/calendar/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createCalendarFromDiscriminatorValue, deserializeIntoCalendar, serializeCalendar, type Calendar } from '../../../models/calendar'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { AllowedCalendarSharingRolesWithUserRequestBuilder } from './allowedCalendarSharingRolesWithUser/'; -import { CalendarPermissionsRequestBuilder } from './calendarPermissions/'; -import { CalendarViewRequestBuilder } from './calendarView/'; -import { EventsRequestBuilder } from './events/'; -import { GetScheduleRequestBuilder } from './getSchedule/'; +import { AllowedCalendarSharingRolesWithUserRequestBuilder } from './allowedCalendarSharingRolesWithUser'; +import { CalendarPermissionsRequestBuilder } from './calendarPermissions'; +import { CalendarViewRequestBuilder } from './calendarView'; +import { EventsRequestBuilder } from './events'; +import { GetScheduleRequestBuilder } from './getSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/count/index.ts b/src/users/item/calendarGroups/count/index.ts index 728a2fe740b..a63afc2d80d 100644 --- a/src/users/item/calendarGroups/count/index.ts +++ b/src/users/item/calendarGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/index.ts b/src/users/item/calendarGroups/index.ts index c341a2b7d93..8b8d01d81ee 100644 --- a/src/users/item/calendarGroups/index.ts +++ b/src/users/item/calendarGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CalendarGroupCollectionResponse } from '../../../models/'; +import { type CalendarGroupCollectionResponse } from '../../../models'; import { createCalendarGroupFromDiscriminatorValue, deserializeIntoCalendarGroup, serializeCalendarGroup, type CalendarGroup } from '../../../models/calendarGroup'; import { createCalendarGroupCollectionResponseFromDiscriminatorValue } from '../../../models/calendarGroupCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CalendarGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CalendarGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarGroupsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/count/index.ts b/src/users/item/calendarGroups/item/calendars/count/index.ts index dd96cc4f8d6..16eb49ff1ef 100644 --- a/src/users/item/calendarGroups/item/calendars/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/index.ts b/src/users/item/calendarGroups/item/calendars/index.ts index 13137066f69..2c0bfe62292 100644 --- a/src/users/item/calendarGroups/item/calendars/index.ts +++ b/src/users/item/calendarGroups/item/calendars/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CalendarCollectionResponse } from '../../../../../models/'; +import { type CalendarCollectionResponse } from '../../../../../models'; import { createCalendarFromDiscriminatorValue, deserializeIntoCalendar, serializeCalendar, type Calendar } from '../../../../../models/calendar'; import { createCalendarCollectionResponseFromDiscriminatorValue } from '../../../../../models/calendarCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CalendarItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CalendarItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/allowedCalendarSharingRolesWithUser/index.ts b/src/users/item/calendarGroups/item/calendars/item/allowedCalendarSharingRolesWithUser/index.ts index 6df240d97af..2b338a79d8a 100644 --- a/src/users/item/calendarGroups/item/calendars/item/allowedCalendarSharingRolesWithUser/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/allowedCalendarSharingRolesWithUser/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; import { CalendarRoleType } from '../../../../../../../models/calendarRoleType'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AllowedCalendarSharingRolesWithUserGetResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -13,28 +11,6 @@ export interface AllowedCalendarSharingRolesWithUserGetResponse extends BaseColl */ value?: CalendarRoleType[]; } -export interface AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function createAllowedCalendarSharingRolesWithUserGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAllowedCalendarSharingRolesWithUserGetResponse; @@ -50,62 +26,5 @@ export function serializeAllowedCalendarSharingRolesWithUserGetResponse(writer: if(allowedCalendarSharingRolesWithUserGetResponse.value) writer.writeEnumValue("value", ...allowedCalendarSharingRolesWithUserGetResponse.value); } -/** - * Provides operations to call the allowedCalendarSharingRoles method. - */ -export class AllowedCalendarSharingRolesWithUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AllowedCalendarSharingRolesWithUserRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param User Usage: User='{User}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, user?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/allowedCalendarSharingRoles(User='{User}'){?%24top,%24skip,%24search,%24filter,%24count}"); - this.pathParameters["User"] = user - }; - /** - * Invoke function allowedCalendarSharingRoles - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AllowedCalendarSharingRolesWithUserGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAllowedCalendarSharingRolesWithUserGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function allowedCalendarSharingRoles - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, allowedCalendarSharingRolesWithUserRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a allowedCalendarSharingRolesWithUserRequestBuilder - */ - public withUrl(rawUrl: string) : AllowedCalendarSharingRolesWithUserRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const allowedCalendarSharingRolesWithUserRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/count/index.ts index ab41a1f046d..b20fce667e7 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/index.ts index 196e5caaab7..36c28d77e00 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CalendarPermissionCollectionResponse } from '../../../../../../../models/'; +import { type CalendarPermissionCollectionResponse } from '../../../../../../../models'; import { createCalendarPermissionFromDiscriminatorValue, deserializeIntoCalendarPermission, serializeCalendarPermission, type CalendarPermission } from '../../../../../../../models/calendarPermission'; import { createCalendarPermissionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/calendarPermissionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CalendarPermissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CalendarPermissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarPermissionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/item/index.ts index 60b8e1e7e5b..4a6baff24c3 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarPermissions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCalendarPermissionFromDiscriminatorValue, deserializeIntoCalendarPermission, serializeCalendarPermission, type CalendarPermission } from '../../../../../../../../models/calendarPermission'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/count/index.ts index a333593a01e..0a1187c9121 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/delta/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/delta/index.ts index be13d5e495b..7e1209814ee 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/delta/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/index.ts index 34c5bee69cc..995c77c8337 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarViewRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/accept/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/accept/index.ts index 038282e738c..b5610d8248d 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/accept/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/count/index.ts index 4bea4e9248e..62aeb651bdd 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/createUploadSession/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/createUploadSession/index.ts index cd6cd790797..3b5d23832da 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/index.ts index 461bc812116..e064cbfc6ab 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/item/index.ts index cf581190d86..a313c01ea49 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/calendar/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/calendar/index.ts index bab8849f87c..74514630220 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/calendar/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/cancel/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/cancel/index.ts index ab9e6fd1a9e..dea62144084 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/cancel/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/decline/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/decline/index.ts index cc2dc17af41..ceddc11ba8d 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/decline/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/dismissReminder/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/dismissReminder/index.ts index 8a812e00783..7671d1df3c3 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/dismissReminder/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/count/index.ts index 009005e36eb..baea003d797 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/index.ts index ccdefcce77c..653b9e446da 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/item/index.ts index 3b382cd0d94..24b72c8afd2 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/forward/forwardPostRequestBody.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 2876b9f2774..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/forward/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/forward/index.ts index fde9f070fbe..c5e1bdd6935 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/forward/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/index.ts index e4188b1c2de..86c98762e79 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../../models/'; +import { type Event } from '../../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/count/index.ts index 01f063217e1..e4aff4e1cd0 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/delta/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/delta/index.ts index e3b302b1e28..c4379d2174a 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/delta/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/index.ts index 6baebc508f6..55ed6345e36 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/accept/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/accept/index.ts index da71db17144..b5610d8248d 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/accept/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/count/index.ts index 5e60b406d6c..5f7630b2a51 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts index 668fb151863..75dab29a55e 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/index.ts index 01f2190c98c..19fc7a564c8 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/item/index.ts index 5e43febc64b..74bfc233b62 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/calendar/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/calendar/index.ts index c334a6d332c..a9e390642ae 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/calendar/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/cancel/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/cancel/index.ts index acc3dde9266..c0ab906d4ed 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/cancel/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/decline/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/decline/index.ts index dddef0f2125..8993fdb5448 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/decline/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/dismissReminder/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/dismissReminder/index.ts index 37375c9ae1c..745675e04f1 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/dismissReminder/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/count/index.ts index f6001259083..78f454b375a 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/index.ts index d2e6843988e..8228765636d 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/item/index.ts index 3f785b6d1be..7f9f8f72841 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 513858ad7bf..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/forward/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/forward/index.ts index af73603963a..d1533c0a91c 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/forward/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/index.ts index a1ef0fe2738..a5c829ff9ff 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../../../../models/'; +import { type Event } from '../../../../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/snoozeReminder/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/snoozeReminder/index.ts index b8747b0b94e..8dd26e2776c 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/snoozeReminder/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/tentativelyAccept/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/tentativelyAccept/index.ts index 23a6ac7320b..085141c8777 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/tentativelyAccept/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/snoozeReminder/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/snoozeReminder/index.ts index eec29a9ccaa..7aea219db54 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/snoozeReminder/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/tentativelyAccept/index.ts b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/tentativelyAccept/index.ts index ee4b808a7ed..49b97c5487a 100644 --- a/src/users/item/calendarGroups/item/calendars/item/calendarView/item/tentativelyAccept/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/calendarView/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/count/index.ts index 7d9ef355297..5b39290b2df 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/delta/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/delta/index.ts index 528813cec5a..7e1209814ee 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/delta/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/index.ts index 534a960f612..3561a9df8ca 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../../models'; import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../../../../models/event'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/accept/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/accept/index.ts index 25c44607c6e..b5610d8248d 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/accept/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/count/index.ts index 464949f7ef4..7ea4a27e345 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/createUploadSession/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/createUploadSession/index.ts index 17754baaaab..3b5d23832da 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/index.ts index 83e97488673..b5abcfb62a7 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/item/index.ts index 6a68a7511e8..3689fc53639 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/calendar/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/calendar/index.ts index 926e44e953e..46a1138ca03 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/calendar/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/cancel/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/cancel/index.ts index b13636a9263..66a7817b731 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/cancel/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/decline/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/decline/index.ts index 898e322ca99..ceddc11ba8d 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/decline/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/dismissReminder/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/dismissReminder/index.ts index 64998794c3c..4a2d4096780 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/dismissReminder/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/count/index.ts index f0477cb8881..1d0d7d957be 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/index.ts index 79819191f94..c0ca1d0b5f9 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/item/index.ts index b38381f8942..569b1d1bc81 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/forward/forwardPostRequestBody.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 2876b9f2774..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/forward/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/forward/index.ts index 177f5e13a7d..fcab913e0ed 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/forward/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/index.ts index 27d0bdbd877..6ac2f52667a 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/index.ts @@ -2,19 +2,19 @@ // eslint-disable // Generated by Microsoft Kiota import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/count/index.ts index 89afba8e6c6..0955a759425 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/delta/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/delta/index.ts index df23be7558e..c4379d2174a 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/delta/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/index.ts index ecdcc1e2c65..fce1d9cb84f 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/accept/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/accept/index.ts index 00eb09dd950..b5610d8248d 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/accept/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/count/index.ts index 969686dcc9e..b0372e811b2 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/createUploadSession/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/createUploadSession/index.ts index e77549f0a3e..75dab29a55e 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/index.ts index fd90887cb14..12cce986019 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/item/index.ts index 9f1c40c94c3..b66f366cf03 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/calendar/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/calendar/index.ts index 75e908f4ba7..57006856b33 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/calendar/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/cancel/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/cancel/index.ts index 9adbda9acd7..7afde6e1f1a 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/cancel/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/decline/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/decline/index.ts index 82df4f99fd4..8993fdb5448 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/decline/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/dismissReminder/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/dismissReminder/index.ts index b8d70d00ec0..e7ce73a2978 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/dismissReminder/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/count/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/count/index.ts index 1e6b5ef593a..9f0cd1e4ed3 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/count/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/index.ts index 31bb29e0339..87b338c8392 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/item/index.ts index c3fc2bbbf5d..1e230288044 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/forward/forwardPostRequestBody.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 513858ad7bf..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/forward/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/forward/index.ts index 8e83f32c398..3a4074ef552 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/forward/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/index.ts index ffbe835c1e8..4267bdc0e9f 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../../../../models/'; +import { type Event } from '../../../../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/snoozeReminder/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/snoozeReminder/index.ts index e76e97f9dfb..8dd26e2776c 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/snoozeReminder/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/tentativelyAccept/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/tentativelyAccept/index.ts index 566894ca024..085141c8777 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/tentativelyAccept/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/snoozeReminder/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/snoozeReminder/index.ts index 93d65ba1c4d..7aea219db54 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/snoozeReminder/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/events/item/tentativelyAccept/index.ts b/src/users/item/calendarGroups/item/calendars/item/events/item/tentativelyAccept/index.ts index 3fb4cc99239..49b97c5487a 100644 --- a/src/users/item/calendarGroups/item/calendars/item/events/item/tentativelyAccept/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/events/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/getSchedule/getSchedulePostResponse.ts b/src/users/item/calendarGroups/item/calendars/item/getSchedule/getSchedulePostResponse.ts deleted file mode 100644 index 787e0765e07..00000000000 --- a/src/users/item/calendarGroups/item/calendars/item/getSchedule/getSchedulePostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createScheduleInformationFromDiscriminatorValue, serializeScheduleInformation, type ScheduleInformation } from '../../../../../../../models/scheduleInformation'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetSchedulePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetSchedulePostResponse; -} -export function deserializeIntoGetSchedulePostResponse(getSchedulePostResponse: GetSchedulePostResponse | undefined = {} as GetSchedulePostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getSchedulePostResponse), - "value": n => { getSchedulePostResponse.value = n.getCollectionOfObjectValues(createScheduleInformationFromDiscriminatorValue); }, - } -} -export interface GetSchedulePostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ScheduleInformation[]; -} -export function serializeGetSchedulePostResponse(writer: SerializationWriter, getSchedulePostResponse: GetSchedulePostResponse | undefined = {} as GetSchedulePostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getSchedulePostResponse) - writer.writeCollectionOfObjectValues("value", getSchedulePostResponse.value, serializeScheduleInformation); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/getSchedule/index.ts b/src/users/item/calendarGroups/item/calendars/item/getSchedule/index.ts index 71fd2ebc3e9..6ac8d9b9786 100644 --- a/src/users/item/calendarGroups/item/calendars/item/getSchedule/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/getSchedule/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createGetSchedulePostResponseFromDiscriminatorValue, deserializeIntoGetSchedulePostResponse, serializeGetSchedulePostResponse, type GetSchedulePostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetSchedulePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,58 +45,5 @@ export function serializeGetSchedulePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("StartTime", getSchedulePostRequestBody.startTime, serializeDateTimeTimeZone); writer.writeAdditionalData(getSchedulePostRequestBody.additionalData); } -/** - * Provides operations to call the getSchedule method. - */ -export class GetScheduleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetScheduleRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/getSchedule"); - }; - /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetSchedulePostResponse - * @see {@link https://learn.microsoft.com/graph/api/calendar-getschedule?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetSchedulePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetSchedulePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetSchedulePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetSchedulePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getScheduleRequestBuilder - */ - public withUrl(rawUrl: string) : GetScheduleRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetScheduleRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarGroups/item/calendars/item/index.ts b/src/users/item/calendarGroups/item/calendars/item/index.ts index e4d81053b90..9c3cffcb6e7 100644 --- a/src/users/item/calendarGroups/item/calendars/item/index.ts +++ b/src/users/item/calendarGroups/item/calendars/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createCalendarFromDiscriminatorValue, deserializeIntoCalendar, serializeCalendar, type Calendar } from '../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AllowedCalendarSharingRolesWithUserRequestBuilder } from './allowedCalendarSharingRolesWithUser/'; -import { CalendarPermissionsRequestBuilder } from './calendarPermissions/'; -import { CalendarViewRequestBuilder } from './calendarView/'; -import { EventsRequestBuilder } from './events/'; -import { GetScheduleRequestBuilder } from './getSchedule/'; +import { AllowedCalendarSharingRolesWithUserRequestBuilder } from './allowedCalendarSharingRolesWithUser'; +import { CalendarPermissionsRequestBuilder } from './calendarPermissions'; +import { CalendarViewRequestBuilder } from './calendarView'; +import { EventsRequestBuilder } from './events'; +import { GetScheduleRequestBuilder } from './getSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarGroups/item/index.ts b/src/users/item/calendarGroups/item/index.ts index 82b589d86f4..b112d5a603e 100644 --- a/src/users/item/calendarGroups/item/index.ts +++ b/src/users/item/calendarGroups/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCalendarGroupFromDiscriminatorValue, deserializeIntoCalendarGroup, serializeCalendarGroup, type CalendarGroup } from '../../../../models/calendarGroup'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CalendarsRequestBuilder } from './calendars/'; +import { CalendarsRequestBuilder } from './calendars'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarGroupItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarView/count/index.ts b/src/users/item/calendarView/count/index.ts index 91da14a1b70..fffc96875b9 100644 --- a/src/users/item/calendarView/count/index.ts +++ b/src/users/item/calendarView/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/delta/index.ts b/src/users/item/calendarView/delta/index.ts index da0e215a9f7..214a77abb5c 100644 --- a/src/users/item/calendarView/delta/index.ts +++ b/src/users/item/calendarView/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../models/event'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/index.ts b/src/users/item/calendarView/index.ts index cb68880e9c3..d361aad73f0 100644 --- a/src/users/item/calendarView/index.ts +++ b/src/users/item/calendarView/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../models/'; +import { type EventCollectionResponse } from '../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarViewRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarView/item/accept/index.ts b/src/users/item/calendarView/item/accept/index.ts index c91ec727ee3..b5610d8248d 100644 --- a/src/users/item/calendarView/item/accept/index.ts +++ b/src/users/item/calendarView/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/attachments/count/index.ts b/src/users/item/calendarView/item/attachments/count/index.ts index 1ac90002dd0..f6fb5d0d4c8 100644 --- a/src/users/item/calendarView/item/attachments/count/index.ts +++ b/src/users/item/calendarView/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/attachments/createUploadSession/index.ts b/src/users/item/calendarView/item/attachments/createUploadSession/index.ts index 55ef3301323..c88e1410394 100644 --- a/src/users/item/calendarView/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendarView/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/attachments/index.ts b/src/users/item/calendarView/item/attachments/index.ts index b474f7f7349..a317ff91e3f 100644 --- a/src/users/item/calendarView/item/attachments/index.ts +++ b/src/users/item/calendarView/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendarView/item/attachments/item/index.ts b/src/users/item/calendarView/item/attachments/item/index.ts index 7fd4ee25242..9d18c1769cb 100644 --- a/src/users/item/calendarView/item/attachments/item/index.ts +++ b/src/users/item/calendarView/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../models/'; +import { type Attachment } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/calendar/index.ts b/src/users/item/calendarView/item/calendar/index.ts index 50440dea5eb..fe633a149a7 100644 --- a/src/users/item/calendarView/item/calendar/index.ts +++ b/src/users/item/calendarView/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../models/'; +import { type Calendar } from '../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../models/calendar'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendarView/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendarView/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarView/item/cancel/index.ts b/src/users/item/calendarView/item/cancel/index.ts index 8d6a21cd1dd..08b65a9103a 100644 --- a/src/users/item/calendarView/item/cancel/index.ts +++ b/src/users/item/calendarView/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendarView/item/decline/index.ts b/src/users/item/calendarView/item/decline/index.ts index ff98dbeac3b..b720cc715fa 100644 --- a/src/users/item/calendarView/item/decline/index.ts +++ b/src/users/item/calendarView/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/dismissReminder/index.ts b/src/users/item/calendarView/item/dismissReminder/index.ts index c6e82310da3..1126f5285e4 100644 --- a/src/users/item/calendarView/item/dismissReminder/index.ts +++ b/src/users/item/calendarView/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/extensions/count/index.ts b/src/users/item/calendarView/item/extensions/count/index.ts index 689ff9cffad..148dd1ebe32 100644 --- a/src/users/item/calendarView/item/extensions/count/index.ts +++ b/src/users/item/calendarView/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/extensions/index.ts b/src/users/item/calendarView/item/extensions/index.ts index 297c1050d9b..918b9adeee9 100644 --- a/src/users/item/calendarView/item/extensions/index.ts +++ b/src/users/item/calendarView/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarView/item/extensions/item/index.ts b/src/users/item/calendarView/item/extensions/item/index.ts index 6a7d0206d41..fd7ec2c33ea 100644 --- a/src/users/item/calendarView/item/extensions/item/index.ts +++ b/src/users/item/calendarView/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/forward/forwardPostRequestBody.ts b/src/users/item/calendarView/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 5b7e40ebb5d..00000000000 --- a/src/users/item/calendarView/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarView/item/forward/index.ts b/src/users/item/calendarView/item/forward/index.ts index 8737d83017f..f27050d1707 100644 --- a/src/users/item/calendarView/item/forward/index.ts +++ b/src/users/item/calendarView/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendarView/item/index.ts b/src/users/item/calendarView/item/index.ts index e2ab393b45a..fc18a70cddc 100644 --- a/src/users/item/calendarView/item/index.ts +++ b/src/users/item/calendarView/item/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../models/'; +import { type Event } from '../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../models/event'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarView/item/instances/count/index.ts b/src/users/item/calendarView/item/instances/count/index.ts index a708840f997..5ab4c717375 100644 --- a/src/users/item/calendarView/item/instances/count/index.ts +++ b/src/users/item/calendarView/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/instances/delta/index.ts b/src/users/item/calendarView/item/instances/delta/index.ts index 461afdfad8d..66550219c49 100644 --- a/src/users/item/calendarView/item/instances/delta/index.ts +++ b/src/users/item/calendarView/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/instances/index.ts b/src/users/item/calendarView/item/instances/index.ts index cefa400ee8f..42f1ca209af 100644 --- a/src/users/item/calendarView/item/instances/index.ts +++ b/src/users/item/calendarView/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarView/item/instances/item/accept/index.ts b/src/users/item/calendarView/item/instances/item/accept/index.ts index 61bac3997b1..b5610d8248d 100644 --- a/src/users/item/calendarView/item/instances/item/accept/index.ts +++ b/src/users/item/calendarView/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/instances/item/attachments/count/index.ts b/src/users/item/calendarView/item/instances/item/attachments/count/index.ts index e51e13dc91b..62cfacd428e 100644 --- a/src/users/item/calendarView/item/instances/item/attachments/count/index.ts +++ b/src/users/item/calendarView/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts b/src/users/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts index 21eac2c8c81..a5ffe1180dc 100644 --- a/src/users/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/instances/item/attachments/index.ts b/src/users/item/calendarView/item/instances/item/attachments/index.ts index f45ea70326e..ededfed9700 100644 --- a/src/users/item/calendarView/item/instances/item/attachments/index.ts +++ b/src/users/item/calendarView/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendarView/item/instances/item/attachments/item/index.ts b/src/users/item/calendarView/item/instances/item/attachments/item/index.ts index 191e87ca0a4..5ffa18ba14a 100644 --- a/src/users/item/calendarView/item/instances/item/attachments/item/index.ts +++ b/src/users/item/calendarView/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/instances/item/calendar/index.ts b/src/users/item/calendarView/item/instances/item/calendar/index.ts index 04cc8cde6fa..9733a0370da 100644 --- a/src/users/item/calendarView/item/instances/item/calendar/index.ts +++ b/src/users/item/calendarView/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../models/'; +import { type Calendar } from '../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarView/item/instances/item/cancel/index.ts b/src/users/item/calendarView/item/instances/item/cancel/index.ts index 242266eb99a..d122a21b951 100644 --- a/src/users/item/calendarView/item/instances/item/cancel/index.ts +++ b/src/users/item/calendarView/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendarView/item/instances/item/decline/index.ts b/src/users/item/calendarView/item/instances/item/decline/index.ts index 7023185fadb..c72ae82357a 100644 --- a/src/users/item/calendarView/item/instances/item/decline/index.ts +++ b/src/users/item/calendarView/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/instances/item/dismissReminder/index.ts b/src/users/item/calendarView/item/instances/item/dismissReminder/index.ts index 92b30a9d019..86a354557f6 100644 --- a/src/users/item/calendarView/item/instances/item/dismissReminder/index.ts +++ b/src/users/item/calendarView/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/instances/item/extensions/count/index.ts b/src/users/item/calendarView/item/instances/item/extensions/count/index.ts index 71ca67b5105..74cefbd3869 100644 --- a/src/users/item/calendarView/item/instances/item/extensions/count/index.ts +++ b/src/users/item/calendarView/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/instances/item/extensions/index.ts b/src/users/item/calendarView/item/instances/item/extensions/index.ts index baf46232981..5ef4f22c3d4 100644 --- a/src/users/item/calendarView/item/instances/item/extensions/index.ts +++ b/src/users/item/calendarView/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarView/item/instances/item/extensions/item/index.ts b/src/users/item/calendarView/item/instances/item/extensions/item/index.ts index 0b2ce60558c..bebf67bf935 100644 --- a/src/users/item/calendarView/item/instances/item/extensions/item/index.ts +++ b/src/users/item/calendarView/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts b/src/users/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 1fd7eb4c631..00000000000 --- a/src/users/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendarView/item/instances/item/forward/index.ts b/src/users/item/calendarView/item/instances/item/forward/index.ts index fd6269cccc6..15ea07788c8 100644 --- a/src/users/item/calendarView/item/instances/item/forward/index.ts +++ b/src/users/item/calendarView/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendarView/item/instances/item/index.ts b/src/users/item/calendarView/item/instances/item/index.ts index fff399c03f6..5843ab90bf6 100644 --- a/src/users/item/calendarView/item/instances/item/index.ts +++ b/src/users/item/calendarView/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../models/'; +import { type Event } from '../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendarView/item/instances/item/snoozeReminder/index.ts b/src/users/item/calendarView/item/instances/item/snoozeReminder/index.ts index c7e1a0a2176..b1b074b9a13 100644 --- a/src/users/item/calendarView/item/instances/item/snoozeReminder/index.ts +++ b/src/users/item/calendarView/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/instances/item/tentativelyAccept/index.ts b/src/users/item/calendarView/item/instances/item/tentativelyAccept/index.ts index 18024efef7e..6acaf0967b7 100644 --- a/src/users/item/calendarView/item/instances/item/tentativelyAccept/index.ts +++ b/src/users/item/calendarView/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/snoozeReminder/index.ts b/src/users/item/calendarView/item/snoozeReminder/index.ts index d894aa19fe7..8564e8fef21 100644 --- a/src/users/item/calendarView/item/snoozeReminder/index.ts +++ b/src/users/item/calendarView/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendarView/item/tentativelyAccept/index.ts b/src/users/item/calendarView/item/tentativelyAccept/index.ts index 05e74d7c3df..4f019247951 100644 --- a/src/users/item/calendarView/item/tentativelyAccept/index.ts +++ b/src/users/item/calendarView/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/count/index.ts b/src/users/item/calendars/count/index.ts index 9036802c248..039a9b901bb 100644 --- a/src/users/item/calendars/count/index.ts +++ b/src/users/item/calendars/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/index.ts b/src/users/item/calendars/index.ts index 3af70012fc1..98c109e280d 100644 --- a/src/users/item/calendars/index.ts +++ b/src/users/item/calendars/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CalendarCollectionResponse } from '../../../models/'; +import { type CalendarCollectionResponse } from '../../../models'; import { createCalendarFromDiscriminatorValue, deserializeIntoCalendar, serializeCalendar, type Calendar } from '../../../models/calendar'; import { createCalendarCollectionResponseFromDiscriminatorValue } from '../../../models/calendarCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CalendarItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CalendarItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/allowedCalendarSharingRolesWithUser/index.ts b/src/users/item/calendars/item/allowedCalendarSharingRolesWithUser/index.ts index a4bc845aa25..ad0e7b813ae 100644 --- a/src/users/item/calendars/item/allowedCalendarSharingRolesWithUser/index.ts +++ b/src/users/item/calendars/item/allowedCalendarSharingRolesWithUser/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; import { CalendarRoleType } from '../../../../../models/calendarRoleType'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AllowedCalendarSharingRolesWithUserGetResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -13,28 +11,6 @@ export interface AllowedCalendarSharingRolesWithUserGetResponse extends BaseColl */ value?: CalendarRoleType[]; } -export interface AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function createAllowedCalendarSharingRolesWithUserGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAllowedCalendarSharingRolesWithUserGetResponse; @@ -50,62 +26,5 @@ export function serializeAllowedCalendarSharingRolesWithUserGetResponse(writer: if(allowedCalendarSharingRolesWithUserGetResponse.value) writer.writeEnumValue("value", ...allowedCalendarSharingRolesWithUserGetResponse.value); } -/** - * Provides operations to call the allowedCalendarSharingRoles method. - */ -export class AllowedCalendarSharingRolesWithUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AllowedCalendarSharingRolesWithUserRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - * @param User Usage: User='{User}' - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, user?: string | undefined) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/allowedCalendarSharingRoles(User='{User}'){?%24top,%24skip,%24search,%24filter,%24count}"); - this.pathParameters["User"] = user - }; - /** - * Invoke function allowedCalendarSharingRoles - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AllowedCalendarSharingRolesWithUserGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAllowedCalendarSharingRolesWithUserGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function allowedCalendarSharingRoles - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, allowedCalendarSharingRolesWithUserRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a allowedCalendarSharingRolesWithUserRequestBuilder - */ - public withUrl(rawUrl: string) : AllowedCalendarSharingRolesWithUserRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const allowedCalendarSharingRolesWithUserRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarPermissions/count/index.ts b/src/users/item/calendars/item/calendarPermissions/count/index.ts index 8796774de2c..c700a81d4fe 100644 --- a/src/users/item/calendars/item/calendarPermissions/count/index.ts +++ b/src/users/item/calendars/item/calendarPermissions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarPermissions/index.ts b/src/users/item/calendars/item/calendarPermissions/index.ts index 98473564367..c5850df808d 100644 --- a/src/users/item/calendars/item/calendarPermissions/index.ts +++ b/src/users/item/calendars/item/calendarPermissions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CalendarPermissionCollectionResponse } from '../../../../../models/'; +import { type CalendarPermissionCollectionResponse } from '../../../../../models'; import { createCalendarPermissionFromDiscriminatorValue, deserializeIntoCalendarPermission, serializeCalendarPermission, type CalendarPermission } from '../../../../../models/calendarPermission'; import { createCalendarPermissionCollectionResponseFromDiscriminatorValue } from '../../../../../models/calendarPermissionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CalendarPermissionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CalendarPermissionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarPermissionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/calendarPermissions/item/index.ts b/src/users/item/calendars/item/calendarPermissions/item/index.ts index 01e94fa09f5..5cb267fdc6c 100644 --- a/src/users/item/calendars/item/calendarPermissions/item/index.ts +++ b/src/users/item/calendars/item/calendarPermissions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createCalendarPermissionFromDiscriminatorValue, deserializeIntoCalendarPermission, serializeCalendarPermission, type CalendarPermission } from '../../../../../../models/calendarPermission'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/count/index.ts b/src/users/item/calendars/item/calendarView/count/index.ts index 42cb500a362..2201de435c3 100644 --- a/src/users/item/calendars/item/calendarView/count/index.ts +++ b/src/users/item/calendars/item/calendarView/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/delta/index.ts b/src/users/item/calendars/item/calendarView/delta/index.ts index 713a29194da..66550219c49 100644 --- a/src/users/item/calendars/item/calendarView/delta/index.ts +++ b/src/users/item/calendars/item/calendarView/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/index.ts b/src/users/item/calendars/item/calendarView/index.ts index 7010fc8f1df..b473fc2467f 100644 --- a/src/users/item/calendars/item/calendarView/index.ts +++ b/src/users/item/calendars/item/calendarView/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarViewRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/calendarView/item/accept/index.ts b/src/users/item/calendars/item/calendarView/item/accept/index.ts index 09435f0b613..b5610d8248d 100644 --- a/src/users/item/calendars/item/calendarView/item/accept/index.ts +++ b/src/users/item/calendars/item/calendarView/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/attachments/count/index.ts b/src/users/item/calendars/item/calendarView/item/attachments/count/index.ts index fd061abdb83..e2704b5e167 100644 --- a/src/users/item/calendars/item/calendarView/item/attachments/count/index.ts +++ b/src/users/item/calendars/item/calendarView/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/attachments/createUploadSession/index.ts b/src/users/item/calendars/item/calendarView/item/attachments/createUploadSession/index.ts index 5dfa9f20e9e..a5ffe1180dc 100644 --- a/src/users/item/calendars/item/calendarView/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendars/item/calendarView/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/attachments/index.ts b/src/users/item/calendars/item/calendarView/item/attachments/index.ts index dcc2138fca9..f70e6a80ff5 100644 --- a/src/users/item/calendars/item/calendarView/item/attachments/index.ts +++ b/src/users/item/calendars/item/calendarView/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendars/item/calendarView/item/attachments/item/index.ts b/src/users/item/calendars/item/calendarView/item/attachments/item/index.ts index 95f1466185a..caa81b7122f 100644 --- a/src/users/item/calendars/item/calendarView/item/attachments/item/index.ts +++ b/src/users/item/calendars/item/calendarView/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/calendar/index.ts b/src/users/item/calendars/item/calendarView/item/calendar/index.ts index 2a09e98b828..0c391c90bf9 100644 --- a/src/users/item/calendars/item/calendarView/item/calendar/index.ts +++ b/src/users/item/calendars/item/calendarView/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../models/'; +import { type Calendar } from '../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendars/item/calendarView/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendars/item/calendarView/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/cancel/index.ts b/src/users/item/calendars/item/calendarView/item/cancel/index.ts index d0d39f7a825..84e56a9e308 100644 --- a/src/users/item/calendars/item/calendarView/item/cancel/index.ts +++ b/src/users/item/calendars/item/calendarView/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendars/item/calendarView/item/decline/index.ts b/src/users/item/calendars/item/calendarView/item/decline/index.ts index 39eff332634..c72ae82357a 100644 --- a/src/users/item/calendars/item/calendarView/item/decline/index.ts +++ b/src/users/item/calendars/item/calendarView/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/dismissReminder/index.ts b/src/users/item/calendars/item/calendarView/item/dismissReminder/index.ts index 8998601433d..fdf5df3c81a 100644 --- a/src/users/item/calendars/item/calendarView/item/dismissReminder/index.ts +++ b/src/users/item/calendars/item/calendarView/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/extensions/count/index.ts b/src/users/item/calendars/item/calendarView/item/extensions/count/index.ts index 5b38cfd7df4..11ce6da157f 100644 --- a/src/users/item/calendars/item/calendarView/item/extensions/count/index.ts +++ b/src/users/item/calendars/item/calendarView/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/extensions/index.ts b/src/users/item/calendars/item/calendarView/item/extensions/index.ts index 592ccb85a1b..1627ff92f75 100644 --- a/src/users/item/calendars/item/calendarView/item/extensions/index.ts +++ b/src/users/item/calendars/item/calendarView/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/calendarView/item/extensions/item/index.ts b/src/users/item/calendars/item/calendarView/item/extensions/item/index.ts index e2cc18b77c9..d477447aa12 100644 --- a/src/users/item/calendars/item/calendarView/item/extensions/item/index.ts +++ b/src/users/item/calendars/item/calendarView/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/forward/forwardPostRequestBody.ts b/src/users/item/calendars/item/calendarView/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 1fd7eb4c631..00000000000 --- a/src/users/item/calendars/item/calendarView/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/forward/index.ts b/src/users/item/calendars/item/calendarView/item/forward/index.ts index c62e6bc1fb8..44582fd4e1b 100644 --- a/src/users/item/calendars/item/calendarView/item/forward/index.ts +++ b/src/users/item/calendars/item/calendarView/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendars/item/calendarView/item/index.ts b/src/users/item/calendars/item/calendarView/item/index.ts index 70dcda7c2ce..77b4b77697d 100644 --- a/src/users/item/calendars/item/calendarView/item/index.ts +++ b/src/users/item/calendars/item/calendarView/item/index.ts @@ -1,21 +1,21 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../models/'; +import { type Event } from '../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/calendarView/item/instances/count/index.ts b/src/users/item/calendars/item/calendarView/item/instances/count/index.ts index 6b3492af153..927a2a283f1 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/count/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/instances/delta/index.ts b/src/users/item/calendars/item/calendarView/item/instances/delta/index.ts index c1be8f64f54..7e1209814ee 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/delta/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/instances/index.ts b/src/users/item/calendars/item/calendarView/item/instances/index.ts index a2013b83e32..f9f8e3c561b 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/accept/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/accept/index.ts index 8c457c0b4e2..b5610d8248d 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/accept/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/attachments/count/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/attachments/count/index.ts index 2154bcc20f8..b9d52d58e17 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/attachments/count/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts index 48e7cacefcc..3b5d23832da 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/attachments/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/attachments/index.ts index 065189997c7..9aff3a791a9 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/attachments/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/attachments/item/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/attachments/item/index.ts index d464c6b77ee..83dfd5f83f9 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/attachments/item/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/calendar/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/calendar/index.ts index e9fb040f418..75c9fb4063f 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/calendar/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendars/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendars/item/calendarView/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/cancel/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/cancel/index.ts index 106123df725..558b87f307f 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/cancel/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/decline/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/decline/index.ts index 65f2c41ca52..ceddc11ba8d 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/decline/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/dismissReminder/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/dismissReminder/index.ts index 482ecf1f875..06229667b64 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/dismissReminder/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/extensions/count/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/extensions/count/index.ts index f022c18cc4e..d5ca5dea946 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/extensions/count/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/extensions/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/extensions/index.ts index bb4a87905bf..77e7877f2d4 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/extensions/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/extensions/item/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/extensions/item/index.ts index 581a88c306d..3e48692d8d9 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/extensions/item/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts b/src/users/item/calendars/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 2876b9f2774..00000000000 --- a/src/users/item/calendars/item/calendarView/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/forward/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/forward/index.ts index 7a23f2474ee..551122e3343 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/forward/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/index.ts index 914479ebfd1..0ca75bdcd58 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../../models/'; +import { type Event } from '../../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/snoozeReminder/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/snoozeReminder/index.ts index 0d1aa6accf6..7aea219db54 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/snoozeReminder/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/instances/item/tentativelyAccept/index.ts b/src/users/item/calendars/item/calendarView/item/instances/item/tentativelyAccept/index.ts index 5354234a14f..49b97c5487a 100644 --- a/src/users/item/calendars/item/calendarView/item/instances/item/tentativelyAccept/index.ts +++ b/src/users/item/calendars/item/calendarView/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/snoozeReminder/index.ts b/src/users/item/calendars/item/calendarView/item/snoozeReminder/index.ts index a7e2a369ed2..b1b074b9a13 100644 --- a/src/users/item/calendars/item/calendarView/item/snoozeReminder/index.ts +++ b/src/users/item/calendars/item/calendarView/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/calendarView/item/tentativelyAccept/index.ts b/src/users/item/calendars/item/calendarView/item/tentativelyAccept/index.ts index c491552ab77..6acaf0967b7 100644 --- a/src/users/item/calendars/item/calendarView/item/tentativelyAccept/index.ts +++ b/src/users/item/calendars/item/calendarView/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/count/index.ts b/src/users/item/calendars/item/events/count/index.ts index d9a94f57e0f..6cc23071ffc 100644 --- a/src/users/item/calendars/item/events/count/index.ts +++ b/src/users/item/calendars/item/events/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/delta/index.ts b/src/users/item/calendars/item/events/delta/index.ts index e94bd9c47ac..66550219c49 100644 --- a/src/users/item/calendars/item/events/delta/index.ts +++ b/src/users/item/calendars/item/events/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/index.ts b/src/users/item/calendars/item/events/index.ts index e22763e6a9c..14634019ff1 100644 --- a/src/users/item/calendars/item/events/index.ts +++ b/src/users/item/calendars/item/events/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../models'; import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../../models/event'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/events/item/accept/index.ts b/src/users/item/calendars/item/events/item/accept/index.ts index 9a90e970303..b5610d8248d 100644 --- a/src/users/item/calendars/item/events/item/accept/index.ts +++ b/src/users/item/calendars/item/events/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/attachments/count/index.ts b/src/users/item/calendars/item/events/item/attachments/count/index.ts index 7ae550d5f2c..b7f95dadf90 100644 --- a/src/users/item/calendars/item/events/item/attachments/count/index.ts +++ b/src/users/item/calendars/item/events/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/attachments/createUploadSession/index.ts b/src/users/item/calendars/item/events/item/attachments/createUploadSession/index.ts index fbaba4833f4..a5ffe1180dc 100644 --- a/src/users/item/calendars/item/events/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendars/item/events/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/attachments/index.ts b/src/users/item/calendars/item/events/item/attachments/index.ts index bd316b81ad6..2a510819b65 100644 --- a/src/users/item/calendars/item/events/item/attachments/index.ts +++ b/src/users/item/calendars/item/events/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendars/item/events/item/attachments/item/index.ts b/src/users/item/calendars/item/events/item/attachments/item/index.ts index 8eae65f8b7b..4bbb1f38ae3 100644 --- a/src/users/item/calendars/item/events/item/attachments/item/index.ts +++ b/src/users/item/calendars/item/events/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/calendar/index.ts b/src/users/item/calendars/item/events/item/calendar/index.ts index 6212da25764..34e45f53630 100644 --- a/src/users/item/calendars/item/events/item/calendar/index.ts +++ b/src/users/item/calendars/item/events/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../models/'; +import { type Calendar } from '../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendars/item/events/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendars/item/events/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/events/item/cancel/index.ts b/src/users/item/calendars/item/events/item/cancel/index.ts index 562c00efb81..4da1b63d7a8 100644 --- a/src/users/item/calendars/item/events/item/cancel/index.ts +++ b/src/users/item/calendars/item/events/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendars/item/events/item/decline/index.ts b/src/users/item/calendars/item/events/item/decline/index.ts index 212c14245ed..c72ae82357a 100644 --- a/src/users/item/calendars/item/events/item/decline/index.ts +++ b/src/users/item/calendars/item/events/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/dismissReminder/index.ts b/src/users/item/calendars/item/events/item/dismissReminder/index.ts index 3bea703062f..7e018207bcf 100644 --- a/src/users/item/calendars/item/events/item/dismissReminder/index.ts +++ b/src/users/item/calendars/item/events/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/extensions/count/index.ts b/src/users/item/calendars/item/events/item/extensions/count/index.ts index 44770dff653..2b6ddd4c456 100644 --- a/src/users/item/calendars/item/events/item/extensions/count/index.ts +++ b/src/users/item/calendars/item/events/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/extensions/index.ts b/src/users/item/calendars/item/events/item/extensions/index.ts index e8804836261..76c416024b4 100644 --- a/src/users/item/calendars/item/events/item/extensions/index.ts +++ b/src/users/item/calendars/item/events/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/events/item/extensions/item/index.ts b/src/users/item/calendars/item/events/item/extensions/item/index.ts index a8ad1d7f23c..56f067626e4 100644 --- a/src/users/item/calendars/item/events/item/extensions/item/index.ts +++ b/src/users/item/calendars/item/events/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/forward/forwardPostRequestBody.ts b/src/users/item/calendars/item/events/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 1fd7eb4c631..00000000000 --- a/src/users/item/calendars/item/events/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/events/item/forward/index.ts b/src/users/item/calendars/item/events/item/forward/index.ts index a4e0e9c7d1e..dc6c92bf401 100644 --- a/src/users/item/calendars/item/events/item/forward/index.ts +++ b/src/users/item/calendars/item/events/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendars/item/events/item/index.ts b/src/users/item/calendars/item/events/item/index.ts index 16e3e8f2e8e..40f0869b24c 100644 --- a/src/users/item/calendars/item/events/item/index.ts +++ b/src/users/item/calendars/item/events/item/index.ts @@ -2,19 +2,19 @@ // eslint-disable // Generated by Microsoft Kiota import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/events/item/instances/count/index.ts b/src/users/item/calendars/item/events/item/instances/count/index.ts index db2bdcdbeb5..460c8629d4a 100644 --- a/src/users/item/calendars/item/events/item/instances/count/index.ts +++ b/src/users/item/calendars/item/events/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/instances/delta/index.ts b/src/users/item/calendars/item/events/item/instances/delta/index.ts index f57e3a0eebe..7e1209814ee 100644 --- a/src/users/item/calendars/item/events/item/instances/delta/index.ts +++ b/src/users/item/calendars/item/events/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/instances/index.ts b/src/users/item/calendars/item/events/item/instances/index.ts index 2192899ebba..5db4d7e107d 100644 --- a/src/users/item/calendars/item/events/item/instances/index.ts +++ b/src/users/item/calendars/item/events/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/events/item/instances/item/accept/index.ts b/src/users/item/calendars/item/events/item/instances/item/accept/index.ts index f90d19075e5..b5610d8248d 100644 --- a/src/users/item/calendars/item/events/item/instances/item/accept/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/instances/item/attachments/count/index.ts b/src/users/item/calendars/item/events/item/instances/item/attachments/count/index.ts index a68af3d9314..2345973be11 100644 --- a/src/users/item/calendars/item/events/item/instances/item/attachments/count/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/instances/item/attachments/createUploadSession/index.ts b/src/users/item/calendars/item/events/item/instances/item/attachments/createUploadSession/index.ts index d6823168781..3b5d23832da 100644 --- a/src/users/item/calendars/item/events/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/instances/item/attachments/index.ts b/src/users/item/calendars/item/events/item/instances/item/attachments/index.ts index d03391218a5..fdc93362317 100644 --- a/src/users/item/calendars/item/events/item/instances/item/attachments/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/calendars/item/events/item/instances/item/attachments/item/index.ts b/src/users/item/calendars/item/events/item/instances/item/attachments/item/index.ts index 1a5d2f68176..c65b113c4e0 100644 --- a/src/users/item/calendars/item/events/item/instances/item/attachments/item/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/instances/item/calendar/index.ts b/src/users/item/calendars/item/events/item/instances/item/calendar/index.ts index f70e7758163..b73c4e69979 100644 --- a/src/users/item/calendars/item/events/item/instances/item/calendar/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../../../models/'; +import { type Calendar } from '../../../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/instances/item/cancel/cancelPostRequestBody.ts b/src/users/item/calendars/item/events/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/calendars/item/events/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/events/item/instances/item/cancel/index.ts b/src/users/item/calendars/item/events/item/instances/item/cancel/index.ts index ea7dd9f1518..5bb8092f6ba 100644 --- a/src/users/item/calendars/item/events/item/instances/item/cancel/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/calendars/item/events/item/instances/item/decline/index.ts b/src/users/item/calendars/item/events/item/instances/item/decline/index.ts index df45ef0f120..ceddc11ba8d 100644 --- a/src/users/item/calendars/item/events/item/instances/item/decline/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/instances/item/dismissReminder/index.ts b/src/users/item/calendars/item/events/item/instances/item/dismissReminder/index.ts index 475f658e53a..04e23a5fb14 100644 --- a/src/users/item/calendars/item/events/item/instances/item/dismissReminder/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/instances/item/extensions/count/index.ts b/src/users/item/calendars/item/events/item/instances/item/extensions/count/index.ts index 68615833013..924325f3f83 100644 --- a/src/users/item/calendars/item/events/item/instances/item/extensions/count/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/instances/item/extensions/index.ts b/src/users/item/calendars/item/events/item/instances/item/extensions/index.ts index 4e8a2ab0541..c54b48c480c 100644 --- a/src/users/item/calendars/item/events/item/instances/item/extensions/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/events/item/instances/item/extensions/item/index.ts b/src/users/item/calendars/item/events/item/instances/item/extensions/item/index.ts index 9d27f8f1ef3..2ea6345f7ea 100644 --- a/src/users/item/calendars/item/events/item/instances/item/extensions/item/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/calendars/item/events/item/instances/item/forward/forwardPostRequestBody.ts b/src/users/item/calendars/item/events/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 2876b9f2774..00000000000 --- a/src/users/item/calendars/item/events/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/events/item/instances/item/forward/index.ts b/src/users/item/calendars/item/events/item/instances/item/forward/index.ts index 45696468aa0..00f9eea3ce9 100644 --- a/src/users/item/calendars/item/events/item/instances/item/forward/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/calendars/item/events/item/instances/item/index.ts b/src/users/item/calendars/item/events/item/instances/item/index.ts index 07488ac77a6..5e043ac71bb 100644 --- a/src/users/item/calendars/item/events/item/instances/item/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../../../models/'; +import { type Event } from '../../../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../../../models/event'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/calendars/item/events/item/instances/item/snoozeReminder/index.ts b/src/users/item/calendars/item/events/item/instances/item/snoozeReminder/index.ts index 3c8f1b57f00..7aea219db54 100644 --- a/src/users/item/calendars/item/events/item/instances/item/snoozeReminder/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/instances/item/tentativelyAccept/index.ts b/src/users/item/calendars/item/events/item/instances/item/tentativelyAccept/index.ts index dbe7367dd9f..49b97c5487a 100644 --- a/src/users/item/calendars/item/events/item/instances/item/tentativelyAccept/index.ts +++ b/src/users/item/calendars/item/events/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/snoozeReminder/index.ts b/src/users/item/calendars/item/events/item/snoozeReminder/index.ts index aa3a46a2326..b1b074b9a13 100644 --- a/src/users/item/calendars/item/events/item/snoozeReminder/index.ts +++ b/src/users/item/calendars/item/events/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/events/item/tentativelyAccept/index.ts b/src/users/item/calendars/item/events/item/tentativelyAccept/index.ts index 912511939d7..6acaf0967b7 100644 --- a/src/users/item/calendars/item/events/item/tentativelyAccept/index.ts +++ b/src/users/item/calendars/item/events/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/getSchedule/getSchedulePostResponse.ts b/src/users/item/calendars/item/getSchedule/getSchedulePostResponse.ts deleted file mode 100644 index 95381d4db54..00000000000 --- a/src/users/item/calendars/item/getSchedule/getSchedulePostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createScheduleInformationFromDiscriminatorValue, serializeScheduleInformation, type ScheduleInformation } from '../../../../../models/scheduleInformation'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetSchedulePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetSchedulePostResponse; -} -export function deserializeIntoGetSchedulePostResponse(getSchedulePostResponse: GetSchedulePostResponse | undefined = {} as GetSchedulePostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getSchedulePostResponse), - "value": n => { getSchedulePostResponse.value = n.getCollectionOfObjectValues(createScheduleInformationFromDiscriminatorValue); }, - } -} -export interface GetSchedulePostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ScheduleInformation[]; -} -export function serializeGetSchedulePostResponse(writer: SerializationWriter, getSchedulePostResponse: GetSchedulePostResponse | undefined = {} as GetSchedulePostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getSchedulePostResponse) - writer.writeCollectionOfObjectValues("value", getSchedulePostResponse.value, serializeScheduleInformation); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/calendars/item/getSchedule/index.ts b/src/users/item/calendars/item/getSchedule/index.ts index c6226659c29..e926aeb6cc3 100644 --- a/src/users/item/calendars/item/getSchedule/index.ts +++ b/src/users/item/calendars/item/getSchedule/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetSchedulePostResponseFromDiscriminatorValue, deserializeIntoGetSchedulePostResponse, serializeGetSchedulePostResponse, type GetSchedulePostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetSchedulePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -48,58 +45,5 @@ export function serializeGetSchedulePostRequestBody(writer: SerializationWriter, writer.writeObjectValue("StartTime", getSchedulePostRequestBody.startTime, serializeDateTimeTimeZone); writer.writeAdditionalData(getSchedulePostRequestBody.additionalData); } -/** - * Provides operations to call the getSchedule method. - */ -export class GetScheduleRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetScheduleRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/getSchedule"); - }; - /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetSchedulePostResponse - * @see {@link https://learn.microsoft.com/graph/api/calendar-getschedule?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetSchedulePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetSchedulePostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetSchedulePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetSchedulePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getScheduleRequestBuilder - */ - public withUrl(rawUrl: string) : GetScheduleRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetScheduleRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/calendars/item/index.ts b/src/users/item/calendars/item/index.ts index 580550d6c1a..7d6338eb18c 100644 --- a/src/users/item/calendars/item/index.ts +++ b/src/users/item/calendars/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createCalendarFromDiscriminatorValue, deserializeIntoCalendar, serializeCalendar, type Calendar } from '../../../../models/calendar'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AllowedCalendarSharingRolesWithUserRequestBuilder } from './allowedCalendarSharingRolesWithUser/'; -import { CalendarPermissionsRequestBuilder } from './calendarPermissions/'; -import { CalendarViewRequestBuilder } from './calendarView/'; -import { EventsRequestBuilder } from './events/'; -import { GetScheduleRequestBuilder } from './getSchedule/'; +import { AllowedCalendarSharingRolesWithUserRequestBuilder } from './allowedCalendarSharingRolesWithUser'; +import { CalendarPermissionsRequestBuilder } from './calendarPermissions'; +import { CalendarViewRequestBuilder } from './calendarView'; +import { EventsRequestBuilder } from './events'; +import { GetScheduleRequestBuilder } from './getSchedule'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CalendarItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/changePassword/index.ts b/src/users/item/changePassword/index.ts index bc570e4b582..11a47fb63d7 100644 --- a/src/users/item/changePassword/index.ts +++ b/src/users/item/changePassword/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ChangePasswordPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeChangePasswordPostRequestBody(writer: SerializationWrit writer.writeStringValue("newPassword", changePasswordPostRequestBody.newPassword); writer.writeAdditionalData(changePasswordPostRequestBody.additionalData); } -/** - * Provides operations to call the changePassword method. - */ -export class ChangePasswordRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ChangePasswordRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/changePassword"); - }; - /** - * Enable the user to update their password. Any user can update their password without belonging to any administrator role. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/user-changepassword?view=graph-rest-1.0|Find more info here} - */ - public post(body: ChangePasswordPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Enable the user to update their password. Any user can update their password without belonging to any administrator role. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ChangePasswordPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeChangePasswordPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a changePasswordRequestBuilder - */ - public withUrl(rawUrl: string) : ChangePasswordRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ChangePasswordRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/chats/count/index.ts b/src/users/item/chats/count/index.ts index b4a539acd3b..41dd545cde6 100644 --- a/src/users/item/chats/count/index.ts +++ b/src/users/item/chats/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/getAllMessages/index.ts b/src/users/item/chats/getAllMessages/index.ts index ed61ee40737..2367b37d7a3 100644 --- a/src/users/item/chats/getAllMessages/index.ts +++ b/src/users/item/chats/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../models/chatMessage'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/chats/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/chats/index.ts b/src/users/item/chats/index.ts index 465dc9b726a..bd964ae3425 100644 --- a/src/users/item/chats/index.ts +++ b/src/users/item/chats/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatCollectionResponse } from '../../../models/'; +import { type ChatCollectionResponse } from '../../../models'; import { createChatFromDiscriminatorValue, deserializeIntoChat, serializeChat, type Chat } from '../../../models/chat'; import { createChatCollectionResponseFromDiscriminatorValue } from '../../../models/chatCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { ChatItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { ChatItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatsRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/hideForUser/hideForUserPostRequestBody.ts b/src/users/item/chats/item/hideForUser/hideForUserPostRequestBody.ts deleted file mode 100644 index 86c851dbda4..00000000000 --- a/src/users/item/chats/item/hideForUser/hideForUserPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../../../models/teamworkUserIdentity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createHideForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoHideForUserPostRequestBody; -} -export function deserializeIntoHideForUserPostRequestBody(hideForUserPostRequestBody: HideForUserPostRequestBody | undefined = {} as HideForUserPostRequestBody) : Record void> { - return { - "user": n => { hideForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, - } -} -export interface HideForUserPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The user property - */ - user?: TeamworkUserIdentity; -} -export function serializeHideForUserPostRequestBody(writer: SerializationWriter, hideForUserPostRequestBody: HideForUserPostRequestBody | undefined = {} as HideForUserPostRequestBody) : void { - writer.writeObjectValue("user", hideForUserPostRequestBody.user, serializeTeamworkUserIdentity); - writer.writeAdditionalData(hideForUserPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/chats/item/hideForUser/index.ts b/src/users/item/chats/item/hideForUser/index.ts index 3a262247717..514d0eb9935 100644 --- a/src/users/item/chats/item/hideForUser/index.ts +++ b/src/users/item/chats/item/hideForUser/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoHideForUserPostRequestBody, serializeHideForUserPostRequestBody, type HideForUserPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../../../models/teamworkUserIdentity'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createHideForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoHideForUserPostRequestBody; +} +export function deserializeIntoHideForUserPostRequestBody(hideForUserPostRequestBody: HideForUserPostRequestBody | undefined = {} as HideForUserPostRequestBody) : Record void> { + return { + "user": n => { hideForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, + } +} +export interface HideForUserPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The user property + */ + user?: TeamworkUserIdentity; +} +export function serializeHideForUserPostRequestBody(writer: SerializationWriter, hideForUserPostRequestBody: HideForUserPostRequestBody | undefined = {} as HideForUserPostRequestBody) : void { + writer.writeObjectValue("user", hideForUserPostRequestBody.user, serializeTeamworkUserIdentity); + writer.writeAdditionalData(hideForUserPostRequestBody.additionalData); +} /** * Provides operations to call the hideForUser method. */ diff --git a/src/users/item/chats/item/index.ts b/src/users/item/chats/item/index.ts index ce8618bc2bc..076b60005cd 100644 --- a/src/users/item/chats/item/index.ts +++ b/src/users/item/chats/item/index.ts @@ -2,20 +2,20 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatFromDiscriminatorValue, deserializeIntoChat, serializeChat, type Chat } from '../../../../models/chat'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { HideForUserRequestBuilder } from './hideForUser/'; -import { InstalledAppsRequestBuilder } from './installedApps/'; -import { LastMessagePreviewRequestBuilder } from './lastMessagePreview/'; -import { MarkChatReadForUserRequestBuilder } from './markChatReadForUser/'; -import { MarkChatUnreadForUserRequestBuilder } from './markChatUnreadForUser/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { PermissionGrantsRequestBuilder } from './permissionGrants/'; -import { PinnedMessagesRequestBuilder } from './pinnedMessages/'; -import { SendActivityNotificationRequestBuilder } from './sendActivityNotification/'; -import { TabsRequestBuilder } from './tabs/'; -import { UnhideForUserRequestBuilder } from './unhideForUser/'; +import { HideForUserRequestBuilder } from './hideForUser'; +import { InstalledAppsRequestBuilder } from './installedApps'; +import { LastMessagePreviewRequestBuilder } from './lastMessagePreview'; +import { MarkChatReadForUserRequestBuilder } from './markChatReadForUser'; +import { MarkChatUnreadForUserRequestBuilder } from './markChatUnreadForUser'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { PermissionGrantsRequestBuilder } from './permissionGrants'; +import { PinnedMessagesRequestBuilder } from './pinnedMessages'; +import { SendActivityNotificationRequestBuilder } from './sendActivityNotification'; +import { TabsRequestBuilder } from './tabs'; +import { UnhideForUserRequestBuilder } from './unhideForUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/installedApps/count/index.ts b/src/users/item/chats/item/installedApps/count/index.ts index 9e1633d8edd..591b3ad48de 100644 --- a/src/users/item/chats/item/installedApps/count/index.ts +++ b/src/users/item/chats/item/installedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/installedApps/index.ts b/src/users/item/chats/item/installedApps/index.ts index d77aa9e877d..33d0effcea5 100644 --- a/src/users/item/chats/item/installedApps/index.ts +++ b/src/users/item/chats/item/installedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppInstallationCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsAppInstallationCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../../../models/teamsAppInstallation'; import { createTeamsAppInstallationCollectionResponseFromDiscriminatorValue } from '../../../../../models/teamsAppInstallationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAppInstallationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAppInstallationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstalledAppsRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/installedApps/item/index.ts b/src/users/item/chats/item/installedApps/item/index.ts index 6bb980a7437..183218ae9b5 100644 --- a/src/users/item/chats/item/installedApps/item/index.ts +++ b/src/users/item/chats/item/installedApps/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../../../../models/teamsAppInstallation'; -import { TeamsAppRequestBuilder } from './teamsApp/'; -import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition/'; -import { UpgradeRequestBuilder } from './upgrade/'; +import { TeamsAppRequestBuilder } from './teamsApp'; +import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition'; +import { UpgradeRequestBuilder } from './upgrade'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsAppInstallationItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/installedApps/item/teamsApp/index.ts b/src/users/item/chats/item/installedApps/item/teamsApp/index.ts index c8a7c8a9b8e..36a2d9e76b7 100644 --- a/src/users/item/chats/item/installedApps/item/teamsApp/index.ts +++ b/src/users/item/chats/item/installedApps/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/installedApps/item/teamsAppDefinition/index.ts b/src/users/item/chats/item/installedApps/item/teamsAppDefinition/index.ts index 5bc2a992417..e55d0d4d429 100644 --- a/src/users/item/chats/item/installedApps/item/teamsAppDefinition/index.ts +++ b/src/users/item/chats/item/installedApps/item/teamsAppDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppDefinition } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamsAppDefinition } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppDefinitionFromDiscriminatorValue } from '../../../../../../../models/teamsAppDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/installedApps/item/upgrade/index.ts b/src/users/item/chats/item/installedApps/item/upgrade/index.ts index e88d1801fdf..6ab1be8420c 100644 --- a/src/users/item/chats/item/installedApps/item/upgrade/index.ts +++ b/src/users/item/chats/item/installedApps/item/upgrade/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUpgradePostRequestBody, serializeUpgradePostRequestBody, type UpgradePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../../../models/teamsAppPermissionSet'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpgradePostRequestBody; +} +export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { + return { + "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, + } +} +export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { + writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); + writer.writeAdditionalData(upgradePostRequestBody.additionalData); +} +export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The consentedPermissionSet property + */ + consentedPermissionSet?: TeamsAppPermissionSet; +} /** * Provides operations to call the upgrade method. */ diff --git a/src/users/item/chats/item/installedApps/item/upgrade/upgradePostRequestBody.ts b/src/users/item/chats/item/installedApps/item/upgrade/upgradePostRequestBody.ts deleted file mode 100644 index 6a042698643..00000000000 --- a/src/users/item/chats/item/installedApps/item/upgrade/upgradePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../../../models/teamsAppPermissionSet'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpgradePostRequestBody; -} -export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { - return { - "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, - } -} -export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { - writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); - writer.writeAdditionalData(upgradePostRequestBody.additionalData); -} -export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The consentedPermissionSet property - */ - consentedPermissionSet?: TeamsAppPermissionSet; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/chats/item/lastMessagePreview/index.ts b/src/users/item/chats/item/lastMessagePreview/index.ts index d844ffaf843..907e47ec901 100644 --- a/src/users/item/chats/item/lastMessagePreview/index.ts +++ b/src/users/item/chats/item/lastMessagePreview/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageInfoFromDiscriminatorValue, deserializeIntoChatMessageInfo, serializeChatMessageInfo, type ChatMessageInfo } from '../../../../../models/chatMessageInfo'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/markChatReadForUser/index.ts b/src/users/item/chats/item/markChatReadForUser/index.ts index 7df43e73727..30fdcc5df6d 100644 --- a/src/users/item/chats/item/markChatReadForUser/index.ts +++ b/src/users/item/chats/item/markChatReadForUser/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoMarkChatReadForUserPostRequestBody, serializeMarkChatReadForUserPostRequestBody, type MarkChatReadForUserPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../../../models/teamworkUserIdentity'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMarkChatReadForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMarkChatReadForUserPostRequestBody; +} +export function deserializeIntoMarkChatReadForUserPostRequestBody(markChatReadForUserPostRequestBody: MarkChatReadForUserPostRequestBody | undefined = {} as MarkChatReadForUserPostRequestBody) : Record void> { + return { + "user": n => { markChatReadForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, + } +} +export interface MarkChatReadForUserPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The user property + */ + user?: TeamworkUserIdentity; +} +export function serializeMarkChatReadForUserPostRequestBody(writer: SerializationWriter, markChatReadForUserPostRequestBody: MarkChatReadForUserPostRequestBody | undefined = {} as MarkChatReadForUserPostRequestBody) : void { + writer.writeObjectValue("user", markChatReadForUserPostRequestBody.user, serializeTeamworkUserIdentity); + writer.writeAdditionalData(markChatReadForUserPostRequestBody.additionalData); +} /** * Provides operations to call the markChatReadForUser method. */ diff --git a/src/users/item/chats/item/markChatReadForUser/markChatReadForUserPostRequestBody.ts b/src/users/item/chats/item/markChatReadForUser/markChatReadForUserPostRequestBody.ts deleted file mode 100644 index 1643d7049e4..00000000000 --- a/src/users/item/chats/item/markChatReadForUser/markChatReadForUserPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../../../models/teamworkUserIdentity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMarkChatReadForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMarkChatReadForUserPostRequestBody; -} -export function deserializeIntoMarkChatReadForUserPostRequestBody(markChatReadForUserPostRequestBody: MarkChatReadForUserPostRequestBody | undefined = {} as MarkChatReadForUserPostRequestBody) : Record void> { - return { - "user": n => { markChatReadForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, - } -} -export interface MarkChatReadForUserPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The user property - */ - user?: TeamworkUserIdentity; -} -export function serializeMarkChatReadForUserPostRequestBody(writer: SerializationWriter, markChatReadForUserPostRequestBody: MarkChatReadForUserPostRequestBody | undefined = {} as MarkChatReadForUserPostRequestBody) : void { - writer.writeObjectValue("user", markChatReadForUserPostRequestBody.user, serializeTeamworkUserIdentity); - writer.writeAdditionalData(markChatReadForUserPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/chats/item/markChatUnreadForUser/index.ts b/src/users/item/chats/item/markChatUnreadForUser/index.ts index b081affb2f0..24c65f38e75 100644 --- a/src/users/item/chats/item/markChatUnreadForUser/index.ts +++ b/src/users/item/chats/item/markChatUnreadForUser/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../../../models/teamworkUserIdentity'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createMarkChatUnreadForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,57 +33,5 @@ export function serializeMarkChatUnreadForUserPostRequestBody(writer: Serializat writer.writeObjectValue("user", markChatUnreadForUserPostRequestBody.user, serializeTeamworkUserIdentity); writer.writeAdditionalData(markChatUnreadForUserPostRequestBody.additionalData); } -/** - * Provides operations to call the markChatUnreadForUser method. - */ -export class MarkChatUnreadForUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new MarkChatUnreadForUserRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/markChatUnreadForUser"); - }; - /** - * Mark a chat as unread for a user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/chat-markchatunreadforuser?view=graph-rest-1.0|Find more info here} - */ - public post(body: MarkChatUnreadForUserPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Mark a chat as unread for a user. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: MarkChatUnreadForUserPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeMarkChatUnreadForUserPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a markChatUnreadForUserRequestBuilder - */ - public withUrl(rawUrl: string) : MarkChatUnreadForUserRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new MarkChatUnreadForUserRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/chats/item/members/add/index.ts b/src/users/item/chats/item/members/add/index.ts index d211efdfbf6..5f556cb66c2 100644 --- a/src/users/item/chats/item/members/add/index.ts +++ b/src/users/item/chats/item/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/chats/item/members/count/index.ts b/src/users/item/chats/item/members/count/index.ts index 1f494338e19..509ccf38335 100644 --- a/src/users/item/chats/item/members/count/index.ts +++ b/src/users/item/chats/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/members/index.ts b/src/users/item/chats/item/members/index.ts index f58c3d77b41..7f83e01dbab 100644 --- a/src/users/item/chats/item/members/index.ts +++ b/src/users/item/chats/item/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/members/item/index.ts b/src/users/item/chats/item/members/item/index.ts index 4c0b57db4ea..4f1ae322c73 100644 --- a/src/users/item/chats/item/members/item/index.ts +++ b/src/users/item/chats/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/count/index.ts b/src/users/item/chats/item/messages/count/index.ts index 2fc1395cac5..14a7617eceb 100644 --- a/src/users/item/chats/item/messages/count/index.ts +++ b/src/users/item/chats/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/delta/index.ts b/src/users/item/chats/item/messages/delta/index.ts index 37a2786f089..2583531097d 100644 --- a/src/users/item/chats/item/messages/delta/index.ts +++ b/src/users/item/chats/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/chats/item/messages/index.ts b/src/users/item/chats/item/messages/index.ts index b80a2efcb72..c03042e69fa 100644 --- a/src/users/item/chats/item/messages/index.ts +++ b/src/users/item/chats/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/messages/item/hostedContents/count/index.ts b/src/users/item/chats/item/messages/item/hostedContents/count/index.ts index 13b7b35e38a..eba5e864fc0 100644 --- a/src/users/item/chats/item/messages/item/hostedContents/count/index.ts +++ b/src/users/item/chats/item/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/hostedContents/index.ts b/src/users/item/chats/item/messages/item/hostedContents/index.ts index 25162d4a428..800b3c28588 100644 --- a/src/users/item/chats/item/messages/item/hostedContents/index.ts +++ b/src/users/item/chats/item/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/messages/item/hostedContents/item/index.ts b/src/users/item/chats/item/messages/item/hostedContents/item/index.ts index 9f4eaae3ce5..91271543d53 100644 --- a/src/users/item/chats/item/messages/item/hostedContents/item/index.ts +++ b/src/users/item/chats/item/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/messages/item/hostedContents/item/value/index.ts b/src/users/item/chats/item/messages/item/hostedContents/item/value/index.ts index 33eb5f98965..dc1eb406a51 100644 --- a/src/users/item/chats/item/messages/item/hostedContents/item/value/index.ts +++ b/src/users/item/chats/item/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/index.ts b/src/users/item/chats/item/messages/item/index.ts index 8209efb4193..c53f2342332 100644 --- a/src/users/item/chats/item/messages/item/index.ts +++ b/src/users/item/chats/item/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/messages/item/replies/count/index.ts b/src/users/item/chats/item/messages/item/replies/count/index.ts index c93bd901e7f..6e9942ed86c 100644 --- a/src/users/item/chats/item/messages/item/replies/count/index.ts +++ b/src/users/item/chats/item/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/replies/delta/index.ts b/src/users/item/chats/item/messages/item/replies/delta/index.ts index 0596bb8f713..90e4229bb0c 100644 --- a/src/users/item/chats/item/messages/item/replies/delta/index.ts +++ b/src/users/item/chats/item/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/chats/item/messages/item/replies/index.ts b/src/users/item/chats/item/messages/item/replies/index.ts index 89d9935d476..135e0341c04 100644 --- a/src/users/item/chats/item/messages/item/replies/index.ts +++ b/src/users/item/chats/item/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/chats/item/messages/item/replies/item/hostedContents/count/index.ts b/src/users/item/chats/item/messages/item/replies/item/hostedContents/count/index.ts index 0a4e58b4ec6..e4ca5210e69 100644 --- a/src/users/item/chats/item/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/replies/item/hostedContents/index.ts b/src/users/item/chats/item/messages/item/replies/item/hostedContents/index.ts index d9294a31b6d..579f19e9aab 100644 --- a/src/users/item/chats/item/messages/item/replies/item/hostedContents/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/messages/item/replies/item/hostedContents/item/index.ts b/src/users/item/chats/item/messages/item/replies/item/hostedContents/item/index.ts index 6c7ab1c4f93..264699c47b8 100644 --- a/src/users/item/chats/item/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/messages/item/replies/item/hostedContents/item/value/index.ts b/src/users/item/chats/item/messages/item/replies/item/hostedContents/item/value/index.ts index 061757e1590..63649383485 100644 --- a/src/users/item/chats/item/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/replies/item/index.ts b/src/users/item/chats/item/messages/item/replies/item/index.ts index f15f9d2c629..4ad66f2ed31 100644 --- a/src/users/item/chats/item/messages/item/replies/item/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/messages/item/replies/item/setReaction/index.ts b/src/users/item/chats/item/messages/item/replies/item/setReaction/index.ts index 14f23aeb2d3..f60db7afb19 100644 --- a/src/users/item/chats/item/messages/item/replies/item/setReaction/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/users/item/chats/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/users/item/chats/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/users/item/chats/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/chats/item/messages/item/replies/item/softDelete/index.ts b/src/users/item/chats/item/messages/item/replies/item/softDelete/index.ts index 3fd425bdd7c..8f60542d8ed 100644 --- a/src/users/item/chats/item/messages/item/replies/item/softDelete/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/replies/item/undoSoftDelete/index.ts b/src/users/item/chats/item/messages/item/replies/item/undoSoftDelete/index.ts index f4bf25a057a..d53605d9548 100644 --- a/src/users/item/chats/item/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/replies/item/unsetReaction/index.ts b/src/users/item/chats/item/messages/item/replies/item/unsetReaction/index.ts index b181a66c736..0d00f4a5cce 100644 --- a/src/users/item/chats/item/messages/item/replies/item/unsetReaction/index.ts +++ b/src/users/item/chats/item/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/users/item/chats/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/users/item/chats/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/users/item/chats/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/chats/item/messages/item/setReaction/index.ts b/src/users/item/chats/item/messages/item/setReaction/index.ts index 6dbf516d2ae..e3fab3d6500 100644 --- a/src/users/item/chats/item/messages/item/setReaction/index.ts +++ b/src/users/item/chats/item/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/users/item/chats/item/messages/item/setReaction/setReactionPostRequestBody.ts b/src/users/item/chats/item/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/users/item/chats/item/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/chats/item/messages/item/softDelete/index.ts b/src/users/item/chats/item/messages/item/softDelete/index.ts index 780818290f5..b2fcc95bb95 100644 --- a/src/users/item/chats/item/messages/item/softDelete/index.ts +++ b/src/users/item/chats/item/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/undoSoftDelete/index.ts b/src/users/item/chats/item/messages/item/undoSoftDelete/index.ts index 729b5eb2520..4e032dd1dba 100644 --- a/src/users/item/chats/item/messages/item/undoSoftDelete/index.ts +++ b/src/users/item/chats/item/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/messages/item/unsetReaction/index.ts b/src/users/item/chats/item/messages/item/unsetReaction/index.ts index cb610efc03a..22cea64aae9 100644 --- a/src/users/item/chats/item/messages/item/unsetReaction/index.ts +++ b/src/users/item/chats/item/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/users/item/chats/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/users/item/chats/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/users/item/chats/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/chats/item/permissionGrants/count/index.ts b/src/users/item/chats/item/permissionGrants/count/index.ts index c49460bdcea..64a7bcd7bf1 100644 --- a/src/users/item/chats/item/permissionGrants/count/index.ts +++ b/src/users/item/chats/item/permissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/permissionGrants/index.ts b/src/users/item/chats/item/permissionGrants/index.ts index ca1020a6b02..7577fbbe551 100644 --- a/src/users/item/chats/item/permissionGrants/index.ts +++ b/src/users/item/chats/item/permissionGrants/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../../models/resourceSpecificPermissionGrant'; import { createResourceSpecificPermissionGrantCollectionResponseFromDiscriminatorValue } from '../../../../../models/resourceSpecificPermissionGrantCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/permissionGrants/item/index.ts b/src/users/item/chats/item/permissionGrants/item/index.ts index bfca9a14612..996300db655 100644 --- a/src/users/item/chats/item/permissionGrants/item/index.ts +++ b/src/users/item/chats/item/permissionGrants/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../../../models/resourceSpecificPermissionGrant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/pinnedMessages/count/index.ts b/src/users/item/chats/item/pinnedMessages/count/index.ts index 523771b829d..093a548b6ef 100644 --- a/src/users/item/chats/item/pinnedMessages/count/index.ts +++ b/src/users/item/chats/item/pinnedMessages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/pinnedMessages/index.ts b/src/users/item/chats/item/pinnedMessages/index.ts index bb9ebbcc6ec..435892bd8ec 100644 --- a/src/users/item/chats/item/pinnedMessages/index.ts +++ b/src/users/item/chats/item/pinnedMessages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PinnedChatMessageInfoCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type PinnedChatMessageInfoCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPinnedChatMessageInfoFromDiscriminatorValue, deserializeIntoPinnedChatMessageInfo, serializePinnedChatMessageInfo, type PinnedChatMessageInfo } from '../../../../../models/pinnedChatMessageInfo'; import { createPinnedChatMessageInfoCollectionResponseFromDiscriminatorValue } from '../../../../../models/pinnedChatMessageInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PinnedChatMessageInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PinnedChatMessageInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PinnedMessagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/pinnedMessages/item/index.ts b/src/users/item/chats/item/pinnedMessages/item/index.ts index 4f40d338632..c404e193116 100644 --- a/src/users/item/chats/item/pinnedMessages/item/index.ts +++ b/src/users/item/chats/item/pinnedMessages/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPinnedChatMessageInfoFromDiscriminatorValue, deserializeIntoPinnedChatMessageInfo, serializePinnedChatMessageInfo, type PinnedChatMessageInfo } from '../../../../../../models/pinnedChatMessageInfo'; -import { MessageRequestBuilder } from './message/'; +import { MessageRequestBuilder } from './message'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PinnedChatMessageInfoItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/pinnedMessages/item/message/index.ts b/src/users/item/chats/item/pinnedMessages/item/message/index.ts index 259d9c225b2..242dc213b18 100644 --- a/src/users/item/chats/item/pinnedMessages/item/message/index.ts +++ b/src/users/item/chats/item/pinnedMessages/item/message/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessage } from '../../../../../../../models/'; +import { type ChatMessage } from '../../../../../../../models'; import { createChatMessageFromDiscriminatorValue } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/sendActivityNotification/index.ts b/src/users/item/chats/item/sendActivityNotification/index.ts index c379d46caa8..3946a6e1cf0 100644 --- a/src/users/item/chats/item/sendActivityNotification/index.ts +++ b/src/users/item/chats/item/sendActivityNotification/index.ts @@ -1,11 +1,67 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../../../models/itemBody'; +import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../../../models/keyValuePair'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSendActivityNotificationPostRequestBody, serializeSendActivityNotificationPostRequestBody, type SendActivityNotificationPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../../../models/teamworkActivityTopic'; +import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../../../models/teamworkNotificationRecipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSendActivityNotificationPostRequestBody; +} +export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { + return { + "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, + "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, + "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, + "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, + "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, + "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, + } +} +export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activityType property + */ + activityType?: string; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The chainId property + */ + chainId?: number; + /** + * The previewText property + */ + previewText?: ItemBody; + /** + * The recipient property + */ + recipient?: TeamworkNotificationRecipient; + /** + * The templateParameters property + */ + templateParameters?: KeyValuePair[]; + /** + * The topic property + */ + topic?: TeamworkActivityTopic; +} +export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { + writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); + writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); + writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); + writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); + writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); + writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); + writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); +} /** * Provides operations to call the sendActivityNotification method. */ diff --git a/src/users/item/chats/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts b/src/users/item/chats/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts deleted file mode 100644 index 885deec79db..00000000000 --- a/src/users/item/chats/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts +++ /dev/null @@ -1,64 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../../../models/itemBody'; -import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../../../models/keyValuePair'; -import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../../../models/teamworkActivityTopic'; -import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../../../models/teamworkNotificationRecipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSendActivityNotificationPostRequestBody; -} -export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { - return { - "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, - "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, - "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, - "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, - "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, - "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, - } -} -export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activityType property - */ - activityType?: string; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The chainId property - */ - chainId?: number; - /** - * The previewText property - */ - previewText?: ItemBody; - /** - * The recipient property - */ - recipient?: TeamworkNotificationRecipient; - /** - * The templateParameters property - */ - templateParameters?: KeyValuePair[]; - /** - * The topic property - */ - topic?: TeamworkActivityTopic; -} -export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { - writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); - writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); - writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); - writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); - writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); - writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); - writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/chats/item/tabs/count/index.ts b/src/users/item/chats/item/tabs/count/index.ts index df575ecd51b..73ab0af7db8 100644 --- a/src/users/item/chats/item/tabs/count/index.ts +++ b/src/users/item/chats/item/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/tabs/index.ts b/src/users/item/chats/item/tabs/index.ts index b504172ef48..e4569c58cef 100644 --- a/src/users/item/chats/item/tabs/index.ts +++ b/src/users/item/chats/item/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/tabs/item/index.ts b/src/users/item/chats/item/tabs/item/index.ts index 2adb2b7785c..d7cb8454dcd 100644 --- a/src/users/item/chats/item/tabs/item/index.ts +++ b/src/users/item/chats/item/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/chats/item/tabs/item/teamsApp/index.ts b/src/users/item/chats/item/tabs/item/teamsApp/index.ts index 1ae39c817e8..79a19750a8e 100644 --- a/src/users/item/chats/item/tabs/item/teamsApp/index.ts +++ b/src/users/item/chats/item/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/chats/item/unhideForUser/index.ts b/src/users/item/chats/item/unhideForUser/index.ts index 45442c47d46..4fba35c1412 100644 --- a/src/users/item/chats/item/unhideForUser/index.ts +++ b/src/users/item/chats/item/unhideForUser/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnhideForUserPostRequestBody, serializeUnhideForUserPostRequestBody, type UnhideForUserPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../../../models/teamworkUserIdentity'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnhideForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnhideForUserPostRequestBody; +} +export function deserializeIntoUnhideForUserPostRequestBody(unhideForUserPostRequestBody: UnhideForUserPostRequestBody | undefined = {} as UnhideForUserPostRequestBody) : Record void> { + return { + "user": n => { unhideForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, + } +} +export function serializeUnhideForUserPostRequestBody(writer: SerializationWriter, unhideForUserPostRequestBody: UnhideForUserPostRequestBody | undefined = {} as UnhideForUserPostRequestBody) : void { + writer.writeObjectValue("user", unhideForUserPostRequestBody.user, serializeTeamworkUserIdentity); + writer.writeAdditionalData(unhideForUserPostRequestBody.additionalData); +} +export interface UnhideForUserPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The user property + */ + user?: TeamworkUserIdentity; +} /** * Provides operations to call the unhideForUser method. */ diff --git a/src/users/item/chats/item/unhideForUser/unhideForUserPostRequestBody.ts b/src/users/item/chats/item/unhideForUser/unhideForUserPostRequestBody.ts deleted file mode 100644 index e8340b7ad8b..00000000000 --- a/src/users/item/chats/item/unhideForUser/unhideForUserPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamworkUserIdentityFromDiscriminatorValue, serializeTeamworkUserIdentity, type TeamworkUserIdentity } from '../../../../../models/teamworkUserIdentity'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnhideForUserPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnhideForUserPostRequestBody; -} -export function deserializeIntoUnhideForUserPostRequestBody(unhideForUserPostRequestBody: UnhideForUserPostRequestBody | undefined = {} as UnhideForUserPostRequestBody) : Record void> { - return { - "user": n => { unhideForUserPostRequestBody.user = n.getObjectValue(createTeamworkUserIdentityFromDiscriminatorValue); }, - } -} -export function serializeUnhideForUserPostRequestBody(writer: SerializationWriter, unhideForUserPostRequestBody: UnhideForUserPostRequestBody | undefined = {} as UnhideForUserPostRequestBody) : void { - writer.writeObjectValue("user", unhideForUserPostRequestBody.user, serializeTeamworkUserIdentity); - writer.writeAdditionalData(unhideForUserPostRequestBody.additionalData); -} -export interface UnhideForUserPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The user property - */ - user?: TeamworkUserIdentity; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts b/src/users/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts deleted file mode 100644 index 6dd26b4ab1c..00000000000 --- a/src/users/item/checkMemberGroups/checkMemberGroupsPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupIds property - */ - groupIds?: string[]; -} -export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberGroupsPostRequestBody; -} -export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : Record void> { - return { - "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, - } -} -export function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody: CheckMemberGroupsPostRequestBody | undefined = {} as CheckMemberGroupsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); - writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/checkMemberGroups/index.ts b/src/users/item/checkMemberGroups/index.ts index 729d7c54e0f..dcf9cd58809 100644 --- a/src/users/item/checkMemberGroups/index.ts +++ b/src/users/item/checkMemberGroups/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoCheckMemberGroupsPostRequestBody, serializeCheckMemberGroupsPostRequestBody, type CheckMemberGroupsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -27,58 +24,5 @@ export function serializeCheckMemberGroupsPostResponse(writer: SerializationWrit serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } -/** - * Provides operations to call the checkMemberGroups method. - */ -export class CheckMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/checkMemberGroups"); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/checkMemberObjects/index.ts b/src/users/item/checkMemberObjects/index.ts index ea779ce0082..d53883127a7 100644 --- a/src/users/item/checkMemberObjects/index.ts +++ b/src/users/item/checkMemberObjects/index.ts @@ -2,104 +2,27 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The ids property - */ - ids?: string[]; -} export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[]; } -export function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCheckMemberObjectsPostRequestBody; -} export function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoCheckMemberObjectsPostResponse; } -export function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : Record void> { - return { - "ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); }, - } -} export function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(checkMemberObjectsPostResponse), "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, } } -export function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody: CheckMemberObjectsPostRequestBody | undefined = {} as CheckMemberObjectsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids); - writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData); -} export function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse: CheckMemberObjectsPostResponse | undefined = {} as CheckMemberObjectsPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, checkMemberObjectsPostResponse) writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value); } -/** - * Provides operations to call the checkMemberObjects method. - */ -export class CheckMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/checkMemberObjects"); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of CheckMemberObjectsPostResponse - */ - public post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createCheckMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke action checkMemberObjects - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCheckMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a checkMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : CheckMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CheckMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/contactFolders/count/index.ts b/src/users/item/contactFolders/count/index.ts index 01f69fe9c46..10d094a1285 100644 --- a/src/users/item/contactFolders/count/index.ts +++ b/src/users/item/contactFolders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/delta/index.ts b/src/users/item/contactFolders/delta/index.ts index 13337a1a92d..c1d4eb07afc 100644 --- a/src/users/item/contactFolders/delta/index.ts +++ b/src/users/item/contactFolders/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createContactFolderFromDiscriminatorValue, serializeContactFolder, type ContactFolder } from '../../../../models/contactFolder'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ContactFolder[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeContactFolder); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/contactfolder-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/contactFolders/index.ts b/src/users/item/contactFolders/index.ts index 50756f70c56..d9a4a3918e5 100644 --- a/src/users/item/contactFolders/index.ts +++ b/src/users/item/contactFolders/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContactFolderCollectionResponse } from '../../../models/'; +import { type ContactFolderCollectionResponse } from '../../../models'; import { createContactFolderFromDiscriminatorValue, deserializeIntoContactFolder, serializeContactFolder, type ContactFolder } from '../../../models/contactFolder'; import { createContactFolderCollectionResponseFromDiscriminatorValue } from '../../../models/contactFolderCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ContactFolderItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ContactFolderItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactFoldersRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/childFolders/count/index.ts b/src/users/item/contactFolders/item/childFolders/count/index.ts index 701e6f2071e..054afb633ed 100644 --- a/src/users/item/contactFolders/item/childFolders/count/index.ts +++ b/src/users/item/contactFolders/item/childFolders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/childFolders/delta/index.ts b/src/users/item/contactFolders/item/childFolders/delta/index.ts index 8ba0c0367c8..1a8ddb11964 100644 --- a/src/users/item/contactFolders/item/childFolders/delta/index.ts +++ b/src/users/item/contactFolders/item/childFolders/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createContactFolderFromDiscriminatorValue, serializeContactFolder, type ContactFolder } from '../../../../../../models/contactFolder'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ContactFolder[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeContactFolder); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/contactfolder-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/contactFolders/item/childFolders/index.ts b/src/users/item/contactFolders/item/childFolders/index.ts index 05e428f8dc8..8bbad7027a4 100644 --- a/src/users/item/contactFolders/item/childFolders/index.ts +++ b/src/users/item/contactFolders/item/childFolders/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContactFolderCollectionResponse } from '../../../../../models/'; +import { type ContactFolderCollectionResponse } from '../../../../../models'; import { createContactFolderFromDiscriminatorValue, deserializeIntoContactFolder, serializeContactFolder, type ContactFolder } from '../../../../../models/contactFolder'; import { createContactFolderCollectionResponseFromDiscriminatorValue } from '../../../../../models/contactFolderCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ContactFolderItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ContactFolderItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildFoldersRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/count/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/count/index.ts index 52bfbfd0a19..920167ffee5 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/count/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/delta/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/delta/index.ts index f445b882513..683ed50645c 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/delta/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createContactFromDiscriminatorValue, serializeContact, type Contact } from '../../../../../../../../models/contact'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Contact[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeContact); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/contact-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/index.ts index b45dc2290f0..25dee643a17 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContactCollectionResponse } from '../../../../../../../models/'; +import { type ContactCollectionResponse } from '../../../../../../../models'; import { createContactFromDiscriminatorValue, deserializeIntoContact, serializeContact, type Contact } from '../../../../../../../models/contact'; import { createContactCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/contactCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ContactItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ContactItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactsRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/count/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/count/index.ts index 9b871fb6bf9..1eaa70dead9 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/count/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/index.ts index 2a5ba69781d..7fd3fefcb6c 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/item/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/item/index.ts index 57cd50038f1..560ab16c473 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/item/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/item/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/item/index.ts index 0f5cb180a1a..b00d21bbed0 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/item/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createContactFromDiscriminatorValue, deserializeIntoContact, serializeContact, type Contact } from '../../../../../../../../models/contact'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { PhotoRequestBuilder } from './photo/'; +import { ExtensionsRequestBuilder } from './extensions'; +import { PhotoRequestBuilder } from './photo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/item/photo/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/item/photo/index.ts index f2cd8d96c53..7a4e2d2c93c 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/item/photo/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/item/photo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue, deserializeIntoProfilePhoto, serializeProfilePhoto, type ProfilePhoto } from '../../../../../../../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotoRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/childFolders/item/contacts/item/photo/value/index.ts b/src/users/item/contactFolders/item/childFolders/item/contacts/item/photo/value/index.ts index 257cef5aff4..4abb3109ba7 100644 --- a/src/users/item/contactFolders/item/childFolders/item/contacts/item/photo/value/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/contacts/item/photo/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/childFolders/item/index.ts b/src/users/item/contactFolders/item/childFolders/item/index.ts index 41181c5c28c..5921f848028 100644 --- a/src/users/item/contactFolders/item/childFolders/item/index.ts +++ b/src/users/item/contactFolders/item/childFolders/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createContactFolderFromDiscriminatorValue, deserializeIntoContactFolder, serializeContactFolder, type ContactFolder } from '../../../../../../models/contactFolder'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContactsRequestBuilder } from './contacts/'; +import { ContactsRequestBuilder } from './contacts'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactFolderItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/contacts/count/index.ts b/src/users/item/contactFolders/item/contacts/count/index.ts index 30b0366a2ba..b947a0a4a91 100644 --- a/src/users/item/contactFolders/item/contacts/count/index.ts +++ b/src/users/item/contactFolders/item/contacts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/contacts/delta/index.ts b/src/users/item/contactFolders/item/contacts/delta/index.ts index d0b1208111c..ef633a04e9f 100644 --- a/src/users/item/contactFolders/item/contacts/delta/index.ts +++ b/src/users/item/contactFolders/item/contacts/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createContactFromDiscriminatorValue, serializeContact, type Contact } from '../../../../../../models/contact'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Contact[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeContact); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/contact-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/contactFolders/item/contacts/index.ts b/src/users/item/contactFolders/item/contacts/index.ts index e850f0a74a5..f2ffaa8a5da 100644 --- a/src/users/item/contactFolders/item/contacts/index.ts +++ b/src/users/item/contactFolders/item/contacts/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContactCollectionResponse } from '../../../../../models/'; +import { type ContactCollectionResponse } from '../../../../../models'; import { createContactFromDiscriminatorValue, deserializeIntoContact, serializeContact, type Contact } from '../../../../../models/contact'; import { createContactCollectionResponseFromDiscriminatorValue } from '../../../../../models/contactCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ContactItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ContactItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactsRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/contacts/item/extensions/count/index.ts b/src/users/item/contactFolders/item/contacts/item/extensions/count/index.ts index 1cea40e9bf0..0061861064d 100644 --- a/src/users/item/contactFolders/item/contacts/item/extensions/count/index.ts +++ b/src/users/item/contactFolders/item/contacts/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/contacts/item/extensions/index.ts b/src/users/item/contactFolders/item/contacts/item/extensions/index.ts index 897ebeb06e7..70a646ec306 100644 --- a/src/users/item/contactFolders/item/contacts/item/extensions/index.ts +++ b/src/users/item/contactFolders/item/contacts/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/contacts/item/extensions/item/index.ts b/src/users/item/contactFolders/item/contacts/item/extensions/item/index.ts index 095c85d01f8..08f724459e6 100644 --- a/src/users/item/contactFolders/item/contacts/item/extensions/item/index.ts +++ b/src/users/item/contactFolders/item/contacts/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/contacts/item/index.ts b/src/users/item/contactFolders/item/contacts/item/index.ts index fcacf5b9c95..84b69d77452 100644 --- a/src/users/item/contactFolders/item/contacts/item/index.ts +++ b/src/users/item/contactFolders/item/contacts/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createContactFromDiscriminatorValue, deserializeIntoContact, serializeContact, type Contact } from '../../../../../../models/contact'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { PhotoRequestBuilder } from './photo/'; +import { ExtensionsRequestBuilder } from './extensions'; +import { PhotoRequestBuilder } from './photo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/contacts/item/photo/index.ts b/src/users/item/contactFolders/item/contacts/item/photo/index.ts index 4f38c5b6eda..68f6b8b2b52 100644 --- a/src/users/item/contactFolders/item/contacts/item/photo/index.ts +++ b/src/users/item/contactFolders/item/contacts/item/photo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue, deserializeIntoProfilePhoto, serializeProfilePhoto, type ProfilePhoto } from '../../../../../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotoRequestBuilderGetQueryParameters { diff --git a/src/users/item/contactFolders/item/contacts/item/photo/value/index.ts b/src/users/item/contactFolders/item/contacts/item/photo/value/index.ts index 0a2d7ad0c99..076f05ef3e0 100644 --- a/src/users/item/contactFolders/item/contacts/item/photo/value/index.ts +++ b/src/users/item/contactFolders/item/contacts/item/photo/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contactFolders/item/index.ts b/src/users/item/contactFolders/item/index.ts index b3fafe81360..9fab1175ef2 100644 --- a/src/users/item/contactFolders/item/index.ts +++ b/src/users/item/contactFolders/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createContactFolderFromDiscriminatorValue, deserializeIntoContactFolder, serializeContactFolder, type ContactFolder } from '../../../../models/contactFolder'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ChildFoldersRequestBuilder } from './childFolders/'; -import { ContactsRequestBuilder } from './contacts/'; +import { ChildFoldersRequestBuilder } from './childFolders'; +import { ContactsRequestBuilder } from './contacts'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactFolderItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/contacts/count/index.ts b/src/users/item/contacts/count/index.ts index 071dd6d01af..1733c226ff0 100644 --- a/src/users/item/contacts/count/index.ts +++ b/src/users/item/contacts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contacts/delta/index.ts b/src/users/item/contacts/delta/index.ts index d317fedea32..f3df22e816a 100644 --- a/src/users/item/contacts/delta/index.ts +++ b/src/users/item/contacts/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createContactFromDiscriminatorValue, serializeContact, type Contact } from '../../../../models/contact'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Contact[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeContact); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/contact-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/contacts/index.ts b/src/users/item/contacts/index.ts index 4d2cd947ba8..94376679930 100644 --- a/src/users/item/contacts/index.ts +++ b/src/users/item/contacts/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ContactCollectionResponse } from '../../../models/'; +import { type ContactCollectionResponse } from '../../../models'; import { createContactFromDiscriminatorValue, deserializeIntoContact, serializeContact, type Contact } from '../../../models/contact'; import { createContactCollectionResponseFromDiscriminatorValue } from '../../../models/contactCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ContactItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ContactItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactsRequestBuilderGetQueryParameters { diff --git a/src/users/item/contacts/item/extensions/count/index.ts b/src/users/item/contacts/item/extensions/count/index.ts index 128ff39316e..f6c015ea5eb 100644 --- a/src/users/item/contacts/item/extensions/count/index.ts +++ b/src/users/item/contacts/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contacts/item/extensions/index.ts b/src/users/item/contacts/item/extensions/index.ts index 40ea596676c..049a46b0f3a 100644 --- a/src/users/item/contacts/item/extensions/index.ts +++ b/src/users/item/contacts/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/contacts/item/extensions/item/index.ts b/src/users/item/contacts/item/extensions/item/index.ts index a3141e51963..5988cc6c917 100644 --- a/src/users/item/contacts/item/extensions/item/index.ts +++ b/src/users/item/contacts/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/contacts/item/index.ts b/src/users/item/contacts/item/index.ts index 3f1b1215faf..ca94320a195 100644 --- a/src/users/item/contacts/item/index.ts +++ b/src/users/item/contacts/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createContactFromDiscriminatorValue, deserializeIntoContact, serializeContact, type Contact } from '../../../../models/contact'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { PhotoRequestBuilder } from './photo/'; +import { ExtensionsRequestBuilder } from './extensions'; +import { PhotoRequestBuilder } from './photo'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ContactItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/contacts/item/photo/index.ts b/src/users/item/contacts/item/photo/index.ts index b3c2c8a6113..16e22798266 100644 --- a/src/users/item/contacts/item/photo/index.ts +++ b/src/users/item/contacts/item/photo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue, deserializeIntoProfilePhoto, serializeProfilePhoto, type ProfilePhoto } from '../../../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotoRequestBuilderGetQueryParameters { diff --git a/src/users/item/contacts/item/photo/value/index.ts b/src/users/item/contacts/item/photo/value/index.ts index 2d5a6acc03d..642ead83fbc 100644 --- a/src/users/item/contacts/item/photo/value/index.ts +++ b/src/users/item/contacts/item/photo/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/createdObjects/count/index.ts b/src/users/item/createdObjects/count/index.ts index bc1e0f30919..79f3857cd36 100644 --- a/src/users/item/createdObjects/count/index.ts +++ b/src/users/item/createdObjects/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/createdObjects/graphServicePrincipal/count/index.ts b/src/users/item/createdObjects/graphServicePrincipal/count/index.ts index 0ec5ed1c852..af426afc59a 100644 --- a/src/users/item/createdObjects/graphServicePrincipal/count/index.ts +++ b/src/users/item/createdObjects/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/createdObjects/graphServicePrincipal/index.ts b/src/users/item/createdObjects/graphServicePrincipal/index.ts index 69ae56fadc0..875aac4da57 100644 --- a/src/users/item/createdObjects/graphServicePrincipal/index.ts +++ b/src/users/item/createdObjects/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/users/item/createdObjects/index.ts b/src/users/item/createdObjects/index.ts index ae6dc6b2ab0..5c67cd523be 100644 --- a/src/users/item/createdObjects/index.ts +++ b/src/users/item/createdObjects/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CreatedObjectsRequestBuilderGetQueryParameters { diff --git a/src/users/item/createdObjects/item/graphServicePrincipal/index.ts b/src/users/item/createdObjects/item/graphServicePrincipal/index.ts index 5ae7cd89306..b8f58cf19b1 100644 --- a/src/users/item/createdObjects/item/graphServicePrincipal/index.ts +++ b/src/users/item/createdObjects/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/createdObjects/item/index.ts b/src/users/item/createdObjects/item/index.ts index 66e34721538..6a6389455e1 100644 --- a/src/users/item/createdObjects/item/index.ts +++ b/src/users/item/createdObjects/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/deviceManagementTroubleshootingEvents/count/index.ts b/src/users/item/deviceManagementTroubleshootingEvents/count/index.ts index c17a4279d1e..9a964129829 100644 --- a/src/users/item/deviceManagementTroubleshootingEvents/count/index.ts +++ b/src/users/item/deviceManagementTroubleshootingEvents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/deviceManagementTroubleshootingEvents/index.ts b/src/users/item/deviceManagementTroubleshootingEvents/index.ts index 30685210ca5..4588d291fc8 100644 --- a/src/users/item/deviceManagementTroubleshootingEvents/index.ts +++ b/src/users/item/deviceManagementTroubleshootingEvents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceManagementTroubleshootingEventCollectionResponse } from '../../../models/'; +import { type DeviceManagementTroubleshootingEventCollectionResponse } from '../../../models'; import { createDeviceManagementTroubleshootingEventFromDiscriminatorValue, deserializeIntoDeviceManagementTroubleshootingEvent, serializeDeviceManagementTroubleshootingEvent, type DeviceManagementTroubleshootingEvent } from '../../../models/deviceManagementTroubleshootingEvent'; import { createDeviceManagementTroubleshootingEventCollectionResponseFromDiscriminatorValue } from '../../../models/deviceManagementTroubleshootingEventCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceManagementTroubleshootingEventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceManagementTroubleshootingEventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceManagementTroubleshootingEventsRequestBuilderGetQueryParameters { diff --git a/src/users/item/deviceManagementTroubleshootingEvents/item/index.ts b/src/users/item/deviceManagementTroubleshootingEvents/item/index.ts index e4235192efa..27f8965f20d 100644 --- a/src/users/item/deviceManagementTroubleshootingEvents/item/index.ts +++ b/src/users/item/deviceManagementTroubleshootingEvents/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceManagementTroubleshootingEventFromDiscriminatorValue, deserializeIntoDeviceManagementTroubleshootingEvent, serializeDeviceManagementTroubleshootingEvent, type DeviceManagementTroubleshootingEvent } from '../../../../models/deviceManagementTroubleshootingEvent'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/directReports/count/index.ts b/src/users/item/directReports/count/index.ts index 4e868121451..e1d170b1e02 100644 --- a/src/users/item/directReports/count/index.ts +++ b/src/users/item/directReports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/directReports/graphOrgContact/count/index.ts b/src/users/item/directReports/graphOrgContact/count/index.ts index cc8033a60d8..0926b6cb6dd 100644 --- a/src/users/item/directReports/graphOrgContact/count/index.ts +++ b/src/users/item/directReports/graphOrgContact/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/directReports/graphOrgContact/index.ts b/src/users/item/directReports/graphOrgContact/index.ts index 9261b91e98e..ae14c6bef7d 100644 --- a/src/users/item/directReports/graphOrgContact/index.ts +++ b/src/users/item/directReports/graphOrgContact/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContactCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OrgContactCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOrgContactCollectionResponseFromDiscriminatorValue } from '../../../../models/orgContactCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphOrgContactRequestBuilderGetQueryParameters { diff --git a/src/users/item/directReports/graphUser/count/index.ts b/src/users/item/directReports/graphUser/count/index.ts index c5dbd67c309..7e689c2fa96 100644 --- a/src/users/item/directReports/graphUser/count/index.ts +++ b/src/users/item/directReports/graphUser/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/directReports/graphUser/index.ts b/src/users/item/directReports/graphUser/index.ts index 9d78875983b..26b2692372d 100644 --- a/src/users/item/directReports/graphUser/index.ts +++ b/src/users/item/directReports/graphUser/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../models/userCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphUserRequestBuilderGetQueryParameters { diff --git a/src/users/item/directReports/index.ts b/src/users/item/directReports/index.ts index 8fbae5a42c9..579d453c76e 100644 --- a/src/users/item/directReports/index.ts +++ b/src/users/item/directReports/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphUserRequestBuilder } from './graphUser/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphUserRequestBuilder } from './graphUser'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectReportsRequestBuilderGetQueryParameters { diff --git a/src/users/item/directReports/item/graphOrgContact/index.ts b/src/users/item/directReports/item/graphOrgContact/index.ts index 539a4bcb746..739c5e9de42 100644 --- a/src/users/item/directReports/item/graphOrgContact/index.ts +++ b/src/users/item/directReports/item/graphOrgContact/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OrgContact } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type OrgContact } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOrgContactFromDiscriminatorValue } from '../../../../../models/orgContact'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/directReports/item/graphUser/index.ts b/src/users/item/directReports/item/graphUser/index.ts index 1c3d0696eaf..af6113efa67 100644 --- a/src/users/item/directReports/item/graphUser/index.ts +++ b/src/users/item/directReports/item/graphUser/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type User } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/directReports/item/index.ts b/src/users/item/directReports/item/index.ts index 71d55b18ab2..cd1d708244e 100644 --- a/src/users/item/directReports/item/index.ts +++ b/src/users/item/directReports/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphOrgContactRequestBuilder } from './graphOrgContact/'; -import { GraphUserRequestBuilder } from './graphUser/'; +import { GraphOrgContactRequestBuilder } from './graphOrgContact'; +import { GraphUserRequestBuilder } from './graphUser'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/drive/index.ts b/src/users/item/drive/index.ts index 176f85ee87c..41045109687 100644 --- a/src/users/item/drive/index.ts +++ b/src/users/item/drive/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../models/'; +import { type Drive } from '../../../models'; import { createDriveFromDiscriminatorValue } from '../../../models/drive'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/drives/count/index.ts b/src/users/item/drives/count/index.ts index 5f097f19515..6be889b5fb4 100644 --- a/src/users/item/drives/count/index.ts +++ b/src/users/item/drives/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/drives/index.ts b/src/users/item/drives/index.ts index 56e0d9ec38e..4e9614d7758 100644 --- a/src/users/item/drives/index.ts +++ b/src/users/item/drives/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveCollectionResponse } from '../../../models/'; +import { type DriveCollectionResponse } from '../../../models'; import { createDriveCollectionResponseFromDiscriminatorValue } from '../../../models/driveCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DriveItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DriveItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DrivesRequestBuilderGetQueryParameters { diff --git a/src/users/item/drives/item/index.ts b/src/users/item/drives/item/index.ts index 32a85de9aca..4a07fb664f5 100644 --- a/src/users/item/drives/item/index.ts +++ b/src/users/item/drives/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Drive } from '../../../../models/'; +import { type Drive } from '../../../../models'; import { createDriveFromDiscriminatorValue } from '../../../../models/drive'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/employeeExperience/index.ts b/src/users/item/employeeExperience/index.ts index 7631b936586..a49d8cf55d6 100644 --- a/src/users/item/employeeExperience/index.ts +++ b/src/users/item/employeeExperience/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createEmployeeExperienceUserFromDiscriminatorValue, deserializeIntoEmployeeExperienceUser, serializeEmployeeExperienceUser, type EmployeeExperienceUser } from '../../../models/employeeExperienceUser'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { LearningCourseActivitiesRequestBuilder } from './learningCourseActivities/'; +import { LearningCourseActivitiesRequestBuilder } from './learningCourseActivities'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EmployeeExperienceRequestBuilderGetQueryParameters { diff --git a/src/users/item/employeeExperience/learningCourseActivities/count/index.ts b/src/users/item/employeeExperience/learningCourseActivities/count/index.ts index 968dbb2bf08..e127a5bb881 100644 --- a/src/users/item/employeeExperience/learningCourseActivities/count/index.ts +++ b/src/users/item/employeeExperience/learningCourseActivities/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/employeeExperience/learningCourseActivities/index.ts b/src/users/item/employeeExperience/learningCourseActivities/index.ts index 770a7ddd120..5394b81691a 100644 --- a/src/users/item/employeeExperience/learningCourseActivities/index.ts +++ b/src/users/item/employeeExperience/learningCourseActivities/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LearningCourseActivityCollectionResponse } from '../../../../models/'; +import { type LearningCourseActivityCollectionResponse } from '../../../../models'; import { createLearningCourseActivityCollectionResponseFromDiscriminatorValue } from '../../../../models/learningCourseActivityCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LearningCourseActivityItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LearningCourseActivityItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LearningCourseActivitiesRequestBuilderGetQueryParameters { diff --git a/src/users/item/employeeExperience/learningCourseActivities/item/index.ts b/src/users/item/employeeExperience/learningCourseActivities/item/index.ts index 751259a931e..de461217349 100644 --- a/src/users/item/employeeExperience/learningCourseActivities/item/index.ts +++ b/src/users/item/employeeExperience/learningCourseActivities/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LearningCourseActivity } from '../../../../../models/'; +import { type LearningCourseActivity } from '../../../../../models'; import { createLearningCourseActivityFromDiscriminatorValue } from '../../../../../models/learningCourseActivity'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/count/index.ts b/src/users/item/events/count/index.ts index 16fc7047ef3..482797ceb7e 100644 --- a/src/users/item/events/count/index.ts +++ b/src/users/item/events/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/delta/index.ts b/src/users/item/events/delta/index.ts index 4e459f5416f..214a77abb5c 100644 --- a/src/users/item/events/delta/index.ts +++ b/src/users/item/events/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../models/event'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/events/index.ts b/src/users/item/events/index.ts index 6a999551319..048029ebed5 100644 --- a/src/users/item/events/index.ts +++ b/src/users/item/events/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../models/'; +import { type EventCollectionResponse } from '../../../models'; import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../models/event'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventsRequestBuilderGetQueryParameters { diff --git a/src/users/item/events/item/accept/index.ts b/src/users/item/events/item/accept/index.ts index d82dfd1facd..b5610d8248d 100644 --- a/src/users/item/events/item/accept/index.ts +++ b/src/users/item/events/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/attachments/count/index.ts b/src/users/item/events/item/attachments/count/index.ts index f27122e4e0e..728c61273ec 100644 --- a/src/users/item/events/item/attachments/count/index.ts +++ b/src/users/item/events/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/attachments/createUploadSession/index.ts b/src/users/item/events/item/attachments/createUploadSession/index.ts index e5955623e22..c88e1410394 100644 --- a/src/users/item/events/item/attachments/createUploadSession/index.ts +++ b/src/users/item/events/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/attachments/index.ts b/src/users/item/events/item/attachments/index.ts index 0807b3875f4..aca146285b6 100644 --- a/src/users/item/events/item/attachments/index.ts +++ b/src/users/item/events/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/events/item/attachments/item/index.ts b/src/users/item/events/item/attachments/item/index.ts index 7f044ed1ec4..de7a2f5b3f5 100644 --- a/src/users/item/events/item/attachments/item/index.ts +++ b/src/users/item/events/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../models/'; +import { type Attachment } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/calendar/index.ts b/src/users/item/events/item/calendar/index.ts index 6c18e33d826..1a5d127fd61 100644 --- a/src/users/item/events/item/calendar/index.ts +++ b/src/users/item/events/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../models/'; +import { type Calendar } from '../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../models/calendar'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/cancel/cancelPostRequestBody.ts b/src/users/item/events/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/events/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/events/item/cancel/index.ts b/src/users/item/events/item/cancel/index.ts index 563d886f52e..5e2ca7f6fb9 100644 --- a/src/users/item/events/item/cancel/index.ts +++ b/src/users/item/events/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/events/item/decline/index.ts b/src/users/item/events/item/decline/index.ts index cd2948d4706..b720cc715fa 100644 --- a/src/users/item/events/item/decline/index.ts +++ b/src/users/item/events/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/dismissReminder/index.ts b/src/users/item/events/item/dismissReminder/index.ts index 4dadd2e4ddf..c3c32d9e9ce 100644 --- a/src/users/item/events/item/dismissReminder/index.ts +++ b/src/users/item/events/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/extensions/count/index.ts b/src/users/item/events/item/extensions/count/index.ts index b93daf87f53..c9ff7a40c4c 100644 --- a/src/users/item/events/item/extensions/count/index.ts +++ b/src/users/item/events/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/extensions/index.ts b/src/users/item/events/item/extensions/index.ts index b1153d7c567..5e391155e9e 100644 --- a/src/users/item/events/item/extensions/index.ts +++ b/src/users/item/events/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/events/item/extensions/item/index.ts b/src/users/item/events/item/extensions/item/index.ts index ab9a1b64c10..dd9bc61c1a6 100644 --- a/src/users/item/events/item/extensions/item/index.ts +++ b/src/users/item/events/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/forward/forwardPostRequestBody.ts b/src/users/item/events/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 5b7e40ebb5d..00000000000 --- a/src/users/item/events/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/events/item/forward/index.ts b/src/users/item/events/item/forward/index.ts index 4830a3834de..f70b0fc1f98 100644 --- a/src/users/item/events/item/forward/index.ts +++ b/src/users/item/events/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/events/item/index.ts b/src/users/item/events/item/index.ts index c9b16a824b1..04aec5ad037 100644 --- a/src/users/item/events/item/index.ts +++ b/src/users/item/events/item/index.ts @@ -2,19 +2,19 @@ // eslint-disable // Generated by Microsoft Kiota import { createEventFromDiscriminatorValue, deserializeIntoEvent, serializeEvent, type Event } from '../../../../models/event'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { InstancesRequestBuilder } from './instances/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { InstancesRequestBuilder } from './instances'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/events/item/instances/count/index.ts b/src/users/item/events/item/instances/count/index.ts index fddb2cbd18a..cf9a17e34d2 100644 --- a/src/users/item/events/item/instances/count/index.ts +++ b/src/users/item/events/item/instances/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/instances/delta/index.ts b/src/users/item/events/item/instances/delta/index.ts index 03a7b5b0c57..66550219c49 100644 --- a/src/users/item/events/item/instances/delta/index.ts +++ b/src/users/item/events/item/instances/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createEventFromDiscriminatorValue, serializeEvent, type Event } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,44 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Event[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - endDateTime?: 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; - /** - * The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 - */ - startDateTime?: string; - /** - * Show only the first n items - */ - top?: number; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -65,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeEvent); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/event-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/instances/index.ts b/src/users/item/events/item/instances/index.ts index 79ec29b9ce9..5fb0c51ccad 100644 --- a/src/users/item/events/item/instances/index.ts +++ b/src/users/item/events/item/instances/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EventCollectionResponse } from '../../../../../models/'; +import { type EventCollectionResponse } from '../../../../../models'; import { createEventCollectionResponseFromDiscriminatorValue } from '../../../../../models/eventCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { EventItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { EventItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstancesRequestBuilderGetQueryParameters { diff --git a/src/users/item/events/item/instances/item/accept/index.ts b/src/users/item/events/item/instances/item/accept/index.ts index d118c016a42..b5610d8248d 100644 --- a/src/users/item/events/item/instances/item/accept/index.ts +++ b/src/users/item/events/item/instances/item/accept/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface AcceptPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -34,57 +32,5 @@ export function serializeAcceptPostRequestBody(writer: SerializationWriter, acce writer.writeBooleanValue("SendResponse", acceptPostRequestBody.sendResponse); writer.writeAdditionalData(acceptPostRequestBody.additionalData); } -/** - * Provides operations to call the accept method. - */ -export class AcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept"); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-accept?view=graph-rest-1.0|Find more info here} - */ - public post(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Accept the specified event in a user calendar. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a acceptRequestBuilder - */ - public withUrl(rawUrl: string) : AcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/instances/item/attachments/count/index.ts b/src/users/item/events/item/instances/item/attachments/count/index.ts index 60ee05bdf8c..cd7dd4acb70 100644 --- a/src/users/item/events/item/instances/item/attachments/count/index.ts +++ b/src/users/item/events/item/instances/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/instances/item/attachments/createUploadSession/index.ts b/src/users/item/events/item/instances/item/attachments/createUploadSession/index.ts index baa8a230bb8..a5ffe1180dc 100644 --- a/src/users/item/events/item/instances/item/attachments/createUploadSession/index.ts +++ b/src/users/item/events/item/instances/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/instances/item/attachments/index.ts b/src/users/item/events/item/instances/item/attachments/index.ts index 689af2a996f..0d6a0de2043 100644 --- a/src/users/item/events/item/instances/item/attachments/index.ts +++ b/src/users/item/events/item/instances/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { @@ -93,11 +93,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -121,7 +121,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/events/item/instances/item/attachments/item/index.ts b/src/users/item/events/item/instances/item/attachments/item/index.ts index e3e2461b781..53bc66c391d 100644 --- a/src/users/item/events/item/instances/item/attachments/item/index.ts +++ b/src/users/item/events/item/instances/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/instances/item/calendar/index.ts b/src/users/item/events/item/instances/item/calendar/index.ts index 1415d7678b6..166946b5cd6 100644 --- a/src/users/item/events/item/instances/item/calendar/index.ts +++ b/src/users/item/events/item/instances/item/calendar/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Calendar } from '../../../../../../../models/'; +import { type Calendar } from '../../../../../../../models'; import { createCalendarFromDiscriminatorValue } from '../../../../../../../models/calendar'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/instances/item/cancel/cancelPostRequestBody.ts b/src/users/item/events/item/instances/item/cancel/cancelPostRequestBody.ts deleted file mode 100644 index 97a3c945851..00000000000 --- a/src/users/item/events/item/instances/item/cancel/cancelPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; -} -export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCancelPostRequestBody; -} -export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { - return { - "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, - } -} -export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { - writer.writeStringValue("Comment", cancelPostRequestBody.comment); - writer.writeAdditionalData(cancelPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/events/item/instances/item/cancel/index.ts b/src/users/item/events/item/instances/item/cancel/index.ts index 210a37f2ce5..a0138dc5583 100644 --- a/src/users/item/events/item/instances/item/cancel/index.ts +++ b/src/users/item/events/item/instances/item/cancel/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCancelPostRequestBody, serializeCancelPostRequestBody, type CancelPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CancelPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; +} +export function createCancelPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCancelPostRequestBody; +} +export function deserializeIntoCancelPostRequestBody(cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : Record void> { + return { + "comment": n => { cancelPostRequestBody.comment = n.getStringValue(); }, + } +} +export function serializeCancelPostRequestBody(writer: SerializationWriter, cancelPostRequestBody: CancelPostRequestBody | undefined = {} as CancelPostRequestBody) : void { + writer.writeStringValue("Comment", cancelPostRequestBody.comment); + writer.writeAdditionalData(cancelPostRequestBody.additionalData); +} /** * Provides operations to call the cancel method. */ diff --git a/src/users/item/events/item/instances/item/decline/index.ts b/src/users/item/events/item/instances/item/decline/index.ts index d6f5d8f9759..c72ae82357a 100644 --- a/src/users/item/events/item/instances/item/decline/index.ts +++ b/src/users/item/events/item/instances/item/decline/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeclinePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export function serializeDeclinePostRequestBody(writer: SerializationWriter, dec writer.writeBooleanValue("SendResponse", declinePostRequestBody.sendResponse); writer.writeAdditionalData(declinePostRequestBody.additionalData); } -/** - * Provides operations to call the decline method. - */ -export class DeclineRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeclineRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline"); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-decline?view=graph-rest-1.0|Find more info here} - */ - public post(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: DeclinePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeDeclinePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a declineRequestBuilder - */ - public withUrl(rawUrl: string) : DeclineRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeclineRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/instances/item/dismissReminder/index.ts b/src/users/item/events/item/instances/item/dismissReminder/index.ts index 8a2441aacd4..565cc450345 100644 --- a/src/users/item/events/item/instances/item/dismissReminder/index.ts +++ b/src/users/item/events/item/instances/item/dismissReminder/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/instances/item/extensions/count/index.ts b/src/users/item/events/item/instances/item/extensions/count/index.ts index 00dea05b053..1a4f6b99a35 100644 --- a/src/users/item/events/item/instances/item/extensions/count/index.ts +++ b/src/users/item/events/item/instances/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/instances/item/extensions/index.ts b/src/users/item/events/item/instances/item/extensions/index.ts index 96a02cbedaf..bcb108dfb65 100644 --- a/src/users/item/events/item/instances/item/extensions/index.ts +++ b/src/users/item/events/item/instances/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/events/item/instances/item/extensions/item/index.ts b/src/users/item/events/item/instances/item/extensions/item/index.ts index b63064a5241..e6f8174c0c9 100644 --- a/src/users/item/events/item/instances/item/extensions/item/index.ts +++ b/src/users/item/events/item/instances/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/events/item/instances/item/forward/forwardPostRequestBody.ts b/src/users/item/events/item/instances/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 1fd7eb4c631..00000000000 --- a/src/users/item/events/item/instances/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/events/item/instances/item/forward/index.ts b/src/users/item/events/item/instances/item/forward/index.ts index 2224443693d..9974fc020c5 100644 --- a/src/users/item/events/item/instances/item/forward/index.ts +++ b/src/users/item/events/item/instances/item/forward/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/events/item/instances/item/index.ts b/src/users/item/events/item/instances/item/index.ts index 6b695084729..ca911dae1ee 100644 --- a/src/users/item/events/item/instances/item/index.ts +++ b/src/users/item/events/item/instances/item/index.ts @@ -1,20 +1,20 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Event } from '../../../../../../models/'; +import { type Event } from '../../../../../../models'; import { createEventFromDiscriminatorValue } from '../../../../../../models/event'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AcceptRequestBuilder } from './accept/'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CancelRequestBuilder } from './cancel/'; -import { DeclineRequestBuilder } from './decline/'; -import { DismissReminderRequestBuilder } from './dismissReminder/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { SnoozeReminderRequestBuilder } from './snoozeReminder/'; -import { TentativelyAcceptRequestBuilder } from './tentativelyAccept/'; +import { AcceptRequestBuilder } from './accept'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CalendarRequestBuilder } from './calendar'; +import { CancelRequestBuilder } from './cancel'; +import { DeclineRequestBuilder } from './decline'; +import { DismissReminderRequestBuilder } from './dismissReminder'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { SnoozeReminderRequestBuilder } from './snoozeReminder'; +import { TentativelyAcceptRequestBuilder } from './tentativelyAccept'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface EventItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/events/item/instances/item/snoozeReminder/index.ts b/src/users/item/events/item/instances/item/snoozeReminder/index.ts index fa99449940b..b1b074b9a13 100644 --- a/src/users/item/events/item/instances/item/snoozeReminder/index.ts +++ b/src/users/item/events/item/instances/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/instances/item/tentativelyAccept/index.ts b/src/users/item/events/item/instances/item/tentativelyAccept/index.ts index e3b7ecc45ab..6acaf0967b7 100644 --- a/src/users/item/events/item/instances/item/tentativelyAccept/index.ts +++ b/src/users/item/events/item/instances/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/snoozeReminder/index.ts b/src/users/item/events/item/snoozeReminder/index.ts index 4739a73e422..8564e8fef21 100644 --- a/src/users/item/events/item/snoozeReminder/index.ts +++ b/src/users/item/events/item/snoozeReminder/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDateTimeTimeZoneFromDiscriminatorValue, serializeDateTimeTimeZone, type DateTimeTimeZone } from '../../../../../models/dateTimeTimeZone'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSnoozeReminderPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SnoozeReminderPostRequestBody extends AdditionalDataHolder, Par */ newReminderTime?: DateTimeTimeZone; } -/** - * Provides operations to call the snoozeReminder method. - */ -export class SnoozeReminderRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SnoozeReminderRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/snoozeReminder"); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-snoozereminder?view=graph-rest-1.0|Find more info here} - */ - public post(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Postpone a reminder for an event in a user calendar until a new time. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SnoozeReminderPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSnoozeReminderPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a snoozeReminderRequestBuilder - */ - public withUrl(rawUrl: string) : SnoozeReminderRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SnoozeReminderRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/events/item/tentativelyAccept/index.ts b/src/users/item/events/item/tentativelyAccept/index.ts index f77cb589751..4f019247951 100644 --- a/src/users/item/events/item/tentativelyAccept/index.ts +++ b/src/users/item/events/item/tentativelyAccept/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTimeSlotFromDiscriminatorValue, serializeTimeSlot, type TimeSlot } from '../../../../../models/timeSlot'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createTentativelyAcceptPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -41,57 +39,5 @@ export interface TentativelyAcceptPostRequestBody extends AdditionalDataHolder, */ sendResponse?: boolean; } -/** - * Provides operations to call the tentativelyAccept method. - */ -export class TentativelyAcceptRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new TentativelyAcceptRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/tentativelyAccept"); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/event-tentativelyaccept?view=graph-rest-1.0|Find more info here} - */ - public post(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: TentativelyAcceptPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeTentativelyAcceptPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a tentativelyAcceptRequestBuilder - */ - public withUrl(rawUrl: string) : TentativelyAcceptRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new TentativelyAcceptRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/exportDeviceAndAppManagementData/index.ts b/src/users/item/exportDeviceAndAppManagementData/index.ts index 9d762b10361..2a3fbab3f48 100644 --- a/src/users/item/exportDeviceAndAppManagementData/index.ts +++ b/src/users/item/exportDeviceAndAppManagementData/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceAndAppManagementData } from '../../../models/'; +import { type DeviceAndAppManagementData } from '../../../models'; import { createDeviceAndAppManagementDataFromDiscriminatorValue } from '../../../models/deviceAndAppManagementData'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/exportDeviceAndAppManagementDataWithSkipWithTop/index.ts b/src/users/item/exportDeviceAndAppManagementDataWithSkipWithTop/index.ts index 72cac708529..eeb5588686e 100644 --- a/src/users/item/exportDeviceAndAppManagementDataWithSkipWithTop/index.ts +++ b/src/users/item/exportDeviceAndAppManagementDataWithSkipWithTop/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceAndAppManagementData } from '../../../models/'; +import { type DeviceAndAppManagementData } from '../../../models'; import { createDeviceAndAppManagementDataFromDiscriminatorValue } from '../../../models/deviceAndAppManagementData'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/exportPersonalData/index.ts b/src/users/item/exportPersonalData/index.ts index 44212d5349b..8b2bacfb2bd 100644 --- a/src/users/item/exportPersonalData/index.ts +++ b/src/users/item/exportPersonalData/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createExportPersonalDataPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,57 +26,5 @@ export function serializeExportPersonalDataPostRequestBody(writer: Serialization writer.writeStringValue("storageLocation", exportPersonalDataPostRequestBody.storageLocation); writer.writeAdditionalData(exportPersonalDataPostRequestBody.additionalData); } -/** - * Provides operations to call the exportPersonalData method. - */ -export class ExportPersonalDataRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ExportPersonalDataRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/exportPersonalData"); - }; - /** - * Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/user-exportpersonaldata?view=graph-rest-1.0|Find more info here} - */ - public post(body: ExportPersonalDataPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ExportPersonalDataPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeExportPersonalDataPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a exportPersonalDataRequestBuilder - */ - public withUrl(rawUrl: string) : ExportPersonalDataRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ExportPersonalDataRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/extensions/count/index.ts b/src/users/item/extensions/count/index.ts index 00207b8004f..362b1aaa738 100644 --- a/src/users/item/extensions/count/index.ts +++ b/src/users/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/extensions/index.ts b/src/users/item/extensions/index.ts index 133dc7075a3..443b580b429 100644 --- a/src/users/item/extensions/index.ts +++ b/src/users/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../models/'; +import { type ExtensionCollectionResponse } from '../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/extensions/item/index.ts b/src/users/item/extensions/item/index.ts index ef076560af7..e60fd398b65 100644 --- a/src/users/item/extensions/item/index.ts +++ b/src/users/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../models/extension'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/findMeetingTimes/findMeetingTimesPostRequestBody.ts b/src/users/item/findMeetingTimes/findMeetingTimesPostRequestBody.ts deleted file mode 100644 index 80a429842b5..00000000000 --- a/src/users/item/findMeetingTimes/findMeetingTimesPostRequestBody.ts +++ /dev/null @@ -1,75 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createAttendeeBaseFromDiscriminatorValue, serializeAttendeeBase, type AttendeeBase } from '../../../models/attendeeBase'; -import { createLocationConstraintFromDiscriminatorValue, serializeLocationConstraint, type LocationConstraint } from '../../../models/locationConstraint'; -import { createTimeConstraintFromDiscriminatorValue, serializeTimeConstraint, type TimeConstraint } from '../../../models/timeConstraint'; -import { type AdditionalDataHolder, type Duration, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createFindMeetingTimesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoFindMeetingTimesPostRequestBody; -} -export function deserializeIntoFindMeetingTimesPostRequestBody(findMeetingTimesPostRequestBody: FindMeetingTimesPostRequestBody | undefined = {} as FindMeetingTimesPostRequestBody) : Record void> { - return { - "attendees": n => { findMeetingTimesPostRequestBody.attendees = n.getCollectionOfObjectValues(createAttendeeBaseFromDiscriminatorValue); }, - "isOrganizerOptional": n => { findMeetingTimesPostRequestBody.isOrganizerOptional = n.getBooleanValue(); }, - "locationConstraint": n => { findMeetingTimesPostRequestBody.locationConstraint = n.getObjectValue(createLocationConstraintFromDiscriminatorValue); }, - "maxCandidates": n => { findMeetingTimesPostRequestBody.maxCandidates = n.getNumberValue(); }, - "meetingDuration": n => { findMeetingTimesPostRequestBody.meetingDuration = n.getDurationValue(); }, - "minimumAttendeePercentage": n => { findMeetingTimesPostRequestBody.minimumAttendeePercentage = n.getNumberValue(); }, - "returnSuggestionReasons": n => { findMeetingTimesPostRequestBody.returnSuggestionReasons = n.getBooleanValue(); }, - "timeConstraint": n => { findMeetingTimesPostRequestBody.timeConstraint = n.getObjectValue(createTimeConstraintFromDiscriminatorValue); }, - } -} -export interface FindMeetingTimesPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The attendees property - */ - attendees?: AttendeeBase[]; - /** - * The isOrganizerOptional property - */ - isOrganizerOptional?: boolean; - /** - * The locationConstraint property - */ - locationConstraint?: LocationConstraint; - /** - * The maxCandidates property - */ - maxCandidates?: number; - /** - * The meetingDuration property - */ - meetingDuration?: Duration; - /** - * The minimumAttendeePercentage property - */ - minimumAttendeePercentage?: number; - /** - * The returnSuggestionReasons property - */ - returnSuggestionReasons?: boolean; - /** - * The timeConstraint property - */ - timeConstraint?: TimeConstraint; -} -export function serializeFindMeetingTimesPostRequestBody(writer: SerializationWriter, findMeetingTimesPostRequestBody: FindMeetingTimesPostRequestBody | undefined = {} as FindMeetingTimesPostRequestBody) : void { - writer.writeCollectionOfObjectValues("attendees", findMeetingTimesPostRequestBody.attendees, serializeAttendeeBase); - writer.writeBooleanValue("isOrganizerOptional", findMeetingTimesPostRequestBody.isOrganizerOptional); - writer.writeObjectValue("locationConstraint", findMeetingTimesPostRequestBody.locationConstraint, serializeLocationConstraint); - writer.writeNumberValue("maxCandidates", findMeetingTimesPostRequestBody.maxCandidates); - writer.writeDurationValue("meetingDuration", findMeetingTimesPostRequestBody.meetingDuration); - writer.writeNumberValue("minimumAttendeePercentage", findMeetingTimesPostRequestBody.minimumAttendeePercentage); - writer.writeBooleanValue("returnSuggestionReasons", findMeetingTimesPostRequestBody.returnSuggestionReasons); - writer.writeObjectValue("timeConstraint", findMeetingTimesPostRequestBody.timeConstraint, serializeTimeConstraint); - writer.writeAdditionalData(findMeetingTimesPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/findMeetingTimes/index.ts b/src/users/item/findMeetingTimes/index.ts index bc6234a1a33..93b684b77d3 100644 --- a/src/users/item/findMeetingTimes/index.ts +++ b/src/users/item/findMeetingTimes/index.ts @@ -1,12 +1,79 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota +import { createAttendeeBaseFromDiscriminatorValue, serializeAttendeeBase, type AttendeeBase } from '../../../models/attendeeBase'; +import { createLocationConstraintFromDiscriminatorValue, serializeLocationConstraint, type LocationConstraint } from '../../../models/locationConstraint'; import { createMeetingTimeSuggestionsResultFromDiscriminatorValue, deserializeIntoMeetingTimeSuggestionsResult, serializeMeetingTimeSuggestionsResult, type MeetingTimeSuggestionsResult } from '../../../models/meetingTimeSuggestionsResult'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoFindMeetingTimesPostRequestBody, serializeFindMeetingTimesPostRequestBody, type FindMeetingTimesPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTimeConstraintFromDiscriminatorValue, serializeTimeConstraint, type TimeConstraint } from '../../../models/timeConstraint'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Duration, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createFindMeetingTimesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoFindMeetingTimesPostRequestBody; +} +export function deserializeIntoFindMeetingTimesPostRequestBody(findMeetingTimesPostRequestBody: FindMeetingTimesPostRequestBody | undefined = {} as FindMeetingTimesPostRequestBody) : Record void> { + return { + "attendees": n => { findMeetingTimesPostRequestBody.attendees = n.getCollectionOfObjectValues(createAttendeeBaseFromDiscriminatorValue); }, + "isOrganizerOptional": n => { findMeetingTimesPostRequestBody.isOrganizerOptional = n.getBooleanValue(); }, + "locationConstraint": n => { findMeetingTimesPostRequestBody.locationConstraint = n.getObjectValue(createLocationConstraintFromDiscriminatorValue); }, + "maxCandidates": n => { findMeetingTimesPostRequestBody.maxCandidates = n.getNumberValue(); }, + "meetingDuration": n => { findMeetingTimesPostRequestBody.meetingDuration = n.getDurationValue(); }, + "minimumAttendeePercentage": n => { findMeetingTimesPostRequestBody.minimumAttendeePercentage = n.getNumberValue(); }, + "returnSuggestionReasons": n => { findMeetingTimesPostRequestBody.returnSuggestionReasons = n.getBooleanValue(); }, + "timeConstraint": n => { findMeetingTimesPostRequestBody.timeConstraint = n.getObjectValue(createTimeConstraintFromDiscriminatorValue); }, + } +} +export interface FindMeetingTimesPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The attendees property + */ + attendees?: AttendeeBase[]; + /** + * The isOrganizerOptional property + */ + isOrganizerOptional?: boolean; + /** + * The locationConstraint property + */ + locationConstraint?: LocationConstraint; + /** + * The maxCandidates property + */ + maxCandidates?: number; + /** + * The meetingDuration property + */ + meetingDuration?: Duration; + /** + * The minimumAttendeePercentage property + */ + minimumAttendeePercentage?: number; + /** + * The returnSuggestionReasons property + */ + returnSuggestionReasons?: boolean; + /** + * The timeConstraint property + */ + timeConstraint?: TimeConstraint; +} +export function serializeFindMeetingTimesPostRequestBody(writer: SerializationWriter, findMeetingTimesPostRequestBody: FindMeetingTimesPostRequestBody | undefined = {} as FindMeetingTimesPostRequestBody) : void { + writer.writeCollectionOfObjectValues("attendees", findMeetingTimesPostRequestBody.attendees, serializeAttendeeBase); + writer.writeBooleanValue("isOrganizerOptional", findMeetingTimesPostRequestBody.isOrganizerOptional); + writer.writeObjectValue("locationConstraint", findMeetingTimesPostRequestBody.locationConstraint, serializeLocationConstraint); + writer.writeNumberValue("maxCandidates", findMeetingTimesPostRequestBody.maxCandidates); + writer.writeDurationValue("meetingDuration", findMeetingTimesPostRequestBody.meetingDuration); + writer.writeNumberValue("minimumAttendeePercentage", findMeetingTimesPostRequestBody.minimumAttendeePercentage); + writer.writeBooleanValue("returnSuggestionReasons", findMeetingTimesPostRequestBody.returnSuggestionReasons); + writer.writeObjectValue("timeConstraint", findMeetingTimesPostRequestBody.timeConstraint, serializeTimeConstraint); + writer.writeAdditionalData(findMeetingTimesPostRequestBody.additionalData); +} /** * Provides operations to call the findMeetingTimes method. */ diff --git a/src/users/item/followedSites/count/index.ts b/src/users/item/followedSites/count/index.ts index 2c5e63dc446..79945d6d24b 100644 --- a/src/users/item/followedSites/count/index.ts +++ b/src/users/item/followedSites/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/followedSites/index.ts b/src/users/item/followedSites/index.ts index df48779326c..df9eb1d53b0 100644 --- a/src/users/item/followedSites/index.ts +++ b/src/users/item/followedSites/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SiteCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type SiteCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createSiteCollectionResponseFromDiscriminatorValue } from '../../../models/siteCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SiteItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SiteItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FollowedSitesRequestBuilderGetQueryParameters { diff --git a/src/users/item/followedSites/item/index.ts b/src/users/item/followedSites/item/index.ts index dc2aaaec92f..5f43a7f5b9b 100644 --- a/src/users/item/followedSites/item/index.ts +++ b/src/users/item/followedSites/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Site } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type Site } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSiteFromDiscriminatorValue } from '../../../../models/site'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/getMailTips/getMailTipsPostRequestBody.ts b/src/users/item/getMailTips/getMailTipsPostRequestBody.ts deleted file mode 100644 index 2913f02d37e..00000000000 --- a/src/users/item/getMailTips/getMailTipsPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { MailTipsType } from '../../../models/mailTipsType'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMailTipsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMailTipsPostRequestBody; -} -export function deserializeIntoGetMailTipsPostRequestBody(getMailTipsPostRequestBody: GetMailTipsPostRequestBody | undefined = {} as GetMailTipsPostRequestBody) : Record void> { - return { - "emailAddresses": n => { getMailTipsPostRequestBody.emailAddresses = n.getCollectionOfPrimitiveValues(); }, - "mailTipsOptions": n => { getMailTipsPostRequestBody.mailTipsOptions = n.getCollectionOfEnumValues(MailTipsType); }, - } -} -export interface GetMailTipsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The EmailAddresses property - */ - emailAddresses?: string[]; - /** - * The MailTipsOptions property - */ - mailTipsOptions?: MailTipsType[]; -} -export function serializeGetMailTipsPostRequestBody(writer: SerializationWriter, getMailTipsPostRequestBody: GetMailTipsPostRequestBody | undefined = {} as GetMailTipsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("EmailAddresses", getMailTipsPostRequestBody.emailAddresses); - writer.writeEnumValue("MailTipsOptions", getMailTipsPostRequestBody.mailTipsOptions); - writer.writeAdditionalData(getMailTipsPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/getMailTips/index.ts b/src/users/item/getMailTips/index.ts index 2f9f7dd8515..1eb9a85d389 100644 --- a/src/users/item/getMailTips/index.ts +++ b/src/users/item/getMailTips/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; import { createMailTipsFromDiscriminatorValue, serializeMailTips, type MailTips } from '../../../models/mailTips'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetMailTipsPostRequestBody, serializeGetMailTipsPostRequestBody, type GetMailTipsPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMailTipsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -28,58 +25,5 @@ export function serializeGetMailTipsPostResponse(writer: SerializationWriter, ge serializeBaseCollectionPaginationCountResponse(writer, getMailTipsPostResponse) writer.writeCollectionOfObjectValues("value", getMailTipsPostResponse.value, serializeMailTips); } -/** - * Provides operations to call the getMailTips method. - */ -export class GetMailTipsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMailTipsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/getMailTips"); - }; - /** - * Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMailTipsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/user-getmailtips?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMailTipsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMailTipsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMailTipsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMailTipsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMailTipsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMailTipsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMailTipsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/getManagedAppDiagnosticStatuses/index.ts b/src/users/item/getManagedAppDiagnosticStatuses/index.ts index c10f12f0c6a..93c5cadddee 100644 --- a/src/users/item/getManagedAppDiagnosticStatuses/index.ts +++ b/src/users/item/getManagedAppDiagnosticStatuses/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; import { createManagedAppDiagnosticStatusFromDiscriminatorValue, serializeManagedAppDiagnosticStatus, type ManagedAppDiagnosticStatus } from '../../../models/managedAppDiagnosticStatus'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetManagedAppDiagnosticStatusesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,86 +21,9 @@ export interface GetManagedAppDiagnosticStatusesGetResponse extends BaseCollecti */ value?: ManagedAppDiagnosticStatus[]; } -export interface GetManagedAppDiagnosticStatusesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} export function serializeGetManagedAppDiagnosticStatusesGetResponse(writer: SerializationWriter, getManagedAppDiagnosticStatusesGetResponse: GetManagedAppDiagnosticStatusesGetResponse | undefined = {} as GetManagedAppDiagnosticStatusesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getManagedAppDiagnosticStatusesGetResponse) writer.writeCollectionOfObjectValues("value", getManagedAppDiagnosticStatusesGetResponse.value, serializeManagedAppDiagnosticStatus); } -/** - * Provides operations to call the getManagedAppDiagnosticStatuses method. - */ -export class GetManagedAppDiagnosticStatusesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetManagedAppDiagnosticStatusesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/getManagedAppDiagnosticStatuses(){?%24top,%24skip,%24search,%24filter,%24count}"); - }; - /** - * Gets diagnostics validation status for a given user. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetManagedAppDiagnosticStatusesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetManagedAppDiagnosticStatusesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Gets diagnostics validation status for a given user. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getManagedAppDiagnosticStatusesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getManagedAppDiagnosticStatusesRequestBuilder - */ - public withUrl(rawUrl: string) : GetManagedAppDiagnosticStatusesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetManagedAppDiagnosticStatusesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getManagedAppDiagnosticStatusesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/getManagedAppPolicies/index.ts b/src/users/item/getManagedAppPolicies/index.ts index 0fe3c03a313..4eb7ba8a6e2 100644 --- a/src/users/item/getManagedAppPolicies/index.ts +++ b/src/users/item/getManagedAppPolicies/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; import { createManagedAppPolicyFromDiscriminatorValue, serializeManagedAppPolicy, type ManagedAppPolicy } from '../../../models/managedAppPolicy'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetManagedAppPoliciesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,96 +21,9 @@ export interface GetManagedAppPoliciesGetResponse extends BaseCollectionPaginati */ value?: ManagedAppPolicy[]; } -export interface GetManagedAppPoliciesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function serializeGetManagedAppPoliciesGetResponse(writer: SerializationWriter, getManagedAppPoliciesGetResponse: GetManagedAppPoliciesGetResponse | undefined = {} as GetManagedAppPoliciesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getManagedAppPoliciesGetResponse) writer.writeCollectionOfObjectValues("value", getManagedAppPoliciesGetResponse.value, serializeManagedAppPolicy); } -/** - * Provides operations to call the getManagedAppPolicies method. - */ -export class GetManagedAppPoliciesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetManagedAppPoliciesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/getManagedAppPolicies(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Gets app restrictions for a given user. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetManagedAppPoliciesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetManagedAppPoliciesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Gets app restrictions for a given user. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getManagedAppPoliciesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getManagedAppPoliciesRequestBuilder - */ - public withUrl(rawUrl: string) : GetManagedAppPoliciesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetManagedAppPoliciesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getManagedAppPoliciesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/getManagedDevicesWithAppFailures/getManagedDevicesWithAppFailuresGetResponse.ts b/src/users/item/getManagedDevicesWithAppFailures/getManagedDevicesWithAppFailuresGetResponse.ts deleted file mode 100644 index 5655e83264c..00000000000 --- a/src/users/item/getManagedDevicesWithAppFailures/getManagedDevicesWithAppFailuresGetResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetManagedDevicesWithAppFailuresGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetManagedDevicesWithAppFailuresGetResponse; -} -export function deserializeIntoGetManagedDevicesWithAppFailuresGetResponse(getManagedDevicesWithAppFailuresGetResponse: GetManagedDevicesWithAppFailuresGetResponse | undefined = {} as GetManagedDevicesWithAppFailuresGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getManagedDevicesWithAppFailuresGetResponse), - "value": n => { getManagedDevicesWithAppFailuresGetResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetManagedDevicesWithAppFailuresGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetManagedDevicesWithAppFailuresGetResponse(writer: SerializationWriter, getManagedDevicesWithAppFailuresGetResponse: GetManagedDevicesWithAppFailuresGetResponse | undefined = {} as GetManagedDevicesWithAppFailuresGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getManagedDevicesWithAppFailuresGetResponse) - writer.writeCollectionOfPrimitiveValues("value", getManagedDevicesWithAppFailuresGetResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/getManagedDevicesWithAppFailures/index.ts b/src/users/item/getManagedDevicesWithAppFailures/index.ts index f2b288b8ed3..37483366c77 100644 --- a/src/users/item/getManagedDevicesWithAppFailures/index.ts +++ b/src/users/item/getManagedDevicesWithAppFailures/index.ts @@ -1,12 +1,27 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetManagedDevicesWithAppFailuresGetResponseFromDiscriminatorValue } from './'; -import { type GetManagedDevicesWithAppFailuresGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetManagedDevicesWithAppFailuresGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetManagedDevicesWithAppFailuresGetResponse; +} +export function deserializeIntoGetManagedDevicesWithAppFailuresGetResponse(getManagedDevicesWithAppFailuresGetResponse: GetManagedDevicesWithAppFailuresGetResponse | undefined = {} as GetManagedDevicesWithAppFailuresGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getManagedDevicesWithAppFailuresGetResponse), + "value": n => { getManagedDevicesWithAppFailuresGetResponse.value = n.getCollectionOfPrimitiveValues(); }, + } +} +export interface GetManagedDevicesWithAppFailuresGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: string[]; +} export interface GetManagedDevicesWithAppFailuresRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +44,10 @@ export interface GetManagedDevicesWithAppFailuresRequestBuilderGetQueryParameter */ top?: number; } +export function serializeGetManagedDevicesWithAppFailuresGetResponse(writer: SerializationWriter, getManagedDevicesWithAppFailuresGetResponse: GetManagedDevicesWithAppFailuresGetResponse | undefined = {} as GetManagedDevicesWithAppFailuresGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getManagedDevicesWithAppFailuresGetResponse) + writer.writeCollectionOfPrimitiveValues("value", getManagedDevicesWithAppFailuresGetResponse.value); +} /** * Provides operations to call the getManagedDevicesWithAppFailures method. */ diff --git a/src/users/item/getMemberGroups/getMemberGroupsPostResponse.ts b/src/users/item/getMemberGroups/getMemberGroupsPostResponse.ts deleted file mode 100644 index cb1e69c29ed..00000000000 --- a/src/users/item/getMemberGroups/getMemberGroupsPostResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberGroupsPostResponse; -} -export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse), - "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} -export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} -export function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse: GetMemberGroupsPostResponse | undefined = {} as GetMemberGroupsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/getMemberGroups/index.ts b/src/users/item/getMemberGroups/index.ts index b166d4844aa..e7344ba5741 100644 --- a/src/users/item/getMemberGroups/index.ts +++ b/src/users/item/getMemberGroups/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createGetMemberGroupsPostResponseFromDiscriminatorValue, deserializeIntoGetMemberGroupsPostResponse, serializeGetMemberGroupsPostResponse, type GetMemberGroupsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,58 +26,5 @@ export function serializeGetMemberGroupsPostRequestBody(writer: SerializationWri writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData); } -/** - * Provides operations to call the getMemberGroups method. - */ -export class GetMemberGroupsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/getMemberGroups"); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberGroupsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberGroupsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * 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. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberGroupsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberGroupsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberGroupsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberGroupsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/getMemberObjects/index.ts b/src/users/item/getMemberObjects/index.ts index c23d4948df3..1d90b3647dc 100644 --- a/src/users/item/getMemberObjects/index.ts +++ b/src/users/item/getMemberObjects/index.ts @@ -1,30 +1,17 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoGetMemberObjectsPostRequestBody; } -export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetMemberObjectsPostResponse; -} export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : Record void> { return { "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); }, } } -export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse), - "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); }, - } -} export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -35,72 +22,9 @@ export interface GetMemberObjectsPostRequestBody extends AdditionalDataHolder, P */ securityEnabledOnly?: boolean; } -export interface GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: string[]; -} export function serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody: GetMemberObjectsPostRequestBody | undefined = {} as GetMemberObjectsPostRequestBody) : void { writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly); writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData); } -export function serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse: GetMemberObjectsPostResponse | undefined = {} as GetMemberObjectsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse) - writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value); -} -/** - * Provides operations to call the getMemberObjects method. - */ -export class GetMemberObjectsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/getMemberObjects"); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetMemberObjectsPostResponse - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here} - */ - public post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetMemberObjectsPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeGetMemberObjectsPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getMemberObjectsRequestBuilder - */ - public withUrl(rawUrl: string) : GetMemberObjectsRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetMemberObjectsRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/index.ts b/src/users/item/index.ts index 103da357df9..a29215e7d87 100644 --- a/src/users/item/index.ts +++ b/src/users/item/index.ts @@ -1,81 +1,81 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; +import { type ODataError } from '../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue, deserializeIntoUser, serializeUser, type User } from '../../models/user'; -import { ActivitiesRequestBuilder } from './activities/'; -import { AgreementAcceptancesRequestBuilder } from './agreementAcceptances/'; -import { AppRoleAssignmentsRequestBuilder } from './appRoleAssignments/'; -import { AssignLicenseRequestBuilder } from './assignLicense/'; -import { AuthenticationRequestBuilder } from './authentication/'; -import { CalendarRequestBuilder } from './calendar/'; -import { CalendarGroupsRequestBuilder } from './calendarGroups/'; -import { CalendarsRequestBuilder } from './calendars/'; -import { CalendarViewRequestBuilder } from './calendarView/'; -import { ChangePasswordRequestBuilder } from './changePassword/'; -import { ChatsRequestBuilder } from './chats/'; -import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups/'; -import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects/'; -import { ContactFoldersRequestBuilder } from './contactFolders/'; -import { ContactsRequestBuilder } from './contacts/'; -import { CreatedObjectsRequestBuilder } from './createdObjects/'; -import { DeviceManagementTroubleshootingEventsRequestBuilder } from './deviceManagementTroubleshootingEvents/'; -import { DirectReportsRequestBuilder } from './directReports/'; -import { DriveRequestBuilder } from './drive/'; -import { DrivesRequestBuilder } from './drives/'; -import { EmployeeExperienceRequestBuilder } from './employeeExperience/'; -import { EventsRequestBuilder } from './events/'; -import { ExportDeviceAndAppManagementDataRequestBuilder } from './exportDeviceAndAppManagementData/'; -import { ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder } from './exportDeviceAndAppManagementDataWithSkipWithTop/'; -import { ExportPersonalDataRequestBuilder } from './exportPersonalData/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { FindMeetingTimesRequestBuilder } from './findMeetingTimes/'; -import { FollowedSitesRequestBuilder } from './followedSites/'; -import { GetMailTipsRequestBuilder } from './getMailTips/'; -import { GetManagedAppDiagnosticStatusesRequestBuilder } from './getManagedAppDiagnosticStatuses/'; -import { GetManagedAppPoliciesRequestBuilder } from './getManagedAppPolicies/'; -import { GetManagedDevicesWithAppFailuresRequestBuilder } from './getManagedDevicesWithAppFailures/'; -import { GetMemberGroupsRequestBuilder } from './getMemberGroups/'; -import { GetMemberObjectsRequestBuilder } from './getMemberObjects/'; -import { InferenceClassificationRequestBuilder } from './inferenceClassification/'; -import { InsightsRequestBuilder } from './insights/'; -import { JoinedTeamsRequestBuilder } from './joinedTeams/'; -import { LicenseDetailsRequestBuilder } from './licenseDetails/'; -import { MailboxSettingsRequestBuilder } from './mailboxSettings/'; -import { MailFoldersRequestBuilder } from './mailFolders/'; -import { ManagedAppRegistrationsRequestBuilder } from './managedAppRegistrations/'; -import { ManagedDevicesRequestBuilder } from './managedDevices/'; -import { ManagerRequestBuilder } from './manager/'; -import { MemberOfRequestBuilder } from './memberOf/'; -import { MessagesRequestBuilder } from './messages/'; -import { Oauth2PermissionGrantsRequestBuilder } from './oauth2PermissionGrants/'; -import { OnenoteRequestBuilder } from './onenote/'; -import { OnlineMeetingsRequestBuilder } from './onlineMeetings/'; -import { OutlookRequestBuilder } from './outlook/'; -import { OwnedDevicesRequestBuilder } from './ownedDevices/'; -import { OwnedObjectsRequestBuilder } from './ownedObjects/'; -import { PeopleRequestBuilder } from './people/'; -import { PhotoRequestBuilder } from './photo/'; -import { PhotosRequestBuilder } from './photos/'; -import { PlannerRequestBuilder } from './planner/'; -import { PresenceRequestBuilder } from './presence/'; -import { RegisteredDevicesRequestBuilder } from './registeredDevices/'; -import { ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder } from './reminderViewWithStartDateTimeWithEndDateTime/'; -import { RemoveAllDevicesFromManagementRequestBuilder } from './removeAllDevicesFromManagement/'; -import { ReprocessLicenseAssignmentRequestBuilder } from './reprocessLicenseAssignment/'; -import { RestoreRequestBuilder } from './restore/'; -import { RetryServiceProvisioningRequestBuilder } from './retryServiceProvisioning/'; -import { RevokeSignInSessionsRequestBuilder } from './revokeSignInSessions/'; -import { ScopedRoleMemberOfRequestBuilder } from './scopedRoleMemberOf/'; -import { SendMailRequestBuilder } from './sendMail/'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; -import { SettingsRequestBuilder } from './settings/'; -import { TeamworkRequestBuilder } from './teamwork/'; -import { TodoRequestBuilder } from './todo/'; -import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf/'; -import { TranslateExchangeIdsRequestBuilder } from './translateExchangeIds/'; -import { WipeManagedAppRegistrationsByDeviceTagRequestBuilder } from './wipeManagedAppRegistrationsByDeviceTag/'; +import { ActivitiesRequestBuilder } from './activities'; +import { AgreementAcceptancesRequestBuilder } from './agreementAcceptances'; +import { AppRoleAssignmentsRequestBuilder } from './appRoleAssignments'; +import { AssignLicenseRequestBuilder } from './assignLicense'; +import { AuthenticationRequestBuilder } from './authentication'; +import { CalendarRequestBuilder } from './calendar'; +import { CalendarGroupsRequestBuilder } from './calendarGroups'; +import { CalendarsRequestBuilder } from './calendars'; +import { CalendarViewRequestBuilder } from './calendarView'; +import { ChangePasswordRequestBuilder } from './changePassword'; +import { ChatsRequestBuilder } from './chats'; +import { CheckMemberGroupsRequestBuilder } from './checkMemberGroups'; +import { CheckMemberObjectsRequestBuilder } from './checkMemberObjects'; +import { ContactFoldersRequestBuilder } from './contactFolders'; +import { ContactsRequestBuilder } from './contacts'; +import { CreatedObjectsRequestBuilder } from './createdObjects'; +import { DeviceManagementTroubleshootingEventsRequestBuilder } from './deviceManagementTroubleshootingEvents'; +import { DirectReportsRequestBuilder } from './directReports'; +import { DriveRequestBuilder } from './drive'; +import { DrivesRequestBuilder } from './drives'; +import { EmployeeExperienceRequestBuilder } from './employeeExperience'; +import { EventsRequestBuilder } from './events'; +import { ExportDeviceAndAppManagementDataRequestBuilder } from './exportDeviceAndAppManagementData'; +import { ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder } from './exportDeviceAndAppManagementDataWithSkipWithTop'; +import { ExportPersonalDataRequestBuilder } from './exportPersonalData'; +import { ExtensionsRequestBuilder } from './extensions'; +import { FindMeetingTimesRequestBuilder } from './findMeetingTimes'; +import { FollowedSitesRequestBuilder } from './followedSites'; +import { GetMailTipsRequestBuilder } from './getMailTips'; +import { GetManagedAppDiagnosticStatusesRequestBuilder } from './getManagedAppDiagnosticStatuses'; +import { GetManagedAppPoliciesRequestBuilder } from './getManagedAppPolicies'; +import { GetManagedDevicesWithAppFailuresRequestBuilder } from './getManagedDevicesWithAppFailures'; +import { GetMemberGroupsRequestBuilder } from './getMemberGroups'; +import { GetMemberObjectsRequestBuilder } from './getMemberObjects'; +import { InferenceClassificationRequestBuilder } from './inferenceClassification'; +import { InsightsRequestBuilder } from './insights'; +import { JoinedTeamsRequestBuilder } from './joinedTeams'; +import { LicenseDetailsRequestBuilder } from './licenseDetails'; +import { MailboxSettingsRequestBuilder } from './mailboxSettings'; +import { MailFoldersRequestBuilder } from './mailFolders'; +import { ManagedAppRegistrationsRequestBuilder } from './managedAppRegistrations'; +import { ManagedDevicesRequestBuilder } from './managedDevices'; +import { ManagerRequestBuilder } from './manager'; +import { MemberOfRequestBuilder } from './memberOf'; +import { MessagesRequestBuilder } from './messages'; +import { Oauth2PermissionGrantsRequestBuilder } from './oauth2PermissionGrants'; +import { OnenoteRequestBuilder } from './onenote'; +import { OnlineMeetingsRequestBuilder } from './onlineMeetings'; +import { OutlookRequestBuilder } from './outlook'; +import { OwnedDevicesRequestBuilder } from './ownedDevices'; +import { OwnedObjectsRequestBuilder } from './ownedObjects'; +import { PeopleRequestBuilder } from './people'; +import { PhotoRequestBuilder } from './photo'; +import { PhotosRequestBuilder } from './photos'; +import { PlannerRequestBuilder } from './planner'; +import { PresenceRequestBuilder } from './presence'; +import { RegisteredDevicesRequestBuilder } from './registeredDevices'; +import { ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder } from './reminderViewWithStartDateTimeWithEndDateTime'; +import { RemoveAllDevicesFromManagementRequestBuilder } from './removeAllDevicesFromManagement'; +import { ReprocessLicenseAssignmentRequestBuilder } from './reprocessLicenseAssignment'; +import { RestoreRequestBuilder } from './restore'; +import { RetryServiceProvisioningRequestBuilder } from './retryServiceProvisioning'; +import { RevokeSignInSessionsRequestBuilder } from './revokeSignInSessions'; +import { ScopedRoleMemberOfRequestBuilder } from './scopedRoleMemberOf'; +import { SendMailRequestBuilder } from './sendMail'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; +import { SettingsRequestBuilder } from './settings'; +import { TeamworkRequestBuilder } from './teamwork'; +import { TodoRequestBuilder } from './todo'; +import { TransitiveMemberOfRequestBuilder } from './transitiveMemberOf'; +import { TranslateExchangeIdsRequestBuilder } from './translateExchangeIds'; +import { WipeManagedAppRegistrationsByDeviceTagRequestBuilder } from './wipeManagedAppRegistrationsByDeviceTag'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserItemRequestBuilderGetQueryParameters { @@ -521,9 +521,9 @@ export class UserItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}{?%24select,%24expand}"); }; /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/user-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -591,7 +591,7 @@ export class UserItemRequestBuilder extends BaseRequestBuilder { return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(this.pathParameters, this.requestAdapter, endDateTime, startDateTime); }; /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Deletes a user. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/users/item/inferenceClassification/index.ts b/src/users/item/inferenceClassification/index.ts index bc3398304a2..aa46586343c 100644 --- a/src/users/item/inferenceClassification/index.ts +++ b/src/users/item/inferenceClassification/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createInferenceClassificationFromDiscriminatorValue, deserializeIntoInferenceClassification, serializeInferenceClassification, type InferenceClassification } from '../../../models/inferenceClassification'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { OverridesRequestBuilder } from './overrides/'; +import { OverridesRequestBuilder } from './overrides'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InferenceClassificationRequestBuilderGetQueryParameters { diff --git a/src/users/item/inferenceClassification/overrides/count/index.ts b/src/users/item/inferenceClassification/overrides/count/index.ts index 52f1e22b6de..cf9058793a6 100644 --- a/src/users/item/inferenceClassification/overrides/count/index.ts +++ b/src/users/item/inferenceClassification/overrides/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/inferenceClassification/overrides/index.ts b/src/users/item/inferenceClassification/overrides/index.ts index 14ef95907e4..1333a555d2f 100644 --- a/src/users/item/inferenceClassification/overrides/index.ts +++ b/src/users/item/inferenceClassification/overrides/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type InferenceClassificationOverrideCollectionResponse } from '../../../../models/'; +import { type InferenceClassificationOverrideCollectionResponse } from '../../../../models'; import { createInferenceClassificationOverrideFromDiscriminatorValue, deserializeIntoInferenceClassificationOverride, serializeInferenceClassificationOverride, type InferenceClassificationOverride } from '../../../../models/inferenceClassificationOverride'; import { createInferenceClassificationOverrideCollectionResponseFromDiscriminatorValue } from '../../../../models/inferenceClassificationOverrideCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { InferenceClassificationOverrideItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { InferenceClassificationOverrideItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OverridesRequestBuilderGetQueryParameters { diff --git a/src/users/item/inferenceClassification/overrides/item/index.ts b/src/users/item/inferenceClassification/overrides/item/index.ts index 4b225fce5b6..0f7d41fe0a2 100644 --- a/src/users/item/inferenceClassification/overrides/item/index.ts +++ b/src/users/item/inferenceClassification/overrides/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createInferenceClassificationOverrideFromDiscriminatorValue, deserializeIntoInferenceClassificationOverride, serializeInferenceClassificationOverride, type InferenceClassificationOverride } from '../../../../../models/inferenceClassificationOverride'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/insights/index.ts b/src/users/item/insights/index.ts index 19d317570fe..37fb059f63c 100644 --- a/src/users/item/insights/index.ts +++ b/src/users/item/insights/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOfficeGraphInsightsFromDiscriminatorValue, deserializeIntoOfficeGraphInsights, serializeOfficeGraphInsights, type OfficeGraphInsights } from '../../../models/officeGraphInsights'; -import { SharedRequestBuilder } from './shared/'; -import { TrendingRequestBuilder } from './trending/'; -import { UsedRequestBuilder } from './used/'; +import { SharedRequestBuilder } from './shared'; +import { TrendingRequestBuilder } from './trending'; +import { UsedRequestBuilder } from './used'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InsightsRequestBuilderGetQueryParameters { diff --git a/src/users/item/insights/shared/count/index.ts b/src/users/item/insights/shared/count/index.ts index 4f88b68104b..6742b3a8825 100644 --- a/src/users/item/insights/shared/count/index.ts +++ b/src/users/item/insights/shared/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/insights/shared/index.ts b/src/users/item/insights/shared/index.ts index 617050895a0..61c51bc4bc8 100644 --- a/src/users/item/insights/shared/index.ts +++ b/src/users/item/insights/shared/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedInsightCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SharedInsightCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSharedInsightFromDiscriminatorValue, deserializeIntoSharedInsight, serializeSharedInsight, type SharedInsight } from '../../../../models/sharedInsight'; import { createSharedInsightCollectionResponseFromDiscriminatorValue } from '../../../../models/sharedInsightCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedInsightItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedInsightItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedRequestBuilderGetQueryParameters { diff --git a/src/users/item/insights/shared/item/index.ts b/src/users/item/insights/shared/item/index.ts index 9e1e8f86bbd..e24fa6f7275 100644 --- a/src/users/item/insights/shared/item/index.ts +++ b/src/users/item/insights/shared/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSharedInsightFromDiscriminatorValue, deserializeIntoSharedInsight, serializeSharedInsight, type SharedInsight } from '../../../../../models/sharedInsight'; -import { LastSharedMethodRequestBuilder } from './lastSharedMethod/'; -import { ResourceRequestBuilder } from './resource/'; +import { LastSharedMethodRequestBuilder } from './lastSharedMethod'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedInsightItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/insights/shared/item/lastSharedMethod/index.ts b/src/users/item/insights/shared/item/lastSharedMethod/index.ts index 992a789f62b..3081ff82989 100644 --- a/src/users/item/insights/shared/item/lastSharedMethod/index.ts +++ b/src/users/item/insights/shared/item/lastSharedMethod/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Entity } from '../../../../../../models/'; +import { type Entity } from '../../../../../../models'; import { createEntityFromDiscriminatorValue } from '../../../../../../models/entity'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/insights/shared/item/resource/index.ts b/src/users/item/insights/shared/item/resource/index.ts index b90a51d2769..5a1ff7c94ad 100644 --- a/src/users/item/insights/shared/item/resource/index.ts +++ b/src/users/item/insights/shared/item/resource/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Entity } from '../../../../../../models/'; +import { type Entity } from '../../../../../../models'; import { createEntityFromDiscriminatorValue } from '../../../../../../models/entity'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/insights/trending/count/index.ts b/src/users/item/insights/trending/count/index.ts index eb40e06854b..126eedc5e1e 100644 --- a/src/users/item/insights/trending/count/index.ts +++ b/src/users/item/insights/trending/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/insights/trending/index.ts b/src/users/item/insights/trending/index.ts index 4fe6e75a4b9..711937548af 100644 --- a/src/users/item/insights/trending/index.ts +++ b/src/users/item/insights/trending/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TrendingCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TrendingCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTrendingFromDiscriminatorValue, deserializeIntoTrending, serializeTrending, type Trending } from '../../../../models/trending'; import { createTrendingCollectionResponseFromDiscriminatorValue } from '../../../../models/trendingCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TrendingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TrendingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TrendingRequestBuilderGetQueryParameters { diff --git a/src/users/item/insights/trending/item/index.ts b/src/users/item/insights/trending/item/index.ts index 8c6050f2232..0c2fdf3d1f4 100644 --- a/src/users/item/insights/trending/item/index.ts +++ b/src/users/item/insights/trending/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTrendingFromDiscriminatorValue, deserializeIntoTrending, serializeTrending, type Trending } from '../../../../../models/trending'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TrendingItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/insights/trending/item/resource/index.ts b/src/users/item/insights/trending/item/resource/index.ts index abaa9192ff5..afde601e9d6 100644 --- a/src/users/item/insights/trending/item/resource/index.ts +++ b/src/users/item/insights/trending/item/resource/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Entity } from '../../../../../../models/'; +import { type Entity } from '../../../../../../models'; import { createEntityFromDiscriminatorValue } from '../../../../../../models/entity'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/insights/used/count/index.ts b/src/users/item/insights/used/count/index.ts index c7f3930101b..02f431c7dc1 100644 --- a/src/users/item/insights/used/count/index.ts +++ b/src/users/item/insights/used/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/insights/used/index.ts b/src/users/item/insights/used/index.ts index f1c0e3fae52..49435c2c049 100644 --- a/src/users/item/insights/used/index.ts +++ b/src/users/item/insights/used/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UsedInsightCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UsedInsightCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUsedInsightFromDiscriminatorValue, deserializeIntoUsedInsight, serializeUsedInsight, type UsedInsight } from '../../../../models/usedInsight'; import { createUsedInsightCollectionResponseFromDiscriminatorValue } from '../../../../models/usedInsightCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UsedInsightItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UsedInsightItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UsedRequestBuilderGetQueryParameters { diff --git a/src/users/item/insights/used/item/index.ts b/src/users/item/insights/used/item/index.ts index 3dd92af7482..1859670e81d 100644 --- a/src/users/item/insights/used/item/index.ts +++ b/src/users/item/insights/used/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUsedInsightFromDiscriminatorValue, deserializeIntoUsedInsight, serializeUsedInsight, type UsedInsight } from '../../../../../models/usedInsight'; -import { ResourceRequestBuilder } from './resource/'; +import { ResourceRequestBuilder } from './resource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UsedInsightItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/insights/used/item/resource/index.ts b/src/users/item/insights/used/item/resource/index.ts index b849e52e41e..a02d6914780 100644 --- a/src/users/item/insights/used/item/resource/index.ts +++ b/src/users/item/insights/used/item/resource/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Entity } from '../../../../../../models/'; +import { type Entity } from '../../../../../../models'; import { createEntityFromDiscriminatorValue } from '../../../../../../models/entity'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/count/index.ts b/src/users/item/joinedTeams/count/index.ts index 00223633d97..917b5246836 100644 --- a/src/users/item/joinedTeams/count/index.ts +++ b/src/users/item/joinedTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/getAllMessages/index.ts b/src/users/item/joinedTeams/getAllMessages/index.ts index c1f414b9990..2367b37d7a3 100644 --- a/src/users/item/joinedTeams/getAllMessages/index.ts +++ b/src/users/item/joinedTeams/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../models/chatMessage'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/index.ts b/src/users/item/joinedTeams/index.ts index 47dc7c794c6..ba0a2520e19 100644 --- a/src/users/item/joinedTeams/index.ts +++ b/src/users/item/joinedTeams/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type TeamCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue, deserializeIntoTeam, serializeTeam, type Team } from '../../../models/team'; import { createTeamCollectionResponseFromDiscriminatorValue } from '../../../models/teamCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { TeamItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { TeamItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface JoinedTeamsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/allChannels/count/index.ts b/src/users/item/joinedTeams/item/allChannels/count/index.ts index 0af5fd2aecc..ea3db6c5ad0 100644 --- a/src/users/item/joinedTeams/item/allChannels/count/index.ts +++ b/src/users/item/joinedTeams/item/allChannels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/allChannels/index.ts b/src/users/item/joinedTeams/item/allChannels/index.ts index 47ccf5948e4..c3644410c3f 100644 --- a/src/users/item/joinedTeams/item/allChannels/index.ts +++ b/src/users/item/joinedTeams/item/allChannels/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../../../models/'; +import { type ChannelCollectionResponse } from '../../../../../models'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllChannelsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/allChannels/item/index.ts b/src/users/item/joinedTeams/item/allChannels/item/index.ts index 27b8b81c04d..99dada73562 100644 --- a/src/users/item/joinedTeams/item/allChannels/item/index.ts +++ b/src/users/item/joinedTeams/item/allChannels/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Channel } from '../../../../../../models/'; +import { type Channel } from '../../../../../../models'; import { createChannelFromDiscriminatorValue } from '../../../../../../models/channel'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/archive/index.ts b/src/users/item/joinedTeams/item/archive/index.ts index aff2bf75fce..f8f55f0ca30 100644 --- a/src/users/item/joinedTeams/item/archive/index.ts +++ b/src/users/item/joinedTeams/item/archive/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface ArchivePostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -28,57 +26,5 @@ export function serializeArchivePostRequestBody(writer: SerializationWriter, arc writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); writer.writeAdditionalData(archivePostRequestBody.additionalData); } -/** - * Provides operations to call the archive method. - */ -export class ArchiveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ArchiveRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/archive"); - }; - /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/team-archive?view=graph-rest-1.0|Find more info here} - */ - public post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeArchivePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a archiveRequestBuilder - */ - public withUrl(rawUrl: string) : ArchiveRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ArchiveRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/count/index.ts b/src/users/item/joinedTeams/item/channels/count/index.ts index 33d35c40944..1f6494a7ec5 100644 --- a/src/users/item/joinedTeams/item/channels/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/getAllMessages/index.ts b/src/users/item/joinedTeams/item/channels/getAllMessages/index.ts index 9cdb94003b2..d2b3ddaec86 100644 --- a/src/users/item/joinedTeams/item/channels/getAllMessages/index.ts +++ b/src/users/item/joinedTeams/item/channels/getAllMessages/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createGetAllMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -23,100 +21,9 @@ export interface GetAllMessagesGetResponse extends BaseCollectionPaginationCount */ value?: ChatMessage[]; } -export interface GetAllMessagesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * The payment model for the API - */ - model?: 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; -} export function serializeGetAllMessagesGetResponse(writer: SerializationWriter, getAllMessagesGetResponse: GetAllMessagesGetResponse | undefined = {} as GetAllMessagesGetResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, getAllMessagesGetResponse) writer.writeCollectionOfObjectValues("value", getAllMessagesGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the getAllMessages method. - */ -export class GetAllMessagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new GetAllMessagesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of GetAllMessagesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createGetAllMessagesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function getAllMessages - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, getAllMessagesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a getAllMessagesRequestBuilder - */ - public withUrl(rawUrl: string) : GetAllMessagesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new GetAllMessagesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const getAllMessagesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/index.ts b/src/users/item/joinedTeams/item/channels/index.ts index d009bcb9b8c..171e0b35a6e 100644 --- a/src/users/item/joinedTeams/item/channels/index.ts +++ b/src/users/item/joinedTeams/item/channels/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../../../models/'; +import { type ChannelCollectionResponse } from '../../../../../models'; import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../../models/channel'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetAllMessagesRequestBuilder } from './getAllMessages/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetAllMessagesRequestBuilder } from './getAllMessages'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChannelsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/completeMigration/index.ts b/src/users/item/joinedTeams/item/channels/item/completeMigration/index.ts index b4fb0d49686..936cbec70ce 100644 --- a/src/users/item/joinedTeams/item/channels/item/completeMigration/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts b/src/users/item/joinedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts deleted file mode 100644 index 1de9a049b82..00000000000 --- a/src/users/item/joinedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; -} -export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { - return { - "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, - } -} -export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { - writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); - writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts b/src/users/item/joinedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts index 3c639f046e2..fa3adf2dffd 100644 --- a/src/users/item/joinedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts @@ -1,12 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue } from './'; -import { type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; +} +export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { + return { + "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, + } +} +export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /** * Usage: tenantId='@tenantId' @@ -21,6 +38,10 @@ export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalName */ userPrincipalName?: string; } +export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { + writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); + writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); +} /** * Provides operations to call the doesUserHaveAccess method. */ diff --git a/src/users/item/joinedTeams/item/channels/item/filesFolder/content/index.ts b/src/users/item/joinedTeams/item/channels/item/filesFolder/content/index.ts index a0f8391eaf3..ce208952242 100644 --- a/src/users/item/joinedTeams/item/channels/item/filesFolder/content/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/filesFolder/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/filesFolder/index.ts b/src/users/item/joinedTeams/item/channels/item/filesFolder/index.ts index 948af6ab212..c3b37e0a32d 100644 --- a/src/users/item/joinedTeams/item/channels/item/filesFolder/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/filesFolder/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/index.ts b/src/users/item/joinedTeams/item/channels/item/index.ts index 2e7354f2dcb..c387a6f767b 100644 --- a/src/users/item/joinedTeams/item/channels/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../../../models/channel'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/'; -import { FilesFolderRequestBuilder } from './filesFolder/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { ProvisionEmailRequestBuilder } from './provisionEmail/'; -import { RemoveEmailRequestBuilder } from './removeEmail/'; -import { SharedWithTeamsRequestBuilder } from './sharedWithTeams/'; -import { TabsRequestBuilder } from './tabs/'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName'; +import { FilesFolderRequestBuilder } from './filesFolder'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { ProvisionEmailRequestBuilder } from './provisionEmail'; +import { RemoveEmailRequestBuilder } from './removeEmail'; +import { SharedWithTeamsRequestBuilder } from './sharedWithTeams'; +import { TabsRequestBuilder } from './tabs'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChannelItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/members/add/index.ts b/src/users/item/joinedTeams/item/channels/item/members/add/index.ts index f14aaf43380..dfc5e0982c3 100644 --- a/src/users/item/joinedTeams/item/channels/item/members/add/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/item/members/count/index.ts b/src/users/item/joinedTeams/item/channels/item/members/count/index.ts index e03a16c7f33..91e719246e2 100644 --- a/src/users/item/joinedTeams/item/channels/item/members/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/members/index.ts b/src/users/item/joinedTeams/item/channels/item/members/index.ts index f6b8bdc2201..c85ec860af4 100644 --- a/src/users/item/joinedTeams/item/channels/item/members/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0|Find more info here} */ public post(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/channels/item/members/item/index.ts b/src/users/item/joinedTeams/item/channels/item/members/item/index.ts index 9f8e1f8d8d2..0f54fd221fd 100644 --- a/src/users/item/joinedTeams/item/channels/item/members/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -29,9 +29,9 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}"); }; /** - * 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. - * @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} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -60,11 +60,11 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -77,7 +77,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation */ @@ -99,7 +99,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/channels/item/messages/count/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/count/index.ts index dd072942543..e89e13c6e83 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/delta/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/delta/index.ts index 6e10f0ffd4f..90e4229bb0c 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/delta/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/item/messages/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/index.ts index 32b5692047f..a19452bf56e 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/count/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/count/index.ts index 1e835ea4ef9..8ac43c9f79e 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/index.ts index 0dd555904ed..2a72794189d 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/item/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/item/index.ts index 7f47564d97f..19b730307b6 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/item/value/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/item/value/index.ts index 0f9896af32a..a24134557cc 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/item/value/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/index.ts index eab6c465f19..6098a3f4e59 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/count/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/count/index.ts index e11609b70b8..f0f5febda67 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/delta/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/delta/index.ts index 6f06c1454dd..2e6cd41173f 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/delta/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/index.ts index 587a1455a72..c45420ee066 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts index 2ebcf9982bf..a84014b7116 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/index.ts index 41c54c497b2..9a0d1f2c1e1 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts index c8613345d80..2549286b84e 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts index 35f8022e2b9..17a9bc4b141 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/index.ts index 38268525bcd..b57f42d4bcb 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/setReaction/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/setReaction/index.ts index 923be281b70..f73d0c1b7b4 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/setReaction/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/softDelete/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/softDelete/index.ts index 2265e676cfa..469bcc4a9d7 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/softDelete/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts index 1331bc78612..8a6302d93b8 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts index 19d6c61fa23..27a1989217d 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/setReaction/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/setReaction/index.ts index 60866590680..c6cb4a36b91 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/setReaction/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/softDelete/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/softDelete/index.ts index 3a152aa95c2..e11107c6c36 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/softDelete/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/undoSoftDelete/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/undoSoftDelete/index.ts index 0de0a4d5f0c..0ce53005f1b 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/undoSoftDelete/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/unsetReaction/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/unsetReaction/index.ts index 5cd1c3bd5aa..2d8e4bff21c 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/unsetReaction/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/users/item/joinedTeams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/users/item/joinedTeams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/users/item/joinedTeams/item/channels/item/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/channels/item/provisionEmail/index.ts b/src/users/item/joinedTeams/item/channels/item/provisionEmail/index.ts index 833d4bd5734..5cb22f3de74 100644 --- a/src/users/item/joinedTeams/item/channels/item/provisionEmail/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/provisionEmail/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProvisionChannelEmailResult } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ProvisionChannelEmailResult } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createProvisionChannelEmailResultFromDiscriminatorValue } from '../../../../../../../models/provisionChannelEmailResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/removeEmail/index.ts b/src/users/item/joinedTeams/item/channels/item/removeEmail/index.ts index dd1b3378b3e..b53a8872a44 100644 --- a/src/users/item/joinedTeams/item/channels/item/removeEmail/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/removeEmail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/count/index.ts b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/count/index.ts index db417316354..78a47058c8a 100644 --- a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/index.ts b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/index.ts index 8e7633b7039..97ec6381c0a 100644 --- a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../../models/sharedWithChannelTeamInfo'; import { createSharedWithChannelTeamInfoCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/sharedWithChannelTeamInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedWithChannelTeamInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedWithChannelTeamInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts index 83aafe0a94e..57ab490c390 100644 --- a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts index 08b62604f09..6f356cc9515 100644 --- a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../../../../models'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts index 0b875b43b46..16dd07921dc 100644 --- a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/allowedMembers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMember } from '../../../../../../../../../../models/'; +import { type ConversationMember } from '../../../../../../../../../../models'; import { createConversationMemberFromDiscriminatorValue } from '../../../../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/index.ts b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/index.ts index 662a8e327bb..c4045668cd3 100644 --- a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../../../models/sharedWithChannelTeamInfo'; -import { AllowedMembersRequestBuilder } from './allowedMembers/'; -import { TeamRequestBuilder } from './team/'; +import { AllowedMembersRequestBuilder } from './allowedMembers'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/team/index.ts b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/team/index.ts index 43ade90177e..405b3658f2a 100644 --- a/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/team/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/sharedWithTeams/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type Team } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../../../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/tabs/count/index.ts b/src/users/item/joinedTeams/item/channels/item/tabs/count/index.ts index ab64d0267eb..8bb91225387 100644 --- a/src/users/item/joinedTeams/item/channels/item/tabs/count/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/channels/item/tabs/index.ts b/src/users/item/joinedTeams/item/channels/item/tabs/index.ts index 70eb7dd2307..251d0da7345 100644 --- a/src/users/item/joinedTeams/item/channels/item/tabs/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { @@ -90,7 +90,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createTeamsTabCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of TeamsTab @@ -118,7 +118,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/channels/item/tabs/item/index.ts b/src/users/item/joinedTeams/item/channels/item/tabs/item/index.ts index a257a64d6ed..e8fe374cb36 100644 --- a/src/users/item/joinedTeams/item/channels/item/tabs/item/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/channels/item/tabs/item/teamsApp/index.ts b/src/users/item/joinedTeams/item/channels/item/tabs/item/teamsApp/index.ts index 76d134f615c..7f5da495818 100644 --- a/src/users/item/joinedTeams/item/channels/item/tabs/item/teamsApp/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/clone/clonePostRequestBody.ts b/src/users/item/joinedTeams/item/clone/clonePostRequestBody.ts deleted file mode 100644 index 13523466df1..00000000000 --- a/src/users/item/joinedTeams/item/clone/clonePostRequestBody.ts +++ /dev/null @@ -1,62 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { ClonableTeamParts } from '../../../../../models/clonableTeamParts'; -import { TeamVisibilityType } from '../../../../../models/teamVisibilityType'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ClonePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The classification property - */ - classification?: string; - /** - * The description property - */ - description?: string; - /** - * The displayName property - */ - displayName?: string; - /** - * The mailNickname property - */ - mailNickname?: string; - /** - * The partsToClone property - */ - partsToClone?: ClonableTeamParts[]; - /** - * The visibility property - */ - visibility?: TeamVisibilityType; -} -export function createClonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoClonePostRequestBody; -} -export function deserializeIntoClonePostRequestBody(clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : Record void> { - return { - "classification": n => { clonePostRequestBody.classification = n.getStringValue(); }, - "description": n => { clonePostRequestBody.description = n.getStringValue(); }, - "displayName": n => { clonePostRequestBody.displayName = n.getStringValue(); }, - "mailNickname": n => { clonePostRequestBody.mailNickname = n.getStringValue(); }, - "partsToClone": n => { clonePostRequestBody.partsToClone = n.getCollectionOfEnumValues(ClonableTeamParts); }, - "visibility": n => { clonePostRequestBody.visibility = n.getEnumValue(TeamVisibilityType); }, - } -} -export function serializeClonePostRequestBody(writer: SerializationWriter, clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : void { - writer.writeStringValue("classification", clonePostRequestBody.classification); - writer.writeStringValue("description", clonePostRequestBody.description); - writer.writeStringValue("displayName", clonePostRequestBody.displayName); - writer.writeStringValue("mailNickname", clonePostRequestBody.mailNickname); - writer.writeEnumValue("partsToClone", clonePostRequestBody.partsToClone); - writer.writeEnumValue("visibility", clonePostRequestBody.visibility); - writer.writeAdditionalData(clonePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/clone/index.ts b/src/users/item/joinedTeams/item/clone/index.ts index debcd88fbac..acc7202aefd 100644 --- a/src/users/item/joinedTeams/item/clone/index.ts +++ b/src/users/item/joinedTeams/item/clone/index.ts @@ -1,11 +1,65 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { ClonableTeamParts } from '../../../../../models/clonableTeamParts'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoClonePostRequestBody, serializeClonePostRequestBody, type ClonePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { TeamVisibilityType } from '../../../../../models/teamVisibilityType'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ClonePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The classification property + */ + classification?: string; + /** + * The description property + */ + description?: string; + /** + * The displayName property + */ + displayName?: string; + /** + * The mailNickname property + */ + mailNickname?: string; + /** + * The partsToClone property + */ + partsToClone?: ClonableTeamParts[]; + /** + * The visibility property + */ + visibility?: TeamVisibilityType; +} +export function createClonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoClonePostRequestBody; +} +export function deserializeIntoClonePostRequestBody(clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : Record void> { + return { + "classification": n => { clonePostRequestBody.classification = n.getStringValue(); }, + "description": n => { clonePostRequestBody.description = n.getStringValue(); }, + "displayName": n => { clonePostRequestBody.displayName = n.getStringValue(); }, + "mailNickname": n => { clonePostRequestBody.mailNickname = n.getStringValue(); }, + "partsToClone": n => { clonePostRequestBody.partsToClone = n.getCollectionOfEnumValues(ClonableTeamParts); }, + "visibility": n => { clonePostRequestBody.visibility = n.getEnumValue(TeamVisibilityType); }, + } +} +export function serializeClonePostRequestBody(writer: SerializationWriter, clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : void { + writer.writeStringValue("classification", clonePostRequestBody.classification); + writer.writeStringValue("description", clonePostRequestBody.description); + writer.writeStringValue("displayName", clonePostRequestBody.displayName); + writer.writeStringValue("mailNickname", clonePostRequestBody.mailNickname); + writer.writeEnumValue("partsToClone", clonePostRequestBody.partsToClone); + writer.writeEnumValue("visibility", clonePostRequestBody.visibility); + writer.writeAdditionalData(clonePostRequestBody.additionalData); +} /** * Provides operations to call the clone method. */ diff --git a/src/users/item/joinedTeams/item/completeMigration/index.ts b/src/users/item/joinedTeams/item/completeMigration/index.ts index df1b6bd9235..25be858fdbe 100644 --- a/src/users/item/joinedTeams/item/completeMigration/index.ts +++ b/src/users/item/joinedTeams/item/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/group/index.ts b/src/users/item/joinedTeams/item/group/index.ts index 6f179b8640a..16a2a8148fd 100644 --- a/src/users/item/joinedTeams/item/group/index.ts +++ b/src/users/item/joinedTeams/item/group/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors/'; +import { ServiceProvisioningErrorsRequestBuilder } from './serviceProvisioningErrors'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GroupRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/group/serviceProvisioningErrors/count/index.ts b/src/users/item/joinedTeams/item/group/serviceProvisioningErrors/count/index.ts index 3a4fdf8fb49..897b80c68a0 100644 --- a/src/users/item/joinedTeams/item/group/serviceProvisioningErrors/count/index.ts +++ b/src/users/item/joinedTeams/item/group/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/group/serviceProvisioningErrors/index.ts b/src/users/item/joinedTeams/item/group/serviceProvisioningErrors/index.ts index 357ea67dce1..e2b63c3d719 100644 --- a/src/users/item/joinedTeams/item/group/serviceProvisioningErrors/index.ts +++ b/src/users/item/joinedTeams/item/group/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/incomingChannels/count/index.ts b/src/users/item/joinedTeams/item/incomingChannels/count/index.ts index 7a1f467660f..4e42e4fbd7f 100644 --- a/src/users/item/joinedTeams/item/incomingChannels/count/index.ts +++ b/src/users/item/joinedTeams/item/incomingChannels/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/incomingChannels/index.ts b/src/users/item/joinedTeams/item/incomingChannels/index.ts index 1b4aca722d8..da609c52a4d 100644 --- a/src/users/item/joinedTeams/item/incomingChannels/index.ts +++ b/src/users/item/joinedTeams/item/incomingChannels/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChannelCollectionResponse } from '../../../../../models/'; +import { type ChannelCollectionResponse } from '../../../../../models'; import { createChannelCollectionResponseFromDiscriminatorValue } from '../../../../../models/channelCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChannelItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChannelItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface IncomingChannelsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/incomingChannels/item/index.ts b/src/users/item/joinedTeams/item/incomingChannels/item/index.ts index 121f5e96a09..89570a278ee 100644 --- a/src/users/item/joinedTeams/item/incomingChannels/item/index.ts +++ b/src/users/item/joinedTeams/item/incomingChannels/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Channel } from '../../../../../../models/'; +import { type Channel } from '../../../../../../models'; import { createChannelFromDiscriminatorValue } from '../../../../../../models/channel'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/index.ts b/src/users/item/joinedTeams/item/index.ts index 9fc313ed8e5..149c2599ebc 100644 --- a/src/users/item/joinedTeams/item/index.ts +++ b/src/users/item/joinedTeams/item/index.ts @@ -1,27 +1,27 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue, deserializeIntoTeam, serializeTeam, type Team } from '../../../../models/team'; -import { AllChannelsRequestBuilder } from './allChannels/'; -import { ArchiveRequestBuilder } from './archive/'; -import { ChannelsRequestBuilder } from './channels/'; -import { CloneRequestBuilder } from './clone/'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { GroupRequestBuilder } from './group/'; -import { IncomingChannelsRequestBuilder } from './incomingChannels/'; -import { InstalledAppsRequestBuilder } from './installedApps/'; -import { MembersRequestBuilder } from './members/'; -import { OperationsRequestBuilder } from './operations/'; -import { PermissionGrantsRequestBuilder } from './permissionGrants/'; -import { PhotoRequestBuilder } from './photo/'; -import { PrimaryChannelRequestBuilder } from './primaryChannel/'; -import { ScheduleRequestBuilder } from './schedule/'; -import { SendActivityNotificationRequestBuilder } from './sendActivityNotification/'; -import { TagsRequestBuilder } from './tags/'; -import { TemplateRequestBuilder } from './template/'; -import { UnarchiveRequestBuilder } from './unarchive/'; +import { AllChannelsRequestBuilder } from './allChannels'; +import { ArchiveRequestBuilder } from './archive'; +import { ChannelsRequestBuilder } from './channels'; +import { CloneRequestBuilder } from './clone'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { GroupRequestBuilder } from './group'; +import { IncomingChannelsRequestBuilder } from './incomingChannels'; +import { InstalledAppsRequestBuilder } from './installedApps'; +import { MembersRequestBuilder } from './members'; +import { OperationsRequestBuilder } from './operations'; +import { PermissionGrantsRequestBuilder } from './permissionGrants'; +import { PhotoRequestBuilder } from './photo'; +import { PrimaryChannelRequestBuilder } from './primaryChannel'; +import { ScheduleRequestBuilder } from './schedule'; +import { SendActivityNotificationRequestBuilder } from './sendActivityNotification'; +import { TagsRequestBuilder } from './tags'; +import { TemplateRequestBuilder } from './template'; +import { UnarchiveRequestBuilder } from './unarchive'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/installedApps/count/index.ts b/src/users/item/joinedTeams/item/installedApps/count/index.ts index b6daafdd7fd..e89624ae0e1 100644 --- a/src/users/item/joinedTeams/item/installedApps/count/index.ts +++ b/src/users/item/joinedTeams/item/installedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/installedApps/index.ts b/src/users/item/joinedTeams/item/installedApps/index.ts index a7b9e6b80f2..7ed43c16c59 100644 --- a/src/users/item/joinedTeams/item/installedApps/index.ts +++ b/src/users/item/joinedTeams/item/installedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppInstallationCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsAppInstallationCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../../../models/teamsAppInstallation'; import { createTeamsAppInstallationCollectionResponseFromDiscriminatorValue } from '../../../../../models/teamsAppInstallationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAppInstallationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAppInstallationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstalledAppsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/installedApps/item/index.ts b/src/users/item/joinedTeams/item/installedApps/item/index.ts index 6c0d982b93a..396b6c02462 100644 --- a/src/users/item/joinedTeams/item/installedApps/item/index.ts +++ b/src/users/item/joinedTeams/item/installedApps/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppInstallationFromDiscriminatorValue, deserializeIntoTeamsAppInstallation, serializeTeamsAppInstallation, type TeamsAppInstallation } from '../../../../../../models/teamsAppInstallation'; -import { TeamsAppRequestBuilder } from './teamsApp/'; -import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition/'; -import { UpgradeRequestBuilder } from './upgrade/'; +import { TeamsAppRequestBuilder } from './teamsApp'; +import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition'; +import { UpgradeRequestBuilder } from './upgrade'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsAppInstallationItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/installedApps/item/teamsApp/index.ts b/src/users/item/joinedTeams/item/installedApps/item/teamsApp/index.ts index e923fd8734c..74acac3f7d5 100644 --- a/src/users/item/joinedTeams/item/installedApps/item/teamsApp/index.ts +++ b/src/users/item/joinedTeams/item/installedApps/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/installedApps/item/teamsAppDefinition/index.ts b/src/users/item/joinedTeams/item/installedApps/item/teamsAppDefinition/index.ts index 46d0da92383..8f4044a8d7c 100644 --- a/src/users/item/joinedTeams/item/installedApps/item/teamsAppDefinition/index.ts +++ b/src/users/item/joinedTeams/item/installedApps/item/teamsAppDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppDefinition } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamsAppDefinition } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppDefinitionFromDiscriminatorValue } from '../../../../../../../models/teamsAppDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/installedApps/item/upgrade/index.ts b/src/users/item/joinedTeams/item/installedApps/item/upgrade/index.ts index f22f3a866d7..c8d1439002d 100644 --- a/src/users/item/joinedTeams/item/installedApps/item/upgrade/index.ts +++ b/src/users/item/joinedTeams/item/installedApps/item/upgrade/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUpgradePostRequestBody, serializeUpgradePostRequestBody, type UpgradePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../../../models/teamsAppPermissionSet'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpgradePostRequestBody; +} +export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { + return { + "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, + } +} +export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { + writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); + writer.writeAdditionalData(upgradePostRequestBody.additionalData); +} +export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The consentedPermissionSet property + */ + consentedPermissionSet?: TeamsAppPermissionSet; +} /** * Provides operations to call the upgrade method. */ diff --git a/src/users/item/joinedTeams/item/installedApps/item/upgrade/upgradePostRequestBody.ts b/src/users/item/joinedTeams/item/installedApps/item/upgrade/upgradePostRequestBody.ts deleted file mode 100644 index 6a042698643..00000000000 --- a/src/users/item/joinedTeams/item/installedApps/item/upgrade/upgradePostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createTeamsAppPermissionSetFromDiscriminatorValue, serializeTeamsAppPermissionSet, type TeamsAppPermissionSet } from '../../../../../../../models/teamsAppPermissionSet'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpgradePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpgradePostRequestBody; -} -export function deserializeIntoUpgradePostRequestBody(upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : Record void> { - return { - "consentedPermissionSet": n => { upgradePostRequestBody.consentedPermissionSet = n.getObjectValue(createTeamsAppPermissionSetFromDiscriminatorValue); }, - } -} -export function serializeUpgradePostRequestBody(writer: SerializationWriter, upgradePostRequestBody: UpgradePostRequestBody | undefined = {} as UpgradePostRequestBody) : void { - writer.writeObjectValue("consentedPermissionSet", upgradePostRequestBody.consentedPermissionSet, serializeTeamsAppPermissionSet); - writer.writeAdditionalData(upgradePostRequestBody.additionalData); -} -export interface UpgradePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The consentedPermissionSet property - */ - consentedPermissionSet?: TeamsAppPermissionSet; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/members/add/index.ts b/src/users/item/joinedTeams/item/members/add/index.ts index 6986ff1d3d9..5f556cb66c2 100644 --- a/src/users/item/joinedTeams/item/members/add/index.ts +++ b/src/users/item/joinedTeams/item/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/members/count/index.ts b/src/users/item/joinedTeams/item/members/count/index.ts index 6b669ed4c69..799b78a3340 100644 --- a/src/users/item/joinedTeams/item/members/count/index.ts +++ b/src/users/item/joinedTeams/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/members/index.ts b/src/users/item/joinedTeams/item/members/index.ts index dddcbe5adfb..0490d3bd011 100644 --- a/src/users/item/joinedTeams/item/members/index.ts +++ b/src/users/item/joinedTeams/item/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/members/item/index.ts b/src/users/item/joinedTeams/item/members/item/index.ts index 92c4690acf2..c96b474a179 100644 --- a/src/users/item/joinedTeams/item/members/item/index.ts +++ b/src/users/item/joinedTeams/item/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/operations/count/index.ts b/src/users/item/joinedTeams/item/operations/count/index.ts index 30b4b102134..3341b0632ef 100644 --- a/src/users/item/joinedTeams/item/operations/count/index.ts +++ b/src/users/item/joinedTeams/item/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/operations/index.ts b/src/users/item/joinedTeams/item/operations/index.ts index b8b1af228bb..5b5457b7a47 100644 --- a/src/users/item/joinedTeams/item/operations/index.ts +++ b/src/users/item/joinedTeams/item/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAsyncOperationCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsAsyncOperationCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsAsyncOperationFromDiscriminatorValue, deserializeIntoTeamsAsyncOperation, serializeTeamsAsyncOperation, type TeamsAsyncOperation } from '../../../../../models/teamsAsyncOperation'; import { createTeamsAsyncOperationCollectionResponseFromDiscriminatorValue } from '../../../../../models/teamsAsyncOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsAsyncOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsAsyncOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/operations/item/index.ts b/src/users/item/joinedTeams/item/operations/item/index.ts index 2e3e5e855d5..b28f214204b 100644 --- a/src/users/item/joinedTeams/item/operations/item/index.ts +++ b/src/users/item/joinedTeams/item/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsAsyncOperationFromDiscriminatorValue, deserializeIntoTeamsAsyncOperation, serializeTeamsAsyncOperation, type TeamsAsyncOperation } from '../../../../../../models/teamsAsyncOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/permissionGrants/count/index.ts b/src/users/item/joinedTeams/item/permissionGrants/count/index.ts index 8c4d838d452..26f69b88ae7 100644 --- a/src/users/item/joinedTeams/item/permissionGrants/count/index.ts +++ b/src/users/item/joinedTeams/item/permissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/permissionGrants/index.ts b/src/users/item/joinedTeams/item/permissionGrants/index.ts index 479d7001a4d..ea78eab5022 100644 --- a/src/users/item/joinedTeams/item/permissionGrants/index.ts +++ b/src/users/item/joinedTeams/item/permissionGrants/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ResourceSpecificPermissionGrantCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../../models/resourceSpecificPermissionGrant'; import { createResourceSpecificPermissionGrantCollectionResponseFromDiscriminatorValue } from '../../../../../models/resourceSpecificPermissionGrantCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ResourceSpecificPermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/permissionGrants/item/index.ts b/src/users/item/joinedTeams/item/permissionGrants/item/index.ts index 2f73b944db1..9e79aaa5dd3 100644 --- a/src/users/item/joinedTeams/item/permissionGrants/item/index.ts +++ b/src/users/item/joinedTeams/item/permissionGrants/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoResourceSpecificPermissionGrant, serializeResourceSpecificPermissionGrant, type ResourceSpecificPermissionGrant } from '../../../../../../models/resourceSpecificPermissionGrant'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/photo/index.ts b/src/users/item/joinedTeams/item/photo/index.ts index f3d56d62dd5..0db3d179c7a 100644 --- a/src/users/item/joinedTeams/item/photo/index.ts +++ b/src/users/item/joinedTeams/item/photo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue, deserializeIntoProfilePhoto, serializeProfilePhoto, type ProfilePhoto } from '../../../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotoRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/photo/value/index.ts b/src/users/item/joinedTeams/item/photo/value/index.ts index 3948cc9cfbf..46824c4f113 100644 --- a/src/users/item/joinedTeams/item/photo/value/index.ts +++ b/src/users/item/joinedTeams/item/photo/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/completeMigration/index.ts b/src/users/item/joinedTeams/item/primaryChannel/completeMigration/index.ts index c0623e6fd5f..99fa17c2f77 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/completeMigration/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/completeMigration/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts b/src/users/item/joinedTeams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts deleted file mode 100644 index 1de9a049b82..00000000000 --- a/src/users/item/joinedTeams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; -} -export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { - return { - "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, - } -} -export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { - writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); - writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts b/src/users/item/joinedTeams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts index 51231e4625d..171145b15e6 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.ts @@ -1,12 +1,29 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue } from './'; -import { type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse; +} +export function deserializeIntoDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : Record void> { + return { + "value": n => { doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value = n.getBooleanValue(); }, + } +} +export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /** * Usage: tenantId='@tenantId' @@ -21,6 +38,10 @@ export interface DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalName */ userPrincipalName?: string; } +export function serializeDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(writer: SerializationWriter, doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse: DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse | undefined = {} as DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse) : void { + writer.writeBooleanValue("value", doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.value); + writer.writeAdditionalData(doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.additionalData); +} /** * Provides operations to call the doesUserHaveAccess method. */ diff --git a/src/users/item/joinedTeams/item/primaryChannel/filesFolder/content/index.ts b/src/users/item/joinedTeams/item/primaryChannel/filesFolder/content/index.ts index 69bc53ee030..ee258688145 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/filesFolder/content/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/filesFolder/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../../models/'; +import { type DriveItem } from '../../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/filesFolder/index.ts b/src/users/item/joinedTeams/item/primaryChannel/filesFolder/index.ts index 5e877c3f207..682a5e55697 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/filesFolder/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/filesFolder/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DriveItem } from '../../../../../../models/'; +import { type DriveItem } from '../../../../../../models'; import { createDriveItemFromDiscriminatorValue } from '../../../../../../models/driveItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface FilesFolderRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/index.ts b/src/users/item/joinedTeams/item/primaryChannel/index.ts index d417b2633ca..deb789360b8 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/index.ts @@ -2,17 +2,17 @@ // eslint-disable // Generated by Microsoft Kiota import { createChannelFromDiscriminatorValue, deserializeIntoChannel, serializeChannel, type Channel } from '../../../../../models/channel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CompleteMigrationRequestBuilder } from './completeMigration/'; -import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/'; -import { FilesFolderRequestBuilder } from './filesFolder/'; -import { MembersRequestBuilder } from './members/'; -import { MessagesRequestBuilder } from './messages/'; -import { ProvisionEmailRequestBuilder } from './provisionEmail/'; -import { RemoveEmailRequestBuilder } from './removeEmail/'; -import { SharedWithTeamsRequestBuilder } from './sharedWithTeams/'; -import { TabsRequestBuilder } from './tabs/'; +import { CompleteMigrationRequestBuilder } from './completeMigration'; +import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName'; +import { FilesFolderRequestBuilder } from './filesFolder'; +import { MembersRequestBuilder } from './members'; +import { MessagesRequestBuilder } from './messages'; +import { ProvisionEmailRequestBuilder } from './provisionEmail'; +import { RemoveEmailRequestBuilder } from './removeEmail'; +import { SharedWithTeamsRequestBuilder } from './sharedWithTeams'; +import { TabsRequestBuilder } from './tabs'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PrimaryChannelRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/members/add/index.ts b/src/users/item/joinedTeams/item/primaryChannel/members/add/index.ts index 1bf592c1925..77f485d5a9d 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/members/add/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/members/add/index.ts @@ -3,106 +3,27 @@ // Generated by Microsoft Kiota import { createActionResultPartFromDiscriminatorValue, serializeActionResultPart, type ActionResultPart } from '../../../../../../../models/actionResultPart'; import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../../../models/baseCollectionPaginationCountResponse'; -import { createConversationMemberFromDiscriminatorValue, serializeConversationMember, type ConversationMember } from '../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export interface AddPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The values property - */ - values?: ConversationMember[]; -} export interface AddPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: ActionResultPart[]; } -export function createAddPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoAddPostRequestBody; -} export function createAddPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); return deserializeIntoAddPostResponse; } -export function deserializeIntoAddPostRequestBody(addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : Record void> { - return { - "values": n => { addPostRequestBody.values = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, - } -} export function deserializeIntoAddPostResponse(addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : Record void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(addPostResponse), "value": n => { addPostResponse.value = n.getCollectionOfObjectValues(createActionResultPartFromDiscriminatorValue); }, } } -export function serializeAddPostRequestBody(writer: SerializationWriter, addPostRequestBody: AddPostRequestBody | undefined = {} as AddPostRequestBody) : void { - writer.writeCollectionOfObjectValues("values", addPostRequestBody.values, serializeConversationMember); - writer.writeAdditionalData(addPostRequestBody.additionalData); -} export function serializeAddPostResponse(writer: SerializationWriter, addPostResponse: AddPostResponse | undefined = {} as AddPostResponse) : void { serializeBaseCollectionPaginationCountResponse(writer, addPostResponse) writer.writeCollectionOfObjectValues("value", addPostResponse.value, serializeActionResultPart); } -/** - * Provides operations to call the add method. - */ -export class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new AddRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/members/add"); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of AddPostResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0|Find more info here} - */ - public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createAddPostResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAddPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a addRequestBuilder - */ - public withUrl(rawUrl: string) : AddRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new AddRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/primaryChannel/members/count/index.ts b/src/users/item/joinedTeams/item/primaryChannel/members/count/index.ts index ad93f7515ba..b4d1658df07 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/members/count/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/members/index.ts b/src/users/item/joinedTeams/item/primaryChannel/members/index.ts index 9d248b94a80..1c2a3f80442 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/members/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/members/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../models'; import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../models/conversationMember'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AddRequestBuilder } from './add/'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { AddRequestBuilder } from './add'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0|Find more info here} */ public post(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MembersRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Add a conversationMember to a channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/primaryChannel/members/item/index.ts b/src/users/item/joinedTeams/item/primaryChannel/members/item/index.ts index 665a441da9a..860e0ab9ea1 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/members/item/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/members/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createConversationMemberFromDiscriminatorValue, deserializeIntoConversationMember, serializeConversationMember, type ConversationMember } from '../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -29,9 +29,9 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}"); }; /** - * 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. - * @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} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -60,11 +60,11 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ConversationMember - * @see {@link https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -77,7 +77,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); }; /** - * 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 a RequestInformation */ @@ -99,7 +99,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/count/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/count/index.ts index a8e9f4a3182..e3f50afc2ac 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/count/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/delta/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/delta/index.ts index 30a28578f38..59d96a1d51a 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/delta/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/index.ts index 7970f50108e..9ce7ddfbad3 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new chatMessage in the specified channel. + * Send a new chatMessage in the specified channel or a chat. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/count/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/count/index.ts index 70a7ae40721..a33ae01a1bb 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/count/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/index.ts index 8e52e7e32b8..70c49ed8c9e 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/item/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/item/index.ts index 231e0da1e56..c17877028c9 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/item/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/item/value/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/item/value/index.ts index 491632f4e3f..6abbb6b269e 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/item/value/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/index.ts index af816814113..4b08af5c58f 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/index.ts @@ -2,14 +2,14 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { RepliesRequestBuilder } from './replies/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { RepliesRequestBuilder } from './replies'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/count/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/count/index.ts index 50fcda9e6ac..2ce085ea90d 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/count/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/delta/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/delta/index.ts index 6f19b6ff3c9..293a6fdf13a 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/delta/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../../models/baseDeltaFunctionResponse'; import { createChatMessageFromDiscriminatorValue, serializeChatMessage, type ChatMessage } from '../../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: ChatMessage[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeChatMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/index.ts index 17fc2d357b7..d7438d0cfb4 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageCollectionResponse } from '../../../../../../../../models/'; +import { type ChatMessageCollectionResponse } from '../../../../../../../../models'; import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../models/chatMessage'; import { createChatMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/chatMessageCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { ChatMessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { ChatMessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RepliesRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts index 02132e860b8..57b9c13e7be 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/index.ts index 168beafaade..bb04cb29665 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../../models/'; +import { type ChatMessageHostedContentCollectionResponse } from '../../../../../../../../../../models'; import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../models/chatMessageHostedContent'; import { createChatMessageHostedContentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/chatMessageHostedContentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChatMessageHostedContentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChatMessageHostedContentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface HostedContentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts index 3b0fda29225..af2ab541522 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageHostedContentFromDiscriminatorValue, deserializeIntoChatMessageHostedContent, serializeChatMessageHostedContent, type ChatMessageHostedContent } from '../../../../../../../../../../../models/chatMessageHostedContent'; -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageHostedContentItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts index 1b59ee8056b..b65196f235e 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/hostedContents/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/index.ts index ad0a72da0b2..0abe1160ad4 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createChatMessageFromDiscriminatorValue, deserializeIntoChatMessage, serializeChatMessage, type ChatMessage } from '../../../../../../../../../models/chatMessage'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { HostedContentsRequestBuilder } from './hostedContents/'; -import { SetReactionRequestBuilder } from './setReaction/'; -import { SoftDeleteRequestBuilder } from './softDelete/'; -import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete/'; -import { UnsetReactionRequestBuilder } from './unsetReaction/'; +import { HostedContentsRequestBuilder } from './hostedContents'; +import { SetReactionRequestBuilder } from './setReaction'; +import { SoftDeleteRequestBuilder } from './softDelete'; +import { UndoSoftDeleteRequestBuilder } from './undoSoftDelete'; +import { UnsetReactionRequestBuilder } from './unsetReaction'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChatMessageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/setReaction/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/setReaction/index.ts index f2f8051069e..9b08033f5e4 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/setReaction/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/softDelete/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/softDelete/index.ts index b006a4ddc58..50541feb75f 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/softDelete/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts index 4594e666205..2a09a83aaf9 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/unsetReaction/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/unsetReaction/index.ts index 2cf25f62b91..53587898a1a 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/unsetReaction/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/replies/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/setReaction/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/setReaction/index.ts index 7daf939c256..bc28f55176d 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/setReaction/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/setReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetReactionPostRequestBody, serializeSetReactionPostRequestBody, type SetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetReactionPostRequestBody; +} +export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); + writer.writeAdditionalData(setReactionPostRequestBody.additionalData); +} +export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the setReaction method. */ diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts deleted file mode 100644 index 35ae79e93e8..00000000000 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/setReaction/setReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetReactionPostRequestBody; -} -export function deserializeIntoSetReactionPostRequestBody(setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { setReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeSetReactionPostRequestBody(writer: SerializationWriter, setReactionPostRequestBody: SetReactionPostRequestBody | undefined = {} as SetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", setReactionPostRequestBody.reactionType); - writer.writeAdditionalData(setReactionPostRequestBody.additionalData); -} -export interface SetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/softDelete/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/softDelete/index.ts index 3a9efa25604..8947491604f 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/softDelete/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/softDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/undoSoftDelete/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/undoSoftDelete/index.ts index 6afe6b21432..ba4ef6103e4 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/undoSoftDelete/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/undoSoftDelete/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/unsetReaction/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/unsetReaction/index.ts index 69f4d17405e..ab6dde0283b 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/unsetReaction/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/item/unsetReaction/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUnsetReactionPostRequestBody, serializeUnsetReactionPostRequestBody, type UnsetReactionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUnsetReactionPostRequestBody; +} +export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { + return { + "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, + } +} +export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { + writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); + writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); +} +export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The reactionType property + */ + reactionType?: string; +} /** * Provides operations to call the unsetReaction method. */ diff --git a/src/users/item/joinedTeams/item/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts deleted file mode 100644 index cec6476d233..00000000000 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/item/unsetReaction/unsetReactionPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUnsetReactionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUnsetReactionPostRequestBody; -} -export function deserializeIntoUnsetReactionPostRequestBody(unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : Record void> { - return { - "reactionType": n => { unsetReactionPostRequestBody.reactionType = n.getStringValue(); }, - } -} -export function serializeUnsetReactionPostRequestBody(writer: SerializationWriter, unsetReactionPostRequestBody: UnsetReactionPostRequestBody | undefined = {} as UnsetReactionPostRequestBody) : void { - writer.writeStringValue("reactionType", unsetReactionPostRequestBody.reactionType); - writer.writeAdditionalData(unsetReactionPostRequestBody.additionalData); -} -export interface UnsetReactionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The reactionType property - */ - reactionType?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/primaryChannel/provisionEmail/index.ts b/src/users/item/joinedTeams/item/primaryChannel/provisionEmail/index.ts index 44d55bb351b..9b0f829e752 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/provisionEmail/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/provisionEmail/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProvisionChannelEmailResult } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ProvisionChannelEmailResult } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createProvisionChannelEmailResultFromDiscriminatorValue } from '../../../../../../models/provisionChannelEmailResult'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/removeEmail/index.ts b/src/users/item/joinedTeams/item/primaryChannel/removeEmail/index.ts index 5846b4347f6..d0bf867d2b8 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/removeEmail/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/removeEmail/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/count/index.ts b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/count/index.ts index b7beea843c1..4e1602e7fdd 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/count/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/index.ts b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/index.ts index 8f6b2816b60..863304870b6 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SharedWithChannelTeamInfoCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../models/sharedWithChannelTeamInfo'; import { createSharedWithChannelTeamInfoCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sharedWithChannelTeamInfoCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SharedWithChannelTeamInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SharedWithChannelTeamInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithTeamsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts index 5dfd43eabe2..4be38a12d0f 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts index c9139ce555c..f3004f7c029 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMemberCollectionResponse } from '../../../../../../../../models/'; +import { type ConversationMemberCollectionResponse } from '../../../../../../../../models'; import { createConversationMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/conversationMemberCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ConversationMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ConversationMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AllowedMembersRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts index 7f992bf8dd7..d0f8ba416c7 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/allowedMembers/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ConversationMember } from '../../../../../../../../../models/'; +import { type ConversationMember } from '../../../../../../../../../models'; import { createConversationMemberFromDiscriminatorValue } from '../../../../../../../../../models/conversationMember'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/index.ts b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/index.ts index f6ec47b4619..f513ef0fd2e 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSharedWithChannelTeamInfoFromDiscriminatorValue, deserializeIntoSharedWithChannelTeamInfo, serializeSharedWithChannelTeamInfo, type SharedWithChannelTeamInfo } from '../../../../../../../models/sharedWithChannelTeamInfo'; -import { AllowedMembersRequestBuilder } from './allowedMembers/'; -import { TeamRequestBuilder } from './team/'; +import { AllowedMembersRequestBuilder } from './allowedMembers'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/team/index.ts b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/team/index.ts index 5b45207c26f..fb1b41540c7 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/team/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/sharedWithTeams/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type Team } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/tabs/count/index.ts b/src/users/item/joinedTeams/item/primaryChannel/tabs/count/index.ts index a87e9c70762..290cd9f37df 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/tabs/count/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/tabs/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/primaryChannel/tabs/index.ts b/src/users/item/joinedTeams/item/primaryChannel/tabs/index.ts index dd23f1e8a4c..83472ad0186 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/tabs/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/tabs/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTabCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamsTabCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../models/teamsTab'; import { createTeamsTabCollectionResponseFromDiscriminatorValue } from '../../../../../../models/teamsTabCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamsTabItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamsTabItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TabsRequestBuilderGetQueryParameters { @@ -90,7 +90,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createTeamsTabCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of TeamsTab @@ -118,7 +118,7 @@ export class TabsRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + * Add (pin) a tab to the specified channel within a team. The app must be preinstalled in the team and have the configurableTabs property defined in the app manifest. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/joinedTeams/item/primaryChannel/tabs/item/index.ts b/src/users/item/joinedTeams/item/primaryChannel/tabs/item/index.ts index 7d1e66f5d8d..b09a587a742 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/tabs/item/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/tabs/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamsTabFromDiscriminatorValue, deserializeIntoTeamsTab, serializeTeamsTab, type TeamsTab } from '../../../../../../../models/teamsTab'; -import { TeamsAppRequestBuilder } from './teamsApp/'; +import { TeamsAppRequestBuilder } from './teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamsTabItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/primaryChannel/tabs/item/teamsApp/index.ts b/src/users/item/joinedTeams/item/primaryChannel/tabs/item/teamsApp/index.ts index 59186fca106..40c18922d38 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/tabs/item/teamsApp/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/tabs/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/index.ts b/src/users/item/joinedTeams/item/schedule/index.ts index 84811d59bcf..cbd3dfc10a5 100644 --- a/src/users/item/joinedTeams/item/schedule/index.ts +++ b/src/users/item/joinedTeams/item/schedule/index.ts @@ -1,19 +1,19 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createScheduleFromDiscriminatorValue, deserializeIntoSchedule, serializeSchedule, type Schedule } from '../../../../../models/schedule'; -import { OfferShiftRequestsRequestBuilder } from './offerShiftRequests/'; -import { OpenShiftChangeRequestsRequestBuilder } from './openShiftChangeRequests/'; -import { OpenShiftsRequestBuilder } from './openShifts/'; -import { SchedulingGroupsRequestBuilder } from './schedulingGroups/'; -import { ShareRequestBuilder } from './share/'; -import { ShiftsRequestBuilder } from './shifts/'; -import { SwapShiftsChangeRequestsRequestBuilder } from './swapShiftsChangeRequests/'; -import { TimeOffReasonsRequestBuilder } from './timeOffReasons/'; -import { TimeOffRequestsRequestBuilder } from './timeOffRequests/'; -import { TimesOffRequestBuilder } from './timesOff/'; +import { OfferShiftRequestsRequestBuilder } from './offerShiftRequests'; +import { OpenShiftChangeRequestsRequestBuilder } from './openShiftChangeRequests'; +import { OpenShiftsRequestBuilder } from './openShifts'; +import { SchedulingGroupsRequestBuilder } from './schedulingGroups'; +import { ShareRequestBuilder } from './share'; +import { ShiftsRequestBuilder } from './shifts'; +import { SwapShiftsChangeRequestsRequestBuilder } from './swapShiftsChangeRequests'; +import { TimeOffReasonsRequestBuilder } from './timeOffReasons'; +import { TimeOffRequestsRequestBuilder } from './timeOffRequests'; +import { TimesOffRequestBuilder } from './timesOff'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScheduleRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/offerShiftRequests/count/index.ts b/src/users/item/joinedTeams/item/schedule/offerShiftRequests/count/index.ts index 85b5af62923..a92d5d4eca0 100644 --- a/src/users/item/joinedTeams/item/schedule/offerShiftRequests/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/offerShiftRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/offerShiftRequests/index.ts b/src/users/item/joinedTeams/item/schedule/offerShiftRequests/index.ts index 561eca7b279..7dced636db7 100644 --- a/src/users/item/joinedTeams/item/schedule/offerShiftRequests/index.ts +++ b/src/users/item/joinedTeams/item/schedule/offerShiftRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OfferShiftRequestCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OfferShiftRequestCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOfferShiftRequestFromDiscriminatorValue, deserializeIntoOfferShiftRequest, serializeOfferShiftRequest, type OfferShiftRequest } from '../../../../../../models/offerShiftRequest'; import { createOfferShiftRequestCollectionResponseFromDiscriminatorValue } from '../../../../../../models/offerShiftRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OfferShiftRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OfferShiftRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OfferShiftRequestsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/offerShiftRequests/item/index.ts b/src/users/item/joinedTeams/item/schedule/offerShiftRequests/item/index.ts index 6106b612b82..f6e77f995ac 100644 --- a/src/users/item/joinedTeams/item/schedule/offerShiftRequests/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/offerShiftRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOfferShiftRequestFromDiscriminatorValue, deserializeIntoOfferShiftRequest, serializeOfferShiftRequest, type OfferShiftRequest } from '../../../../../../../models/offerShiftRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/count/index.ts b/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/count/index.ts index 2218662dd2e..e07945376ea 100644 --- a/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/index.ts b/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/index.ts index e2c7371c3f2..b43e3fb908d 100644 --- a/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/index.ts +++ b/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OpenShiftChangeRequestCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OpenShiftChangeRequestCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOpenShiftChangeRequestFromDiscriminatorValue, deserializeIntoOpenShiftChangeRequest, serializeOpenShiftChangeRequest, type OpenShiftChangeRequest } from '../../../../../../models/openShiftChangeRequest'; import { createOpenShiftChangeRequestCollectionResponseFromDiscriminatorValue } from '../../../../../../models/openShiftChangeRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OpenShiftChangeRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OpenShiftChangeRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OpenShiftChangeRequestsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/item/index.ts b/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/item/index.ts index f13ff2a0b34..10aa9947e7d 100644 --- a/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/openShiftChangeRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOpenShiftChangeRequestFromDiscriminatorValue, deserializeIntoOpenShiftChangeRequest, serializeOpenShiftChangeRequest, type OpenShiftChangeRequest } from '../../../../../../../models/openShiftChangeRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/openShifts/count/index.ts b/src/users/item/joinedTeams/item/schedule/openShifts/count/index.ts index 424c383e12e..ae902879740 100644 --- a/src/users/item/joinedTeams/item/schedule/openShifts/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/openShifts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/openShifts/index.ts b/src/users/item/joinedTeams/item/schedule/openShifts/index.ts index bbe10bbec33..b6febeed2a0 100644 --- a/src/users/item/joinedTeams/item/schedule/openShifts/index.ts +++ b/src/users/item/joinedTeams/item/schedule/openShifts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OpenShiftCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OpenShiftCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOpenShiftFromDiscriminatorValue, deserializeIntoOpenShift, serializeOpenShift, type OpenShift } from '../../../../../../models/openShift'; import { createOpenShiftCollectionResponseFromDiscriminatorValue } from '../../../../../../models/openShiftCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OpenShiftItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OpenShiftItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OpenShiftsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/openShifts/item/index.ts b/src/users/item/joinedTeams/item/schedule/openShifts/item/index.ts index 95822f49c57..c043914769e 100644 --- a/src/users/item/joinedTeams/item/schedule/openShifts/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/openShifts/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOpenShiftFromDiscriminatorValue, deserializeIntoOpenShift, serializeOpenShift, type OpenShift } from '../../../../../../../models/openShift'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/schedulingGroups/count/index.ts b/src/users/item/joinedTeams/item/schedule/schedulingGroups/count/index.ts index 3661adfb075..6dd7361be21 100644 --- a/src/users/item/joinedTeams/item/schedule/schedulingGroups/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/schedulingGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/schedulingGroups/index.ts b/src/users/item/joinedTeams/item/schedule/schedulingGroups/index.ts index 28469dba1b0..2a79bae0daf 100644 --- a/src/users/item/joinedTeams/item/schedule/schedulingGroups/index.ts +++ b/src/users/item/joinedTeams/item/schedule/schedulingGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SchedulingGroupCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SchedulingGroupCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSchedulingGroupFromDiscriminatorValue, deserializeIntoSchedulingGroup, serializeSchedulingGroup, type SchedulingGroup } from '../../../../../../models/schedulingGroup'; import { createSchedulingGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/schedulingGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SchedulingGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SchedulingGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SchedulingGroupsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/schedulingGroups/item/index.ts b/src/users/item/joinedTeams/item/schedule/schedulingGroups/item/index.ts index d959584e6fc..2b848fab774 100644 --- a/src/users/item/joinedTeams/item/schedule/schedulingGroups/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/schedulingGroups/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSchedulingGroupFromDiscriminatorValue, deserializeIntoSchedulingGroup, serializeSchedulingGroup, type SchedulingGroup } from '../../../../../../../models/schedulingGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/share/index.ts b/src/users/item/joinedTeams/item/schedule/share/index.ts index 8c4fed53fda..bd90ac37c78 100644 --- a/src/users/item/joinedTeams/item/schedule/share/index.ts +++ b/src/users/item/joinedTeams/item/schedule/share/index.ts @@ -1,11 +1,45 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSharePostRequestBody, serializeSharePostRequestBody, type SharePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSharePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSharePostRequestBody; +} +export function deserializeIntoSharePostRequestBody(sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : Record void> { + return { + "endDateTime": n => { sharePostRequestBody.endDateTime = n.getDateValue(); }, + "notifyTeam": n => { sharePostRequestBody.notifyTeam = n.getBooleanValue(); }, + "startDateTime": n => { sharePostRequestBody.startDateTime = n.getDateValue(); }, + } +} +export function serializeSharePostRequestBody(writer: SerializationWriter, sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : void { + writer.writeDateValue("endDateTime", sharePostRequestBody.endDateTime); + writer.writeBooleanValue("notifyTeam", sharePostRequestBody.notifyTeam); + writer.writeDateValue("startDateTime", sharePostRequestBody.startDateTime); + writer.writeAdditionalData(sharePostRequestBody.additionalData); +} +export interface SharePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The endDateTime property + */ + endDateTime?: Date; + /** + * The notifyTeam property + */ + notifyTeam?: boolean; + /** + * The startDateTime property + */ + startDateTime?: Date; +} /** * Provides operations to call the share method. */ diff --git a/src/users/item/joinedTeams/item/schedule/share/sharePostRequestBody.ts b/src/users/item/joinedTeams/item/schedule/share/sharePostRequestBody.ts deleted file mode 100644 index 6c1dabb3317..00000000000 --- a/src/users/item/joinedTeams/item/schedule/share/sharePostRequestBody.ts +++ /dev/null @@ -1,42 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSharePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSharePostRequestBody; -} -export function deserializeIntoSharePostRequestBody(sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : Record void> { - return { - "endDateTime": n => { sharePostRequestBody.endDateTime = n.getDateValue(); }, - "notifyTeam": n => { sharePostRequestBody.notifyTeam = n.getBooleanValue(); }, - "startDateTime": n => { sharePostRequestBody.startDateTime = n.getDateValue(); }, - } -} -export function serializeSharePostRequestBody(writer: SerializationWriter, sharePostRequestBody: SharePostRequestBody | undefined = {} as SharePostRequestBody) : void { - writer.writeDateValue("endDateTime", sharePostRequestBody.endDateTime); - writer.writeBooleanValue("notifyTeam", sharePostRequestBody.notifyTeam); - writer.writeDateValue("startDateTime", sharePostRequestBody.startDateTime); - writer.writeAdditionalData(sharePostRequestBody.additionalData); -} -export interface SharePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The endDateTime property - */ - endDateTime?: Date; - /** - * The notifyTeam property - */ - notifyTeam?: boolean; - /** - * The startDateTime property - */ - startDateTime?: Date; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/schedule/shifts/count/index.ts b/src/users/item/joinedTeams/item/schedule/shifts/count/index.ts index afc86eb18a7..361982536b1 100644 --- a/src/users/item/joinedTeams/item/schedule/shifts/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/shifts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/shifts/index.ts b/src/users/item/joinedTeams/item/schedule/shifts/index.ts index fedce4a4034..d141e8eb6b9 100644 --- a/src/users/item/joinedTeams/item/schedule/shifts/index.ts +++ b/src/users/item/joinedTeams/item/schedule/shifts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ShiftCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ShiftCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createShiftFromDiscriminatorValue, deserializeIntoShift, serializeShift, type Shift } from '../../../../../../models/shift'; import { createShiftCollectionResponseFromDiscriminatorValue } from '../../../../../../models/shiftCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ShiftItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ShiftItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ShiftsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/shifts/item/index.ts b/src/users/item/joinedTeams/item/schedule/shifts/item/index.ts index 510326c89ab..88685d8f16a 100644 --- a/src/users/item/joinedTeams/item/schedule/shifts/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/shifts/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createShiftFromDiscriminatorValue, deserializeIntoShift, serializeShift, type Shift } from '../../../../../../../models/shift'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/count/index.ts b/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/count/index.ts index 4a9e3592c80..8ca214939db 100644 --- a/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/index.ts b/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/index.ts index ce98aa2f196..0dae5d3f217 100644 --- a/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/index.ts +++ b/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SwapShiftsChangeRequestCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SwapShiftsChangeRequestCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSwapShiftsChangeRequestFromDiscriminatorValue, deserializeIntoSwapShiftsChangeRequest, serializeSwapShiftsChangeRequest, type SwapShiftsChangeRequest } from '../../../../../../models/swapShiftsChangeRequest'; import { createSwapShiftsChangeRequestCollectionResponseFromDiscriminatorValue } from '../../../../../../models/swapShiftsChangeRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SwapShiftsChangeRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SwapShiftsChangeRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/item/index.ts b/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/item/index.ts index ed23f27ee68..3cb03d88b63 100644 --- a/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/swapShiftsChangeRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSwapShiftsChangeRequestFromDiscriminatorValue, deserializeIntoSwapShiftsChangeRequest, serializeSwapShiftsChangeRequest, type SwapShiftsChangeRequest } from '../../../../../../../models/swapShiftsChangeRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/timeOffReasons/count/index.ts b/src/users/item/joinedTeams/item/schedule/timeOffReasons/count/index.ts index d3b0b4baf3f..b370132dbff 100644 --- a/src/users/item/joinedTeams/item/schedule/timeOffReasons/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timeOffReasons/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/timeOffReasons/index.ts b/src/users/item/joinedTeams/item/schedule/timeOffReasons/index.ts index 1624a91fbf3..2caa8a78919 100644 --- a/src/users/item/joinedTeams/item/schedule/timeOffReasons/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timeOffReasons/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffReasonCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TimeOffReasonCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeOffReasonFromDiscriminatorValue, deserializeIntoTimeOffReason, serializeTimeOffReason, type TimeOffReason } from '../../../../../../models/timeOffReason'; import { createTimeOffReasonCollectionResponseFromDiscriminatorValue } from '../../../../../../models/timeOffReasonCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffReasonItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffReasonItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimeOffReasonsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/timeOffReasons/item/index.ts b/src/users/item/joinedTeams/item/schedule/timeOffReasons/item/index.ts index af6936d46c0..acb741bd596 100644 --- a/src/users/item/joinedTeams/item/schedule/timeOffReasons/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timeOffReasons/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeOffReasonFromDiscriminatorValue, deserializeIntoTimeOffReason, serializeTimeOffReason, type TimeOffReason } from '../../../../../../../models/timeOffReason'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/timeOffRequests/count/index.ts b/src/users/item/joinedTeams/item/schedule/timeOffRequests/count/index.ts index 7ade1b1d095..8b9045b7588 100644 --- a/src/users/item/joinedTeams/item/schedule/timeOffRequests/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timeOffRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/timeOffRequests/index.ts b/src/users/item/joinedTeams/item/schedule/timeOffRequests/index.ts index 926763e7667..2ccdbad995d 100644 --- a/src/users/item/joinedTeams/item/schedule/timeOffRequests/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timeOffRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffRequestCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TimeOffRequestCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeOffRequestFromDiscriminatorValue, deserializeIntoTimeOffRequest, serializeTimeOffRequest, type TimeOffRequest } from '../../../../../../models/timeOffRequest'; import { createTimeOffRequestCollectionResponseFromDiscriminatorValue } from '../../../../../../models/timeOffRequestCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffRequestItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffRequestItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimeOffRequestsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/timeOffRequests/item/index.ts b/src/users/item/joinedTeams/item/schedule/timeOffRequests/item/index.ts index 9e5dadd1f4e..a203e9e5699 100644 --- a/src/users/item/joinedTeams/item/schedule/timeOffRequests/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timeOffRequests/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeOffRequestFromDiscriminatorValue, deserializeIntoTimeOffRequest, serializeTimeOffRequest, type TimeOffRequest } from '../../../../../../../models/timeOffRequest'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/timesOff/count/index.ts b/src/users/item/joinedTeams/item/schedule/timesOff/count/index.ts index 37e5fb79bcb..f9fa4d0ea13 100644 --- a/src/users/item/joinedTeams/item/schedule/timesOff/count/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timesOff/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/schedule/timesOff/index.ts b/src/users/item/joinedTeams/item/schedule/timesOff/index.ts index 6ce4aa234e2..ded4287b7bf 100644 --- a/src/users/item/joinedTeams/item/schedule/timesOff/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timesOff/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TimeOffCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TimeOffCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTimeOffFromDiscriminatorValue, deserializeIntoTimeOff, serializeTimeOff, type TimeOff } from '../../../../../../models/timeOff'; import { createTimeOffCollectionResponseFromDiscriminatorValue } from '../../../../../../models/timeOffCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TimeOffItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TimeOffItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TimesOffRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/schedule/timesOff/item/index.ts b/src/users/item/joinedTeams/item/schedule/timesOff/item/index.ts index cbaa407f7f3..9ff46bfab84 100644 --- a/src/users/item/joinedTeams/item/schedule/timesOff/item/index.ts +++ b/src/users/item/joinedTeams/item/schedule/timesOff/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTimeOffFromDiscriminatorValue, deserializeIntoTimeOff, serializeTimeOff, type TimeOff } from '../../../../../../../models/timeOff'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/sendActivityNotification/index.ts b/src/users/item/joinedTeams/item/sendActivityNotification/index.ts index 6ca1f8c6420..7e3c7616a8b 100644 --- a/src/users/item/joinedTeams/item/sendActivityNotification/index.ts +++ b/src/users/item/joinedTeams/item/sendActivityNotification/index.ts @@ -1,11 +1,67 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../../../models/itemBody'; +import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../../../models/keyValuePair'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSendActivityNotificationPostRequestBody, serializeSendActivityNotificationPostRequestBody, type SendActivityNotificationPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../../../models/teamworkActivityTopic'; +import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../../../models/teamworkNotificationRecipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSendActivityNotificationPostRequestBody; +} +export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { + return { + "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, + "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, + "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, + "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, + "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, + "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, + } +} +export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activityType property + */ + activityType?: string; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The chainId property + */ + chainId?: number; + /** + * The previewText property + */ + previewText?: ItemBody; + /** + * The recipient property + */ + recipient?: TeamworkNotificationRecipient; + /** + * The templateParameters property + */ + templateParameters?: KeyValuePair[]; + /** + * The topic property + */ + topic?: TeamworkActivityTopic; +} +export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { + writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); + writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); + writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); + writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); + writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); + writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); + writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); +} /** * Provides operations to call the sendActivityNotification method. */ diff --git a/src/users/item/joinedTeams/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts b/src/users/item/joinedTeams/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts deleted file mode 100644 index 885deec79db..00000000000 --- a/src/users/item/joinedTeams/item/sendActivityNotification/sendActivityNotificationPostRequestBody.ts +++ /dev/null @@ -1,64 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../../../models/itemBody'; -import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../../../models/keyValuePair'; -import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../../../models/teamworkActivityTopic'; -import { createTeamworkNotificationRecipientFromDiscriminatorValue, serializeTeamworkNotificationRecipient, type TeamworkNotificationRecipient } from '../../../../../models/teamworkNotificationRecipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSendActivityNotificationPostRequestBody; -} -export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { - return { - "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, - "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, - "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, - "recipient": n => { sendActivityNotificationPostRequestBody.recipient = n.getObjectValue(createTeamworkNotificationRecipientFromDiscriminatorValue); }, - "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, - "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, - } -} -export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activityType property - */ - activityType?: string; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The chainId property - */ - chainId?: number; - /** - * The previewText property - */ - previewText?: ItemBody; - /** - * The recipient property - */ - recipient?: TeamworkNotificationRecipient; - /** - * The templateParameters property - */ - templateParameters?: KeyValuePair[]; - /** - * The topic property - */ - topic?: TeamworkActivityTopic; -} -export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { - writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); - writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); - writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); - writer.writeObjectValue("recipient", sendActivityNotificationPostRequestBody.recipient, serializeTeamworkNotificationRecipient); - writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); - writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); - writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/joinedTeams/item/tags/count/index.ts b/src/users/item/joinedTeams/item/tags/count/index.ts index 8ef92ed5f33..dee4d784b11 100644 --- a/src/users/item/joinedTeams/item/tags/count/index.ts +++ b/src/users/item/joinedTeams/item/tags/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/tags/index.ts b/src/users/item/joinedTeams/item/tags/index.ts index 6aa503accbb..db21acb6b53 100644 --- a/src/users/item/joinedTeams/item/tags/index.ts +++ b/src/users/item/joinedTeams/item/tags/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamworkTagCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamworkTagCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagFromDiscriminatorValue, deserializeIntoTeamworkTag, serializeTeamworkTag, type TeamworkTag } from '../../../../../models/teamworkTag'; import { createTeamworkTagCollectionResponseFromDiscriminatorValue } from '../../../../../models/teamworkTagCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamworkTagItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamworkTagItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TagsRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/tags/item/index.ts b/src/users/item/joinedTeams/item/tags/item/index.ts index ce8189ae082..70f666e96fe 100644 --- a/src/users/item/joinedTeams/item/tags/item/index.ts +++ b/src/users/item/joinedTeams/item/tags/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagFromDiscriminatorValue, deserializeIntoTeamworkTag, serializeTeamworkTag, type TeamworkTag } from '../../../../../../models/teamworkTag'; -import { MembersRequestBuilder } from './members/'; +import { MembersRequestBuilder } from './members'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamworkTagItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/tags/item/members/count/index.ts b/src/users/item/joinedTeams/item/tags/item/members/count/index.ts index e1668c4d51d..5a28a2eef17 100644 --- a/src/users/item/joinedTeams/item/tags/item/members/count/index.ts +++ b/src/users/item/joinedTeams/item/tags/item/members/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/tags/item/members/index.ts b/src/users/item/joinedTeams/item/tags/item/members/index.ts index 2933e190c12..e9119884154 100644 --- a/src/users/item/joinedTeams/item/tags/item/members/index.ts +++ b/src/users/item/joinedTeams/item/tags/item/members/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamworkTagMemberCollectionResponse } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type TeamworkTagMemberCollectionResponse } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagMemberFromDiscriminatorValue, deserializeIntoTeamworkTagMember, serializeTeamworkTagMember, type TeamworkTagMember } from '../../../../../../../models/teamworkTagMember'; import { createTeamworkTagMemberCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/teamworkTagMemberCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { TeamworkTagMemberItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { TeamworkTagMemberItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MembersRequestBuilderGetQueryParameters { diff --git a/src/users/item/joinedTeams/item/tags/item/members/item/index.ts b/src/users/item/joinedTeams/item/tags/item/members/item/index.ts index af5fec2a2e3..043fc2e69af 100644 --- a/src/users/item/joinedTeams/item/tags/item/members/item/index.ts +++ b/src/users/item/joinedTeams/item/tags/item/members/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createTeamworkTagMemberFromDiscriminatorValue, deserializeIntoTeamworkTagMember, serializeTeamworkTagMember, type TeamworkTagMember } from '../../../../../../../../models/teamworkTagMember'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/template/index.ts b/src/users/item/joinedTeams/item/template/index.ts index 75c023365d3..163767c3f19 100644 --- a/src/users/item/joinedTeams/item/template/index.ts +++ b/src/users/item/joinedTeams/item/template/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsTemplate } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type TeamsTemplate } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTeamsTemplateFromDiscriminatorValue } from '../../../../../models/teamsTemplate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/joinedTeams/item/unarchive/index.ts b/src/users/item/joinedTeams/item/unarchive/index.ts index c6bb7740e90..252b01c0ab6 100644 --- a/src/users/item/joinedTeams/item/unarchive/index.ts +++ b/src/users/item/joinedTeams/item/unarchive/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/licenseDetails/count/index.ts b/src/users/item/licenseDetails/count/index.ts index 7afb78ef6a1..30c0450b65d 100644 --- a/src/users/item/licenseDetails/count/index.ts +++ b/src/users/item/licenseDetails/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/licenseDetails/index.ts b/src/users/item/licenseDetails/index.ts index 8154e801a50..0daf3674c29 100644 --- a/src/users/item/licenseDetails/index.ts +++ b/src/users/item/licenseDetails/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LicenseDetailsCollectionResponse } from '../../../models/'; +import { type LicenseDetailsCollectionResponse } from '../../../models'; import { createLicenseDetailsFromDiscriminatorValue, deserializeIntoLicenseDetails, serializeLicenseDetails, type LicenseDetails } from '../../../models/licenseDetails'; import { createLicenseDetailsCollectionResponseFromDiscriminatorValue } from '../../../models/licenseDetailsCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LicenseDetailsItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LicenseDetailsItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LicenseDetailsRequestBuilderGetQueryParameters { diff --git a/src/users/item/licenseDetails/item/index.ts b/src/users/item/licenseDetails/item/index.ts index cc2d2bea5cc..10cfb39d944 100644 --- a/src/users/item/licenseDetails/item/index.ts +++ b/src/users/item/licenseDetails/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLicenseDetailsFromDiscriminatorValue, deserializeIntoLicenseDetails, serializeLicenseDetails, type LicenseDetails } from '../../../../models/licenseDetails'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/count/index.ts b/src/users/item/mailFolders/count/index.ts index fc092dff61f..9af2b6240bb 100644 --- a/src/users/item/mailFolders/count/index.ts +++ b/src/users/item/mailFolders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/delta/index.ts b/src/users/item/mailFolders/delta/index.ts index 2024c15b4d4..073f632a7d8 100644 --- a/src/users/item/mailFolders/delta/index.ts +++ b/src/users/item/mailFolders/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createMailFolderFromDiscriminatorValue, serializeMailFolder, type MailFolder } from '../../../../models/mailFolder'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: MailFolder[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeMailFolder); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/mailfolder-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/index.ts b/src/users/item/mailFolders/index.ts index bf1d9c0a6af..9243a839a95 100644 --- a/src/users/item/mailFolders/index.ts +++ b/src/users/item/mailFolders/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MailFolderCollectionResponse } from '../../../models/'; +import { type MailFolderCollectionResponse } from '../../../models'; import { createMailFolderFromDiscriminatorValue, deserializeIntoMailFolder, serializeMailFolder, type MailFolder } from '../../../models/mailFolder'; import { createMailFolderCollectionResponseFromDiscriminatorValue } from '../../../models/mailFolderCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { MailFolderItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { MailFolderItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MailFoldersRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/childFolders/count/index.ts b/src/users/item/mailFolders/item/childFolders/count/index.ts index 05e8a74f0e6..c1df92ad9ff 100644 --- a/src/users/item/mailFolders/item/childFolders/count/index.ts +++ b/src/users/item/mailFolders/item/childFolders/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/delta/index.ts b/src/users/item/mailFolders/item/childFolders/delta/index.ts index 3caeb5b059d..160bc0c74c5 100644 --- a/src/users/item/mailFolders/item/childFolders/delta/index.ts +++ b/src/users/item/mailFolders/item/childFolders/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createMailFolderFromDiscriminatorValue, serializeMailFolder, type MailFolder } from '../../../../../../models/mailFolder'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: MailFolder[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeMailFolder); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/mailfolder-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/index.ts b/src/users/item/mailFolders/item/childFolders/index.ts index c01fc97f862..4f1b4259b0f 100644 --- a/src/users/item/mailFolders/item/childFolders/index.ts +++ b/src/users/item/mailFolders/item/childFolders/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MailFolderCollectionResponse } from '../../../../../models/'; +import { type MailFolderCollectionResponse } from '../../../../../models'; import { createMailFolderFromDiscriminatorValue, deserializeIntoMailFolder, serializeMailFolder, type MailFolder } from '../../../../../models/mailFolder'; import { createMailFolderCollectionResponseFromDiscriminatorValue } from '../../../../../models/mailFolderCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { MailFolderItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { MailFolderItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChildFoldersRequestBuilderGetQueryParameters { @@ -97,11 +97,11 @@ export class ChildFoldersRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createMailFolderCollectionResponseFromDiscriminatorValue, errorMapping); }; /** - * Create a new mailSearchFolder in the specified user's mailbox. + * Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MailFolder - * @see {@link https://learn.microsoft.com/graph/api/mailsearchfolder-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/mailfolder-post-childfolders?view=graph-rest-1.0|Find more info here} */ public post(body: MailFolder, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -125,7 +125,7 @@ export class ChildFoldersRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Create a new mailSearchFolder in the specified user's mailbox. + * Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/mailFolders/item/childFolders/item/copy/index.ts b/src/users/item/mailFolders/item/childFolders/item/copy/index.ts index b66de0d737a..1b8c9065bfe 100644 --- a/src/users/item/mailFolders/item/childFolders/item/copy/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/copy/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMailFolderFromDiscriminatorValue, deserializeIntoMailFolder, serializeMailFolder, type MailFolder } from '../../../../../../../models/mailFolder'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeCopyPostRequestBody(writer: SerializationWriter, copyPo writer.writeStringValue("DestinationId", copyPostRequestBody.destinationId); writer.writeAdditionalData(copyPostRequestBody.additionalData); } -/** - * Provides operations to call the copy method. - */ -export class CopyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/copy"); - }; - /** - * Copy a mailfolder and its contents to another mailfolder. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of MailFolder - * @see {@link https://learn.microsoft.com/graph/api/mailfolder-copy?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMailFolderFromDiscriminatorValue, errorMapping); - }; - /** - * Copy a mailfolder and its contents to another mailfolder. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyRequestBuilder - */ - public withUrl(rawUrl: string) : CopyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/index.ts b/src/users/item/mailFolders/item/childFolders/item/index.ts index 9e36010daeb..3650fb0c4df 100644 --- a/src/users/item/mailFolders/item/childFolders/item/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/index.ts @@ -2,12 +2,12 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailFolderFromDiscriminatorValue, deserializeIntoMailFolder, serializeMailFolder, type MailFolder } from '../../../../../../models/mailFolder'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CopyRequestBuilder } from './copy/'; -import { MessageRulesRequestBuilder } from './messageRules/'; -import { MessagesRequestBuilder } from './messages/'; -import { MoveRequestBuilder } from './move/'; +import { CopyRequestBuilder } from './copy'; +import { MessageRulesRequestBuilder } from './messageRules'; +import { MessagesRequestBuilder } from './messages'; +import { MoveRequestBuilder } from './move'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MailFolderItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/childFolders/item/messageRules/count/index.ts b/src/users/item/mailFolders/item/childFolders/item/messageRules/count/index.ts index 5e309f2443a..42596c856e2 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messageRules/count/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messageRules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/messageRules/index.ts b/src/users/item/mailFolders/item/childFolders/item/messageRules/index.ts index a0fb1bacd54..2116be41bc9 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messageRules/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messageRules/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MessageRuleCollectionResponse } from '../../../../../../../models/'; +import { type MessageRuleCollectionResponse } from '../../../../../../../models'; import { createMessageRuleFromDiscriminatorValue, deserializeIntoMessageRule, serializeMessageRule, type MessageRule } from '../../../../../../../models/messageRule'; import { createMessageRuleCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/messageRuleCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MessageRuleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MessageRuleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessageRulesRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/childFolders/item/messageRules/item/index.ts b/src/users/item/mailFolders/item/childFolders/item/messageRules/item/index.ts index d01830a78cc..b990336791c 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messageRules/item/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messageRules/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageRuleFromDiscriminatorValue, deserializeIntoMessageRule, serializeMessageRule, type MessageRule } from '../../../../../../../../models/messageRule'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/count/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/count/index.ts index 9fcf7f22d5f..11dd31f9a74 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/count/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/delta/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/delta/index.ts index 34b94425fa7..b8f868edefb 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/delta/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../../models/baseDeltaFunctionResponse'; import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,40 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Message[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * A custom query option to filter the delta response based on the type of change. Supported values are created, updated or deleted. - */ - changeType?: string; - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -61,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/delta(){?changeType*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/message-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/index.ts index e774aa9d01d..94c27433c87 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MessageCollectionResponse } from '../../../../../../../models/'; +import { type MessageCollectionResponse } from '../../../../../../../models'; import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../models/message'; import { createMessageCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/messageCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { MessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { MessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/count/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/count/index.ts index 1b727c2c2f9..e54ce56228d 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/count/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/createUploadSession/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/createUploadSession/index.ts index 26714634eb8..3b5d23832da 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/createUploadSession/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/index.ts index 696c821d99e..d48224f1151 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/item/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/item/index.ts index 09e80f58ffd..740d629ecf1 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/item/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/copy/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/copy/index.ts index bcee0ed8803..1b8c9065bfe 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/copy/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/copy/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeCopyPostRequestBody(writer: SerializationWriter, copyPo writer.writeStringValue("DestinationId", copyPostRequestBody.destinationId); writer.writeAdditionalData(copyPostRequestBody.additionalData); } -/** - * Provides operations to call the copy method. - */ -export class CopyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/copy"); - }; - /** - * Copy a message to a folder within the user's mailbox. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-copy?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Copy a message to a folder within the user's mailbox. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyRequestBuilder - */ - public withUrl(rawUrl: string) : CopyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/createForward/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/createForward/index.ts index 9265aa3aa39..57a89185973 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/createForward/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/createForward/index.ts @@ -1,11 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../../models/message'; import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,58 +40,5 @@ export function serializeCreateForwardPostRequestBody(writer: SerializationWrite writer.writeCollectionOfObjectValues("ToRecipients", createForwardPostRequestBody.toRecipients, serializeRecipient); writer.writeAdditionalData(createForwardPostRequestBody.additionalData); } -/** - * Provides operations to call the createForward method. - */ -export class CreateForwardRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateForwardRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createForward"); - }; - /** - * Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-createforward?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateForwardPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateForwardPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateForwardPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createForwardRequestBuilder - */ - public withUrl(rawUrl: string) : CreateForwardRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateForwardRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/createReply/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/createReply/index.ts index a3d99f8052e..ca3ad2e6875 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/createReply/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/createReply/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../../models/message'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,58 +33,5 @@ export function serializeCreateReplyPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("Message", createReplyPostRequestBody.message, serializeMessage); writer.writeAdditionalData(createReplyPostRequestBody.additionalData); } -/** - * Provides operations to call the createReply method. - */ -export class CreateReplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateReplyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createReply"); - }; - /** - * Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-createreply?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateReplyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createReplyRequestBuilder - */ - public withUrl(rawUrl: string) : CreateReplyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateReplyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts deleted file mode 100644 index 781ab733a7c..00000000000 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCreateReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCreateReplyAllPostRequestBody; -} -export interface CreateReplyAllPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; -} -export function deserializeIntoCreateReplyAllPostRequestBody(createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : Record void> { - return { - "comment": n => { createReplyAllPostRequestBody.comment = n.getStringValue(); }, - "message": n => { createReplyAllPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - } -} -export function serializeCreateReplyAllPostRequestBody(writer: SerializationWriter, createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : void { - writer.writeStringValue("Comment", createReplyAllPostRequestBody.comment); - writer.writeObjectValue("Message", createReplyAllPostRequestBody.message, serializeMessage); - writer.writeAdditionalData(createReplyAllPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/index.ts index b2158a3e6f3..ff2c3a18c1e 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/index.ts @@ -2,11 +2,39 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCreateReplyAllPostRequestBody, serializeCreateReplyAllPostRequestBody, type CreateReplyAllPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createCreateReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCreateReplyAllPostRequestBody; +} +export interface CreateReplyAllPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; +} +export function deserializeIntoCreateReplyAllPostRequestBody(createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : Record void> { + return { + "comment": n => { createReplyAllPostRequestBody.comment = n.getStringValue(); }, + "message": n => { createReplyAllPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + } +} +export function serializeCreateReplyAllPostRequestBody(writer: SerializationWriter, createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : void { + writer.writeStringValue("Comment", createReplyAllPostRequestBody.comment); + writer.writeObjectValue("Message", createReplyAllPostRequestBody.message, serializeMessage); + writer.writeAdditionalData(createReplyAllPostRequestBody.additionalData); +} /** * Provides operations to call the createReplyAll method. */ diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/count/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/count/index.ts index c712927cfe3..c7ffcfcb343 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/count/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/index.ts index fcf82dda0df..0e9ebb92c6e 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/item/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/item/index.ts index 32eb0792e9c..24cd1029a5c 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/item/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/forward/forwardPostRequestBody.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 3d145cfd50a..00000000000 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,44 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "message": n => { forwardPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeObjectValue("Message", forwardPostRequestBody.message, serializeMessage); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/forward/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/forward/index.ts index 9aa5c54fb33..0ceedd4f236 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/forward/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/forward/index.ts @@ -1,11 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../../models/message'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "message": n => { forwardPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeObjectValue("Message", forwardPostRequestBody.message, serializeMessage); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/index.ts index 8d46c0a624c..5b9e7e94855 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/index.ts @@ -2,20 +2,20 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CopyRequestBuilder } from './copy/'; -import { CreateForwardRequestBuilder } from './createForward/'; -import { CreateReplyRequestBuilder } from './createReply/'; -import { CreateReplyAllRequestBuilder } from './createReplyAll/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { MoveRequestBuilder } from './move/'; -import { ReplyRequestBuilder } from './reply/'; -import { ReplyAllRequestBuilder } from './replyAll/'; -import { SendRequestBuilder } from './send/'; -import { ContentRequestBuilder } from './value/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CopyRequestBuilder } from './copy'; +import { CreateForwardRequestBuilder } from './createForward'; +import { CreateReplyRequestBuilder } from './createReply'; +import { CreateReplyAllRequestBuilder } from './createReplyAll'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { MoveRequestBuilder } from './move'; +import { ReplyRequestBuilder } from './reply'; +import { ReplyAllRequestBuilder } from './replyAll'; +import { SendRequestBuilder } from './send'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/move/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/move/index.ts index f2660ca2fdb..4b1a2cf6785 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/move/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/move/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoMovePostRequestBody, serializeMovePostRequestBody, type MovePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMovePostRequestBody; +} +export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { + return { + "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, + } +} +export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The DestinationId property + */ + destinationId?: string; +} +export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { + writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); + writer.writeAdditionalData(movePostRequestBody.additionalData); +} /** * Provides operations to call the move method. */ diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/move/movePostRequestBody.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/move/movePostRequestBody.ts deleted file mode 100644 index 93a1c3bb520..00000000000 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/move/movePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMovePostRequestBody; -} -export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { - return { - "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, - } -} -export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The DestinationId property - */ - destinationId?: string; -} -export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { - writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); - writer.writeAdditionalData(movePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/reply/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/reply/index.ts index 5b24fa9d2c3..373ddf17751 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/reply/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/reply/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../../models/message'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "comment": n => { replyPostRequestBody.comment = n.getStringValue(); }, + "message": n => { replyPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeStringValue("Comment", replyPostRequestBody.comment); + writer.writeObjectValue("Message", replyPostRequestBody.message, serializeMessage); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/reply/replyPostRequestBody.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/reply/replyPostRequestBody.ts deleted file mode 100644 index 33ac262d9b4..00000000000 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "comment": n => { replyPostRequestBody.comment = n.getStringValue(); }, - "message": n => { replyPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeStringValue("Comment", replyPostRequestBody.comment); - writer.writeObjectValue("Message", replyPostRequestBody.message, serializeMessage); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/replyAll/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/replyAll/index.ts index 901f104a41f..18070ba1d42 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/replyAll/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/replyAll/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,57 +33,5 @@ export function serializeReplyAllPostRequestBody(writer: SerializationWriter, re writer.writeObjectValue("Message", replyAllPostRequestBody.message, serializeMessage); writer.writeAdditionalData(replyAllPostRequestBody.additionalData); } -/** - * Provides operations to call the replyAll method. - */ -export class ReplyAllRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ReplyAllRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/replyAll"); - }; - /** - * Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/message-replyall?view=graph-rest-1.0|Find more info here} - */ - public post(body: ReplyAllPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ReplyAllPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeReplyAllPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a replyAllRequestBuilder - */ - public withUrl(rawUrl: string) : ReplyAllRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ReplyAllRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/send/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/send/index.ts index 57b5fbb3e0a..c5b75661985 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/send/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/send/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/messages/item/value/index.ts b/src/users/item/mailFolders/item/childFolders/item/messages/item/value/index.ts index 0d3be8f5e9e..0872fd522f0 100644 --- a/src/users/item/mailFolders/item/childFolders/item/messages/item/value/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/messages/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/childFolders/item/move/index.ts b/src/users/item/mailFolders/item/childFolders/item/move/index.ts index e02da3314fb..f95b82f6dde 100644 --- a/src/users/item/mailFolders/item/childFolders/item/move/index.ts +++ b/src/users/item/mailFolders/item/childFolders/item/move/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailFolderFromDiscriminatorValue, deserializeIntoMailFolder, serializeMailFolder, type MailFolder } from '../../../../../../../models/mailFolder'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoMovePostRequestBody, serializeMovePostRequestBody, type MovePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMovePostRequestBody; +} +export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { + return { + "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, + } +} +export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The DestinationId property + */ + destinationId?: string; +} +export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { + writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); + writer.writeAdditionalData(movePostRequestBody.additionalData); +} /** * Provides operations to call the move method. */ diff --git a/src/users/item/mailFolders/item/childFolders/item/move/movePostRequestBody.ts b/src/users/item/mailFolders/item/childFolders/item/move/movePostRequestBody.ts deleted file mode 100644 index 93a1c3bb520..00000000000 --- a/src/users/item/mailFolders/item/childFolders/item/move/movePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMovePostRequestBody; -} -export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { - return { - "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, - } -} -export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The DestinationId property - */ - destinationId?: string; -} -export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { - writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); - writer.writeAdditionalData(movePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/copy/index.ts b/src/users/item/mailFolders/item/copy/index.ts index 38ffe638b38..1b8c9065bfe 100644 --- a/src/users/item/mailFolders/item/copy/index.ts +++ b/src/users/item/mailFolders/item/copy/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMailFolderFromDiscriminatorValue, deserializeIntoMailFolder, serializeMailFolder, type MailFolder } from '../../../../../models/mailFolder'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeCopyPostRequestBody(writer: SerializationWriter, copyPo writer.writeStringValue("DestinationId", copyPostRequestBody.destinationId); writer.writeAdditionalData(copyPostRequestBody.additionalData); } -/** - * Provides operations to call the copy method. - */ -export class CopyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/copy"); - }; - /** - * Copy a mailfolder and its contents to another mailfolder. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of MailFolder - * @see {@link https://learn.microsoft.com/graph/api/mailfolder-copy?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMailFolderFromDiscriminatorValue, errorMapping); - }; - /** - * Copy a mailfolder and its contents to another mailfolder. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyRequestBuilder - */ - public withUrl(rawUrl: string) : CopyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/index.ts b/src/users/item/mailFolders/item/index.ts index eee17cdd953..6d838234485 100644 --- a/src/users/item/mailFolders/item/index.ts +++ b/src/users/item/mailFolders/item/index.ts @@ -2,13 +2,13 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailFolderFromDiscriminatorValue, deserializeIntoMailFolder, serializeMailFolder, type MailFolder } from '../../../../models/mailFolder'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { ChildFoldersRequestBuilder } from './childFolders/'; -import { CopyRequestBuilder } from './copy/'; -import { MessageRulesRequestBuilder } from './messageRules/'; -import { MessagesRequestBuilder } from './messages/'; -import { MoveRequestBuilder } from './move/'; +import { ChildFoldersRequestBuilder } from './childFolders'; +import { CopyRequestBuilder } from './copy'; +import { MessageRulesRequestBuilder } from './messageRules'; +import { MessagesRequestBuilder } from './messages'; +import { MoveRequestBuilder } from './move'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MailFolderItemRequestBuilderGetQueryParameters { @@ -99,11 +99,11 @@ export class MailFolderItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createMailFolderFromDiscriminatorValue, errorMapping); }; /** - * Update the properties of mailfolder object. + * Update the writable properties of a mailSearchFolder object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MailFolder - * @see {@link https://learn.microsoft.com/graph/api/mailfolder-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/mailsearchfolder-update?view=graph-rest-1.0|Find more info here} */ public patch(body: MailFolder, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -138,7 +138,7 @@ export class MailFolderItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the properties of mailfolder object. + * Update the writable properties of a mailSearchFolder object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/mailFolders/item/messageRules/count/index.ts b/src/users/item/mailFolders/item/messageRules/count/index.ts index 7f1dc0852e0..2f89a318d77 100644 --- a/src/users/item/mailFolders/item/messageRules/count/index.ts +++ b/src/users/item/mailFolders/item/messageRules/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/messageRules/index.ts b/src/users/item/mailFolders/item/messageRules/index.ts index 86a8c04ed84..23a157c4804 100644 --- a/src/users/item/mailFolders/item/messageRules/index.ts +++ b/src/users/item/mailFolders/item/messageRules/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MessageRuleCollectionResponse } from '../../../../../models/'; +import { type MessageRuleCollectionResponse } from '../../../../../models'; import { createMessageRuleFromDiscriminatorValue, deserializeIntoMessageRule, serializeMessageRule, type MessageRule } from '../../../../../models/messageRule'; import { createMessageRuleCollectionResponseFromDiscriminatorValue } from '../../../../../models/messageRuleCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MessageRuleItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MessageRuleItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessageRulesRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/messageRules/item/index.ts b/src/users/item/mailFolders/item/messageRules/item/index.ts index 900210e3aa1..fbff86a3e7f 100644 --- a/src/users/item/mailFolders/item/messageRules/item/index.ts +++ b/src/users/item/mailFolders/item/messageRules/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageRuleFromDiscriminatorValue, deserializeIntoMessageRule, serializeMessageRule, type MessageRule } from '../../../../../../models/messageRule'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/messages/count/index.ts b/src/users/item/mailFolders/item/messages/count/index.ts index a7618c42ee6..a0e121ef92d 100644 --- a/src/users/item/mailFolders/item/messages/count/index.ts +++ b/src/users/item/mailFolders/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/messages/delta/index.ts b/src/users/item/mailFolders/item/messages/delta/index.ts index 3e40d90549c..a61c7e4f030 100644 --- a/src/users/item/mailFolders/item/messages/delta/index.ts +++ b/src/users/item/mailFolders/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../models/baseDeltaFunctionResponse'; import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../models/message'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,40 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Message[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * A custom query option to filter the delta response based on the type of change. Supported values are created, updated or deleted. - */ - changeType?: string; - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -61,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/delta(){?changeType*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/message-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/messages/index.ts b/src/users/item/mailFolders/item/messages/index.ts index 0bcd00721f9..4ca280b1155 100644 --- a/src/users/item/mailFolders/item/messages/index.ts +++ b/src/users/item/mailFolders/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MessageCollectionResponse } from '../../../../../models/'; +import { type MessageCollectionResponse } from '../../../../../models'; import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../models/message'; import { createMessageCollectionResponseFromDiscriminatorValue } from '../../../../../models/messageCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { MessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { MessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/messages/item/attachments/count/index.ts b/src/users/item/mailFolders/item/messages/item/attachments/count/index.ts index c9b0e04afa1..01022b303ef 100644 --- a/src/users/item/mailFolders/item/messages/item/attachments/count/index.ts +++ b/src/users/item/mailFolders/item/messages/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/messages/item/attachments/createUploadSession/index.ts b/src/users/item/mailFolders/item/messages/item/attachments/createUploadSession/index.ts index e0b020a460b..a5ffe1180dc 100644 --- a/src/users/item/mailFolders/item/messages/item/attachments/createUploadSession/index.ts +++ b/src/users/item/mailFolders/item/messages/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/attachments/index.ts b/src/users/item/mailFolders/item/messages/item/attachments/index.ts index a326dc39d17..2af8e0615a7 100644 --- a/src/users/item/mailFolders/item/messages/item/attachments/index.ts +++ b/src/users/item/mailFolders/item/messages/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/messages/item/attachments/item/index.ts b/src/users/item/mailFolders/item/messages/item/attachments/item/index.ts index 3b8039e308c..4e2f87ac25c 100644 --- a/src/users/item/mailFolders/item/messages/item/attachments/item/index.ts +++ b/src/users/item/mailFolders/item/messages/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../../../models/'; +import { type Attachment } from '../../../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/messages/item/copy/index.ts b/src/users/item/mailFolders/item/messages/item/copy/index.ts index c73151c378f..1b8c9065bfe 100644 --- a/src/users/item/mailFolders/item/messages/item/copy/index.ts +++ b/src/users/item/mailFolders/item/messages/item/copy/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeCopyPostRequestBody(writer: SerializationWriter, copyPo writer.writeStringValue("DestinationId", copyPostRequestBody.destinationId); writer.writeAdditionalData(copyPostRequestBody.additionalData); } -/** - * Provides operations to call the copy method. - */ -export class CopyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/copy"); - }; - /** - * Copy a message to a folder within the user's mailbox. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-copy?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Copy a message to a folder within the user's mailbox. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyRequestBuilder - */ - public withUrl(rawUrl: string) : CopyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/createForward/index.ts b/src/users/item/mailFolders/item/messages/item/createForward/index.ts index b0f7d1824f8..37dd18275ad 100644 --- a/src/users/item/mailFolders/item/messages/item/createForward/index.ts +++ b/src/users/item/mailFolders/item/messages/item/createForward/index.ts @@ -1,11 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../models/message'; import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,58 +40,5 @@ export function serializeCreateForwardPostRequestBody(writer: SerializationWrite writer.writeCollectionOfObjectValues("ToRecipients", createForwardPostRequestBody.toRecipients, serializeRecipient); writer.writeAdditionalData(createForwardPostRequestBody.additionalData); } -/** - * Provides operations to call the createForward method. - */ -export class CreateForwardRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateForwardRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createForward"); - }; - /** - * Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-createforward?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateForwardPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateForwardPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateForwardPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createForwardRequestBuilder - */ - public withUrl(rawUrl: string) : CreateForwardRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateForwardRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/createReply/index.ts b/src/users/item/mailFolders/item/messages/item/createReply/index.ts index 8ac118195c1..32e5a8e4f1e 100644 --- a/src/users/item/mailFolders/item/messages/item/createReply/index.ts +++ b/src/users/item/mailFolders/item/messages/item/createReply/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../models/message'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,58 +33,5 @@ export function serializeCreateReplyPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("Message", createReplyPostRequestBody.message, serializeMessage); writer.writeAdditionalData(createReplyPostRequestBody.additionalData); } -/** - * Provides operations to call the createReply method. - */ -export class CreateReplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateReplyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createReply"); - }; - /** - * Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-createreply?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateReplyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createReplyRequestBuilder - */ - public withUrl(rawUrl: string) : CreateReplyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateReplyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts b/src/users/item/mailFolders/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts deleted file mode 100644 index 65f37e6b59d..00000000000 --- a/src/users/item/mailFolders/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../models/message'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCreateReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCreateReplyAllPostRequestBody; -} -export interface CreateReplyAllPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; -} -export function deserializeIntoCreateReplyAllPostRequestBody(createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : Record void> { - return { - "comment": n => { createReplyAllPostRequestBody.comment = n.getStringValue(); }, - "message": n => { createReplyAllPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - } -} -export function serializeCreateReplyAllPostRequestBody(writer: SerializationWriter, createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : void { - writer.writeStringValue("Comment", createReplyAllPostRequestBody.comment); - writer.writeObjectValue("Message", createReplyAllPostRequestBody.message, serializeMessage); - writer.writeAdditionalData(createReplyAllPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/createReplyAll/index.ts b/src/users/item/mailFolders/item/messages/item/createReplyAll/index.ts index 33fc40b5073..80528f568ec 100644 --- a/src/users/item/mailFolders/item/messages/item/createReplyAll/index.ts +++ b/src/users/item/mailFolders/item/messages/item/createReplyAll/index.ts @@ -2,11 +2,39 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCreateReplyAllPostRequestBody, serializeCreateReplyAllPostRequestBody, type CreateReplyAllPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createCreateReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCreateReplyAllPostRequestBody; +} +export interface CreateReplyAllPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; +} +export function deserializeIntoCreateReplyAllPostRequestBody(createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : Record void> { + return { + "comment": n => { createReplyAllPostRequestBody.comment = n.getStringValue(); }, + "message": n => { createReplyAllPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + } +} +export function serializeCreateReplyAllPostRequestBody(writer: SerializationWriter, createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : void { + writer.writeStringValue("Comment", createReplyAllPostRequestBody.comment); + writer.writeObjectValue("Message", createReplyAllPostRequestBody.message, serializeMessage); + writer.writeAdditionalData(createReplyAllPostRequestBody.additionalData); +} /** * Provides operations to call the createReplyAll method. */ diff --git a/src/users/item/mailFolders/item/messages/item/extensions/count/index.ts b/src/users/item/mailFolders/item/messages/item/extensions/count/index.ts index d34b3da2074..cd22384dd51 100644 --- a/src/users/item/mailFolders/item/messages/item/extensions/count/index.ts +++ b/src/users/item/mailFolders/item/messages/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/messages/item/extensions/index.ts b/src/users/item/mailFolders/item/messages/item/extensions/index.ts index c645fd9fb44..f63ee9b5ba2 100644 --- a/src/users/item/mailFolders/item/messages/item/extensions/index.ts +++ b/src/users/item/mailFolders/item/messages/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/messages/item/extensions/item/index.ts b/src/users/item/mailFolders/item/messages/item/extensions/item/index.ts index 69c86f5c19f..965923584cf 100644 --- a/src/users/item/mailFolders/item/messages/item/extensions/item/index.ts +++ b/src/users/item/mailFolders/item/messages/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/messages/item/forward/forwardPostRequestBody.ts b/src/users/item/mailFolders/item/messages/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index 590bd9c4d4b..00000000000 --- a/src/users/item/mailFolders/item/messages/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,44 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../models/message'; -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "message": n => { forwardPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeObjectValue("Message", forwardPostRequestBody.message, serializeMessage); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/forward/index.ts b/src/users/item/mailFolders/item/messages/item/forward/index.ts index a474f31b018..3cdc6c4f87f 100644 --- a/src/users/item/mailFolders/item/messages/item/forward/index.ts +++ b/src/users/item/mailFolders/item/messages/item/forward/index.ts @@ -1,11 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../models/message'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "message": n => { forwardPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeObjectValue("Message", forwardPostRequestBody.message, serializeMessage); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/mailFolders/item/messages/item/index.ts b/src/users/item/mailFolders/item/messages/item/index.ts index 6d17f45286f..f74b1b05f48 100644 --- a/src/users/item/mailFolders/item/messages/item/index.ts +++ b/src/users/item/mailFolders/item/messages/item/index.ts @@ -2,20 +2,20 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../models/message'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CopyRequestBuilder } from './copy/'; -import { CreateForwardRequestBuilder } from './createForward/'; -import { CreateReplyRequestBuilder } from './createReply/'; -import { CreateReplyAllRequestBuilder } from './createReplyAll/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { MoveRequestBuilder } from './move/'; -import { ReplyRequestBuilder } from './reply/'; -import { ReplyAllRequestBuilder } from './replyAll/'; -import { SendRequestBuilder } from './send/'; -import { ContentRequestBuilder } from './value/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CopyRequestBuilder } from './copy'; +import { CreateForwardRequestBuilder } from './createForward'; +import { CreateReplyRequestBuilder } from './createReply'; +import { CreateReplyAllRequestBuilder } from './createReplyAll'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { MoveRequestBuilder } from './move'; +import { ReplyRequestBuilder } from './reply'; +import { ReplyAllRequestBuilder } from './replyAll'; +import { SendRequestBuilder } from './send'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/mailFolders/item/messages/item/move/index.ts b/src/users/item/mailFolders/item/messages/item/move/index.ts index 45269978514..e5ddb633846 100644 --- a/src/users/item/mailFolders/item/messages/item/move/index.ts +++ b/src/users/item/mailFolders/item/messages/item/move/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoMovePostRequestBody, serializeMovePostRequestBody, type MovePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMovePostRequestBody; +} +export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { + return { + "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, + } +} +export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The DestinationId property + */ + destinationId?: string; +} +export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { + writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); + writer.writeAdditionalData(movePostRequestBody.additionalData); +} /** * Provides operations to call the move method. */ diff --git a/src/users/item/mailFolders/item/messages/item/move/movePostRequestBody.ts b/src/users/item/mailFolders/item/messages/item/move/movePostRequestBody.ts deleted file mode 100644 index 93a1c3bb520..00000000000 --- a/src/users/item/mailFolders/item/messages/item/move/movePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMovePostRequestBody; -} -export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { - return { - "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, - } -} -export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The DestinationId property - */ - destinationId?: string; -} -export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { - writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); - writer.writeAdditionalData(movePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/reply/index.ts b/src/users/item/mailFolders/item/messages/item/reply/index.ts index cf661749056..e9982fd5c22 100644 --- a/src/users/item/mailFolders/item/messages/item/reply/index.ts +++ b/src/users/item/mailFolders/item/messages/item/reply/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../models/message'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "comment": n => { replyPostRequestBody.comment = n.getStringValue(); }, + "message": n => { replyPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeStringValue("Comment", replyPostRequestBody.comment); + writer.writeObjectValue("Message", replyPostRequestBody.message, serializeMessage); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ diff --git a/src/users/item/mailFolders/item/messages/item/reply/replyPostRequestBody.ts b/src/users/item/mailFolders/item/messages/item/reply/replyPostRequestBody.ts deleted file mode 100644 index 3d3e7bdd80f..00000000000 --- a/src/users/item/mailFolders/item/messages/item/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../models/message'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "comment": n => { replyPostRequestBody.comment = n.getStringValue(); }, - "message": n => { replyPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeStringValue("Comment", replyPostRequestBody.comment); - writer.writeObjectValue("Message", replyPostRequestBody.message, serializeMessage); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/replyAll/index.ts b/src/users/item/mailFolders/item/messages/item/replyAll/index.ts index 66876502e3f..8490a1eacd9 100644 --- a/src/users/item/mailFolders/item/messages/item/replyAll/index.ts +++ b/src/users/item/mailFolders/item/messages/item/replyAll/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../../../models/message'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,57 +33,5 @@ export function serializeReplyAllPostRequestBody(writer: SerializationWriter, re writer.writeObjectValue("Message", replyAllPostRequestBody.message, serializeMessage); writer.writeAdditionalData(replyAllPostRequestBody.additionalData); } -/** - * Provides operations to call the replyAll method. - */ -export class ReplyAllRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ReplyAllRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/replyAll"); - }; - /** - * Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/message-replyall?view=graph-rest-1.0|Find more info here} - */ - public post(body: ReplyAllPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ReplyAllPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeReplyAllPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a replyAllRequestBuilder - */ - public withUrl(rawUrl: string) : ReplyAllRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ReplyAllRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/mailFolders/item/messages/item/send/index.ts b/src/users/item/mailFolders/item/messages/item/send/index.ts index 30ad16b964e..6be2e51e99b 100644 --- a/src/users/item/mailFolders/item/messages/item/send/index.ts +++ b/src/users/item/mailFolders/item/messages/item/send/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/messages/item/value/index.ts b/src/users/item/mailFolders/item/messages/item/value/index.ts index 8a682764641..0f836b242ac 100644 --- a/src/users/item/mailFolders/item/messages/item/value/index.ts +++ b/src/users/item/mailFolders/item/messages/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/mailFolders/item/move/index.ts b/src/users/item/mailFolders/item/move/index.ts index 292b03683f4..9b17d666383 100644 --- a/src/users/item/mailFolders/item/move/index.ts +++ b/src/users/item/mailFolders/item/move/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailFolderFromDiscriminatorValue, deserializeIntoMailFolder, serializeMailFolder, type MailFolder } from '../../../../../models/mailFolder'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoMovePostRequestBody, serializeMovePostRequestBody, type MovePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMovePostRequestBody; +} +export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { + return { + "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, + } +} +export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The DestinationId property + */ + destinationId?: string; +} +export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { + writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); + writer.writeAdditionalData(movePostRequestBody.additionalData); +} /** * Provides operations to call the move method. */ diff --git a/src/users/item/mailFolders/item/move/movePostRequestBody.ts b/src/users/item/mailFolders/item/move/movePostRequestBody.ts deleted file mode 100644 index 93a1c3bb520..00000000000 --- a/src/users/item/mailFolders/item/move/movePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMovePostRequestBody; -} -export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { - return { - "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, - } -} -export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The DestinationId property - */ - destinationId?: string; -} -export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { - writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); - writer.writeAdditionalData(movePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/mailboxSettings/index.ts b/src/users/item/mailboxSettings/index.ts index b6fa9fb654b..f6a14fd6c57 100644 --- a/src/users/item/mailboxSettings/index.ts +++ b/src/users/item/mailboxSettings/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMailboxSettingsFromDiscriminatorValue, deserializeIntoMailboxSettings, serializeMailboxSettings, type MailboxSettings } from '../../../models/mailboxSettings'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedAppRegistrations/count/index.ts b/src/users/item/managedAppRegistrations/count/index.ts index d607767044a..4e67415bff1 100644 --- a/src/users/item/managedAppRegistrations/count/index.ts +++ b/src/users/item/managedAppRegistrations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedAppRegistrations/index.ts b/src/users/item/managedAppRegistrations/index.ts index 58d822c77e5..e0e32953a20 100644 --- a/src/users/item/managedAppRegistrations/index.ts +++ b/src/users/item/managedAppRegistrations/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAppRegistrationCollectionResponse } from '../../../models/'; +import { type ManagedAppRegistrationCollectionResponse } from '../../../models'; import { createManagedAppRegistrationCollectionResponseFromDiscriminatorValue } from '../../../models/managedAppRegistrationCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedAppRegistrationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedAppRegistrationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedAppRegistrationsRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedAppRegistrations/item/index.ts b/src/users/item/managedAppRegistrations/item/index.ts index 80effc02655..3162d37b6c0 100644 --- a/src/users/item/managedAppRegistrations/item/index.ts +++ b/src/users/item/managedAppRegistrations/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedAppRegistration } from '../../../../models/'; +import { type ManagedAppRegistration } from '../../../../models'; import { createManagedAppRegistrationFromDiscriminatorValue } from '../../../../models/managedAppRegistration'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/count/index.ts b/src/users/item/managedDevices/count/index.ts index ba95b9226ad..8a075b394e5 100644 --- a/src/users/item/managedDevices/count/index.ts +++ b/src/users/item/managedDevices/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/index.ts b/src/users/item/managedDevices/index.ts index 87169c327b1..e4d5a75b922 100644 --- a/src/users/item/managedDevices/index.ts +++ b/src/users/item/managedDevices/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ManagedDeviceCollectionResponse } from '../../../models/'; +import { type ManagedDeviceCollectionResponse } from '../../../models'; import { createManagedDeviceFromDiscriminatorValue, deserializeIntoManagedDevice, serializeManagedDevice, type ManagedDevice } from '../../../models/managedDevice'; import { createManagedDeviceCollectionResponseFromDiscriminatorValue } from '../../../models/managedDeviceCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ManagedDeviceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ManagedDeviceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedDevicesRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedDevices/item/bypassActivationLock/index.ts b/src/users/item/managedDevices/item/bypassActivationLock/index.ts index 3465a09171c..d1db35c9ce8 100644 --- a/src/users/item/managedDevices/item/bypassActivationLock/index.ts +++ b/src/users/item/managedDevices/item/bypassActivationLock/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/cleanWindowsDevice/cleanWindowsDevicePostRequestBody.ts b/src/users/item/managedDevices/item/cleanWindowsDevice/cleanWindowsDevicePostRequestBody.ts deleted file mode 100644 index 02c64f964fd..00000000000 --- a/src/users/item/managedDevices/item/cleanWindowsDevice/cleanWindowsDevicePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CleanWindowsDevicePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The keepUserData property - */ - keepUserData?: boolean; -} -export function createCleanWindowsDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCleanWindowsDevicePostRequestBody; -} -export function deserializeIntoCleanWindowsDevicePostRequestBody(cleanWindowsDevicePostRequestBody: CleanWindowsDevicePostRequestBody | undefined = {} as CleanWindowsDevicePostRequestBody) : Record void> { - return { - "keepUserData": n => { cleanWindowsDevicePostRequestBody.keepUserData = n.getBooleanValue(); }, - } -} -export function serializeCleanWindowsDevicePostRequestBody(writer: SerializationWriter, cleanWindowsDevicePostRequestBody: CleanWindowsDevicePostRequestBody | undefined = {} as CleanWindowsDevicePostRequestBody) : void { - writer.writeBooleanValue("keepUserData", cleanWindowsDevicePostRequestBody.keepUserData); - writer.writeAdditionalData(cleanWindowsDevicePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/managedDevices/item/cleanWindowsDevice/index.ts b/src/users/item/managedDevices/item/cleanWindowsDevice/index.ts index 639ad03ec25..1c2bd83b79a 100644 --- a/src/users/item/managedDevices/item/cleanWindowsDevice/index.ts +++ b/src/users/item/managedDevices/item/cleanWindowsDevice/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCleanWindowsDevicePostRequestBody, serializeCleanWindowsDevicePostRequestBody, type CleanWindowsDevicePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CleanWindowsDevicePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The keepUserData property + */ + keepUserData?: boolean; +} +export function createCleanWindowsDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCleanWindowsDevicePostRequestBody; +} +export function deserializeIntoCleanWindowsDevicePostRequestBody(cleanWindowsDevicePostRequestBody: CleanWindowsDevicePostRequestBody | undefined = {} as CleanWindowsDevicePostRequestBody) : Record void> { + return { + "keepUserData": n => { cleanWindowsDevicePostRequestBody.keepUserData = n.getBooleanValue(); }, + } +} +export function serializeCleanWindowsDevicePostRequestBody(writer: SerializationWriter, cleanWindowsDevicePostRequestBody: CleanWindowsDevicePostRequestBody | undefined = {} as CleanWindowsDevicePostRequestBody) : void { + writer.writeBooleanValue("keepUserData", cleanWindowsDevicePostRequestBody.keepUserData); + writer.writeAdditionalData(cleanWindowsDevicePostRequestBody.additionalData); +} /** * Provides operations to call the cleanWindowsDevice method. */ diff --git a/src/users/item/managedDevices/item/deleteUserFromSharedAppleDevice/deleteUserFromSharedAppleDevicePostRequestBody.ts b/src/users/item/managedDevices/item/deleteUserFromSharedAppleDevice/deleteUserFromSharedAppleDevicePostRequestBody.ts deleted file mode 100644 index 124aae1c805..00000000000 --- a/src/users/item/managedDevices/item/deleteUserFromSharedAppleDevice/deleteUserFromSharedAppleDevicePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createDeleteUserFromSharedAppleDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody; -} -export interface DeleteUserFromSharedAppleDevicePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The userPrincipalName property - */ - userPrincipalName?: string; -} -export function deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody(deleteUserFromSharedAppleDevicePostRequestBody: DeleteUserFromSharedAppleDevicePostRequestBody | undefined = {} as DeleteUserFromSharedAppleDevicePostRequestBody) : Record void> { - return { - "userPrincipalName": n => { deleteUserFromSharedAppleDevicePostRequestBody.userPrincipalName = n.getStringValue(); }, - } -} -export function serializeDeleteUserFromSharedAppleDevicePostRequestBody(writer: SerializationWriter, deleteUserFromSharedAppleDevicePostRequestBody: DeleteUserFromSharedAppleDevicePostRequestBody | undefined = {} as DeleteUserFromSharedAppleDevicePostRequestBody) : void { - writer.writeStringValue("userPrincipalName", deleteUserFromSharedAppleDevicePostRequestBody.userPrincipalName); - writer.writeAdditionalData(deleteUserFromSharedAppleDevicePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/managedDevices/item/deleteUserFromSharedAppleDevice/index.ts b/src/users/item/managedDevices/item/deleteUserFromSharedAppleDevice/index.ts index 881ded48252..7f35aad9a79 100644 --- a/src/users/item/managedDevices/item/deleteUserFromSharedAppleDevice/index.ts +++ b/src/users/item/managedDevices/item/deleteUserFromSharedAppleDevice/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody, serializeDeleteUserFromSharedAppleDevicePostRequestBody, type DeleteUserFromSharedAppleDevicePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createDeleteUserFromSharedAppleDevicePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody; +} +export interface DeleteUserFromSharedAppleDevicePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The userPrincipalName property + */ + userPrincipalName?: string; +} +export function deserializeIntoDeleteUserFromSharedAppleDevicePostRequestBody(deleteUserFromSharedAppleDevicePostRequestBody: DeleteUserFromSharedAppleDevicePostRequestBody | undefined = {} as DeleteUserFromSharedAppleDevicePostRequestBody) : Record void> { + return { + "userPrincipalName": n => { deleteUserFromSharedAppleDevicePostRequestBody.userPrincipalName = n.getStringValue(); }, + } +} +export function serializeDeleteUserFromSharedAppleDevicePostRequestBody(writer: SerializationWriter, deleteUserFromSharedAppleDevicePostRequestBody: DeleteUserFromSharedAppleDevicePostRequestBody | undefined = {} as DeleteUserFromSharedAppleDevicePostRequestBody) : void { + writer.writeStringValue("userPrincipalName", deleteUserFromSharedAppleDevicePostRequestBody.userPrincipalName); + writer.writeAdditionalData(deleteUserFromSharedAppleDevicePostRequestBody.additionalData); +} /** * Provides operations to call the deleteUserFromSharedAppleDevice method. */ diff --git a/src/users/item/managedDevices/item/deviceCategory/index.ts b/src/users/item/managedDevices/item/deviceCategory/index.ts index 02b9de0a265..80acf705e1f 100644 --- a/src/users/item/managedDevices/item/deviceCategory/index.ts +++ b/src/users/item/managedDevices/item/deviceCategory/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCategoryFromDiscriminatorValue, deserializeIntoDeviceCategory, serializeDeviceCategory, type DeviceCategory } from '../../../../../models/deviceCategory'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/deviceCompliancePolicyStates/count/index.ts b/src/users/item/managedDevices/item/deviceCompliancePolicyStates/count/index.ts index d1eb5909b5c..2c1d83ca5d2 100644 --- a/src/users/item/managedDevices/item/deviceCompliancePolicyStates/count/index.ts +++ b/src/users/item/managedDevices/item/deviceCompliancePolicyStates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/deviceCompliancePolicyStates/index.ts b/src/users/item/managedDevices/item/deviceCompliancePolicyStates/index.ts index a320cc22fa6..ea0ff7d58c9 100644 --- a/src/users/item/managedDevices/item/deviceCompliancePolicyStates/index.ts +++ b/src/users/item/managedDevices/item/deviceCompliancePolicyStates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCompliancePolicyStateCollectionResponse } from '../../../../../models/'; +import { type DeviceCompliancePolicyStateCollectionResponse } from '../../../../../models'; import { createDeviceCompliancePolicyStateFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicyState, serializeDeviceCompliancePolicyState, type DeviceCompliancePolicyState } from '../../../../../models/deviceCompliancePolicyState'; import { createDeviceCompliancePolicyStateCollectionResponseFromDiscriminatorValue } from '../../../../../models/deviceCompliancePolicyStateCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceCompliancePolicyStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceCompliancePolicyStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceCompliancePolicyStatesRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedDevices/item/deviceCompliancePolicyStates/item/index.ts b/src/users/item/managedDevices/item/deviceCompliancePolicyStates/item/index.ts index e491956efe3..3aecd3b144b 100644 --- a/src/users/item/managedDevices/item/deviceCompliancePolicyStates/item/index.ts +++ b/src/users/item/managedDevices/item/deviceCompliancePolicyStates/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceCompliancePolicyStateFromDiscriminatorValue, deserializeIntoDeviceCompliancePolicyState, serializeDeviceCompliancePolicyState, type DeviceCompliancePolicyState } from '../../../../../../models/deviceCompliancePolicyState'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/deviceConfigurationStates/count/index.ts b/src/users/item/managedDevices/item/deviceConfigurationStates/count/index.ts index 52209e26af0..093c2540c3f 100644 --- a/src/users/item/managedDevices/item/deviceConfigurationStates/count/index.ts +++ b/src/users/item/managedDevices/item/deviceConfigurationStates/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/deviceConfigurationStates/index.ts b/src/users/item/managedDevices/item/deviceConfigurationStates/index.ts index d301dac945e..7399f1c88d9 100644 --- a/src/users/item/managedDevices/item/deviceConfigurationStates/index.ts +++ b/src/users/item/managedDevices/item/deviceConfigurationStates/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceConfigurationStateCollectionResponse } from '../../../../../models/'; +import { type DeviceConfigurationStateCollectionResponse } from '../../../../../models'; import { createDeviceConfigurationStateFromDiscriminatorValue, deserializeIntoDeviceConfigurationState, serializeDeviceConfigurationState, type DeviceConfigurationState } from '../../../../../models/deviceConfigurationState'; import { createDeviceConfigurationStateCollectionResponseFromDiscriminatorValue } from '../../../../../models/deviceConfigurationStateCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceConfigurationStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceConfigurationStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceConfigurationStatesRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedDevices/item/deviceConfigurationStates/item/index.ts b/src/users/item/managedDevices/item/deviceConfigurationStates/item/index.ts index f68c9938d56..8cb2054ee8c 100644 --- a/src/users/item/managedDevices/item/deviceConfigurationStates/item/index.ts +++ b/src/users/item/managedDevices/item/deviceConfigurationStates/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceConfigurationStateFromDiscriminatorValue, deserializeIntoDeviceConfigurationState, serializeDeviceConfigurationState, type DeviceConfigurationState } from '../../../../../../models/deviceConfigurationState'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/disableLostMode/index.ts b/src/users/item/managedDevices/item/disableLostMode/index.ts index 79182a97bbd..fea75583c59 100644 --- a/src/users/item/managedDevices/item/disableLostMode/index.ts +++ b/src/users/item/managedDevices/item/disableLostMode/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/index.ts b/src/users/item/managedDevices/item/index.ts index 75f9e645c1a..28a253a6c16 100644 --- a/src/users/item/managedDevices/item/index.ts +++ b/src/users/item/managedDevices/item/index.ts @@ -2,32 +2,32 @@ // eslint-disable // Generated by Microsoft Kiota import { createManagedDeviceFromDiscriminatorValue, deserializeIntoManagedDevice, serializeManagedDevice, type ManagedDevice } from '../../../../models/managedDevice'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BypassActivationLockRequestBuilder } from './bypassActivationLock/'; -import { CleanWindowsDeviceRequestBuilder } from './cleanWindowsDevice/'; -import { DeleteUserFromSharedAppleDeviceRequestBuilder } from './deleteUserFromSharedAppleDevice/'; -import { DeviceCategoryRequestBuilder } from './deviceCategory/'; -import { DeviceCompliancePolicyStatesRequestBuilder } from './deviceCompliancePolicyStates/'; -import { DeviceConfigurationStatesRequestBuilder } from './deviceConfigurationStates/'; -import { DisableLostModeRequestBuilder } from './disableLostMode/'; -import { LocateDeviceRequestBuilder } from './locateDevice/'; -import { LogCollectionRequestsRequestBuilder } from './logCollectionRequests/'; -import { LogoutSharedAppleDeviceActiveUserRequestBuilder } from './logoutSharedAppleDeviceActiveUser/'; -import { RebootNowRequestBuilder } from './rebootNow/'; -import { RecoverPasscodeRequestBuilder } from './recoverPasscode/'; -import { RemoteLockRequestBuilder } from './remoteLock/'; -import { RequestRemoteAssistanceRequestBuilder } from './requestRemoteAssistance/'; -import { ResetPasscodeRequestBuilder } from './resetPasscode/'; -import { RetireRequestBuilder } from './retire/'; -import { ShutDownRequestBuilder } from './shutDown/'; -import { SyncDeviceRequestBuilder } from './syncDevice/'; -import { UpdateWindowsDeviceAccountRequestBuilder } from './updateWindowsDeviceAccount/'; -import { UsersRequestBuilder } from './users/'; -import { WindowsDefenderScanRequestBuilder } from './windowsDefenderScan/'; -import { WindowsDefenderUpdateSignaturesRequestBuilder } from './windowsDefenderUpdateSignatures/'; -import { WindowsProtectionStateRequestBuilder } from './windowsProtectionState/'; -import { WipeRequestBuilder } from './wipe/'; +import { BypassActivationLockRequestBuilder } from './bypassActivationLock'; +import { CleanWindowsDeviceRequestBuilder } from './cleanWindowsDevice'; +import { DeleteUserFromSharedAppleDeviceRequestBuilder } from './deleteUserFromSharedAppleDevice'; +import { DeviceCategoryRequestBuilder } from './deviceCategory'; +import { DeviceCompliancePolicyStatesRequestBuilder } from './deviceCompliancePolicyStates'; +import { DeviceConfigurationStatesRequestBuilder } from './deviceConfigurationStates'; +import { DisableLostModeRequestBuilder } from './disableLostMode'; +import { LocateDeviceRequestBuilder } from './locateDevice'; +import { LogCollectionRequestsRequestBuilder } from './logCollectionRequests'; +import { LogoutSharedAppleDeviceActiveUserRequestBuilder } from './logoutSharedAppleDeviceActiveUser'; +import { RebootNowRequestBuilder } from './rebootNow'; +import { RecoverPasscodeRequestBuilder } from './recoverPasscode'; +import { RemoteLockRequestBuilder } from './remoteLock'; +import { RequestRemoteAssistanceRequestBuilder } from './requestRemoteAssistance'; +import { ResetPasscodeRequestBuilder } from './resetPasscode'; +import { RetireRequestBuilder } from './retire'; +import { ShutDownRequestBuilder } from './shutDown'; +import { SyncDeviceRequestBuilder } from './syncDevice'; +import { UpdateWindowsDeviceAccountRequestBuilder } from './updateWindowsDeviceAccount'; +import { UsersRequestBuilder } from './users'; +import { WindowsDefenderScanRequestBuilder } from './windowsDefenderScan'; +import { WindowsDefenderUpdateSignaturesRequestBuilder } from './windowsDefenderUpdateSignatures'; +import { WindowsProtectionStateRequestBuilder } from './windowsProtectionState'; +import { WipeRequestBuilder } from './wipe'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagedDeviceItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedDevices/item/locateDevice/index.ts b/src/users/item/managedDevices/item/locateDevice/index.ts index b01cf81d935..faf6061e88c 100644 --- a/src/users/item/managedDevices/item/locateDevice/index.ts +++ b/src/users/item/managedDevices/item/locateDevice/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/logCollectionRequests/count/index.ts b/src/users/item/managedDevices/item/logCollectionRequests/count/index.ts index ba759be0ecc..0129403816b 100644 --- a/src/users/item/managedDevices/item/logCollectionRequests/count/index.ts +++ b/src/users/item/managedDevices/item/logCollectionRequests/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/logCollectionRequests/index.ts b/src/users/item/managedDevices/item/logCollectionRequests/index.ts index 36ae3358429..5ccb793d043 100644 --- a/src/users/item/managedDevices/item/logCollectionRequests/index.ts +++ b/src/users/item/managedDevices/item/logCollectionRequests/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceLogCollectionResponseCollectionResponse } from '../../../../../models/'; +import { type DeviceLogCollectionResponseCollectionResponse } from '../../../../../models'; import { createDeviceLogCollectionResponseFromDiscriminatorValue, deserializeIntoDeviceLogCollectionResponse, serializeDeviceLogCollectionResponse, type DeviceLogCollectionResponse } from '../../../../../models/deviceLogCollectionResponse'; import { createDeviceLogCollectionResponseCollectionResponseFromDiscriminatorValue } from '../../../../../models/deviceLogCollectionResponseCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeviceLogCollectionResponseItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeviceLogCollectionResponseItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LogCollectionRequestsRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedDevices/item/logCollectionRequests/item/createDownloadUrl/createDownloadUrlPostResponse.ts b/src/users/item/managedDevices/item/logCollectionRequests/item/createDownloadUrl/createDownloadUrlPostResponse.ts deleted file mode 100644 index ada1ae34164..00000000000 --- a/src/users/item/managedDevices/item/logCollectionRequests/item/createDownloadUrl/createDownloadUrlPostResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCreateDownloadUrlPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCreateDownloadUrlPostResponse; -} -export interface CreateDownloadUrlPostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: string; -} -export function deserializeIntoCreateDownloadUrlPostResponse(createDownloadUrlPostResponse: CreateDownloadUrlPostResponse | undefined = {} as CreateDownloadUrlPostResponse) : Record void> { - return { - "value": n => { createDownloadUrlPostResponse.value = n.getStringValue(); }, - } -} -export function serializeCreateDownloadUrlPostResponse(writer: SerializationWriter, createDownloadUrlPostResponse: CreateDownloadUrlPostResponse | undefined = {} as CreateDownloadUrlPostResponse) : void { - writer.writeStringValue("value", createDownloadUrlPostResponse.value); - writer.writeAdditionalData(createDownloadUrlPostResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/managedDevices/item/logCollectionRequests/item/createDownloadUrl/index.ts b/src/users/item/managedDevices/item/logCollectionRequests/item/createDownloadUrl/index.ts index 6e4bcee6cf8..2d0124f698b 100644 --- a/src/users/item/managedDevices/item/logCollectionRequests/item/createDownloadUrl/index.ts +++ b/src/users/item/managedDevices/item/logCollectionRequests/item/createDownloadUrl/index.ts @@ -1,7 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateDownloadUrlPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -26,5 +28,53 @@ export function serializeCreateDownloadUrlPostResponse(writer: SerializationWrit writer.writeStringValue("value", createDownloadUrlPostResponse.value); writer.writeAdditionalData(createDownloadUrlPostResponse.additionalData); } +/** + * Provides operations to call the createDownloadUrl method. + */ +export class CreateDownloadUrlRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CreateDownloadUrlRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/managedDevices/{managedDevice%2Did}/logCollectionRequests/{deviceLogCollectionResponse%2Did}/createDownloadUrl"); + }; + /** + * Invoke action createDownloadUrl + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of CreateDownloadUrlPostResponse + */ + public post(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createCreateDownloadUrlPostResponseFromDiscriminatorValue, errorMapping); + }; + /** + * Invoke action createDownloadUrl + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + }; + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @returns a createDownloadUrlRequestBuilder + */ + public withUrl(rawUrl: string) : CreateDownloadUrlRequestBuilder { + if(!rawUrl) throw new Error("rawUrl cannot be undefined"); + return new CreateDownloadUrlRequestBuilder(rawUrl, this.requestAdapter); + }; +} // tslint:enable // eslint-enable diff --git a/src/users/item/managedDevices/item/logCollectionRequests/item/index.ts b/src/users/item/managedDevices/item/logCollectionRequests/item/index.ts index 2fb04c0587f..51c68e22a61 100644 --- a/src/users/item/managedDevices/item/logCollectionRequests/item/index.ts +++ b/src/users/item/managedDevices/item/logCollectionRequests/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createDeviceLogCollectionResponseFromDiscriminatorValue, deserializeIntoDeviceLogCollectionResponse, serializeDeviceLogCollectionResponse, type DeviceLogCollectionResponse } from '../../../../../../models/deviceLogCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CreateDownloadUrlRequestBuilder } from './createDownloadUrl/'; +import { CreateDownloadUrlRequestBuilder } from './createDownloadUrl'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DeviceLogCollectionResponseItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedDevices/item/logoutSharedAppleDeviceActiveUser/index.ts b/src/users/item/managedDevices/item/logoutSharedAppleDeviceActiveUser/index.ts index 94269d752a3..701d639c81b 100644 --- a/src/users/item/managedDevices/item/logoutSharedAppleDeviceActiveUser/index.ts +++ b/src/users/item/managedDevices/item/logoutSharedAppleDeviceActiveUser/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/rebootNow/index.ts b/src/users/item/managedDevices/item/rebootNow/index.ts index 772853f2f70..d1307425dcf 100644 --- a/src/users/item/managedDevices/item/rebootNow/index.ts +++ b/src/users/item/managedDevices/item/rebootNow/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/recoverPasscode/index.ts b/src/users/item/managedDevices/item/recoverPasscode/index.ts index 6a34ddb00af..b26a1885d08 100644 --- a/src/users/item/managedDevices/item/recoverPasscode/index.ts +++ b/src/users/item/managedDevices/item/recoverPasscode/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/remoteLock/index.ts b/src/users/item/managedDevices/item/remoteLock/index.ts index 03990d86071..fdeea059b39 100644 --- a/src/users/item/managedDevices/item/remoteLock/index.ts +++ b/src/users/item/managedDevices/item/remoteLock/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/requestRemoteAssistance/index.ts b/src/users/item/managedDevices/item/requestRemoteAssistance/index.ts index 7117ccbc4b0..907da6fddd4 100644 --- a/src/users/item/managedDevices/item/requestRemoteAssistance/index.ts +++ b/src/users/item/managedDevices/item/requestRemoteAssistance/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/resetPasscode/index.ts b/src/users/item/managedDevices/item/resetPasscode/index.ts index e7f142a9efa..80ae923d185 100644 --- a/src/users/item/managedDevices/item/resetPasscode/index.ts +++ b/src/users/item/managedDevices/item/resetPasscode/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/retire/index.ts b/src/users/item/managedDevices/item/retire/index.ts index 1b27727e695..650d88dbc1b 100644 --- a/src/users/item/managedDevices/item/retire/index.ts +++ b/src/users/item/managedDevices/item/retire/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/shutDown/index.ts b/src/users/item/managedDevices/item/shutDown/index.ts index 9ede5743bf7..c8969a32b00 100644 --- a/src/users/item/managedDevices/item/shutDown/index.ts +++ b/src/users/item/managedDevices/item/shutDown/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/syncDevice/index.ts b/src/users/item/managedDevices/item/syncDevice/index.ts index 1d81eccda3b..c3325c74d1c 100644 --- a/src/users/item/managedDevices/item/syncDevice/index.ts +++ b/src/users/item/managedDevices/item/syncDevice/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/updateWindowsDeviceAccount/index.ts b/src/users/item/managedDevices/item/updateWindowsDeviceAccount/index.ts index 867b2a4e1ef..7fb2773c8f1 100644 --- a/src/users/item/managedDevices/item/updateWindowsDeviceAccount/index.ts +++ b/src/users/item/managedDevices/item/updateWindowsDeviceAccount/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoUpdateWindowsDeviceAccountPostRequestBody, serializeUpdateWindowsDeviceAccountPostRequestBody, type UpdateWindowsDeviceAccountPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createUpdateWindowsDeviceAccountActionParameterFromDiscriminatorValue, serializeUpdateWindowsDeviceAccountActionParameter, type UpdateWindowsDeviceAccountActionParameter } from '../../../../../models/updateWindowsDeviceAccountActionParameter'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createUpdateWindowsDeviceAccountPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoUpdateWindowsDeviceAccountPostRequestBody; +} +export function deserializeIntoUpdateWindowsDeviceAccountPostRequestBody(updateWindowsDeviceAccountPostRequestBody: UpdateWindowsDeviceAccountPostRequestBody | undefined = {} as UpdateWindowsDeviceAccountPostRequestBody) : Record void> { + return { + "updateWindowsDeviceAccountActionParameter": n => { updateWindowsDeviceAccountPostRequestBody.updateWindowsDeviceAccountActionParameter = n.getObjectValue(createUpdateWindowsDeviceAccountActionParameterFromDiscriminatorValue); }, + } +} +export function serializeUpdateWindowsDeviceAccountPostRequestBody(writer: SerializationWriter, updateWindowsDeviceAccountPostRequestBody: UpdateWindowsDeviceAccountPostRequestBody | undefined = {} as UpdateWindowsDeviceAccountPostRequestBody) : void { + writer.writeObjectValue("updateWindowsDeviceAccountActionParameter", updateWindowsDeviceAccountPostRequestBody.updateWindowsDeviceAccountActionParameter, serializeUpdateWindowsDeviceAccountActionParameter); + writer.writeAdditionalData(updateWindowsDeviceAccountPostRequestBody.additionalData); +} +export interface UpdateWindowsDeviceAccountPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The updateWindowsDeviceAccountActionParameter property + */ + updateWindowsDeviceAccountActionParameter?: UpdateWindowsDeviceAccountActionParameter; +} /** * Provides operations to call the updateWindowsDeviceAccount method. */ diff --git a/src/users/item/managedDevices/item/updateWindowsDeviceAccount/updateWindowsDeviceAccountPostRequestBody.ts b/src/users/item/managedDevices/item/updateWindowsDeviceAccount/updateWindowsDeviceAccountPostRequestBody.ts deleted file mode 100644 index ab866193401..00000000000 --- a/src/users/item/managedDevices/item/updateWindowsDeviceAccount/updateWindowsDeviceAccountPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createUpdateWindowsDeviceAccountActionParameterFromDiscriminatorValue, serializeUpdateWindowsDeviceAccountActionParameter, type UpdateWindowsDeviceAccountActionParameter } from '../../../../../models/updateWindowsDeviceAccountActionParameter'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createUpdateWindowsDeviceAccountPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoUpdateWindowsDeviceAccountPostRequestBody; -} -export function deserializeIntoUpdateWindowsDeviceAccountPostRequestBody(updateWindowsDeviceAccountPostRequestBody: UpdateWindowsDeviceAccountPostRequestBody | undefined = {} as UpdateWindowsDeviceAccountPostRequestBody) : Record void> { - return { - "updateWindowsDeviceAccountActionParameter": n => { updateWindowsDeviceAccountPostRequestBody.updateWindowsDeviceAccountActionParameter = n.getObjectValue(createUpdateWindowsDeviceAccountActionParameterFromDiscriminatorValue); }, - } -} -export function serializeUpdateWindowsDeviceAccountPostRequestBody(writer: SerializationWriter, updateWindowsDeviceAccountPostRequestBody: UpdateWindowsDeviceAccountPostRequestBody | undefined = {} as UpdateWindowsDeviceAccountPostRequestBody) : void { - writer.writeObjectValue("updateWindowsDeviceAccountActionParameter", updateWindowsDeviceAccountPostRequestBody.updateWindowsDeviceAccountActionParameter, serializeUpdateWindowsDeviceAccountActionParameter); - writer.writeAdditionalData(updateWindowsDeviceAccountPostRequestBody.additionalData); -} -export interface UpdateWindowsDeviceAccountPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The updateWindowsDeviceAccountActionParameter property - */ - updateWindowsDeviceAccountActionParameter?: UpdateWindowsDeviceAccountActionParameter; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/managedDevices/item/users/index.ts b/src/users/item/managedDevices/item/users/index.ts index 01d3ab3b43b..8485f9d0302 100644 --- a/src/users/item/managedDevices/item/users/index.ts +++ b/src/users/item/managedDevices/item/users/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserCollectionResponse } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type UserCollectionResponse } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserCollectionResponseFromDiscriminatorValue } from '../../../../../models/userCollectionResponse'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/windowsDefenderScan/index.ts b/src/users/item/managedDevices/item/windowsDefenderScan/index.ts index f754a5ec8d5..c3fb48c4ebb 100644 --- a/src/users/item/managedDevices/item/windowsDefenderScan/index.ts +++ b/src/users/item/managedDevices/item/windowsDefenderScan/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoWindowsDefenderScanPostRequestBody, serializeWindowsDefenderScanPostRequestBody, type WindowsDefenderScanPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createWindowsDefenderScanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoWindowsDefenderScanPostRequestBody; +} +export function deserializeIntoWindowsDefenderScanPostRequestBody(windowsDefenderScanPostRequestBody: WindowsDefenderScanPostRequestBody | undefined = {} as WindowsDefenderScanPostRequestBody) : Record void> { + return { + "quickScan": n => { windowsDefenderScanPostRequestBody.quickScan = n.getBooleanValue(); }, + } +} +export function serializeWindowsDefenderScanPostRequestBody(writer: SerializationWriter, windowsDefenderScanPostRequestBody: WindowsDefenderScanPostRequestBody | undefined = {} as WindowsDefenderScanPostRequestBody) : void { + writer.writeBooleanValue("quickScan", windowsDefenderScanPostRequestBody.quickScan); + writer.writeAdditionalData(windowsDefenderScanPostRequestBody.additionalData); +} +export interface WindowsDefenderScanPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The quickScan property + */ + quickScan?: boolean; +} /** * Provides operations to call the windowsDefenderScan method. */ diff --git a/src/users/item/managedDevices/item/windowsDefenderScan/windowsDefenderScanPostRequestBody.ts b/src/users/item/managedDevices/item/windowsDefenderScan/windowsDefenderScanPostRequestBody.ts deleted file mode 100644 index d4c649f7eca..00000000000 --- a/src/users/item/managedDevices/item/windowsDefenderScan/windowsDefenderScanPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createWindowsDefenderScanPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoWindowsDefenderScanPostRequestBody; -} -export function deserializeIntoWindowsDefenderScanPostRequestBody(windowsDefenderScanPostRequestBody: WindowsDefenderScanPostRequestBody | undefined = {} as WindowsDefenderScanPostRequestBody) : Record void> { - return { - "quickScan": n => { windowsDefenderScanPostRequestBody.quickScan = n.getBooleanValue(); }, - } -} -export function serializeWindowsDefenderScanPostRequestBody(writer: SerializationWriter, windowsDefenderScanPostRequestBody: WindowsDefenderScanPostRequestBody | undefined = {} as WindowsDefenderScanPostRequestBody) : void { - writer.writeBooleanValue("quickScan", windowsDefenderScanPostRequestBody.quickScan); - writer.writeAdditionalData(windowsDefenderScanPostRequestBody.additionalData); -} -export interface WindowsDefenderScanPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The quickScan property - */ - quickScan?: boolean; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/managedDevices/item/windowsDefenderUpdateSignatures/index.ts b/src/users/item/managedDevices/item/windowsDefenderUpdateSignatures/index.ts index c0ff9ef45f0..b0d5d6fbe0d 100644 --- a/src/users/item/managedDevices/item/windowsDefenderUpdateSignatures/index.ts +++ b/src/users/item/managedDevices/item/windowsDefenderUpdateSignatures/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/count/index.ts b/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/count/index.ts index 8f84c4a813c..56fcf82cfe8 100644 --- a/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/count/index.ts +++ b/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/index.ts b/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/index.ts index 611119122af..0844db5c9d1 100644 --- a/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/index.ts +++ b/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type WindowsDeviceMalwareStateCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type WindowsDeviceMalwareStateCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createWindowsDeviceMalwareStateFromDiscriminatorValue, deserializeIntoWindowsDeviceMalwareState, serializeWindowsDeviceMalwareState, type WindowsDeviceMalwareState } from '../../../../../../models/windowsDeviceMalwareState'; import { createWindowsDeviceMalwareStateCollectionResponseFromDiscriminatorValue } from '../../../../../../models/windowsDeviceMalwareStateCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { WindowsDeviceMalwareStateItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { WindowsDeviceMalwareStateItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DetectedMalwareStateRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/item/index.ts b/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/item/index.ts index f91a5dd213d..f1797034ee4 100644 --- a/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/item/index.ts +++ b/src/users/item/managedDevices/item/windowsProtectionState/detectedMalwareState/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createWindowsDeviceMalwareStateFromDiscriminatorValue, deserializeIntoWindowsDeviceMalwareState, serializeWindowsDeviceMalwareState, type WindowsDeviceMalwareState } from '../../../../../../../models/windowsDeviceMalwareState'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/managedDevices/item/windowsProtectionState/index.ts b/src/users/item/managedDevices/item/windowsProtectionState/index.ts index 17d0c44b68b..a12b8b4be20 100644 --- a/src/users/item/managedDevices/item/windowsProtectionState/index.ts +++ b/src/users/item/managedDevices/item/windowsProtectionState/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createWindowsProtectionStateFromDiscriminatorValue, deserializeIntoWindowsProtectionState, serializeWindowsProtectionState, type WindowsProtectionState } from '../../../../../models/windowsProtectionState'; -import { DetectedMalwareStateRequestBuilder } from './detectedMalwareState/'; +import { DetectedMalwareStateRequestBuilder } from './detectedMalwareState'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface WindowsProtectionStateRequestBuilderGetQueryParameters { diff --git a/src/users/item/managedDevices/item/wipe/index.ts b/src/users/item/managedDevices/item/wipe/index.ts index c5d82523a44..44d7b3ae537 100644 --- a/src/users/item/managedDevices/item/wipe/index.ts +++ b/src/users/item/managedDevices/item/wipe/index.ts @@ -1,11 +1,51 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoWipePostRequestBody, serializeWipePostRequestBody, type WipePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createWipePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoWipePostRequestBody; +} +export function deserializeIntoWipePostRequestBody(wipePostRequestBody: WipePostRequestBody | undefined = {} as WipePostRequestBody) : Record void> { + return { + "keepEnrollmentData": n => { wipePostRequestBody.keepEnrollmentData = n.getBooleanValue(); }, + "keepUserData": n => { wipePostRequestBody.keepUserData = n.getBooleanValue(); }, + "macOsUnlockCode": n => { wipePostRequestBody.macOsUnlockCode = n.getStringValue(); }, + "persistEsimDataPlan": n => { wipePostRequestBody.persistEsimDataPlan = n.getBooleanValue(); }, + } +} +export function serializeWipePostRequestBody(writer: SerializationWriter, wipePostRequestBody: WipePostRequestBody | undefined = {} as WipePostRequestBody) : void { + writer.writeBooleanValue("keepEnrollmentData", wipePostRequestBody.keepEnrollmentData); + writer.writeBooleanValue("keepUserData", wipePostRequestBody.keepUserData); + writer.writeStringValue("macOsUnlockCode", wipePostRequestBody.macOsUnlockCode); + writer.writeBooleanValue("persistEsimDataPlan", wipePostRequestBody.persistEsimDataPlan); + writer.writeAdditionalData(wipePostRequestBody.additionalData); +} +export interface WipePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The keepEnrollmentData property + */ + keepEnrollmentData?: boolean; + /** + * The keepUserData property + */ + keepUserData?: boolean; + /** + * The macOsUnlockCode property + */ + macOsUnlockCode?: string; + /** + * The persistEsimDataPlan property + */ + persistEsimDataPlan?: boolean; +} /** * Provides operations to call the wipe method. */ diff --git a/src/users/item/managedDevices/item/wipe/wipePostRequestBody.ts b/src/users/item/managedDevices/item/wipe/wipePostRequestBody.ts deleted file mode 100644 index 49a6c514fc7..00000000000 --- a/src/users/item/managedDevices/item/wipe/wipePostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createWipePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoWipePostRequestBody; -} -export function deserializeIntoWipePostRequestBody(wipePostRequestBody: WipePostRequestBody | undefined = {} as WipePostRequestBody) : Record void> { - return { - "keepEnrollmentData": n => { wipePostRequestBody.keepEnrollmentData = n.getBooleanValue(); }, - "keepUserData": n => { wipePostRequestBody.keepUserData = n.getBooleanValue(); }, - "macOsUnlockCode": n => { wipePostRequestBody.macOsUnlockCode = n.getStringValue(); }, - "persistEsimDataPlan": n => { wipePostRequestBody.persistEsimDataPlan = n.getBooleanValue(); }, - } -} -export function serializeWipePostRequestBody(writer: SerializationWriter, wipePostRequestBody: WipePostRequestBody | undefined = {} as WipePostRequestBody) : void { - writer.writeBooleanValue("keepEnrollmentData", wipePostRequestBody.keepEnrollmentData); - writer.writeBooleanValue("keepUserData", wipePostRequestBody.keepUserData); - writer.writeStringValue("macOsUnlockCode", wipePostRequestBody.macOsUnlockCode); - writer.writeBooleanValue("persistEsimDataPlan", wipePostRequestBody.persistEsimDataPlan); - writer.writeAdditionalData(wipePostRequestBody.additionalData); -} -export interface WipePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The keepEnrollmentData property - */ - keepEnrollmentData?: boolean; - /** - * The keepUserData property - */ - keepUserData?: boolean; - /** - * The macOsUnlockCode property - */ - macOsUnlockCode?: string; - /** - * The persistEsimDataPlan property - */ - persistEsimDataPlan?: boolean; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/manager/index.ts b/src/users/item/manager/index.ts index f2c992d9eba..708a0e21a5c 100644 --- a/src/users/item/manager/index.ts +++ b/src/users/item/manager/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { RefRequestBuilder } from './ref/'; +import { RefRequestBuilder } from './ref'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ManagerRequestBuilderGetQueryParameters { diff --git a/src/users/item/manager/ref/index.ts b/src/users/item/manager/ref/index.ts index 60cd3ef9f80..d3c0782466b 100644 --- a/src/users/item/manager/ref/index.ts +++ b/src/users/item/manager/ref/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { deserializeIntoReferenceUpdate, serializeReferenceUpdate, type ReferenceUpdate } from '../../../../models/referenceUpdate'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/memberOf/count/index.ts b/src/users/item/memberOf/count/index.ts index 2c611049315..0f6319bc111 100644 --- a/src/users/item/memberOf/count/index.ts +++ b/src/users/item/memberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/memberOf/graphAdministrativeUnit/count/index.ts b/src/users/item/memberOf/graphAdministrativeUnit/count/index.ts index c826adb7e29..f82745a4f81 100644 --- a/src/users/item/memberOf/graphAdministrativeUnit/count/index.ts +++ b/src/users/item/memberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/memberOf/graphAdministrativeUnit/index.ts b/src/users/item/memberOf/graphAdministrativeUnit/index.ts index ed18c5ca364..158a19308a7 100644 --- a/src/users/item/memberOf/graphAdministrativeUnit/index.ts +++ b/src/users/item/memberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/users/item/memberOf/graphDirectoryRole/count/index.ts b/src/users/item/memberOf/graphDirectoryRole/count/index.ts index 41d6904ed10..44e9dc958c3 100644 --- a/src/users/item/memberOf/graphDirectoryRole/count/index.ts +++ b/src/users/item/memberOf/graphDirectoryRole/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/memberOf/graphDirectoryRole/index.ts b/src/users/item/memberOf/graphDirectoryRole/index.ts index ba5d02e0d56..fe1e01e34ca 100644 --- a/src/users/item/memberOf/graphDirectoryRole/index.ts +++ b/src/users/item/memberOf/graphDirectoryRole/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRoleCollectionResponse } from '../../../../models/'; +import { type DirectoryRoleCollectionResponse } from '../../../../models'; import { createDirectoryRoleCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryRoleCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDirectoryRoleRequestBuilderGetQueryParameters { diff --git a/src/users/item/memberOf/graphGroup/count/index.ts b/src/users/item/memberOf/graphGroup/count/index.ts index ebe742971b4..e76e86a8be6 100644 --- a/src/users/item/memberOf/graphGroup/count/index.ts +++ b/src/users/item/memberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/memberOf/graphGroup/index.ts b/src/users/item/memberOf/graphGroup/index.ts index 1238ef65272..674d2939f6d 100644 --- a/src/users/item/memberOf/graphGroup/index.ts +++ b/src/users/item/memberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/users/item/memberOf/index.ts b/src/users/item/memberOf/index.ts index 8889566f241..eac64d0834c 100644 --- a/src/users/item/memberOf/index.ts +++ b/src/users/item/memberOf/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MemberOfRequestBuilderGetQueryParameters { diff --git a/src/users/item/memberOf/item/graphAdministrativeUnit/index.ts b/src/users/item/memberOf/item/graphAdministrativeUnit/index.ts index 960714cc77c..4b63150931d 100644 --- a/src/users/item/memberOf/item/graphAdministrativeUnit/index.ts +++ b/src/users/item/memberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/memberOf/item/graphDirectoryRole/index.ts b/src/users/item/memberOf/item/graphDirectoryRole/index.ts index dd1fccad33c..ca3a36edb21 100644 --- a/src/users/item/memberOf/item/graphDirectoryRole/index.ts +++ b/src/users/item/memberOf/item/graphDirectoryRole/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRole } from '../../../../../models/'; +import { type DirectoryRole } from '../../../../../models'; import { createDirectoryRoleFromDiscriminatorValue } from '../../../../../models/directoryRole'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/memberOf/item/graphGroup/index.ts b/src/users/item/memberOf/item/graphGroup/index.ts index 8567f01a70e..03aac87bc02 100644 --- a/src/users/item/memberOf/item/graphGroup/index.ts +++ b/src/users/item/memberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/memberOf/item/index.ts b/src/users/item/memberOf/item/index.ts index 5d8c526e7b8..30198597f55 100644 --- a/src/users/item/memberOf/item/index.ts +++ b/src/users/item/memberOf/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/messages/count/index.ts b/src/users/item/messages/count/index.ts index 2e38dc3e0d9..38175e62691 100644 --- a/src/users/item/messages/count/index.ts +++ b/src/users/item/messages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/messages/delta/index.ts b/src/users/item/messages/delta/index.ts index 4c696d05b25..83b6b93e7f1 100644 --- a/src/users/item/messages/delta/index.ts +++ b/src/users/item/messages/delta/index.ts @@ -3,9 +3,7 @@ // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../models/baseDeltaFunctionResponse'; import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../models/message'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,40 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: Message[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * A custom query option to filter the delta response based on the type of change. Supported values are created, updated or deleted. - */ - changeType?: string; - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -61,63 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeMessage); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/messages/delta(){?changeType*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - * @see {@link https://learn.microsoft.com/graph/api/message-delta?view=graph-rest-1.0|Find more info here} - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/messages/index.ts b/src/users/item/messages/index.ts index 8e4908bb624..3739102266f 100644 --- a/src/users/item/messages/index.ts +++ b/src/users/item/messages/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MessageCollectionResponse } from '../../../models/'; +import { type MessageCollectionResponse } from '../../../models'; import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../models/message'; import { createMessageCollectionResponseFromDiscriminatorValue } from '../../../models/messageCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { MessageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { MessageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/messages/item/attachments/count/index.ts b/src/users/item/messages/item/attachments/count/index.ts index cfe7eb4a6ff..8e8b19f89dd 100644 --- a/src/users/item/messages/item/attachments/count/index.ts +++ b/src/users/item/messages/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/messages/item/attachments/createUploadSession/index.ts b/src/users/item/messages/item/attachments/createUploadSession/index.ts index 078f56f7bd3..c88e1410394 100644 --- a/src/users/item/messages/item/attachments/createUploadSession/index.ts +++ b/src/users/item/messages/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentItemFromDiscriminatorValue, serializeAttachmentItem, type AttachmentItem } from '../../../../../../models/attachmentItem'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("AttachmentItem", createUploadSessionPostRequestBody.attachmentItem, serializeAttachmentItem); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/attachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/messages/item/attachments/index.ts b/src/users/item/messages/item/attachments/index.ts index 5711bfeb0cd..8291cfeff8a 100644 --- a/src/users/item/messages/item/attachments/index.ts +++ b/src/users/item/messages/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentCollectionResponse } from '../../../../../models/'; +import { type AttachmentCollectionResponse } from '../../../../../models'; import { createAttachmentFromDiscriminatorValue, deserializeIntoAttachment, serializeAttachment, type Attachment } from '../../../../../models/attachment'; import { createAttachmentCollectionResponseFromDiscriminatorValue } from '../../../../../models/attachmentCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/messages/item/attachments/item/index.ts b/src/users/item/messages/item/attachments/item/index.ts index 5fde92a5b0c..53b768c0b5e 100644 --- a/src/users/item/messages/item/attachments/item/index.ts +++ b/src/users/item/messages/item/attachments/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Attachment } from '../../../../../../models/'; +import { type Attachment } from '../../../../../../models'; import { createAttachmentFromDiscriminatorValue } from '../../../../../../models/attachment'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/messages/item/copy/index.ts b/src/users/item/messages/item/copy/index.ts index a1f2aaa7512..1b8c9065bfe 100644 --- a/src/users/item/messages/item/copy/index.ts +++ b/src/users/item/messages/item/copy/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../models/message'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -29,58 +26,5 @@ export function serializeCopyPostRequestBody(writer: SerializationWriter, copyPo writer.writeStringValue("DestinationId", copyPostRequestBody.destinationId); writer.writeAdditionalData(copyPostRequestBody.additionalData); } -/** - * Provides operations to call the copy method. - */ -export class CopyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/copy"); - }; - /** - * Copy a message to a folder within the user's mailbox. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-copy?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Copy a message to a folder within the user's mailbox. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyRequestBuilder - */ - public withUrl(rawUrl: string) : CopyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/messages/item/createForward/index.ts b/src/users/item/messages/item/createForward/index.ts index 1a1d2ff12db..6ae75e1f6c3 100644 --- a/src/users/item/messages/item/createForward/index.ts +++ b/src/users/item/messages/item/createForward/index.ts @@ -1,11 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../models/message'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../models/message'; import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -42,58 +40,5 @@ export function serializeCreateForwardPostRequestBody(writer: SerializationWrite writer.writeCollectionOfObjectValues("ToRecipients", createForwardPostRequestBody.toRecipients, serializeRecipient); writer.writeAdditionalData(createForwardPostRequestBody.additionalData); } -/** - * Provides operations to call the createForward method. - */ -export class CreateForwardRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateForwardRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/createForward"); - }; - /** - * Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-createforward?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateForwardPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateForwardPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateForwardPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createForwardRequestBuilder - */ - public withUrl(rawUrl: string) : CreateForwardRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateForwardRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/messages/item/createReply/index.ts b/src/users/item/messages/item/createReply/index.ts index 428d4190db9..a25b4d5a7d7 100644 --- a/src/users/item/messages/item/createReply/index.ts +++ b/src/users/item/messages/item/createReply/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../models/message'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../models/message'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,58 +33,5 @@ export function serializeCreateReplyPostRequestBody(writer: SerializationWriter, writer.writeObjectValue("Message", createReplyPostRequestBody.message, serializeMessage); writer.writeAdditionalData(createReplyPostRequestBody.additionalData); } -/** - * Provides operations to call the createReply method. - */ -export class CreateReplyRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateReplyRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/createReply"); - }; - /** - * Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/message-createreply?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); - }; - /** - * Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateReplyPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createReplyRequestBuilder - */ - public withUrl(rawUrl: string) : CreateReplyRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateReplyRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts b/src/users/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts deleted file mode 100644 index 9d49e938355..00000000000 --- a/src/users/item/messages/item/createReplyAll/createReplyAllPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../models/message'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createCreateReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCreateReplyAllPostRequestBody; -} -export interface CreateReplyAllPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; -} -export function deserializeIntoCreateReplyAllPostRequestBody(createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : Record void> { - return { - "comment": n => { createReplyAllPostRequestBody.comment = n.getStringValue(); }, - "message": n => { createReplyAllPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - } -} -export function serializeCreateReplyAllPostRequestBody(writer: SerializationWriter, createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : void { - writer.writeStringValue("Comment", createReplyAllPostRequestBody.comment); - writer.writeObjectValue("Message", createReplyAllPostRequestBody.message, serializeMessage); - writer.writeAdditionalData(createReplyAllPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/messages/item/createReplyAll/index.ts b/src/users/item/messages/item/createReplyAll/index.ts index 6b2dd56c153..42947e13c71 100644 --- a/src/users/item/messages/item/createReplyAll/index.ts +++ b/src/users/item/messages/item/createReplyAll/index.ts @@ -2,11 +2,39 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../models/message'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoCreateReplyAllPostRequestBody, serializeCreateReplyAllPostRequestBody, type CreateReplyAllPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createCreateReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCreateReplyAllPostRequestBody; +} +export interface CreateReplyAllPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; +} +export function deserializeIntoCreateReplyAllPostRequestBody(createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : Record void> { + return { + "comment": n => { createReplyAllPostRequestBody.comment = n.getStringValue(); }, + "message": n => { createReplyAllPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + } +} +export function serializeCreateReplyAllPostRequestBody(writer: SerializationWriter, createReplyAllPostRequestBody: CreateReplyAllPostRequestBody | undefined = {} as CreateReplyAllPostRequestBody) : void { + writer.writeStringValue("Comment", createReplyAllPostRequestBody.comment); + writer.writeObjectValue("Message", createReplyAllPostRequestBody.message, serializeMessage); + writer.writeAdditionalData(createReplyAllPostRequestBody.additionalData); +} /** * Provides operations to call the createReplyAll method. */ diff --git a/src/users/item/messages/item/extensions/count/index.ts b/src/users/item/messages/item/extensions/count/index.ts index 772760b8afa..7dc745f8827 100644 --- a/src/users/item/messages/item/extensions/count/index.ts +++ b/src/users/item/messages/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/messages/item/extensions/index.ts b/src/users/item/messages/item/extensions/index.ts index 86b1d339291..7ac8fedf7f3 100644 --- a/src/users/item/messages/item/extensions/index.ts +++ b/src/users/item/messages/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/messages/item/extensions/item/index.ts b/src/users/item/messages/item/extensions/item/index.ts index 0b2f619d539..d134f127b68 100644 --- a/src/users/item/messages/item/extensions/item/index.ts +++ b/src/users/item/messages/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/messages/item/forward/forwardPostRequestBody.ts b/src/users/item/messages/item/forward/forwardPostRequestBody.ts deleted file mode 100644 index f51a85dc346..00000000000 --- a/src/users/item/messages/item/forward/forwardPostRequestBody.ts +++ /dev/null @@ -1,44 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../models/message'; -import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoForwardPostRequestBody; -} -export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { - return { - "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, - "message": n => { forwardPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, - } -} -export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; - /** - * The ToRecipients property - */ - toRecipients?: Recipient[]; -} -export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { - writer.writeStringValue("Comment", forwardPostRequestBody.comment); - writer.writeObjectValue("Message", forwardPostRequestBody.message, serializeMessage); - writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); - writer.writeAdditionalData(forwardPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/messages/item/forward/index.ts b/src/users/item/messages/item/forward/index.ts index 466dfb837f3..4bdc8f0f991 100644 --- a/src/users/item/messages/item/forward/index.ts +++ b/src/users/item/messages/item/forward/index.ts @@ -1,11 +1,47 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../models/message'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoForwardPostRequestBody, serializeForwardPostRequestBody, type ForwardPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecipientFromDiscriminatorValue, serializeRecipient, type Recipient } from '../../../../../models/recipient'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createForwardPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoForwardPostRequestBody; +} +export function deserializeIntoForwardPostRequestBody(forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : Record void> { + return { + "comment": n => { forwardPostRequestBody.comment = n.getStringValue(); }, + "message": n => { forwardPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + "toRecipients": n => { forwardPostRequestBody.toRecipients = n.getCollectionOfObjectValues(createRecipientFromDiscriminatorValue); }, + } +} +export interface ForwardPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; + /** + * The ToRecipients property + */ + toRecipients?: Recipient[]; +} +export function serializeForwardPostRequestBody(writer: SerializationWriter, forwardPostRequestBody: ForwardPostRequestBody | undefined = {} as ForwardPostRequestBody) : void { + writer.writeStringValue("Comment", forwardPostRequestBody.comment); + writer.writeObjectValue("Message", forwardPostRequestBody.message, serializeMessage); + writer.writeCollectionOfObjectValues("ToRecipients", forwardPostRequestBody.toRecipients, serializeRecipient); + writer.writeAdditionalData(forwardPostRequestBody.additionalData); +} /** * Provides operations to call the forward method. */ diff --git a/src/users/item/messages/item/index.ts b/src/users/item/messages/item/index.ts index ef3d14b2626..0b281ccc16b 100644 --- a/src/users/item/messages/item/index.ts +++ b/src/users/item/messages/item/index.ts @@ -2,20 +2,20 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../models/message'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { CopyRequestBuilder } from './copy/'; -import { CreateForwardRequestBuilder } from './createForward/'; -import { CreateReplyRequestBuilder } from './createReply/'; -import { CreateReplyAllRequestBuilder } from './createReplyAll/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { ForwardRequestBuilder } from './forward/'; -import { MoveRequestBuilder } from './move/'; -import { ReplyRequestBuilder } from './reply/'; -import { ReplyAllRequestBuilder } from './replyAll/'; -import { SendRequestBuilder } from './send/'; -import { ContentRequestBuilder } from './value/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { CopyRequestBuilder } from './copy'; +import { CreateForwardRequestBuilder } from './createForward'; +import { CreateReplyRequestBuilder } from './createReply'; +import { CreateReplyAllRequestBuilder } from './createReplyAll'; +import { ExtensionsRequestBuilder } from './extensions'; +import { ForwardRequestBuilder } from './forward'; +import { MoveRequestBuilder } from './move'; +import { ReplyRequestBuilder } from './reply'; +import { ReplyAllRequestBuilder } from './replyAll'; +import { SendRequestBuilder } from './send'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MessageItemRequestBuilderGetQueryParameters { @@ -117,9 +117,9 @@ export class MessageItemRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}"); }; /** - * Delete a message in the specified user's mailbox, or delete a relationship of the message. + * Delete eventMessage. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/message-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -135,7 +135,7 @@ export class MessageItemRequestBuilder extends BaseRequestBuilder { * The messages in a mailbox or folder. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -148,11 +148,11 @@ export class MessageItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); }; /** - * Update the properties of an eventMessage object. + * Update the properties of a message object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/eventmessage-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/message-update?view=graph-rest-1.0|Find more info here} */ public patch(body: Message, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -165,7 +165,7 @@ export class MessageItemRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createMessageFromDiscriminatorValue, errorMapping); }; /** - * Delete a message in the specified user's mailbox, or delete a relationship of the message. + * Delete eventMessage. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -187,7 +187,7 @@ export class MessageItemRequestBuilder extends BaseRequestBuilder { return requestInfo; }; /** - * Update the properties of an eventMessage object. + * Update the properties of a message object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/users/item/messages/item/move/index.ts b/src/users/item/messages/item/move/index.ts index 236836549ae..ae2e543d2c8 100644 --- a/src/users/item/messages/item/move/index.ts +++ b/src/users/item/messages/item/move/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, deserializeIntoMessage, serializeMessage, type Message } from '../../../../../models/message'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoMovePostRequestBody, serializeMovePostRequestBody, type MovePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoMovePostRequestBody; +} +export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { + return { + "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, + } +} +export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The DestinationId property + */ + destinationId?: string; +} +export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { + writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); + writer.writeAdditionalData(movePostRequestBody.additionalData); +} /** * Provides operations to call the move method. */ diff --git a/src/users/item/messages/item/move/movePostRequestBody.ts b/src/users/item/messages/item/move/movePostRequestBody.ts deleted file mode 100644 index 93a1c3bb520..00000000000 --- a/src/users/item/messages/item/move/movePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createMovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoMovePostRequestBody; -} -export function deserializeIntoMovePostRequestBody(movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : Record void> { - return { - "destinationId": n => { movePostRequestBody.destinationId = n.getStringValue(); }, - } -} -export interface MovePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The DestinationId property - */ - destinationId?: string; -} -export function serializeMovePostRequestBody(writer: SerializationWriter, movePostRequestBody: MovePostRequestBody | undefined = {} as MovePostRequestBody) : void { - writer.writeStringValue("DestinationId", movePostRequestBody.destinationId); - writer.writeAdditionalData(movePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/messages/item/reply/index.ts b/src/users/item/messages/item/reply/index.ts index 4b21379c545..4b40a8177c3 100644 --- a/src/users/item/messages/item/reply/index.ts +++ b/src/users/item/messages/item/reply/index.ts @@ -1,11 +1,40 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../models/message'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoReplyPostRequestBody, serializeReplyPostRequestBody, type ReplyPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReplyPostRequestBody; +} +export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { + return { + "comment": n => { replyPostRequestBody.comment = n.getStringValue(); }, + "message": n => { replyPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, + } +} +export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The Comment property + */ + comment?: string; + /** + * The Message property + */ + message?: Message; +} +export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { + writer.writeStringValue("Comment", replyPostRequestBody.comment); + writer.writeObjectValue("Message", replyPostRequestBody.message, serializeMessage); + writer.writeAdditionalData(replyPostRequestBody.additionalData); +} /** * Provides operations to call the reply method. */ diff --git a/src/users/item/messages/item/reply/replyPostRequestBody.ts b/src/users/item/messages/item/reply/replyPostRequestBody.ts deleted file mode 100644 index 4fd411d1883..00000000000 --- a/src/users/item/messages/item/reply/replyPostRequestBody.ts +++ /dev/null @@ -1,37 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../models/message'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReplyPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReplyPostRequestBody; -} -export function deserializeIntoReplyPostRequestBody(replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : Record void> { - return { - "comment": n => { replyPostRequestBody.comment = n.getStringValue(); }, - "message": n => { replyPostRequestBody.message = n.getObjectValue(createMessageFromDiscriminatorValue); }, - } -} -export interface ReplyPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The Comment property - */ - comment?: string; - /** - * The Message property - */ - message?: Message; -} -export function serializeReplyPostRequestBody(writer: SerializationWriter, replyPostRequestBody: ReplyPostRequestBody | undefined = {} as ReplyPostRequestBody) : void { - writer.writeStringValue("Comment", replyPostRequestBody.comment); - writer.writeObjectValue("Message", replyPostRequestBody.message, serializeMessage); - writer.writeAdditionalData(replyPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/messages/item/replyAll/index.ts b/src/users/item/messages/item/replyAll/index.ts index e800d859ad5..ca685daa70b 100644 --- a/src/users/item/messages/item/replyAll/index.ts +++ b/src/users/item/messages/item/replyAll/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../../../models/message'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createReplyAllPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,57 +33,5 @@ export function serializeReplyAllPostRequestBody(writer: SerializationWriter, re writer.writeObjectValue("Message", replyAllPostRequestBody.message, serializeMessage); writer.writeAdditionalData(replyAllPostRequestBody.additionalData); } -/** - * Provides operations to call the replyAll method. - */ -export class ReplyAllRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ReplyAllRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/replyAll"); - }; - /** - * Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/message-replyall?view=graph-rest-1.0|Find more info here} - */ - public post(body: ReplyAllPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ReplyAllPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeReplyAllPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a replyAllRequestBuilder - */ - public withUrl(rawUrl: string) : ReplyAllRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ReplyAllRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/messages/item/send/index.ts b/src/users/item/messages/item/send/index.ts index cc2594d7c7c..00e44189b94 100644 --- a/src/users/item/messages/item/send/index.ts +++ b/src/users/item/messages/item/send/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/messages/item/value/index.ts b/src/users/item/messages/item/value/index.ts index a882ec05122..8f0a34ea739 100644 --- a/src/users/item/messages/item/value/index.ts +++ b/src/users/item/messages/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/oauth2PermissionGrants/count/index.ts b/src/users/item/oauth2PermissionGrants/count/index.ts index bd89435652f..9e26ab0e22f 100644 --- a/src/users/item/oauth2PermissionGrants/count/index.ts +++ b/src/users/item/oauth2PermissionGrants/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/oauth2PermissionGrants/index.ts b/src/users/item/oauth2PermissionGrants/index.ts index 8aa9af531da..ea84ad21675 100644 --- a/src/users/item/oauth2PermissionGrants/index.ts +++ b/src/users/item/oauth2PermissionGrants/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OAuth2PermissionGrantCollectionResponse } from '../../../models/'; +import { type OAuth2PermissionGrantCollectionResponse } from '../../../models'; import { createOAuth2PermissionGrantCollectionResponseFromDiscriminatorValue } from '../../../models/oAuth2PermissionGrantCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { OAuth2PermissionGrantItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OAuth2PermissionGrantItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface Oauth2PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/users/item/oauth2PermissionGrants/item/index.ts b/src/users/item/oauth2PermissionGrants/item/index.ts index ce15dec0bcf..a39086b3f4e 100644 --- a/src/users/item/oauth2PermissionGrants/item/index.ts +++ b/src/users/item/oauth2PermissionGrants/item/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OAuth2PermissionGrant } from '../../../../models/'; +import { type OAuth2PermissionGrant } from '../../../../models'; import { createOAuth2PermissionGrantFromDiscriminatorValue } from '../../../../models/oAuth2PermissionGrant'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/index.ts b/src/users/item/onenote/index.ts index 13300a27705..4309a1e2dbf 100644 --- a/src/users/item/onenote/index.ts +++ b/src/users/item/onenote/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOnenoteFromDiscriminatorValue, deserializeIntoOnenote, serializeOnenote, type Onenote } from '../../../models/onenote'; -import { NotebooksRequestBuilder } from './notebooks/'; -import { OperationsRequestBuilder } from './operations/'; -import { PagesRequestBuilder } from './pages/'; -import { ResourcesRequestBuilder } from './resources/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { NotebooksRequestBuilder } from './notebooks'; +import { OperationsRequestBuilder } from './operations'; +import { PagesRequestBuilder } from './pages'; +import { ResourcesRequestBuilder } from './resources'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/count/index.ts b/src/users/item/onenote/notebooks/count/index.ts index 3481d693fdb..ea47dbb2afd 100644 --- a/src/users/item/onenote/notebooks/count/index.ts +++ b/src/users/item/onenote/notebooks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts b/src/users/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts deleted file mode 100644 index 5de000d11c3..00000000000 --- a/src/users/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetNotebookFromWebUrlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetNotebookFromWebUrlPostRequestBody; -} -export function deserializeIntoGetNotebookFromWebUrlPostRequestBody(getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : Record void> { - return { - "webUrl": n => { getNotebookFromWebUrlPostRequestBody.webUrl = n.getStringValue(); }, - } -} -export interface GetNotebookFromWebUrlPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The webUrl property - */ - webUrl?: string; -} -export function serializeGetNotebookFromWebUrlPostRequestBody(writer: SerializationWriter, getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : void { - writer.writeStringValue("webUrl", getNotebookFromWebUrlPostRequestBody.webUrl); - writer.writeAdditionalData(getNotebookFromWebUrlPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/notebooks/getNotebookFromWebUrl/index.ts b/src/users/item/onenote/notebooks/getNotebookFromWebUrl/index.ts index 12a7c82ca18..e11771d3d2a 100644 --- a/src/users/item/onenote/notebooks/getNotebookFromWebUrl/index.ts +++ b/src/users/item/onenote/notebooks/getNotebookFromWebUrl/index.ts @@ -2,11 +2,33 @@ // eslint-disable // Generated by Microsoft Kiota import { createCopyNotebookModelFromDiscriminatorValue, deserializeIntoCopyNotebookModel, serializeCopyNotebookModel, type CopyNotebookModel } from '../../../../../models/copyNotebookModel'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoGetNotebookFromWebUrlPostRequestBody, serializeGetNotebookFromWebUrlPostRequestBody, type GetNotebookFromWebUrlPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetNotebookFromWebUrlPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetNotebookFromWebUrlPostRequestBody; +} +export function deserializeIntoGetNotebookFromWebUrlPostRequestBody(getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : Record void> { + return { + "webUrl": n => { getNotebookFromWebUrlPostRequestBody.webUrl = n.getStringValue(); }, + } +} +export interface GetNotebookFromWebUrlPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The webUrl property + */ + webUrl?: string; +} +export function serializeGetNotebookFromWebUrlPostRequestBody(writer: SerializationWriter, getNotebookFromWebUrlPostRequestBody: GetNotebookFromWebUrlPostRequestBody | undefined = {} as GetNotebookFromWebUrlPostRequestBody) : void { + writer.writeStringValue("webUrl", getNotebookFromWebUrlPostRequestBody.webUrl); + writer.writeAdditionalData(getNotebookFromWebUrlPostRequestBody.additionalData); +} /** * Provides operations to call the getNotebookFromWebUrl method. */ diff --git a/src/users/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts b/src/users/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts deleted file mode 100644 index 9e139d24770..00000000000 --- a/src/users/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/getRecentNotebooksWithIncludePersonalNotebooksGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; -import { createRecentNotebookFromDiscriminatorValue, serializeRecentNotebook, type RecentNotebook } from '../../../../../models/recentNotebook'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse; -} -export function deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse), - "value": n => { getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value = n.getCollectionOfObjectValues(createRecentNotebookFromDiscriminatorValue); }, - } -} -export interface GetRecentNotebooksWithIncludePersonalNotebooksGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: RecentNotebook[]; -} -export function serializeGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(writer: SerializationWriter, getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, getRecentNotebooksWithIncludePersonalNotebooksGetResponse) - writer.writeCollectionOfObjectValues("value", getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value, serializeRecentNotebook); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts b/src/users/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts index 81cc5bf7372..6634f481e96 100644 --- a/src/users/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts +++ b/src/users/item/onenote/notebooks/getRecentNotebooksWithIncludePersonalNotebooks/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue } from './'; -import { type GetRecentNotebooksWithIncludePersonalNotebooksGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createRecentNotebookFromDiscriminatorValue, serializeRecentNotebook, type RecentNotebook } from '../../../../../models/recentNotebook'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetRecentNotebooksWithIncludePersonalNotebooksGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse; +} +export function deserializeIntoGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getRecentNotebooksWithIncludePersonalNotebooksGetResponse), + "value": n => { getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value = n.getCollectionOfObjectValues(createRecentNotebookFromDiscriminatorValue); }, + } +} +export interface GetRecentNotebooksWithIncludePersonalNotebooksGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: RecentNotebook[]; +} export interface GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGet */ top?: number; } +export function serializeGetRecentNotebooksWithIncludePersonalNotebooksGetResponse(writer: SerializationWriter, getRecentNotebooksWithIncludePersonalNotebooksGetResponse: GetRecentNotebooksWithIncludePersonalNotebooksGetResponse | undefined = {} as GetRecentNotebooksWithIncludePersonalNotebooksGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, getRecentNotebooksWithIncludePersonalNotebooksGetResponse) + writer.writeCollectionOfObjectValues("value", getRecentNotebooksWithIncludePersonalNotebooksGetResponse.value, serializeRecentNotebook); +} /** * Provides operations to call the getRecentNotebooks method. */ diff --git a/src/users/item/onenote/notebooks/index.ts b/src/users/item/onenote/notebooks/index.ts index 8e95f75c8a7..9aae6f6e5a1 100644 --- a/src/users/item/onenote/notebooks/index.ts +++ b/src/users/item/onenote/notebooks/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type NotebookCollectionResponse } from '../../../../models/'; +import { type NotebookCollectionResponse } from '../../../../models'; import { createNotebookFromDiscriminatorValue, deserializeIntoNotebook, serializeNotebook, type Notebook } from '../../../../models/notebook'; import { createNotebookCollectionResponseFromDiscriminatorValue } from '../../../../models/notebookCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GetNotebookFromWebUrlRequestBuilder } from './getNotebookFromWebUrl/'; -import { GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder } from './getRecentNotebooksWithIncludePersonalNotebooks/'; -import { NotebookItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GetNotebookFromWebUrlRequestBuilder } from './getNotebookFromWebUrl'; +import { GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder } from './getRecentNotebooksWithIncludePersonalNotebooks'; +import { NotebookItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotebooksRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/copyNotebook/index.ts b/src/users/item/onenote/notebooks/item/copyNotebook/index.ts index 2c97796b71a..27e2125b125 100644 --- a/src/users/item/onenote/notebooks/item/copyNotebook/index.ts +++ b/src/users/item/onenote/notebooks/item/copyNotebook/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyNotebookPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyNotebookPostRequestBody(writer: SerializationWriter writer.writeStringValue("siteId", copyNotebookPostRequestBody.siteId); writer.writeAdditionalData(copyNotebookPostRequestBody.additionalData); } -/** - * Provides operations to call the copyNotebook method. - */ -export class CopyNotebookRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyNotebookRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/notebook-copynotebook?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyNotebookPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyNotebookPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyNotebookPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyNotebookRequestBuilder - */ - public withUrl(rawUrl: string) : CopyNotebookRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyNotebookRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/onenote/notebooks/item/index.ts b/src/users/item/onenote/notebooks/item/index.ts index 7a3fe98b968..225bc413eda 100644 --- a/src/users/item/onenote/notebooks/item/index.ts +++ b/src/users/item/onenote/notebooks/item/index.ts @@ -2,11 +2,11 @@ // eslint-disable // Generated by Microsoft Kiota import { createNotebookFromDiscriminatorValue, deserializeIntoNotebook, serializeNotebook, type Notebook } from '../../../../../models/notebook'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CopyNotebookRequestBuilder } from './copyNotebook/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { CopyNotebookRequestBuilder } from './copyNotebook'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface NotebookItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/count/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/count/index.ts index aff76d41357..afc72fecade 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/count/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/index.ts index d3d0beb3065..9c85f78f304 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../models/sectionGroup'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/index.ts index 08780641505..c6cf7b90292 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../../../models/sectionGroup'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts index 88cba1a01fa..804db55a401 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts index ca5bc4bb286..36486665a4d 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts index e6f500d8935..3f1ee62ebcf 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts index 67fb5188f79..6e718a10796 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts index 1dfe46223e9..7998d6623cb 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sectionGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts index 0283ef81617..04994c8d213 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts index b92c590dfa6..1fee75afded 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts index 3d1d3074836..a47b807816a 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts index f0e8e37da80..f36d6e18262 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts index 1402d78460c..47c74e289cf 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts index 706fffe24ff..353c438abfb 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts index f02653a3a7b..ad9b4151f98 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts index 45147b5e419..b209253687e 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts index f6a707ca80b..d4d0b6c2308 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts index 209723eb0d3..a23902c3be1 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts index bb718455a8c..395478f906a 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index dd586b162a1..00000000000 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts index f53cf729856..88adda97005 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts index 196ef06bffa..bcb7bb2ddcb 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts index d32965cdd3f..3d2dd6cd323 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts index 726faf2c73f..d8d1cbb4aaa 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts index df8396398aa..53d1b05e245 100644 --- a/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts +++ b/src/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sections/count/index.ts b/src/users/item/onenote/notebooks/item/sections/count/index.ts index 89b96ae275a..94b3c0fb9d2 100644 --- a/src/users/item/onenote/notebooks/item/sections/count/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sections/index.ts b/src/users/item/onenote/notebooks/item/sections/index.ts index 66031507dcb..658545bdc50 100644 --- a/src/users/item/onenote/notebooks/item/sections/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/users/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/users/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts b/src/users/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts index c800b38a3cd..fccce6970cb 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/users/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts b/src/users/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts index 784163bfae6..f36d6e18262 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/onenote/notebooks/item/sections/item/index.ts b/src/users/item/onenote/notebooks/item/sections/item/index.ts index 340eed22304..8eef2dfd6b9 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/count/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/count/index.ts index 0df63d1ded8..f3e493de9d9 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/count/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/index.ts index 2ff72a8907c..ca32351a076 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts index d05390ee828..78ab41c1255 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts index a764c72e315..7d443a54eb8 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/index.ts index 46f49178b57..e8be3fbc07a 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts index 00fa10f4b2c..9ab56ae3902 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 880ee726f2b..00000000000 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts index f7b0355026b..0abdc31bfd7 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts index 4e3f43c20ee..2822e392e9f 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts b/src/users/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts index d3af8a1b2bb..46017b59b84 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts b/src/users/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts index c77bf04da3a..133a16bb9df 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts b/src/users/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts index 8be2435d3b6..0e5b19a4127 100644 --- a/src/users/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts +++ b/src/users/item/onenote/notebooks/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/operations/count/index.ts b/src/users/item/onenote/operations/count/index.ts index 402654e53c5..a7124d15a1b 100644 --- a/src/users/item/onenote/operations/count/index.ts +++ b/src/users/item/onenote/operations/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/operations/index.ts b/src/users/item/onenote/operations/index.ts index 0f478bba64c..71f9e7dfaed 100644 --- a/src/users/item/onenote/operations/index.ts +++ b/src/users/item/onenote/operations/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteOperationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteOperationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../models/onenoteOperation'; import { createOnenoteOperationCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteOperationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteOperationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteOperationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OperationsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/operations/item/index.ts b/src/users/item/onenote/operations/item/index.ts index ef789a9a928..c7d5196ad5b 100644 --- a/src/users/item/onenote/operations/item/index.ts +++ b/src/users/item/onenote/operations/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../models/onenoteOperation'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/pages/count/index.ts b/src/users/item/onenote/pages/count/index.ts index 523149fa205..10c5b7f0aa2 100644 --- a/src/users/item/onenote/pages/count/index.ts +++ b/src/users/item/onenote/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/pages/index.ts b/src/users/item/onenote/pages/index.ts index 8d008034090..223d2ea9874 100644 --- a/src/users/item/onenote/pages/index.ts +++ b/src/users/item/onenote/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/pages/item/content/index.ts b/src/users/item/onenote/pages/item/content/index.ts index 5319f06b7c8..227b385c17f 100644 --- a/src/users/item/onenote/pages/item/content/index.ts +++ b/src/users/item/onenote/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/users/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/users/item/onenote/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/pages/item/copyToSection/index.ts b/src/users/item/onenote/pages/item/copyToSection/index.ts index ea413a7c593..4b7a8d7ece5 100644 --- a/src/users/item/onenote/pages/item/copyToSection/index.ts +++ b/src/users/item/onenote/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/users/item/onenote/pages/item/index.ts b/src/users/item/onenote/pages/item/index.ts index a15a8b0bb88..6276375d498 100644 --- a/src/users/item/onenote/pages/item/index.ts +++ b/src/users/item/onenote/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/pages/item/onenotePatchContent/index.ts b/src/users/item/onenote/pages/item/onenotePatchContent/index.ts index 7733c904470..5b3617a2fd0 100644 --- a/src/users/item/onenote/pages/item/onenotePatchContent/index.ts +++ b/src/users/item/onenote/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/users/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/users/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index c24c48eedf2..00000000000 --- a/src/users/item/onenote/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/pages/item/parentNotebook/index.ts b/src/users/item/onenote/pages/item/parentNotebook/index.ts index b57e208742c..6e6eafae2b4 100644 --- a/src/users/item/onenote/pages/item/parentNotebook/index.ts +++ b/src/users/item/onenote/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/pages/item/parentSection/index.ts b/src/users/item/onenote/pages/item/parentSection/index.ts index 832902094b6..51026ee525c 100644 --- a/src/users/item/onenote/pages/item/parentSection/index.ts +++ b/src/users/item/onenote/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/pages/item/preview/index.ts b/src/users/item/onenote/pages/item/preview/index.ts index 8c3ab396187..06d271cb495 100644 --- a/src/users/item/onenote/pages/item/preview/index.ts +++ b/src/users/item/onenote/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/resources/count/index.ts b/src/users/item/onenote/resources/count/index.ts index 51daa675a26..3a88f192ed3 100644 --- a/src/users/item/onenote/resources/count/index.ts +++ b/src/users/item/onenote/resources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/resources/index.ts b/src/users/item/onenote/resources/index.ts index a5c3c1394b4..7c79e20fa68 100644 --- a/src/users/item/onenote/resources/index.ts +++ b/src/users/item/onenote/resources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteResourceCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteResourceCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue, deserializeIntoOnenoteResource, serializeOnenoteResource, type OnenoteResource } from '../../../../models/onenoteResource'; import { createOnenoteResourceCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteResourceCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ResourcesRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/resources/item/content/index.ts b/src/users/item/onenote/resources/item/content/index.ts index f9dd5950de8..8b17ca90729 100644 --- a/src/users/item/onenote/resources/item/content/index.ts +++ b/src/users/item/onenote/resources/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteResource } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteResource } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue } from '../../../../../../models/onenoteResource'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/resources/item/index.ts b/src/users/item/onenote/resources/item/index.ts index bb484b2bd19..800bc7b7038 100644 --- a/src/users/item/onenote/resources/item/index.ts +++ b/src/users/item/onenote/resources/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteResourceFromDiscriminatorValue, deserializeIntoOnenoteResource, serializeOnenoteResource, type OnenoteResource } from '../../../../../models/onenoteResource'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteResourceItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sectionGroups/count/index.ts b/src/users/item/onenote/sectionGroups/count/index.ts index 36a8a32e8a5..027ec36bb86 100644 --- a/src/users/item/onenote/sectionGroups/count/index.ts +++ b/src/users/item/onenote/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/index.ts b/src/users/item/onenote/sectionGroups/index.ts index d3a8d24ee1e..0f53984da88 100644 --- a/src/users/item/onenote/sectionGroups/index.ts +++ b/src/users/item/onenote/sectionGroups/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../models/sectionGroup'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sectionGroups/item/index.ts b/src/users/item/onenote/sectionGroups/item/index.ts index d51d5cd896a..eb91064c4ed 100644 --- a/src/users/item/onenote/sectionGroups/item/index.ts +++ b/src/users/item/onenote/sectionGroups/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue, deserializeIntoSectionGroup, serializeSectionGroup, type SectionGroup } from '../../../../../models/sectionGroup'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; -import { SectionGroupsRequestBuilder } from './sectionGroups/'; -import { SectionsRequestBuilder } from './sections/'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; +import { SectionGroupsRequestBuilder } from './sectionGroups'; +import { SectionsRequestBuilder } from './sections'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sectionGroups/item/parentNotebook/index.ts b/src/users/item/onenote/sectionGroups/item/parentNotebook/index.ts index f80b2e14979..e864616f8e3 100644 --- a/src/users/item/onenote/sectionGroups/item/parentNotebook/index.ts +++ b/src/users/item/onenote/sectionGroups/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/parentSectionGroup/index.ts b/src/users/item/onenote/sectionGroups/item/parentSectionGroup/index.ts index 6fea5e8c834..43b360ad02c 100644 --- a/src/users/item/onenote/sectionGroups/item/parentSectionGroup/index.ts +++ b/src/users/item/onenote/sectionGroups/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sectionGroups/count/index.ts b/src/users/item/onenote/sectionGroups/item/sectionGroups/count/index.ts index fde74acf535..50b7a8ffbb6 100644 --- a/src/users/item/onenote/sectionGroups/item/sectionGroups/count/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sectionGroups/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sectionGroups/index.ts b/src/users/item/onenote/sectionGroups/item/sectionGroups/index.ts index 5e1bd7d864c..1e660d07d59 100644 --- a/src/users/item/onenote/sectionGroups/item/sectionGroups/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sectionGroups/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroupCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroupCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupCollectionResponseFromDiscriminatorValue } from '../../../../../../models/sectionGroupCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { SectionGroupItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { SectionGroupItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionGroupsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sectionGroups/item/sectionGroups/item/index.ts b/src/users/item/onenote/sectionGroups/item/sectionGroups/item/index.ts index 2355d09d6e6..b2c46282a2e 100644 --- a/src/users/item/onenote/sectionGroups/item/sectionGroups/item/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sectionGroups/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../models/'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../models'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sections/count/index.ts b/src/users/item/onenote/sectionGroups/item/sections/count/index.ts index 10c15d823dd..764c038754d 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/count/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sections/index.ts b/src/users/item/onenote/sectionGroups/item/sections/index.ts index 5bc61ef1509..7604c6f8c52 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts index 6cded46bbb3..47519a9e91d 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts index 66b7eaf601b..f36d6e18262 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/index.ts index f27f72075c9..454581764df 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts index ba50d18892b..c286b394cf7 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/index.ts index 461a34ae7aa..da763f71e51 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts index 5281c482d05..add33f3a051 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts index a60c88bc0d0..5d1f013eb7c 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts index a920d61c561..40bda0ec1fc 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts index c3ef4d7820b..188a9f39fc3 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 880ee726f2b..00000000000 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts index dc529ed0b65..7caa0a602ba 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts index 26134b96868..bb8d0493b61 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts index 4c712c04d43..1237434edf4 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts index 64358cafaf5..7243c00e627 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts b/src/users/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts index 595bfd5ff2a..dc28bcee26a 100644 --- a/src/users/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts +++ b/src/users/item/onenote/sectionGroups/item/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sections/count/index.ts b/src/users/item/onenote/sections/count/index.ts index 899baeac05d..2d438830dea 100644 --- a/src/users/item/onenote/sections/count/index.ts +++ b/src/users/item/onenote/sections/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sections/index.ts b/src/users/item/onenote/sections/index.ts index 45c048c38c6..50704c30596 100644 --- a/src/users/item/onenote/sections/index.ts +++ b/src/users/item/onenote/sections/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSectionCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OnenoteSectionCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../models/onenoteSection'; import { createOnenoteSectionCollectionResponseFromDiscriminatorValue } from '../../../../models/onenoteSectionCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenoteSectionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenoteSectionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SectionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts b/src/users/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts deleted file mode 100644 index a90759bee1d..00000000000 --- a/src/users/item/onenote/sections/item/copyToNotebook/copyToNotebookPostRequestBody.ts +++ /dev/null @@ -1,54 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The renameAs property - */ - renameAs?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToNotebookPostRequestBody; -} -export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { - return { - "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, - "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, - "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { - writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); - writer.writeStringValue("id", copyToNotebookPostRequestBody.id); - writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); - writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); - writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/sections/item/copyToNotebook/index.ts b/src/users/item/onenote/sections/item/copyToNotebook/index.ts index dccd148c091..527d3c24b9b 100644 --- a/src/users/item/onenote/sections/item/copyToNotebook/index.ts +++ b/src/users/item/onenote/sections/item/copyToNotebook/index.ts @@ -1,12 +1,58 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToNotebookPostRequestBody, serializeCopyToNotebookPostRequestBody, type CopyToNotebookPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToNotebookPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The renameAs property + */ + renameAs?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToNotebookPostRequestBody; +} +export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : Record void> { + return { + "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); }, + "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); }, + "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToNotebookPostRequestBody(writer: SerializationWriter, copyToNotebookPostRequestBody: CopyToNotebookPostRequestBody | undefined = {} as CopyToNotebookPostRequestBody) : void { + writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId); + writer.writeStringValue("id", copyToNotebookPostRequestBody.id); + writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs); + writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId); + writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData); +} /** * Provides operations to call the copyToNotebook method. */ diff --git a/src/users/item/onenote/sections/item/copyToSectionGroup/index.ts b/src/users/item/onenote/sections/item/copyToSectionGroup/index.ts index 6a72ebbc2c9..f36d6e18262 100644 --- a/src/users/item/onenote/sections/item/copyToSectionGroup/index.ts +++ b/src/users/item/onenote/sections/item/copyToSectionGroup/index.ts @@ -1,10 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../models/onenoteOperation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export interface CopyToSectionGroupPostRequestBody extends AdditionalDataHolder, Parsable { /** @@ -53,58 +50,5 @@ export function serializeCopyToSectionGroupPostRequestBody(writer: Serialization writer.writeStringValue("siteId", copyToSectionGroupPostRequestBody.siteId); writer.writeAdditionalData(copyToSectionGroupPostRequestBody.additionalData); } -/** - * Provides operations to call the copyToSectionGroup method. - */ -export class CopyToSectionGroupRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CopyToSectionGroupRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup"); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnenoteOperation - * @see {@link https://learn.microsoft.com/graph/api/section-copytosectiongroup?view=graph-rest-1.0|Find more info here} - */ - public post(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, errorMapping); - }; - /** - * For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CopyToSectionGroupPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCopyToSectionGroupPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a copyToSectionGroupRequestBuilder - */ - public withUrl(rawUrl: string) : CopyToSectionGroupRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CopyToSectionGroupRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/onenote/sections/item/index.ts b/src/users/item/onenote/sections/item/index.ts index 080b0326cc2..1fb7b391045 100644 --- a/src/users/item/onenote/sections/item/index.ts +++ b/src/users/item/onenote/sections/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue, deserializeIntoOnenoteSection, serializeOnenoteSection, type OnenoteSection } from '../../../../../models/onenoteSection'; -import { CopyToNotebookRequestBuilder } from './copyToNotebook/'; -import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup/'; -import { PagesRequestBuilder } from './pages/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionGroupRequestBuilder } from './parentSectionGroup/'; +import { CopyToNotebookRequestBuilder } from './copyToNotebook'; +import { CopyToSectionGroupRequestBuilder } from './copyToSectionGroup'; +import { PagesRequestBuilder } from './pages'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionGroupRequestBuilder } from './parentSectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenoteSectionItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sections/item/pages/count/index.ts b/src/users/item/onenote/sections/item/pages/count/index.ts index 5a401fd49f3..55fdd634435 100644 --- a/src/users/item/onenote/sections/item/pages/count/index.ts +++ b/src/users/item/onenote/sections/item/pages/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sections/item/pages/index.ts b/src/users/item/onenote/sections/item/pages/index.ts index 87b6e8f1291..347043eab32 100644 --- a/src/users/item/onenote/sections/item/pages/index.ts +++ b/src/users/item/onenote/sections/item/pages/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePageCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type OnenotePageCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../models/onenotePage'; import { createOnenotePageCollectionResponseFromDiscriminatorValue } from '../../../../../../models/onenotePageCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OnenotePageItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OnenotePageItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PagesRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sections/item/pages/item/content/index.ts b/src/users/item/onenote/sections/item/pages/item/content/index.ts index 1a7662c1c44..24dbd98c43a 100644 --- a/src/users/item/onenote/sections/item/pages/item/content/index.ts +++ b/src/users/item/onenote/sections/item/pages/item/content/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePage } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePage } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue } from '../../../../../../../../models/onenotePage'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts b/src/users/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts deleted file mode 100644 index dd27a1dd92f..00000000000 --- a/src/users/item/onenote/sections/item/pages/item/copyToSection/copyToSectionPostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The groupId property - */ - groupId?: string; - /** - * The id property - */ - id?: string; - /** - * The siteCollectionId property - */ - siteCollectionId?: string; - /** - * The siteId property - */ - siteId?: string; -} -export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoCopyToSectionPostRequestBody; -} -export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { - return { - "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, - "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, - "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, - "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, - } -} -export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { - writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); - writer.writeStringValue("id", copyToSectionPostRequestBody.id); - writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); - writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); - writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/sections/item/pages/item/copyToSection/index.ts b/src/users/item/onenote/sections/item/pages/item/copyToSection/index.ts index ff4529eff92..8837209fc79 100644 --- a/src/users/item/onenote/sections/item/pages/item/copyToSection/index.ts +++ b/src/users/item/onenote/sections/item/pages/item/copyToSection/index.ts @@ -1,12 +1,52 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteOperationFromDiscriminatorValue, deserializeIntoOnenoteOperation, serializeOnenoteOperation, type OnenoteOperation } from '../../../../../../../../models/onenoteOperation'; -import { deserializeIntoCopyToSectionPostRequestBody, serializeCopyToSectionPostRequestBody, type CopyToSectionPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface CopyToSectionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The groupId property + */ + groupId?: string; + /** + * The id property + */ + id?: string; + /** + * The siteCollectionId property + */ + siteCollectionId?: string; + /** + * The siteId property + */ + siteId?: string; +} +export function createCopyToSectionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoCopyToSectionPostRequestBody; +} +export function deserializeIntoCopyToSectionPostRequestBody(copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : Record void> { + return { + "groupId": n => { copyToSectionPostRequestBody.groupId = n.getStringValue(); }, + "id": n => { copyToSectionPostRequestBody.id = n.getStringValue(); }, + "siteCollectionId": n => { copyToSectionPostRequestBody.siteCollectionId = n.getStringValue(); }, + "siteId": n => { copyToSectionPostRequestBody.siteId = n.getStringValue(); }, + } +} +export function serializeCopyToSectionPostRequestBody(writer: SerializationWriter, copyToSectionPostRequestBody: CopyToSectionPostRequestBody | undefined = {} as CopyToSectionPostRequestBody) : void { + writer.writeStringValue("groupId", copyToSectionPostRequestBody.groupId); + writer.writeStringValue("id", copyToSectionPostRequestBody.id); + writer.writeStringValue("siteCollectionId", copyToSectionPostRequestBody.siteCollectionId); + writer.writeStringValue("siteId", copyToSectionPostRequestBody.siteId); + writer.writeAdditionalData(copyToSectionPostRequestBody.additionalData); +} /** * Provides operations to call the copyToSection method. */ diff --git a/src/users/item/onenote/sections/item/pages/item/index.ts b/src/users/item/onenote/sections/item/pages/item/index.ts index 20182cb87c5..db770f5c932 100644 --- a/src/users/item/onenote/sections/item/pages/item/index.ts +++ b/src/users/item/onenote/sections/item/pages/item/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePageFromDiscriminatorValue, deserializeIntoOnenotePage, serializeOnenotePage, type OnenotePage } from '../../../../../../../models/onenotePage'; -import { ContentRequestBuilder } from './content/'; -import { CopyToSectionRequestBuilder } from './copyToSection/'; -import { OnenotePatchContentRequestBuilder } from './onenotePatchContent/'; -import { ParentNotebookRequestBuilder } from './parentNotebook/'; -import { ParentSectionRequestBuilder } from './parentSection/'; -import { PreviewRequestBuilder } from './preview/'; +import { ContentRequestBuilder } from './content'; +import { CopyToSectionRequestBuilder } from './copyToSection'; +import { OnenotePatchContentRequestBuilder } from './onenotePatchContent'; +import { ParentNotebookRequestBuilder } from './parentNotebook'; +import { ParentSectionRequestBuilder } from './parentSection'; +import { PreviewRequestBuilder } from './preview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnenotePageItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts b/src/users/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts index c0363bbc549..4eb73a0cd00 100644 --- a/src/users/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts +++ b/src/users/item/onenote/sections/item/pages/item/onenotePatchContent/index.ts @@ -1,11 +1,34 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { deserializeIntoOnenotePatchContentPostRequestBody, serializeOnenotePatchContentPostRequestBody, type OnenotePatchContentPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../models/onenotePatchContentCommand'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoOnenotePatchContentPostRequestBody; +} +export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { + return { + "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, + } +} +export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The commands property + */ + commands?: OnenotePatchContentCommand[]; +} +export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { + writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); + writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); +} /** * Provides operations to call the onenotePatchContent method. */ diff --git a/src/users/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts b/src/users/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts deleted file mode 100644 index 88f8cace3bc..00000000000 --- a/src/users/item/onenote/sections/item/pages/item/onenotePatchContent/onenotePatchContentPostRequestBody.ts +++ /dev/null @@ -1,31 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createOnenotePatchContentCommandFromDiscriminatorValue, serializeOnenotePatchContentCommand, type OnenotePatchContentCommand } from '../../../../../../../../models/onenotePatchContentCommand'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createOnenotePatchContentPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoOnenotePatchContentPostRequestBody; -} -export function deserializeIntoOnenotePatchContentPostRequestBody(onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : Record void> { - return { - "commands": n => { onenotePatchContentPostRequestBody.commands = n.getCollectionOfObjectValues(createOnenotePatchContentCommandFromDiscriminatorValue); }, - } -} -export interface OnenotePatchContentPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The commands property - */ - commands?: OnenotePatchContentCommand[]; -} -export function serializeOnenotePatchContentPostRequestBody(writer: SerializationWriter, onenotePatchContentPostRequestBody: OnenotePatchContentPostRequestBody | undefined = {} as OnenotePatchContentPostRequestBody) : void { - writer.writeCollectionOfObjectValues("commands", onenotePatchContentPostRequestBody.commands, serializeOnenotePatchContentCommand); - writer.writeAdditionalData(onenotePatchContentPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onenote/sections/item/pages/item/parentNotebook/index.ts b/src/users/item/onenote/sections/item/pages/item/parentNotebook/index.ts index 0f74684b5f1..4580c77248d 100644 --- a/src/users/item/onenote/sections/item/pages/item/parentNotebook/index.ts +++ b/src/users/item/onenote/sections/item/pages/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../../../models/'; +import { type Notebook } from '../../../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sections/item/pages/item/parentSection/index.ts b/src/users/item/onenote/sections/item/pages/item/parentSection/index.ts index 8fbf3badb86..b69f895b8f2 100644 --- a/src/users/item/onenote/sections/item/pages/item/parentSection/index.ts +++ b/src/users/item/onenote/sections/item/pages/item/parentSection/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenoteSection } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenoteSection } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenoteSectionFromDiscriminatorValue } from '../../../../../../../../models/onenoteSection'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sections/item/pages/item/preview/index.ts b/src/users/item/onenote/sections/item/pages/item/preview/index.ts index dbaa684c31f..4f09c55f543 100644 --- a/src/users/item/onenote/sections/item/pages/item/preview/index.ts +++ b/src/users/item/onenote/sections/item/pages/item/preview/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnenotePagePreview } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type OnenotePagePreview } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createOnenotePagePreviewFromDiscriminatorValue } from '../../../../../../../../models/onenotePagePreview'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sections/item/parentNotebook/index.ts b/src/users/item/onenote/sections/item/parentNotebook/index.ts index d916e3bc00b..23ad7f230ee 100644 --- a/src/users/item/onenote/sections/item/parentNotebook/index.ts +++ b/src/users/item/onenote/sections/item/parentNotebook/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Notebook } from '../../../../../../models/'; +import { type Notebook } from '../../../../../../models'; import { createNotebookFromDiscriminatorValue } from '../../../../../../models/notebook'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onenote/sections/item/parentSectionGroup/index.ts b/src/users/item/onenote/sections/item/parentSectionGroup/index.ts index 3231c3c1d01..92153b1ef48 100644 --- a/src/users/item/onenote/sections/item/parentSectionGroup/index.ts +++ b/src/users/item/onenote/sections/item/parentSectionGroup/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type SectionGroup } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type SectionGroup } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createSectionGroupFromDiscriminatorValue } from '../../../../../../models/sectionGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/count/index.ts b/src/users/item/onlineMeetings/count/index.ts index 1c3700d2ef2..2029d78fd61 100644 --- a/src/users/item/onlineMeetings/count/index.ts +++ b/src/users/item/onlineMeetings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/createOrGet/index.ts b/src/users/item/onlineMeetings/createOrGet/index.ts index 1fe567a8075..5f6bb9da400 100644 --- a/src/users/item/onlineMeetings/createOrGet/index.ts +++ b/src/users/item/onlineMeetings/createOrGet/index.ts @@ -3,10 +3,7 @@ // Generated by Microsoft Kiota import { createChatInfoFromDiscriminatorValue, serializeChatInfo, type ChatInfo } from '../../../../models/chatInfo'; import { createMeetingParticipantsFromDiscriminatorValue, serializeMeetingParticipants, type MeetingParticipants } from '../../../../models/meetingParticipants'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createOnlineMeetingFromDiscriminatorValue, deserializeIntoOnlineMeeting, serializeOnlineMeeting, type OnlineMeeting } from '../../../../models/onlineMeeting'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateOrGetPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -61,58 +58,5 @@ export function serializeCreateOrGetPostRequestBody(writer: SerializationWriter, writer.writeStringValue("subject", createOrGetPostRequestBody.subject); writer.writeAdditionalData(createOrGetPostRequestBody.additionalData); } -/** - * Provides operations to call the createOrGet method. - */ -export class CreateOrGetRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateOrGetRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/createOrGet"); - }; - /** - * Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of OnlineMeeting - * @see {@link https://learn.microsoft.com/graph/api/onlinemeeting-createorget?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateOrGetPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createOnlineMeetingFromDiscriminatorValue, errorMapping); - }; - /** - * Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateOrGetPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateOrGetPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createOrGetRequestBuilder - */ - public withUrl(rawUrl: string) : CreateOrGetRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateOrGetRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/onlineMeetings/index.ts b/src/users/item/onlineMeetings/index.ts index f4f26c7dae9..fff683cd69e 100644 --- a/src/users/item/onlineMeetings/index.ts +++ b/src/users/item/onlineMeetings/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OnlineMeetingCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type OnlineMeetingCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOnlineMeetingFromDiscriminatorValue, deserializeIntoOnlineMeeting, serializeOnlineMeeting, type OnlineMeeting } from '../../../models/onlineMeeting'; import { createOnlineMeetingCollectionResponseFromDiscriminatorValue } from '../../../models/onlineMeetingCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { CreateOrGetRequestBuilder } from './createOrGet/'; -import { OnlineMeetingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateOrGetRequestBuilder } from './createOrGet'; +import { OnlineMeetingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnlineMeetingsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/attendanceReports/count/index.ts b/src/users/item/onlineMeetings/item/attendanceReports/count/index.ts index 4ac48cff1b9..a8b3a524d79 100644 --- a/src/users/item/onlineMeetings/item/attendanceReports/count/index.ts +++ b/src/users/item/onlineMeetings/item/attendanceReports/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/item/attendanceReports/index.ts b/src/users/item/onlineMeetings/item/attendanceReports/index.ts index d954e24963c..68dca1199a0 100644 --- a/src/users/item/onlineMeetings/item/attendanceReports/index.ts +++ b/src/users/item/onlineMeetings/item/attendanceReports/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type MeetingAttendanceReportCollectionResponse } from '../../../../../models/'; +import { type MeetingAttendanceReportCollectionResponse } from '../../../../../models'; import { createMeetingAttendanceReportFromDiscriminatorValue, deserializeIntoMeetingAttendanceReport, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '../../../../../models/meetingAttendanceReport'; import { createMeetingAttendanceReportCollectionResponseFromDiscriminatorValue } from '../../../../../models/meetingAttendanceReportCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { MeetingAttendanceReportItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { MeetingAttendanceReportItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttendanceReportsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.ts b/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.ts index bfed085a3b3..db59a36ae10 100644 --- a/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.ts +++ b/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.ts b/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.ts index cc95734c207..e3968b5795d 100644 --- a/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.ts +++ b/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttendanceRecordCollectionResponse } from '../../../../../../../models/'; +import { type AttendanceRecordCollectionResponse } from '../../../../../../../models'; import { createAttendanceRecordFromDiscriminatorValue, deserializeIntoAttendanceRecord, serializeAttendanceRecord, type AttendanceRecord } from '../../../../../../../models/attendanceRecord'; import { createAttendanceRecordCollectionResponseFromDiscriminatorValue } from '../../../../../../../models/attendanceRecordCollectionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AttendanceRecordItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AttendanceRecordItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttendanceRecordsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.ts b/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.ts index 2b78894e6ad..8d5a99dfa7d 100644 --- a/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.ts +++ b/src/users/item/onlineMeetings/item/attendanceReports/item/attendanceRecords/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttendanceRecordFromDiscriminatorValue, deserializeIntoAttendanceRecord, serializeAttendanceRecord, type AttendanceRecord } from '../../../../../../../../models/attendanceRecord'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/item/attendanceReports/item/index.ts b/src/users/item/onlineMeetings/item/attendanceReports/item/index.ts index a9d14c6319e..932b2c5aae8 100644 --- a/src/users/item/onlineMeetings/item/attendanceReports/item/index.ts +++ b/src/users/item/onlineMeetings/item/attendanceReports/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createMeetingAttendanceReportFromDiscriminatorValue, deserializeIntoMeetingAttendanceReport, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '../../../../../../models/meetingAttendanceReport'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { AttendanceRecordsRequestBuilder } from './attendanceRecords/'; +import { AttendanceRecordsRequestBuilder } from './attendanceRecords'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MeetingAttendanceReportItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/attendeeReport/index.ts b/src/users/item/onlineMeetings/item/attendeeReport/index.ts index a58db8f152d..355d055a460 100644 --- a/src/users/item/onlineMeetings/item/attendeeReport/index.ts +++ b/src/users/item/onlineMeetings/item/attendeeReport/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/getVirtualAppointmentJoinWebUrlGetResponse.ts b/src/users/item/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/getVirtualAppointmentJoinWebUrlGetResponse.ts deleted file mode 100644 index 8c7f0c7bfa1..00000000000 --- a/src/users/item/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/getVirtualAppointmentJoinWebUrlGetResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createGetVirtualAppointmentJoinWebUrlGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoGetVirtualAppointmentJoinWebUrlGetResponse; -} -export function deserializeIntoGetVirtualAppointmentJoinWebUrlGetResponse(getVirtualAppointmentJoinWebUrlGetResponse: GetVirtualAppointmentJoinWebUrlGetResponse | undefined = {} as GetVirtualAppointmentJoinWebUrlGetResponse) : Record void> { - return { - "value": n => { getVirtualAppointmentJoinWebUrlGetResponse.value = n.getStringValue(); }, - } -} -export interface GetVirtualAppointmentJoinWebUrlGetResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: string; -} -export function serializeGetVirtualAppointmentJoinWebUrlGetResponse(writer: SerializationWriter, getVirtualAppointmentJoinWebUrlGetResponse: GetVirtualAppointmentJoinWebUrlGetResponse | undefined = {} as GetVirtualAppointmentJoinWebUrlGetResponse) : void { - writer.writeStringValue("value", getVirtualAppointmentJoinWebUrlGetResponse.value); - writer.writeAdditionalData(getVirtualAppointmentJoinWebUrlGetResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.ts b/src/users/item/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.ts index 4683ec66ead..3ca32e1ed76 100644 --- a/src/users/item/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.ts +++ b/src/users/item/onlineMeetings/item/getVirtualAppointmentJoinWebUrl/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { createGetVirtualAppointmentJoinWebUrlGetResponseFromDiscriminatorValue } from './'; -import { type GetVirtualAppointmentJoinWebUrlGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createGetVirtualAppointmentJoinWebUrlGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoGetVirtualAppointmentJoinWebUrlGetResponse; +} +export function deserializeIntoGetVirtualAppointmentJoinWebUrlGetResponse(getVirtualAppointmentJoinWebUrlGetResponse: GetVirtualAppointmentJoinWebUrlGetResponse | undefined = {} as GetVirtualAppointmentJoinWebUrlGetResponse) : Record void> { + return { + "value": n => { getVirtualAppointmentJoinWebUrlGetResponse.value = n.getStringValue(); }, + } +} +export interface GetVirtualAppointmentJoinWebUrlGetResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: string; +} +export function serializeGetVirtualAppointmentJoinWebUrlGetResponse(writer: SerializationWriter, getVirtualAppointmentJoinWebUrlGetResponse: GetVirtualAppointmentJoinWebUrlGetResponse | undefined = {} as GetVirtualAppointmentJoinWebUrlGetResponse) : void { + writer.writeStringValue("value", getVirtualAppointmentJoinWebUrlGetResponse.value); + writer.writeAdditionalData(getVirtualAppointmentJoinWebUrlGetResponse.additionalData); +} /** * Provides operations to call the getVirtualAppointmentJoinWebUrl method. */ diff --git a/src/users/item/onlineMeetings/item/index.ts b/src/users/item/onlineMeetings/item/index.ts index 86553047465..99841e3d499 100644 --- a/src/users/item/onlineMeetings/item/index.ts +++ b/src/users/item/onlineMeetings/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOnlineMeetingFromDiscriminatorValue, deserializeIntoOnlineMeeting, serializeOnlineMeeting, type OnlineMeeting } from '../../../../models/onlineMeeting'; -import { AttendanceReportsRequestBuilder } from './attendanceReports/'; -import { AttendeeReportRequestBuilder } from './attendeeReport/'; -import { GetVirtualAppointmentJoinWebUrlRequestBuilder } from './getVirtualAppointmentJoinWebUrl/'; -import { RecordingsRequestBuilder } from './recordings/'; -import { TranscriptsRequestBuilder } from './transcripts/'; +import { AttendanceReportsRequestBuilder } from './attendanceReports'; +import { AttendeeReportRequestBuilder } from './attendeeReport'; +import { GetVirtualAppointmentJoinWebUrlRequestBuilder } from './getVirtualAppointmentJoinWebUrl'; +import { RecordingsRequestBuilder } from './recordings'; +import { TranscriptsRequestBuilder } from './transcripts'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OnlineMeetingItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/recordings/count/index.ts b/src/users/item/onlineMeetings/item/recordings/count/index.ts index 1f0906cc695..6a133fac3c4 100644 --- a/src/users/item/onlineMeetings/item/recordings/count/index.ts +++ b/src/users/item/onlineMeetings/item/recordings/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/item/recordings/index.ts b/src/users/item/onlineMeetings/item/recordings/index.ts index 718cc26bcc3..d28598bd001 100644 --- a/src/users/item/onlineMeetings/item/recordings/index.ts +++ b/src/users/item/onlineMeetings/item/recordings/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallRecordingCollectionResponse } from '../../../../../models/'; +import { type CallRecordingCollectionResponse } from '../../../../../models'; import { createCallRecordingFromDiscriminatorValue, deserializeIntoCallRecording, serializeCallRecording, type CallRecording } from '../../../../../models/callRecording'; import { createCallRecordingCollectionResponseFromDiscriminatorValue } from '../../../../../models/callRecordingCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CallRecordingItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CallRecordingItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RecordingsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/recordings/item/content/index.ts b/src/users/item/onlineMeetings/item/recordings/item/content/index.ts index 6051b9be427..058f16c8dbd 100644 --- a/src/users/item/onlineMeetings/item/recordings/item/content/index.ts +++ b/src/users/item/onlineMeetings/item/recordings/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallRecording } from '../../../../../../../models/'; +import { type CallRecording } from '../../../../../../../models'; import { createCallRecordingFromDiscriminatorValue } from '../../../../../../../models/callRecording'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/item/recordings/item/index.ts b/src/users/item/onlineMeetings/item/recordings/item/index.ts index bc03a027cbc..f7ba8195b08 100644 --- a/src/users/item/onlineMeetings/item/recordings/item/index.ts +++ b/src/users/item/onlineMeetings/item/recordings/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createCallRecordingFromDiscriminatorValue, deserializeIntoCallRecording, serializeCallRecording, type CallRecording } from '../../../../../../models/callRecording'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CallRecordingItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/transcripts/count/index.ts b/src/users/item/onlineMeetings/item/transcripts/count/index.ts index 1cbb722a2cd..0693176dd66 100644 --- a/src/users/item/onlineMeetings/item/transcripts/count/index.ts +++ b/src/users/item/onlineMeetings/item/transcripts/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/item/transcripts/index.ts b/src/users/item/onlineMeetings/item/transcripts/index.ts index adf10384936..856a4dfb7aa 100644 --- a/src/users/item/onlineMeetings/item/transcripts/index.ts +++ b/src/users/item/onlineMeetings/item/transcripts/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallTranscriptCollectionResponse } from '../../../../../models/'; +import { type CallTranscriptCollectionResponse } from '../../../../../models'; import { createCallTranscriptFromDiscriminatorValue, deserializeIntoCallTranscript, serializeCallTranscript, type CallTranscript } from '../../../../../models/callTranscript'; import { createCallTranscriptCollectionResponseFromDiscriminatorValue } from '../../../../../models/callTranscriptCollectionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CallTranscriptItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CallTranscriptItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TranscriptsRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/transcripts/item/content/index.ts b/src/users/item/onlineMeetings/item/transcripts/item/content/index.ts index 1c7ec5cff6d..4d19d3ad6a3 100644 --- a/src/users/item/onlineMeetings/item/transcripts/item/content/index.ts +++ b/src/users/item/onlineMeetings/item/transcripts/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type CallTranscript } from '../../../../../../../models/'; +import { type CallTranscript } from '../../../../../../../models'; import { createCallTranscriptFromDiscriminatorValue } from '../../../../../../../models/callTranscript'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/onlineMeetings/item/transcripts/item/index.ts b/src/users/item/onlineMeetings/item/transcripts/item/index.ts index 95e3cfa3291..ca990535f18 100644 --- a/src/users/item/onlineMeetings/item/transcripts/item/index.ts +++ b/src/users/item/onlineMeetings/item/transcripts/item/index.ts @@ -2,10 +2,10 @@ // eslint-disable // Generated by Microsoft Kiota import { createCallTranscriptFromDiscriminatorValue, deserializeIntoCallTranscript, serializeCallTranscript, type CallTranscript } from '../../../../../../models/callTranscript'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; -import { MetadataContentRequestBuilder } from './metadataContent/'; +import { ContentRequestBuilder } from './content'; +import { MetadataContentRequestBuilder } from './metadataContent'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface CallTranscriptItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/onlineMeetings/item/transcripts/item/metadataContent/index.ts b/src/users/item/onlineMeetings/item/transcripts/item/metadataContent/index.ts index 7ea6bd57850..ac435dfde4d 100644 --- a/src/users/item/onlineMeetings/item/transcripts/item/metadataContent/index.ts +++ b/src/users/item/onlineMeetings/item/transcripts/item/metadataContent/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/outlook/index.ts b/src/users/item/outlook/index.ts index 172b88f4132..0e6fe2c12aa 100644 --- a/src/users/item/outlook/index.ts +++ b/src/users/item/outlook/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OutlookUser } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type OutlookUser } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createOutlookUserFromDiscriminatorValue } from '../../../models/outlookUser'; -import { MasterCategoriesRequestBuilder } from './masterCategories/'; -import { SupportedLanguagesRequestBuilder } from './supportedLanguages/'; -import { SupportedTimeZonesRequestBuilder } from './supportedTimeZones/'; -import { SupportedTimeZonesWithTimeZoneStandardRequestBuilder } from './supportedTimeZonesWithTimeZoneStandard/'; +import { MasterCategoriesRequestBuilder } from './masterCategories'; +import { SupportedLanguagesRequestBuilder } from './supportedLanguages'; +import { SupportedTimeZonesRequestBuilder } from './supportedTimeZones'; +import { SupportedTimeZonesWithTimeZoneStandardRequestBuilder } from './supportedTimeZonesWithTimeZoneStandard'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OutlookRequestBuilderGetQueryParameters { diff --git a/src/users/item/outlook/masterCategories/count/index.ts b/src/users/item/outlook/masterCategories/count/index.ts index 64c15ffc87d..dec9af9b6e2 100644 --- a/src/users/item/outlook/masterCategories/count/index.ts +++ b/src/users/item/outlook/masterCategories/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/outlook/masterCategories/index.ts b/src/users/item/outlook/masterCategories/index.ts index 24ea758a246..2cdba55e0b9 100644 --- a/src/users/item/outlook/masterCategories/index.ts +++ b/src/users/item/outlook/masterCategories/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type OutlookCategoryCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type OutlookCategoryCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createOutlookCategoryFromDiscriminatorValue, deserializeIntoOutlookCategory, serializeOutlookCategory, type OutlookCategory } from '../../../../models/outlookCategory'; import { createOutlookCategoryCollectionResponseFromDiscriminatorValue } from '../../../../models/outlookCategoryCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { OutlookCategoryItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { OutlookCategoryItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface MasterCategoriesRequestBuilderGetQueryParameters { diff --git a/src/users/item/outlook/masterCategories/item/index.ts b/src/users/item/outlook/masterCategories/item/index.ts index a3d0fe72ef0..549ba08986e 100644 --- a/src/users/item/outlook/masterCategories/item/index.ts +++ b/src/users/item/outlook/masterCategories/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createOutlookCategoryFromDiscriminatorValue, deserializeIntoOutlookCategory, serializeOutlookCategory, type OutlookCategory } from '../../../../../models/outlookCategory'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/outlook/supportedLanguages/index.ts b/src/users/item/outlook/supportedLanguages/index.ts index b0b8d4c2044..2e55737e264 100644 --- a/src/users/item/outlook/supportedLanguages/index.ts +++ b/src/users/item/outlook/supportedLanguages/index.ts @@ -1,12 +1,32 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { createLocaleInfoFromDiscriminatorValue, serializeLocaleInfo, type LocaleInfo } from '../../../../models/localeInfo'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createSupportedLanguagesGetResponseFromDiscriminatorValue } from './'; -import { type SupportedLanguagesGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSupportedLanguagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSupportedLanguagesGetResponse; +} +export function deserializeIntoSupportedLanguagesGetResponse(supportedLanguagesGetResponse: SupportedLanguagesGetResponse | undefined = {} as SupportedLanguagesGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(supportedLanguagesGetResponse), + "value": n => { supportedLanguagesGetResponse.value = n.getCollectionOfObjectValues(createLocaleInfoFromDiscriminatorValue); }, + } +} +export function serializeSupportedLanguagesGetResponse(writer: SerializationWriter, supportedLanguagesGetResponse: SupportedLanguagesGetResponse | undefined = {} as SupportedLanguagesGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, supportedLanguagesGetResponse) + writer.writeCollectionOfObjectValues("value", supportedLanguagesGetResponse.value, serializeLocaleInfo); +} +export interface SupportedLanguagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: LocaleInfo[]; +} export interface SupportedLanguagesRequestBuilderGetQueryParameters { /** * Include count of items diff --git a/src/users/item/outlook/supportedLanguages/supportedLanguagesGetResponse.ts b/src/users/item/outlook/supportedLanguages/supportedLanguagesGetResponse.ts deleted file mode 100644 index 1957841066f..00000000000 --- a/src/users/item/outlook/supportedLanguages/supportedLanguagesGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createLocaleInfoFromDiscriminatorValue, serializeLocaleInfo, type LocaleInfo } from '../../../../models/localeInfo'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSupportedLanguagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSupportedLanguagesGetResponse; -} -export function deserializeIntoSupportedLanguagesGetResponse(supportedLanguagesGetResponse: SupportedLanguagesGetResponse | undefined = {} as SupportedLanguagesGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(supportedLanguagesGetResponse), - "value": n => { supportedLanguagesGetResponse.value = n.getCollectionOfObjectValues(createLocaleInfoFromDiscriminatorValue); }, - } -} -export function serializeSupportedLanguagesGetResponse(writer: SerializationWriter, supportedLanguagesGetResponse: SupportedLanguagesGetResponse | undefined = {} as SupportedLanguagesGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, supportedLanguagesGetResponse) - writer.writeCollectionOfObjectValues("value", supportedLanguagesGetResponse.value, serializeLocaleInfo); -} -export interface SupportedLanguagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: LocaleInfo[]; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/outlook/supportedTimeZones/index.ts b/src/users/item/outlook/supportedTimeZones/index.ts index 9652309cdae..229c01ffc88 100644 --- a/src/users/item/outlook/supportedTimeZones/index.ts +++ b/src/users/item/outlook/supportedTimeZones/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTimeZoneInformationFromDiscriminatorValue, serializeTimeZoneInformation, type TimeZoneInformation } from '../../../../models/timeZoneInformation'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSupportedTimeZonesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -27,82 +25,5 @@ export interface SupportedTimeZonesGetResponse extends BaseCollectionPaginationC */ value?: TimeZoneInformation[]; } -export interface SupportedTimeZonesRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * Filter items by property values - */ - filter?: string; - /** - * Search items by search phrases - */ - search?: string; - /** - * Skip the first n items - */ - skip?: number; - /** - * Show only the first n items - */ - top?: number; -} -/** - * Provides operations to call the supportedTimeZones method. - */ -export class SupportedTimeZonesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SupportedTimeZonesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/supportedTimeZones(){?%24top,%24skip,%24search,%24filter,%24count}"); - }; - /** - * Invoke function supportedTimeZones - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of SupportedTimeZonesGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createSupportedTimeZonesGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function supportedTimeZones - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, supportedTimeZonesRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a supportedTimeZonesRequestBuilder - */ - public withUrl(rawUrl: string) : SupportedTimeZonesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SupportedTimeZonesRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const supportedTimeZonesRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "search": "%24search", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/outlook/supportedTimeZonesWithTimeZoneStandard/index.ts b/src/users/item/outlook/supportedTimeZonesWithTimeZoneStandard/index.ts index 83c46e22193..1ba0da74f73 100644 --- a/src/users/item/outlook/supportedTimeZonesWithTimeZoneStandard/index.ts +++ b/src/users/item/outlook/supportedTimeZonesWithTimeZoneStandard/index.ts @@ -1,12 +1,32 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { createSupportedTimeZonesWithTimeZoneStandardGetResponseFromDiscriminatorValue } from './'; -import { type SupportedTimeZonesWithTimeZoneStandardGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTimeZoneInformationFromDiscriminatorValue, serializeTimeZoneInformation, type TimeZoneInformation } from '../../../../models/timeZoneInformation'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSupportedTimeZonesWithTimeZoneStandardGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSupportedTimeZonesWithTimeZoneStandardGetResponse; +} +export function deserializeIntoSupportedTimeZonesWithTimeZoneStandardGetResponse(supportedTimeZonesWithTimeZoneStandardGetResponse: SupportedTimeZonesWithTimeZoneStandardGetResponse | undefined = {} as SupportedTimeZonesWithTimeZoneStandardGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(supportedTimeZonesWithTimeZoneStandardGetResponse), + "value": n => { supportedTimeZonesWithTimeZoneStandardGetResponse.value = n.getCollectionOfObjectValues(createTimeZoneInformationFromDiscriminatorValue); }, + } +} +export function serializeSupportedTimeZonesWithTimeZoneStandardGetResponse(writer: SerializationWriter, supportedTimeZonesWithTimeZoneStandardGetResponse: SupportedTimeZonesWithTimeZoneStandardGetResponse | undefined = {} as SupportedTimeZonesWithTimeZoneStandardGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, supportedTimeZonesWithTimeZoneStandardGetResponse) + writer.writeCollectionOfObjectValues("value", supportedTimeZonesWithTimeZoneStandardGetResponse.value, serializeTimeZoneInformation); +} +export interface SupportedTimeZonesWithTimeZoneStandardGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: TimeZoneInformation[]; +} export interface SupportedTimeZonesWithTimeZoneStandardRequestBuilderGetQueryParameters { /** * Include count of items diff --git a/src/users/item/outlook/supportedTimeZonesWithTimeZoneStandard/supportedTimeZonesWithTimeZoneStandardGetResponse.ts b/src/users/item/outlook/supportedTimeZonesWithTimeZoneStandard/supportedTimeZonesWithTimeZoneStandardGetResponse.ts deleted file mode 100644 index 3be8686db32..00000000000 --- a/src/users/item/outlook/supportedTimeZonesWithTimeZoneStandard/supportedTimeZonesWithTimeZoneStandardGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../../models/baseCollectionPaginationCountResponse'; -import { createTimeZoneInformationFromDiscriminatorValue, serializeTimeZoneInformation, type TimeZoneInformation } from '../../../../models/timeZoneInformation'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSupportedTimeZonesWithTimeZoneStandardGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSupportedTimeZonesWithTimeZoneStandardGetResponse; -} -export function deserializeIntoSupportedTimeZonesWithTimeZoneStandardGetResponse(supportedTimeZonesWithTimeZoneStandardGetResponse: SupportedTimeZonesWithTimeZoneStandardGetResponse | undefined = {} as SupportedTimeZonesWithTimeZoneStandardGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(supportedTimeZonesWithTimeZoneStandardGetResponse), - "value": n => { supportedTimeZonesWithTimeZoneStandardGetResponse.value = n.getCollectionOfObjectValues(createTimeZoneInformationFromDiscriminatorValue); }, - } -} -export function serializeSupportedTimeZonesWithTimeZoneStandardGetResponse(writer: SerializationWriter, supportedTimeZonesWithTimeZoneStandardGetResponse: SupportedTimeZonesWithTimeZoneStandardGetResponse | undefined = {} as SupportedTimeZonesWithTimeZoneStandardGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, supportedTimeZonesWithTimeZoneStandardGetResponse) - writer.writeCollectionOfObjectValues("value", supportedTimeZonesWithTimeZoneStandardGetResponse.value, serializeTimeZoneInformation); -} -export interface SupportedTimeZonesWithTimeZoneStandardGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: TimeZoneInformation[]; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/ownedDevices/count/index.ts b/src/users/item/ownedDevices/count/index.ts index a2261c57f01..3d6a69886f8 100644 --- a/src/users/item/ownedDevices/count/index.ts +++ b/src/users/item/ownedDevices/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedDevices/graphAppRoleAssignment/count/index.ts b/src/users/item/ownedDevices/graphAppRoleAssignment/count/index.ts index 6225ef780f1..4b7f35fa6ac 100644 --- a/src/users/item/ownedDevices/graphAppRoleAssignment/count/index.ts +++ b/src/users/item/ownedDevices/graphAppRoleAssignment/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedDevices/graphAppRoleAssignment/index.ts b/src/users/item/ownedDevices/graphAppRoleAssignment/index.ts index d0d7127749f..e0f1b2b5d29 100644 --- a/src/users/item/ownedDevices/graphAppRoleAssignment/index.ts +++ b/src/users/item/ownedDevices/graphAppRoleAssignment/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../../models'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAppRoleAssignmentRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedDevices/graphDevice/count/index.ts b/src/users/item/ownedDevices/graphDevice/count/index.ts index 8d5e607bb33..8550cf09579 100644 --- a/src/users/item/ownedDevices/graphDevice/count/index.ts +++ b/src/users/item/ownedDevices/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedDevices/graphDevice/index.ts b/src/users/item/ownedDevices/graphDevice/index.ts index 493f2e784fd..1d1f765ea20 100644 --- a/src/users/item/ownedDevices/graphDevice/index.ts +++ b/src/users/item/ownedDevices/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../../models/'; +import { type DeviceCollectionResponse } from '../../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedDevices/graphEndpoint/count/index.ts b/src/users/item/ownedDevices/graphEndpoint/count/index.ts index c5cc6bc27f6..afe01a2c3e0 100644 --- a/src/users/item/ownedDevices/graphEndpoint/count/index.ts +++ b/src/users/item/ownedDevices/graphEndpoint/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedDevices/graphEndpoint/index.ts b/src/users/item/ownedDevices/graphEndpoint/index.ts index 0e472d83db6..d9314ed06eb 100644 --- a/src/users/item/ownedDevices/graphEndpoint/index.ts +++ b/src/users/item/ownedDevices/graphEndpoint/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndpointCollectionResponse } from '../../../../models/'; +import { type EndpointCollectionResponse } from '../../../../models'; import { createEndpointCollectionResponseFromDiscriminatorValue } from '../../../../models/endpointCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphEndpointRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedDevices/index.ts b/src/users/item/ownedDevices/index.ts index 5ab1794c0d5..0482eb28194 100644 --- a/src/users/item/ownedDevices/index.ts +++ b/src/users/item/ownedDevices/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OwnedDevicesRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedDevices/item/graphAppRoleAssignment/index.ts b/src/users/item/ownedDevices/item/graphAppRoleAssignment/index.ts index 5d241c745cf..b3894faa3c9 100644 --- a/src/users/item/ownedDevices/item/graphAppRoleAssignment/index.ts +++ b/src/users/item/ownedDevices/item/graphAppRoleAssignment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignment } from '../../../../../models/'; +import { type AppRoleAssignment } from '../../../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue } from '../../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedDevices/item/graphDevice/index.ts b/src/users/item/ownedDevices/item/graphDevice/index.ts index a41e4dc97da..0fb24756bec 100644 --- a/src/users/item/ownedDevices/item/graphDevice/index.ts +++ b/src/users/item/ownedDevices/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../models/'; +import { type Device } from '../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../models/device'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedDevices/item/graphEndpoint/index.ts b/src/users/item/ownedDevices/item/graphEndpoint/index.ts index 24c0560fd60..db203dd5120 100644 --- a/src/users/item/ownedDevices/item/graphEndpoint/index.ts +++ b/src/users/item/ownedDevices/item/graphEndpoint/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Endpoint } from '../../../../../models/'; +import { type Endpoint } from '../../../../../models'; import { createEndpointFromDiscriminatorValue } from '../../../../../models/endpoint'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedDevices/item/index.ts b/src/users/item/ownedDevices/item/index.ts index c2c73df9477..5065d348b6b 100644 --- a/src/users/item/ownedDevices/item/index.ts +++ b/src/users/item/ownedDevices/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedObjects/count/index.ts b/src/users/item/ownedObjects/count/index.ts index b2a27d6fdeb..deb7d4c4258 100644 --- a/src/users/item/ownedObjects/count/index.ts +++ b/src/users/item/ownedObjects/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedObjects/graphApplication/count/index.ts b/src/users/item/ownedObjects/graphApplication/count/index.ts index 28df403364a..f843ffbe2eb 100644 --- a/src/users/item/ownedObjects/graphApplication/count/index.ts +++ b/src/users/item/ownedObjects/graphApplication/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedObjects/graphApplication/index.ts b/src/users/item/ownedObjects/graphApplication/index.ts index c053b75b96a..06421009201 100644 --- a/src/users/item/ownedObjects/graphApplication/index.ts +++ b/src/users/item/ownedObjects/graphApplication/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ApplicationCollectionResponse } from '../../../../models/'; +import { type ApplicationCollectionResponse } from '../../../../models'; import { createApplicationCollectionResponseFromDiscriminatorValue } from '../../../../models/applicationCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphApplicationRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedObjects/graphGroup/count/index.ts b/src/users/item/ownedObjects/graphGroup/count/index.ts index 4c83b1f0aee..e3764b21642 100644 --- a/src/users/item/ownedObjects/graphGroup/count/index.ts +++ b/src/users/item/ownedObjects/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedObjects/graphGroup/index.ts b/src/users/item/ownedObjects/graphGroup/index.ts index ae007eef9b3..75b12695451 100644 --- a/src/users/item/ownedObjects/graphGroup/index.ts +++ b/src/users/item/ownedObjects/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedObjects/graphServicePrincipal/count/index.ts b/src/users/item/ownedObjects/graphServicePrincipal/count/index.ts index 0e3c74c02bb..d8e625f7104 100644 --- a/src/users/item/ownedObjects/graphServicePrincipal/count/index.ts +++ b/src/users/item/ownedObjects/graphServicePrincipal/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedObjects/graphServicePrincipal/index.ts b/src/users/item/ownedObjects/graphServicePrincipal/index.ts index 306a0571c3f..3949b3181b9 100644 --- a/src/users/item/ownedObjects/graphServicePrincipal/index.ts +++ b/src/users/item/ownedObjects/graphServicePrincipal/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipalCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ServicePrincipalCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createServicePrincipalCollectionResponseFromDiscriminatorValue } from '../../../../models/servicePrincipalCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphServicePrincipalRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedObjects/index.ts b/src/users/item/ownedObjects/index.ts index 89ac0d86be8..a204eb45eca 100644 --- a/src/users/item/ownedObjects/index.ts +++ b/src/users/item/ownedObjects/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface OwnedObjectsRequestBuilderGetQueryParameters { diff --git a/src/users/item/ownedObjects/item/graphApplication/index.ts b/src/users/item/ownedObjects/item/graphApplication/index.ts index eb15d18de9d..0538a438fbf 100644 --- a/src/users/item/ownedObjects/item/graphApplication/index.ts +++ b/src/users/item/ownedObjects/item/graphApplication/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Application } from '../../../../../models/'; +import { type Application } from '../../../../../models'; import { createApplicationFromDiscriminatorValue } from '../../../../../models/application'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedObjects/item/graphGroup/index.ts b/src/users/item/ownedObjects/item/graphGroup/index.ts index c95d7ccfa5a..30883ac38c5 100644 --- a/src/users/item/ownedObjects/item/graphGroup/index.ts +++ b/src/users/item/ownedObjects/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedObjects/item/graphServicePrincipal/index.ts b/src/users/item/ownedObjects/item/graphServicePrincipal/index.ts index edfbfb633b7..83010bd3791 100644 --- a/src/users/item/ownedObjects/item/graphServicePrincipal/index.ts +++ b/src/users/item/ownedObjects/item/graphServicePrincipal/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServicePrincipal } from '../../../../../models/'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ServicePrincipal } from '../../../../../models'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createServicePrincipalFromDiscriminatorValue } from '../../../../../models/servicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/ownedObjects/item/index.ts b/src/users/item/ownedObjects/item/index.ts index ea1b794b3b6..cfec7a7daf2 100644 --- a/src/users/item/ownedObjects/item/index.ts +++ b/src/users/item/ownedObjects/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphApplicationRequestBuilder } from './graphApplication/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal/'; +import { GraphApplicationRequestBuilder } from './graphApplication'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { GraphServicePrincipalRequestBuilder } from './graphServicePrincipal'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/people/count/index.ts b/src/users/item/people/count/index.ts index 595db2bb3b6..f447ac8b7f8 100644 --- a/src/users/item/people/count/index.ts +++ b/src/users/item/people/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/people/index.ts b/src/users/item/people/index.ts index f92e2d97e3e..57f3ebf755e 100644 --- a/src/users/item/people/index.ts +++ b/src/users/item/people/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PersonCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type PersonCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPersonCollectionResponseFromDiscriminatorValue } from '../../../models/personCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PersonItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PersonItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PeopleRequestBuilderGetQueryParameters { diff --git a/src/users/item/people/item/index.ts b/src/users/item/people/item/index.ts index 494f4879e12..dd0010356c6 100644 --- a/src/users/item/people/item/index.ts +++ b/src/users/item/people/item/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Person } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type Person } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPersonFromDiscriminatorValue } from '../../../../models/person'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/photo/index.ts b/src/users/item/photo/index.ts index ea41e5873d8..a9bcaaa4c1f 100644 --- a/src/users/item/photo/index.ts +++ b/src/users/item/photo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue, deserializeIntoProfilePhoto, serializeProfilePhoto, type ProfilePhoto } from '../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotoRequestBuilderGetQueryParameters { diff --git a/src/users/item/photo/value/index.ts b/src/users/item/photo/value/index.ts index 1972dee89e8..4886f9b1e81 100644 --- a/src/users/item/photo/value/index.ts +++ b/src/users/item/photo/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/photos/index.ts b/src/users/item/photos/index.ts index 7f69c34cecc..f0ab40a0ed1 100644 --- a/src/users/item/photos/index.ts +++ b/src/users/item/photos/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProfilePhotoCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ProfilePhotoCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createProfilePhotoCollectionResponseFromDiscriminatorValue } from '../../../models/profilePhotoCollectionResponse'; -import { ProfilePhotoItemRequestBuilder } from './item/'; +import { ProfilePhotoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PhotosRequestBuilderGetQueryParameters { diff --git a/src/users/item/photos/item/index.ts b/src/users/item/photos/item/index.ts index ca5c89d154a..b4c30541e30 100644 --- a/src/users/item/photos/item/index.ts +++ b/src/users/item/photos/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ProfilePhoto } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ProfilePhoto } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createProfilePhotoFromDiscriminatorValue } from '../../../../models/profilePhoto'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ProfilePhotoItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/photos/item/value/index.ts b/src/users/item/photos/item/value/index.ts index 4a281eb0f6d..0194e17073d 100644 --- a/src/users/item/photos/item/value/index.ts +++ b/src/users/item/photos/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/index.ts b/src/users/item/planner/index.ts index d40905c4d10..34cf9d9e08b 100644 --- a/src/users/item/planner/index.ts +++ b/src/users/item/planner/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPlannerUserFromDiscriminatorValue, deserializeIntoPlannerUser, serializePlannerUser, type PlannerUser } from '../../../models/plannerUser'; -import { PlansRequestBuilder } from './plans/'; -import { TasksRequestBuilder } from './tasks/'; +import { PlansRequestBuilder } from './plans'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/count/index.ts b/src/users/item/planner/plans/count/index.ts index e19f50352f6..f81ee57fe6d 100644 --- a/src/users/item/planner/plans/count/index.ts +++ b/src/users/item/planner/plans/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/index.ts b/src/users/item/planner/plans/index.ts index af49e07817b..e35da39f642 100644 --- a/src/users/item/planner/plans/index.ts +++ b/src/users/item/planner/plans/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerPlanCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PlannerPlanCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerPlanFromDiscriminatorValue, deserializeIntoPlannerPlan, serializePlannerPlan, type PlannerPlan } from '../../../../models/plannerPlan'; import { createPlannerPlanCollectionResponseFromDiscriminatorValue } from '../../../../models/plannerPlanCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerPlanItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerPlanItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlansRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/item/buckets/count/index.ts b/src/users/item/planner/plans/item/buckets/count/index.ts index 806f074c584..c8ca6e15423 100644 --- a/src/users/item/planner/plans/item/buckets/count/index.ts +++ b/src/users/item/planner/plans/item/buckets/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/buckets/index.ts b/src/users/item/planner/plans/item/buckets/index.ts index b2b8eecae24..4935ecd7360 100644 --- a/src/users/item/planner/plans/item/buckets/index.ts +++ b/src/users/item/planner/plans/item/buckets/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerBucketCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PlannerBucketCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketFromDiscriminatorValue, deserializeIntoPlannerBucket, serializePlannerBucket, type PlannerBucket } from '../../../../../../models/plannerBucket'; import { createPlannerBucketCollectionResponseFromDiscriminatorValue } from '../../../../../../models/plannerBucketCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerBucketItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerBucketItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface BucketsRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/item/buckets/item/index.ts b/src/users/item/planner/plans/item/buckets/item/index.ts index c5fbd44e848..f0f509f13fc 100644 --- a/src/users/item/planner/plans/item/buckets/item/index.ts +++ b/src/users/item/planner/plans/item/buckets/item/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketFromDiscriminatorValue, deserializeIntoPlannerBucket, serializePlannerBucket, type PlannerBucket } from '../../../../../../../models/plannerBucket'; -import { TasksRequestBuilder } from './tasks/'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerBucketItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/item/buckets/item/tasks/count/index.ts b/src/users/item/planner/plans/item/buckets/item/tasks/count/index.ts index 19984aedc0e..3db20de53fe 100644 --- a/src/users/item/planner/plans/item/buckets/item/tasks/count/index.ts +++ b/src/users/item/planner/plans/item/buckets/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/buckets/item/tasks/index.ts b/src/users/item/planner/plans/item/buckets/item/tasks/index.ts index fb23ae4f35f..19b0a4853da 100644 --- a/src/users/item/planner/plans/item/buckets/item/tasks/index.ts +++ b/src/users/item/planner/plans/item/buckets/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../../../../../../../models/'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../../../../../../../models'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts b/src/users/item/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts index d75583dadcc..a6b7e69b507 100644 --- a/src/users/item/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/users/item/planner/plans/item/buckets/item/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../../../../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts b/src/users/item/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts index 9b6b33f134c..8d71919cca6 100644 --- a/src/users/item/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/users/item/planner/plans/item/buckets/item/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../../../../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/buckets/item/tasks/item/details/index.ts b/src/users/item/planner/plans/item/buckets/item/tasks/item/details/index.ts index 0f88442c086..e106e18b05f 100644 --- a/src/users/item/planner/plans/item/buckets/item/tasks/item/details/index.ts +++ b/src/users/item/planner/plans/item/buckets/item/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../../../../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/buckets/item/tasks/item/index.ts b/src/users/item/planner/plans/item/buckets/item/tasks/item/index.ts index 4cdfc02811a..89f7c4a0c60 100644 --- a/src/users/item/planner/plans/item/buckets/item/tasks/item/index.ts +++ b/src/users/item/planner/plans/item/buckets/item/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts b/src/users/item/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts index 4e34058a37c..2ce3e4d825f 100644 --- a/src/users/item/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/users/item/planner/plans/item/buckets/item/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../../../../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/details/index.ts b/src/users/item/planner/plans/item/details/index.ts index df8d153f096..1cf561e0e6f 100644 --- a/src/users/item/planner/plans/item/details/index.ts +++ b/src/users/item/planner/plans/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerPlanDetailsFromDiscriminatorValue, deserializeIntoPlannerPlanDetails, serializePlannerPlanDetails, type PlannerPlanDetails } from '../../../../../../models/plannerPlanDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/index.ts b/src/users/item/planner/plans/item/index.ts index 2b0862193ab..4e72e33ee47 100644 --- a/src/users/item/planner/plans/item/index.ts +++ b/src/users/item/planner/plans/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPlannerPlanFromDiscriminatorValue, deserializeIntoPlannerPlan, serializePlannerPlan, type PlannerPlan } from '../../../../../models/plannerPlan'; -import { BucketsRequestBuilder } from './buckets/'; -import { DetailsRequestBuilder } from './details/'; -import { TasksRequestBuilder } from './tasks/'; +import { BucketsRequestBuilder } from './buckets'; +import { DetailsRequestBuilder } from './details'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerPlanItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/item/tasks/count/index.ts b/src/users/item/planner/plans/item/tasks/count/index.ts index 9ea7816a12d..17cc7f11708 100644 --- a/src/users/item/planner/plans/item/tasks/count/index.ts +++ b/src/users/item/planner/plans/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/tasks/index.ts b/src/users/item/planner/plans/item/tasks/index.ts index 9df53e7c13c..43e2369a911 100644 --- a/src/users/item/planner/plans/item/tasks/index.ts +++ b/src/users/item/planner/plans/item/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts b/src/users/item/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts index 6063adb5c0c..d18f1b2a0e9 100644 --- a/src/users/item/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/users/item/planner/plans/item/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts b/src/users/item/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts index 967d1d3f569..46686250b42 100644 --- a/src/users/item/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/users/item/planner/plans/item/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/tasks/item/details/index.ts b/src/users/item/planner/plans/item/tasks/item/details/index.ts index 7ed9d48ade2..17d1aeea530 100644 --- a/src/users/item/planner/plans/item/tasks/item/details/index.ts +++ b/src/users/item/planner/plans/item/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/plans/item/tasks/item/index.ts b/src/users/item/planner/plans/item/tasks/item/index.ts index c743cbbeed1..8329e8275ae 100644 --- a/src/users/item/planner/plans/item/tasks/item/index.ts +++ b/src/users/item/planner/plans/item/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts b/src/users/item/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts index c7163f35025..2e5ab26ed2b 100644 --- a/src/users/item/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/users/item/planner/plans/item/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/tasks/count/index.ts b/src/users/item/planner/tasks/count/index.ts index 9283a68647f..aaa8e2a5e3f 100644 --- a/src/users/item/planner/tasks/count/index.ts +++ b/src/users/item/planner/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/tasks/index.ts b/src/users/item/planner/tasks/index.ts index a313c9a3d87..447508c2fe7 100644 --- a/src/users/item/planner/tasks/index.ts +++ b/src/users/item/planner/tasks/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type PlannerTaskCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type PlannerTaskCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../models/plannerTask'; import { createPlannerTaskCollectionResponseFromDiscriminatorValue } from '../../../../models/plannerTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { PlannerTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { PlannerTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/tasks/item/assignedToTaskBoardFormat/index.ts b/src/users/item/planner/tasks/item/assignedToTaskBoardFormat/index.ts index 7b8dafbc803..4d6b603933f 100644 --- a/src/users/item/planner/tasks/item/assignedToTaskBoardFormat/index.ts +++ b/src/users/item/planner/tasks/item/assignedToTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerAssignedToTaskBoardTaskFormat, serializePlannerAssignedToTaskBoardTaskFormat, type PlannerAssignedToTaskBoardTaskFormat } from '../../../../../../models/plannerAssignedToTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/tasks/item/bucketTaskBoardFormat/index.ts b/src/users/item/planner/tasks/item/bucketTaskBoardFormat/index.ts index 14e401cc02c..870827ea691 100644 --- a/src/users/item/planner/tasks/item/bucketTaskBoardFormat/index.ts +++ b/src/users/item/planner/tasks/item/bucketTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerBucketTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerBucketTaskBoardTaskFormat, serializePlannerBucketTaskBoardTaskFormat, type PlannerBucketTaskBoardTaskFormat } from '../../../../../../models/plannerBucketTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/tasks/item/details/index.ts b/src/users/item/planner/tasks/item/details/index.ts index 8bf8bb89a1b..a7248ce9f94 100644 --- a/src/users/item/planner/tasks/item/details/index.ts +++ b/src/users/item/planner/tasks/item/details/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskDetailsFromDiscriminatorValue, deserializeIntoPlannerTaskDetails, serializePlannerTaskDetails, type PlannerTaskDetails } from '../../../../../../models/plannerTaskDetails'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/planner/tasks/item/index.ts b/src/users/item/planner/tasks/item/index.ts index 6dda2985692..01840772f2a 100644 --- a/src/users/item/planner/tasks/item/index.ts +++ b/src/users/item/planner/tasks/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createPlannerTaskFromDiscriminatorValue, deserializeIntoPlannerTask, serializePlannerTask, type PlannerTask } from '../../../../../models/plannerTask'; -import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat/'; -import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat/'; -import { DetailsRequestBuilder } from './details/'; -import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat/'; +import { AssignedToTaskBoardFormatRequestBuilder } from './assignedToTaskBoardFormat'; +import { BucketTaskBoardFormatRequestBuilder } from './bucketTaskBoardFormat'; +import { DetailsRequestBuilder } from './details'; +import { ProgressTaskBoardFormatRequestBuilder } from './progressTaskBoardFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PlannerTaskItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/planner/tasks/item/progressTaskBoardFormat/index.ts b/src/users/item/planner/tasks/item/progressTaskBoardFormat/index.ts index bdfe8346722..2ad662bca17 100644 --- a/src/users/item/planner/tasks/item/progressTaskBoardFormat/index.ts +++ b/src/users/item/planner/tasks/item/progressTaskBoardFormat/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createPlannerProgressTaskBoardTaskFormatFromDiscriminatorValue, deserializeIntoPlannerProgressTaskBoardTaskFormat, serializePlannerProgressTaskBoardTaskFormat, type PlannerProgressTaskBoardTaskFormat } from '../../../../../../models/plannerProgressTaskBoardTaskFormat'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/presence/clearPresence/clearPresencePostRequestBody.ts b/src/users/item/presence/clearPresence/clearPresencePostRequestBody.ts deleted file mode 100644 index 37c5ab6d012..00000000000 --- a/src/users/item/presence/clearPresence/clearPresencePostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export interface ClearPresencePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The sessionId property - */ - sessionId?: string; -} -export function createClearPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoClearPresencePostRequestBody; -} -export function deserializeIntoClearPresencePostRequestBody(clearPresencePostRequestBody: ClearPresencePostRequestBody | undefined = {} as ClearPresencePostRequestBody) : Record void> { - return { - "sessionId": n => { clearPresencePostRequestBody.sessionId = n.getStringValue(); }, - } -} -export function serializeClearPresencePostRequestBody(writer: SerializationWriter, clearPresencePostRequestBody: ClearPresencePostRequestBody | undefined = {} as ClearPresencePostRequestBody) : void { - writer.writeStringValue("sessionId", clearPresencePostRequestBody.sessionId); - writer.writeAdditionalData(clearPresencePostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/presence/clearPresence/index.ts b/src/users/item/presence/clearPresence/index.ts index 0416d068b56..a12231f89b4 100644 --- a/src/users/item/presence/clearPresence/index.ts +++ b/src/users/item/presence/clearPresence/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoClearPresencePostRequestBody, serializeClearPresencePostRequestBody, type ClearPresencePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export interface ClearPresencePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The sessionId property + */ + sessionId?: string; +} +export function createClearPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoClearPresencePostRequestBody; +} +export function deserializeIntoClearPresencePostRequestBody(clearPresencePostRequestBody: ClearPresencePostRequestBody | undefined = {} as ClearPresencePostRequestBody) : Record void> { + return { + "sessionId": n => { clearPresencePostRequestBody.sessionId = n.getStringValue(); }, + } +} +export function serializeClearPresencePostRequestBody(writer: SerializationWriter, clearPresencePostRequestBody: ClearPresencePostRequestBody | undefined = {} as ClearPresencePostRequestBody) : void { + writer.writeStringValue("sessionId", clearPresencePostRequestBody.sessionId); + writer.writeAdditionalData(clearPresencePostRequestBody.additionalData); +} /** * Provides operations to call the clearPresence method. */ diff --git a/src/users/item/presence/clearUserPreferredPresence/index.ts b/src/users/item/presence/clearUserPreferredPresence/index.ts index 9c24733edae..ccb557322c6 100644 --- a/src/users/item/presence/clearUserPreferredPresence/index.ts +++ b/src/users/item/presence/clearUserPreferredPresence/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/presence/index.ts b/src/users/item/presence/index.ts index 28ec6aca545..3a42669350d 100644 --- a/src/users/item/presence/index.ts +++ b/src/users/item/presence/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createPresenceFromDiscriminatorValue, deserializeIntoPresence, serializePresence, type Presence } from '../../../models/presence'; -import { ClearPresenceRequestBuilder } from './clearPresence/'; -import { ClearUserPreferredPresenceRequestBuilder } from './clearUserPreferredPresence/'; -import { SetPresenceRequestBuilder } from './setPresence/'; -import { SetStatusMessageRequestBuilder } from './setStatusMessage/'; -import { SetUserPreferredPresenceRequestBuilder } from './setUserPreferredPresence/'; +import { ClearPresenceRequestBuilder } from './clearPresence'; +import { ClearUserPreferredPresenceRequestBuilder } from './clearUserPreferredPresence'; +import { SetPresenceRequestBuilder } from './setPresence'; +import { SetStatusMessageRequestBuilder } from './setStatusMessage'; +import { SetUserPreferredPresenceRequestBuilder } from './setUserPreferredPresence'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PresenceRequestBuilderGetQueryParameters { diff --git a/src/users/item/presence/setPresence/index.ts b/src/users/item/presence/setPresence/index.ts index 3a20b408187..d6cc69d140e 100644 --- a/src/users/item/presence/setPresence/index.ts +++ b/src/users/item/presence/setPresence/index.ts @@ -1,11 +1,51 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSetPresencePostRequestBody, serializeSetPresencePostRequestBody, type SetPresencePostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Duration, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSetPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSetPresencePostRequestBody; +} +export function deserializeIntoSetPresencePostRequestBody(setPresencePostRequestBody: SetPresencePostRequestBody | undefined = {} as SetPresencePostRequestBody) : Record void> { + return { + "activity": n => { setPresencePostRequestBody.activity = n.getStringValue(); }, + "availability": n => { setPresencePostRequestBody.availability = n.getStringValue(); }, + "expirationDuration": n => { setPresencePostRequestBody.expirationDuration = n.getDurationValue(); }, + "sessionId": n => { setPresencePostRequestBody.sessionId = n.getStringValue(); }, + } +} +export function serializeSetPresencePostRequestBody(writer: SerializationWriter, setPresencePostRequestBody: SetPresencePostRequestBody | undefined = {} as SetPresencePostRequestBody) : void { + writer.writeStringValue("activity", setPresencePostRequestBody.activity); + writer.writeStringValue("availability", setPresencePostRequestBody.availability); + writer.writeDurationValue("expirationDuration", setPresencePostRequestBody.expirationDuration); + writer.writeStringValue("sessionId", setPresencePostRequestBody.sessionId); + writer.writeAdditionalData(setPresencePostRequestBody.additionalData); +} +export interface SetPresencePostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activity property + */ + activity?: string; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The availability property + */ + availability?: string; + /** + * The expirationDuration property + */ + expirationDuration?: Duration; + /** + * The sessionId property + */ + sessionId?: string; +} /** * Provides operations to call the setPresence method. */ diff --git a/src/users/item/presence/setPresence/setPresencePostRequestBody.ts b/src/users/item/presence/setPresence/setPresencePostRequestBody.ts deleted file mode 100644 index e38e7b9045e..00000000000 --- a/src/users/item/presence/setPresence/setPresencePostRequestBody.ts +++ /dev/null @@ -1,48 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Duration, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSetPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSetPresencePostRequestBody; -} -export function deserializeIntoSetPresencePostRequestBody(setPresencePostRequestBody: SetPresencePostRequestBody | undefined = {} as SetPresencePostRequestBody) : Record void> { - return { - "activity": n => { setPresencePostRequestBody.activity = n.getStringValue(); }, - "availability": n => { setPresencePostRequestBody.availability = n.getStringValue(); }, - "expirationDuration": n => { setPresencePostRequestBody.expirationDuration = n.getDurationValue(); }, - "sessionId": n => { setPresencePostRequestBody.sessionId = n.getStringValue(); }, - } -} -export function serializeSetPresencePostRequestBody(writer: SerializationWriter, setPresencePostRequestBody: SetPresencePostRequestBody | undefined = {} as SetPresencePostRequestBody) : void { - writer.writeStringValue("activity", setPresencePostRequestBody.activity); - writer.writeStringValue("availability", setPresencePostRequestBody.availability); - writer.writeDurationValue("expirationDuration", setPresencePostRequestBody.expirationDuration); - writer.writeStringValue("sessionId", setPresencePostRequestBody.sessionId); - writer.writeAdditionalData(setPresencePostRequestBody.additionalData); -} -export interface SetPresencePostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activity property - */ - activity?: string; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The availability property - */ - availability?: string; - /** - * The expirationDuration property - */ - expirationDuration?: Duration; - /** - * The sessionId property - */ - sessionId?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/presence/setStatusMessage/index.ts b/src/users/item/presence/setStatusMessage/index.ts index 776fa21c7b1..6fada8e1f70 100644 --- a/src/users/item/presence/setStatusMessage/index.ts +++ b/src/users/item/presence/setStatusMessage/index.ts @@ -1,10 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createPresenceStatusMessageFromDiscriminatorValue, serializePresenceStatusMessage, type PresenceStatusMessage } from '../../../../models/presenceStatusMessage'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSetStatusMessagePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -29,57 +27,5 @@ export interface SetStatusMessagePostRequestBody extends AdditionalDataHolder, P */ statusMessage?: PresenceStatusMessage; } -/** - * Provides operations to call the setStatusMessage method. - */ -export class SetStatusMessageRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SetStatusMessageRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/presence/setStatusMessage"); - }; - /** - * Set a presence status message for a user. An optional expiration date and time can be supplied. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0|Find more info here} - */ - public post(body: SetStatusMessagePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Set a presence status message for a user. An optional expiration date and time can be supplied. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SetStatusMessagePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetStatusMessagePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a setStatusMessageRequestBuilder - */ - public withUrl(rawUrl: string) : SetStatusMessageRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SetStatusMessageRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/presence/setUserPreferredPresence/index.ts b/src/users/item/presence/setUserPreferredPresence/index.ts index 057ebe27d45..e64659d3926 100644 --- a/src/users/item/presence/setUserPreferredPresence/index.ts +++ b/src/users/item/presence/setUserPreferredPresence/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Duration, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Duration, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSetUserPreferredPresencePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -40,57 +38,5 @@ export interface SetUserPreferredPresencePostRequestBody extends AdditionalDataH */ expirationDuration?: Duration; } -/** - * Provides operations to call the setUserPreferredPresence method. - */ -export class SetUserPreferredPresenceRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SetUserPreferredPresenceRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/presence/setUserPreferredPresence"); - }; - /** - * Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/presence-setuserpreferredpresence?view=graph-rest-1.0|Find more info here} - */ - public post(body: SetUserPreferredPresencePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SetUserPreferredPresencePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetUserPreferredPresencePostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a setUserPreferredPresenceRequestBuilder - */ - public withUrl(rawUrl: string) : SetUserPreferredPresenceRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SetUserPreferredPresenceRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/registeredDevices/count/index.ts b/src/users/item/registeredDevices/count/index.ts index a9bb01d235e..7671e0e49ae 100644 --- a/src/users/item/registeredDevices/count/index.ts +++ b/src/users/item/registeredDevices/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/registeredDevices/graphAppRoleAssignment/count/index.ts b/src/users/item/registeredDevices/graphAppRoleAssignment/count/index.ts index 32d54390328..89b9ccabc65 100644 --- a/src/users/item/registeredDevices/graphAppRoleAssignment/count/index.ts +++ b/src/users/item/registeredDevices/graphAppRoleAssignment/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/registeredDevices/graphAppRoleAssignment/index.ts b/src/users/item/registeredDevices/graphAppRoleAssignment/index.ts index 0ff8e033245..55b1ac51e27 100644 --- a/src/users/item/registeredDevices/graphAppRoleAssignment/index.ts +++ b/src/users/item/registeredDevices/graphAppRoleAssignment/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignmentCollectionResponse } from '../../../../models/'; +import { type AppRoleAssignmentCollectionResponse } from '../../../../models'; import { createAppRoleAssignmentCollectionResponseFromDiscriminatorValue } from '../../../../models/appRoleAssignmentCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAppRoleAssignmentRequestBuilderGetQueryParameters { diff --git a/src/users/item/registeredDevices/graphDevice/count/index.ts b/src/users/item/registeredDevices/graphDevice/count/index.ts index fcebc481869..71167af54df 100644 --- a/src/users/item/registeredDevices/graphDevice/count/index.ts +++ b/src/users/item/registeredDevices/graphDevice/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/registeredDevices/graphDevice/index.ts b/src/users/item/registeredDevices/graphDevice/index.ts index c0e23fefe69..da9ae9ff629 100644 --- a/src/users/item/registeredDevices/graphDevice/index.ts +++ b/src/users/item/registeredDevices/graphDevice/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DeviceCollectionResponse } from '../../../../models/'; +import { type DeviceCollectionResponse } from '../../../../models'; import { createDeviceCollectionResponseFromDiscriminatorValue } from '../../../../models/deviceCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDeviceRequestBuilderGetQueryParameters { diff --git a/src/users/item/registeredDevices/graphEndpoint/count/index.ts b/src/users/item/registeredDevices/graphEndpoint/count/index.ts index 05437cc6d20..61d6ccc3ec4 100644 --- a/src/users/item/registeredDevices/graphEndpoint/count/index.ts +++ b/src/users/item/registeredDevices/graphEndpoint/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/registeredDevices/graphEndpoint/index.ts b/src/users/item/registeredDevices/graphEndpoint/index.ts index f33fa0027e9..12db6fcb160 100644 --- a/src/users/item/registeredDevices/graphEndpoint/index.ts +++ b/src/users/item/registeredDevices/graphEndpoint/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type EndpointCollectionResponse } from '../../../../models/'; +import { type EndpointCollectionResponse } from '../../../../models'; import { createEndpointCollectionResponseFromDiscriminatorValue } from '../../../../models/endpointCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphEndpointRequestBuilderGetQueryParameters { diff --git a/src/users/item/registeredDevices/index.ts b/src/users/item/registeredDevices/index.ts index 8ec4b54f89a..40cb76ff24a 100644 --- a/src/users/item/registeredDevices/index.ts +++ b/src/users/item/registeredDevices/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface RegisteredDevicesRequestBuilderGetQueryParameters { diff --git a/src/users/item/registeredDevices/item/graphAppRoleAssignment/index.ts b/src/users/item/registeredDevices/item/graphAppRoleAssignment/index.ts index a4d9a9270ee..ede130fee0d 100644 --- a/src/users/item/registeredDevices/item/graphAppRoleAssignment/index.ts +++ b/src/users/item/registeredDevices/item/graphAppRoleAssignment/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AppRoleAssignment } from '../../../../../models/'; +import { type AppRoleAssignment } from '../../../../../models'; import { createAppRoleAssignmentFromDiscriminatorValue } from '../../../../../models/appRoleAssignment'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/registeredDevices/item/graphDevice/index.ts b/src/users/item/registeredDevices/item/graphDevice/index.ts index 3465d73e53d..38c1d661900 100644 --- a/src/users/item/registeredDevices/item/graphDevice/index.ts +++ b/src/users/item/registeredDevices/item/graphDevice/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Device } from '../../../../../models/'; +import { type Device } from '../../../../../models'; import { createDeviceFromDiscriminatorValue } from '../../../../../models/device'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/registeredDevices/item/graphEndpoint/index.ts b/src/users/item/registeredDevices/item/graphEndpoint/index.ts index 7bc2f07d96a..90ae012226f 100644 --- a/src/users/item/registeredDevices/item/graphEndpoint/index.ts +++ b/src/users/item/registeredDevices/item/graphEndpoint/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Endpoint } from '../../../../../models/'; +import { type Endpoint } from '../../../../../models'; import { createEndpointFromDiscriminatorValue } from '../../../../../models/endpoint'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/registeredDevices/item/index.ts b/src/users/item/registeredDevices/item/index.ts index 6114a7304ec..51f419748f0 100644 --- a/src/users/item/registeredDevices/item/index.ts +++ b/src/users/item/registeredDevices/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment/'; -import { GraphDeviceRequestBuilder } from './graphDevice/'; -import { GraphEndpointRequestBuilder } from './graphEndpoint/'; +import { GraphAppRoleAssignmentRequestBuilder } from './graphAppRoleAssignment'; +import { GraphDeviceRequestBuilder } from './graphDevice'; +import { GraphEndpointRequestBuilder } from './graphEndpoint'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/reminderViewWithStartDateTimeWithEndDateTime/index.ts b/src/users/item/reminderViewWithStartDateTimeWithEndDateTime/index.ts index 0513d12f1c4..76bdc8412ef 100644 --- a/src/users/item/reminderViewWithStartDateTimeWithEndDateTime/index.ts +++ b/src/users/item/reminderViewWithStartDateTimeWithEndDateTime/index.ts @@ -1,12 +1,28 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createReminderViewWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue } from './'; -import { type ReminderViewWithStartDateTimeWithEndDateTimeGetResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createReminderFromDiscriminatorValue, serializeReminder, type Reminder } from '../../../models/reminder'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createReminderViewWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoReminderViewWithStartDateTimeWithEndDateTimeGetResponse; +} +export function deserializeIntoReminderViewWithStartDateTimeWithEndDateTimeGetResponse(reminderViewWithStartDateTimeWithEndDateTimeGetResponse: ReminderViewWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as ReminderViewWithStartDateTimeWithEndDateTimeGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(reminderViewWithStartDateTimeWithEndDateTimeGetResponse), + "value": n => { reminderViewWithStartDateTimeWithEndDateTimeGetResponse.value = n.getCollectionOfObjectValues(createReminderFromDiscriminatorValue); }, + } +} +export interface ReminderViewWithStartDateTimeWithEndDateTimeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: Reminder[]; +} export interface ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters { /** * Include count of items @@ -29,6 +45,10 @@ export interface ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilderGetQu */ top?: number; } +export function serializeReminderViewWithStartDateTimeWithEndDateTimeGetResponse(writer: SerializationWriter, reminderViewWithStartDateTimeWithEndDateTimeGetResponse: ReminderViewWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as ReminderViewWithStartDateTimeWithEndDateTimeGetResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, reminderViewWithStartDateTimeWithEndDateTimeGetResponse) + writer.writeCollectionOfObjectValues("value", reminderViewWithStartDateTimeWithEndDateTimeGetResponse.value, serializeReminder); +} /** * Provides operations to call the reminderView method. */ diff --git a/src/users/item/reminderViewWithStartDateTimeWithEndDateTime/reminderViewWithStartDateTimeWithEndDateTimeGetResponse.ts b/src/users/item/reminderViewWithStartDateTimeWithEndDateTime/reminderViewWithStartDateTimeWithEndDateTimeGetResponse.ts deleted file mode 100644 index c1831e235b3..00000000000 --- a/src/users/item/reminderViewWithStartDateTimeWithEndDateTime/reminderViewWithStartDateTimeWithEndDateTimeGetResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createReminderFromDiscriminatorValue, serializeReminder, type Reminder } from '../../../models/reminder'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createReminderViewWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoReminderViewWithStartDateTimeWithEndDateTimeGetResponse; -} -export function deserializeIntoReminderViewWithStartDateTimeWithEndDateTimeGetResponse(reminderViewWithStartDateTimeWithEndDateTimeGetResponse: ReminderViewWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as ReminderViewWithStartDateTimeWithEndDateTimeGetResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(reminderViewWithStartDateTimeWithEndDateTimeGetResponse), - "value": n => { reminderViewWithStartDateTimeWithEndDateTimeGetResponse.value = n.getCollectionOfObjectValues(createReminderFromDiscriminatorValue); }, - } -} -export interface ReminderViewWithStartDateTimeWithEndDateTimeGetResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: Reminder[]; -} -export function serializeReminderViewWithStartDateTimeWithEndDateTimeGetResponse(writer: SerializationWriter, reminderViewWithStartDateTimeWithEndDateTimeGetResponse: ReminderViewWithStartDateTimeWithEndDateTimeGetResponse | undefined = {} as ReminderViewWithStartDateTimeWithEndDateTimeGetResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, reminderViewWithStartDateTimeWithEndDateTimeGetResponse) - writer.writeCollectionOfObjectValues("value", reminderViewWithStartDateTimeWithEndDateTimeGetResponse.value, serializeReminder); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/removeAllDevicesFromManagement/index.ts b/src/users/item/removeAllDevicesFromManagement/index.ts index 9b2dabe8c06..273fbd4a278 100644 --- a/src/users/item/removeAllDevicesFromManagement/index.ts +++ b/src/users/item/removeAllDevicesFromManagement/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/reprocessLicenseAssignment/index.ts b/src/users/item/reprocessLicenseAssignment/index.ts index 19f2bdd4e63..a3dfe55a9d7 100644 --- a/src/users/item/reprocessLicenseAssignment/index.ts +++ b/src/users/item/reprocessLicenseAssignment/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type User } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type User } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserFromDiscriminatorValue } from '../../../models/user'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/restore/index.ts b/src/users/item/restore/index.ts index 31005972d61..eb4026b92cd 100644 --- a/src/users/item/restore/index.ts +++ b/src/users/item/restore/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../models/'; +import { type DirectoryObject } from '../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../models/directoryObject'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/retryServiceProvisioning/index.ts b/src/users/item/retryServiceProvisioning/index.ts index 5d1317ae0d7..5452ee43604 100644 --- a/src/users/item/retryServiceProvisioning/index.ts +++ b/src/users/item/retryServiceProvisioning/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/revokeSignInSessions/index.ts b/src/users/item/revokeSignInSessions/index.ts index b1e6b892db4..f476cf0d8b2 100644 --- a/src/users/item/revokeSignInSessions/index.ts +++ b/src/users/item/revokeSignInSessions/index.ts @@ -1,12 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createRevokeSignInSessionsPostResponseFromDiscriminatorValue } from './'; -import { type RevokeSignInSessionsPostResponse } from './index'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createRevokeSignInSessionsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoRevokeSignInSessionsPostResponse; +} +export function deserializeIntoRevokeSignInSessionsPostResponse(revokeSignInSessionsPostResponse: RevokeSignInSessionsPostResponse | undefined = {} as RevokeSignInSessionsPostResponse) : Record void> { + return { + "value": n => { revokeSignInSessionsPostResponse.value = n.getBooleanValue(); }, + } +} +export interface RevokeSignInSessionsPostResponse extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The value property + */ + value?: boolean; +} +export function serializeRevokeSignInSessionsPostResponse(writer: SerializationWriter, revokeSignInSessionsPostResponse: RevokeSignInSessionsPostResponse | undefined = {} as RevokeSignInSessionsPostResponse) : void { + writer.writeBooleanValue("value", revokeSignInSessionsPostResponse.value); + writer.writeAdditionalData(revokeSignInSessionsPostResponse.additionalData); +} /** * Provides operations to call the revokeSignInSessions method. */ diff --git a/src/users/item/revokeSignInSessions/revokeSignInSessionsPostResponse.ts b/src/users/item/revokeSignInSessions/revokeSignInSessionsPostResponse.ts deleted file mode 100644 index 556172c11f9..00000000000 --- a/src/users/item/revokeSignInSessions/revokeSignInSessionsPostResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createRevokeSignInSessionsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoRevokeSignInSessionsPostResponse; -} -export function deserializeIntoRevokeSignInSessionsPostResponse(revokeSignInSessionsPostResponse: RevokeSignInSessionsPostResponse | undefined = {} as RevokeSignInSessionsPostResponse) : Record void> { - return { - "value": n => { revokeSignInSessionsPostResponse.value = n.getBooleanValue(); }, - } -} -export interface RevokeSignInSessionsPostResponse extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The value property - */ - value?: boolean; -} -export function serializeRevokeSignInSessionsPostResponse(writer: SerializationWriter, revokeSignInSessionsPostResponse: RevokeSignInSessionsPostResponse | undefined = {} as RevokeSignInSessionsPostResponse) : void { - writer.writeBooleanValue("value", revokeSignInSessionsPostResponse.value); - writer.writeAdditionalData(revokeSignInSessionsPostResponse.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/scopedRoleMemberOf/count/index.ts b/src/users/item/scopedRoleMemberOf/count/index.ts index efa9fd2a507..608c0df1874 100644 --- a/src/users/item/scopedRoleMemberOf/count/index.ts +++ b/src/users/item/scopedRoleMemberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/scopedRoleMemberOf/index.ts b/src/users/item/scopedRoleMemberOf/index.ts index 7686bc9d21d..60e6c79f3d0 100644 --- a/src/users/item/scopedRoleMemberOf/index.ts +++ b/src/users/item/scopedRoleMemberOf/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ScopedRoleMembershipCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ScopedRoleMembershipCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createScopedRoleMembershipFromDiscriminatorValue, deserializeIntoScopedRoleMembership, serializeScopedRoleMembership, type ScopedRoleMembership } from '../../../models/scopedRoleMembership'; import { createScopedRoleMembershipCollectionResponseFromDiscriminatorValue } from '../../../models/scopedRoleMembershipCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { ScopedRoleMembershipItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ScopedRoleMembershipItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ScopedRoleMemberOfRequestBuilderGetQueryParameters { diff --git a/src/users/item/scopedRoleMemberOf/item/index.ts b/src/users/item/scopedRoleMemberOf/item/index.ts index 19b5b490d34..1fda57f6589 100644 --- a/src/users/item/scopedRoleMemberOf/item/index.ts +++ b/src/users/item/scopedRoleMemberOf/item/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createScopedRoleMembershipFromDiscriminatorValue, deserializeIntoScopedRoleMembership, serializeScopedRoleMembership, type ScopedRoleMembership } from '../../../../models/scopedRoleMembership'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/sendMail/index.ts b/src/users/item/sendMail/index.ts index e2b1b65354e..2fe527afa6c 100644 --- a/src/users/item/sendMail/index.ts +++ b/src/users/item/sendMail/index.ts @@ -2,9 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createMessageFromDiscriminatorValue, serializeMessage, type Message } from '../../../models/message'; -import { type ODataError } from '../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createSendMailPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -35,57 +33,5 @@ export function serializeSendMailPostRequestBody(writer: SerializationWriter, se writer.writeBooleanValue("SaveToSentItems", sendMailPostRequestBody.saveToSentItems); writer.writeAdditionalData(sendMailPostRequestBody.additionalData); } -/** - * Provides operations to call the sendMail method. - */ -export class SendMailRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new SendMailRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/sendMail"); - }; - /** - * Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/user-sendmail?view=graph-rest-1.0|Find more info here} - */ - public post(body: SendMailPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: SendMailPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSendMailPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a sendMailRequestBuilder - */ - public withUrl(rawUrl: string) : SendMailRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new SendMailRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/serviceProvisioningErrors/count/index.ts b/src/users/item/serviceProvisioningErrors/count/index.ts index e80baf9036c..d9b696e0044 100644 --- a/src/users/item/serviceProvisioningErrors/count/index.ts +++ b/src/users/item/serviceProvisioningErrors/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/serviceProvisioningErrors/index.ts b/src/users/item/serviceProvisioningErrors/index.ts index 579483ef98f..f83cd60e7e0 100644 --- a/src/users/item/serviceProvisioningErrors/index.ts +++ b/src/users/item/serviceProvisioningErrors/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ServiceProvisioningErrorCollectionResponse } from '../../../models/'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ServiceProvisioningErrorCollectionResponse } from '../../../models'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createServiceProvisioningErrorCollectionResponseFromDiscriminatorValue } from '../../../models/serviceProvisioningErrorCollectionResponse'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { diff --git a/src/users/item/settings/index.ts b/src/users/item/settings/index.ts index cef7a3e54fe..eceb4f453dc 100644 --- a/src/users/item/settings/index.ts +++ b/src/users/item/settings/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserSettingsFromDiscriminatorValue, deserializeIntoUserSettings, serializeUserSettings, type UserSettings } from '../../../models/userSettings'; -import { ShiftPreferencesRequestBuilder } from './shiftPreferences/'; +import { ShiftPreferencesRequestBuilder } from './shiftPreferences'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface SettingsRequestBuilderGetQueryParameters { diff --git a/src/users/item/settings/shiftPreferences/index.ts b/src/users/item/settings/shiftPreferences/index.ts index 04cdc531f4f..b526fd1317f 100644 --- a/src/users/item/settings/shiftPreferences/index.ts +++ b/src/users/item/settings/shiftPreferences/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createShiftPreferencesFromDiscriminatorValue, deserializeIntoShiftPreferences, serializeShiftPreferences, type ShiftPreferences } from '../../../../models/shiftPreferences'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/teamwork/associatedTeams/count/index.ts b/src/users/item/teamwork/associatedTeams/count/index.ts index 9263b4c2431..fe93d976032 100644 --- a/src/users/item/teamwork/associatedTeams/count/index.ts +++ b/src/users/item/teamwork/associatedTeams/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/teamwork/associatedTeams/index.ts b/src/users/item/teamwork/associatedTeams/index.ts index 98b33b2c3f2..daff4caf83f 100644 --- a/src/users/item/teamwork/associatedTeams/index.ts +++ b/src/users/item/teamwork/associatedTeams/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AssociatedTeamInfoCollectionResponse } from '../../../../models/'; +import { type AssociatedTeamInfoCollectionResponse } from '../../../../models'; import { createAssociatedTeamInfoFromDiscriminatorValue, deserializeIntoAssociatedTeamInfo, serializeAssociatedTeamInfo, type AssociatedTeamInfo } from '../../../../models/associatedTeamInfo'; import { createAssociatedTeamInfoCollectionResponseFromDiscriminatorValue } from '../../../../models/associatedTeamInfoCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AssociatedTeamInfoItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AssociatedTeamInfoItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssociatedTeamsRequestBuilderGetQueryParameters { diff --git a/src/users/item/teamwork/associatedTeams/item/index.ts b/src/users/item/teamwork/associatedTeams/item/index.ts index 0d0041b6824..f65058a6bd3 100644 --- a/src/users/item/teamwork/associatedTeams/item/index.ts +++ b/src/users/item/teamwork/associatedTeams/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAssociatedTeamInfoFromDiscriminatorValue, deserializeIntoAssociatedTeamInfo, serializeAssociatedTeamInfo, type AssociatedTeamInfo } from '../../../../../models/associatedTeamInfo'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; -import { TeamRequestBuilder } from './team/'; +import { TeamRequestBuilder } from './team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AssociatedTeamInfoItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/teamwork/associatedTeams/item/team/index.ts b/src/users/item/teamwork/associatedTeams/item/team/index.ts index f399f6ee5f7..fd080c862b7 100644 --- a/src/users/item/teamwork/associatedTeams/item/team/index.ts +++ b/src/users/item/teamwork/associatedTeams/item/team/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Team } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type Team } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamFromDiscriminatorValue } from '../../../../../../models/team'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/teamwork/index.ts b/src/users/item/teamwork/index.ts index 2ada927fa3b..c2856ebe4f1 100644 --- a/src/users/item/teamwork/index.ts +++ b/src/users/item/teamwork/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createUserTeamworkFromDiscriminatorValue, deserializeIntoUserTeamwork, serializeUserTeamwork, type UserTeamwork } from '../../../models/userTeamwork'; -import { AssociatedTeamsRequestBuilder } from './associatedTeams/'; -import { InstalledAppsRequestBuilder } from './installedApps/'; -import { SendActivityNotificationRequestBuilder } from './sendActivityNotification/'; +import { AssociatedTeamsRequestBuilder } from './associatedTeams'; +import { InstalledAppsRequestBuilder } from './installedApps'; +import { SendActivityNotificationRequestBuilder } from './sendActivityNotification'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TeamworkRequestBuilderGetQueryParameters { diff --git a/src/users/item/teamwork/installedApps/count/index.ts b/src/users/item/teamwork/installedApps/count/index.ts index 2474c8fe1c9..56466f37d90 100644 --- a/src/users/item/teamwork/installedApps/count/index.ts +++ b/src/users/item/teamwork/installedApps/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/teamwork/installedApps/index.ts b/src/users/item/teamwork/installedApps/index.ts index cffd4dbe34b..6157d2b8258 100644 --- a/src/users/item/teamwork/installedApps/index.ts +++ b/src/users/item/teamwork/installedApps/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type UserScopeTeamsAppInstallationCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type UserScopeTeamsAppInstallationCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createUserScopeTeamsAppInstallationFromDiscriminatorValue, deserializeIntoUserScopeTeamsAppInstallation, serializeUserScopeTeamsAppInstallation, type UserScopeTeamsAppInstallation } from '../../../../models/userScopeTeamsAppInstallation'; import { createUserScopeTeamsAppInstallationCollectionResponseFromDiscriminatorValue } from '../../../../models/userScopeTeamsAppInstallationCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { UserScopeTeamsAppInstallationItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { UserScopeTeamsAppInstallationItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface InstalledAppsRequestBuilderGetQueryParameters { diff --git a/src/users/item/teamwork/installedApps/item/chat/index.ts b/src/users/item/teamwork/installedApps/item/chat/index.ts index 77d37c66d8e..190c6cc3850 100644 --- a/src/users/item/teamwork/installedApps/item/chat/index.ts +++ b/src/users/item/teamwork/installedApps/item/chat/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Chat } from '../../../../../../models/'; +import { type Chat } from '../../../../../../models'; import { createChatFromDiscriminatorValue } from '../../../../../../models/chat'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/teamwork/installedApps/item/index.ts b/src/users/item/teamwork/installedApps/item/index.ts index d010c697095..32d8d075f25 100644 --- a/src/users/item/teamwork/installedApps/item/index.ts +++ b/src/users/item/teamwork/installedApps/item/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createUserScopeTeamsAppInstallationFromDiscriminatorValue, deserializeIntoUserScopeTeamsAppInstallation, serializeUserScopeTeamsAppInstallation, type UserScopeTeamsAppInstallation } from '../../../../../models/userScopeTeamsAppInstallation'; -import { ChatRequestBuilder } from './chat/'; -import { TeamsAppRequestBuilder } from './teamsApp/'; -import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition/'; +import { ChatRequestBuilder } from './chat'; +import { TeamsAppRequestBuilder } from './teamsApp'; +import { TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface UserScopeTeamsAppInstallationItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/teamwork/installedApps/item/teamsApp/index.ts b/src/users/item/teamwork/installedApps/item/teamsApp/index.ts index 64272eae848..c584c6c0a6a 100644 --- a/src/users/item/teamwork/installedApps/item/teamsApp/index.ts +++ b/src/users/item/teamwork/installedApps/item/teamsApp/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsApp } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamsApp } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppFromDiscriminatorValue } from '../../../../../../models/teamsApp'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/teamwork/installedApps/item/teamsAppDefinition/index.ts b/src/users/item/teamwork/installedApps/item/teamsAppDefinition/index.ts index 17a0a1a3db6..3354310a965 100644 --- a/src/users/item/teamwork/installedApps/item/teamsAppDefinition/index.ts +++ b/src/users/item/teamwork/installedApps/item/teamsAppDefinition/index.ts @@ -1,8 +1,8 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TeamsAppDefinition } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TeamsAppDefinition } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTeamsAppDefinitionFromDiscriminatorValue } from '../../../../../../models/teamsAppDefinition'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/teamwork/sendActivityNotification/index.ts b/src/users/item/teamwork/sendActivityNotification/index.ts index 9447edcf2ce..74cbf05c512 100644 --- a/src/users/item/teamwork/sendActivityNotification/index.ts +++ b/src/users/item/teamwork/sendActivityNotification/index.ts @@ -1,11 +1,60 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../../models/itemBody'; +import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../../models/keyValuePair'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { deserializeIntoSendActivityNotificationPostRequestBody, serializeSendActivityNotificationPostRequestBody, type SendActivityNotificationPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../../models/teamworkActivityTopic'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoSendActivityNotificationPostRequestBody; +} +export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { + return { + "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, + "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, + "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, + "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, + "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, + } +} +export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * The activityType property + */ + activityType?: string; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The chainId property + */ + chainId?: number; + /** + * The previewText property + */ + previewText?: ItemBody; + /** + * The templateParameters property + */ + templateParameters?: KeyValuePair[]; + /** + * The topic property + */ + topic?: TeamworkActivityTopic; +} +export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { + writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); + writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); + writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); + writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); + writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); + writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); +} /** * Provides operations to call the sendActivityNotification method. */ diff --git a/src/users/item/teamwork/sendActivityNotification/sendActivityNotificationPostRequestBody.ts b/src/users/item/teamwork/sendActivityNotification/sendActivityNotificationPostRequestBody.ts deleted file mode 100644 index b8eeac323b2..00000000000 --- a/src/users/item/teamwork/sendActivityNotification/sendActivityNotificationPostRequestBody.ts +++ /dev/null @@ -1,57 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { createItemBodyFromDiscriminatorValue, serializeItemBody, type ItemBody } from '../../../../models/itemBody'; -import { createKeyValuePairFromDiscriminatorValue, serializeKeyValuePair, type KeyValuePair } from '../../../../models/keyValuePair'; -import { createTeamworkActivityTopicFromDiscriminatorValue, serializeTeamworkActivityTopic, type TeamworkActivityTopic } from '../../../../models/teamworkActivityTopic'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createSendActivityNotificationPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoSendActivityNotificationPostRequestBody; -} -export function deserializeIntoSendActivityNotificationPostRequestBody(sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : Record void> { - return { - "activityType": n => { sendActivityNotificationPostRequestBody.activityType = n.getStringValue(); }, - "chainId": n => { sendActivityNotificationPostRequestBody.chainId = n.getNumberValue(); }, - "previewText": n => { sendActivityNotificationPostRequestBody.previewText = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, - "templateParameters": n => { sendActivityNotificationPostRequestBody.templateParameters = n.getCollectionOfObjectValues(createKeyValuePairFromDiscriminatorValue); }, - "topic": n => { sendActivityNotificationPostRequestBody.topic = n.getObjectValue(createTeamworkActivityTopicFromDiscriminatorValue); }, - } -} -export interface SendActivityNotificationPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * The activityType property - */ - activityType?: string; - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The chainId property - */ - chainId?: number; - /** - * The previewText property - */ - previewText?: ItemBody; - /** - * The templateParameters property - */ - templateParameters?: KeyValuePair[]; - /** - * The topic property - */ - topic?: TeamworkActivityTopic; -} -export function serializeSendActivityNotificationPostRequestBody(writer: SerializationWriter, sendActivityNotificationPostRequestBody: SendActivityNotificationPostRequestBody | undefined = {} as SendActivityNotificationPostRequestBody) : void { - writer.writeStringValue("activityType", sendActivityNotificationPostRequestBody.activityType); - writer.writeNumberValue("chainId", sendActivityNotificationPostRequestBody.chainId); - writer.writeObjectValue("previewText", sendActivityNotificationPostRequestBody.previewText, serializeItemBody); - writer.writeCollectionOfObjectValues("templateParameters", sendActivityNotificationPostRequestBody.templateParameters, serializeKeyValuePair); - writer.writeObjectValue("topic", sendActivityNotificationPostRequestBody.topic, serializeTeamworkActivityTopic); - writer.writeAdditionalData(sendActivityNotificationPostRequestBody.additionalData); -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/todo/index.ts b/src/users/item/todo/index.ts index 2c4fa0aff0f..c4461ae49f6 100644 --- a/src/users/item/todo/index.ts +++ b/src/users/item/todo/index.ts @@ -1,10 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; import { createTodoFromDiscriminatorValue, deserializeIntoTodo, serializeTodo, type Todo } from '../../../models/todo'; -import { ListsRequestBuilder } from './lists/'; +import { ListsRequestBuilder } from './lists'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TodoRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/count/index.ts b/src/users/item/todo/lists/count/index.ts index 25241e35d1e..3f8e1a83d87 100644 --- a/src/users/item/todo/lists/count/index.ts +++ b/src/users/item/todo/lists/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/delta/index.ts b/src/users/item/todo/lists/delta/index.ts index 6d1daabedf5..00f6a08dac9 100644 --- a/src/users/item/todo/lists/delta/index.ts +++ b/src/users/item/todo/lists/delta/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTodoTaskListFromDiscriminatorValue, serializeTodoTaskList, type TodoTaskList } from '../../../../../models/todoTaskList'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: TodoTaskList[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeTodoTaskList); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/todo/lists/index.ts b/src/users/item/todo/lists/index.ts index fe33b5829aa..dc95c27305d 100644 --- a/src/users/item/todo/lists/index.ts +++ b/src/users/item/todo/lists/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TodoTaskListCollectionResponse } from '../../../../models/'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type TodoTaskListCollectionResponse } from '../../../../models'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { createTodoTaskListFromDiscriminatorValue, deserializeIntoTodoTaskList, serializeTodoTaskList, type TodoTaskList } from '../../../../models/todoTaskList'; import { createTodoTaskListCollectionResponseFromDiscriminatorValue } from '../../../../models/todoTaskListCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { TodoTaskListItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { TodoTaskListItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ListsRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/extensions/count/index.ts b/src/users/item/todo/lists/item/extensions/count/index.ts index 3b63d4baba1..2ed37a8d05a 100644 --- a/src/users/item/todo/lists/item/extensions/count/index.ts +++ b/src/users/item/todo/lists/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/extensions/index.ts b/src/users/item/todo/lists/item/extensions/index.ts index 27f7a78244e..60eb31ef653 100644 --- a/src/users/item/todo/lists/item/extensions/index.ts +++ b/src/users/item/todo/lists/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/extensions/item/index.ts b/src/users/item/todo/lists/item/extensions/item/index.ts index 670b252c64d..1b898970b12 100644 --- a/src/users/item/todo/lists/item/extensions/item/index.ts +++ b/src/users/item/todo/lists/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/index.ts b/src/users/item/todo/lists/item/index.ts index ddd884c6e4f..d00e44b4bb8 100644 --- a/src/users/item/todo/lists/item/index.ts +++ b/src/users/item/todo/lists/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { createTodoTaskListFromDiscriminatorValue, deserializeIntoTodoTaskList, serializeTodoTaskList, type TodoTaskList } from '../../../../../models/todoTaskList'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { TasksRequestBuilder } from './tasks/'; +import { ExtensionsRequestBuilder } from './extensions'; +import { TasksRequestBuilder } from './tasks'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TodoTaskListItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/count/index.ts b/src/users/item/todo/lists/item/tasks/count/index.ts index 676a85a9174..42aae4ef299 100644 --- a/src/users/item/todo/lists/item/tasks/count/index.ts +++ b/src/users/item/todo/lists/item/tasks/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/delta/index.ts b/src/users/item/todo/lists/item/tasks/delta/index.ts index 8ceed52c56b..8c2c0e0c5be 100644 --- a/src/users/item/todo/lists/item/tasks/delta/index.ts +++ b/src/users/item/todo/lists/item/tasks/delta/index.ts @@ -2,10 +2,8 @@ // eslint-disable // Generated by Microsoft Kiota import { deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, type BaseDeltaFunctionResponse } from '../../../../../../../models/baseDeltaFunctionResponse'; -import { type ODataError } from '../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTodoTaskFromDiscriminatorValue, serializeTodoTask, type TodoTask } from '../../../../../../../models/todoTask'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createDeltaGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -17,36 +15,6 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable { */ value?: TodoTask[]; } -export interface DeltaRequestBuilderGetQueryParameters { - /** - * Include count of items - */ - count?: boolean; - /** - * 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; -} export function deserializeIntoDeltaGetResponse(deltaGetResponse: DeltaGetResponse | undefined = {} as DeltaGetResponse) : Record void> { return { ...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse), @@ -57,62 +25,5 @@ export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetR serializeBaseDeltaFunctionResponse(writer, deltaGetResponse) writer.writeCollectionOfObjectValues("value", deltaGetResponse.value, serializeTodoTask); } -/** - * Provides operations to call the delta method. - */ -export class DeltaRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new DeltaRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of DeltaGetResponse - */ - public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toGetRequestInformation( - requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createDeltaGetResponseFromDiscriminatorValue, errorMapping); - }; - /** - * Invoke function delta - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration, deltaRequestBuilderGetQueryParametersMapper); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a deltaRequestBuilder - */ - public withUrl(rawUrl: string) : DeltaRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new DeltaRequestBuilder(rawUrl, this.requestAdapter); - }; -} -const deltaRequestBuilderGetQueryParametersMapper: Record = { - "count": "%24count", - "filter": "%24filter", - "orderby": "%24orderby", - "search": "%24search", - "select": "%24select", - "skip": "%24skip", - "top": "%24top", -}; // tslint:enable // eslint-enable diff --git a/src/users/item/todo/lists/item/tasks/index.ts b/src/users/item/todo/lists/item/tasks/index.ts index 75ad653ced2..12ff744f683 100644 --- a/src/users/item/todo/lists/item/tasks/index.ts +++ b/src/users/item/todo/lists/item/tasks/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type TodoTaskCollectionResponse } from '../../../../../../models/'; -import { type ODataError } from '../../../../../../models/oDataErrors/'; +import { type TodoTaskCollectionResponse } from '../../../../../../models'; +import { type ODataError } from '../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError'; import { createTodoTaskFromDiscriminatorValue, deserializeIntoTodoTask, serializeTodoTask, type TodoTask } from '../../../../../../models/todoTask'; import { createTodoTaskCollectionResponseFromDiscriminatorValue } from '../../../../../../models/todoTaskCollectionResponse'; -import { CountRequestBuilder } from './count/'; -import { DeltaRequestBuilder } from './delta/'; -import { TodoTaskItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { DeltaRequestBuilder } from './delta'; +import { TodoTaskItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TasksRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/attachmentSessions/count/index.ts b/src/users/item/todo/lists/item/tasks/item/attachmentSessions/count/index.ts index 7dd230f9d1f..994abf2b15d 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachmentSessions/count/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachmentSessions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/attachmentSessions/index.ts b/src/users/item/todo/lists/item/tasks/item/attachmentSessions/index.ts index fecf1fca400..a81881a8887 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachmentSessions/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachmentSessions/index.ts @@ -1,12 +1,12 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentSessionCollectionResponse } from '../../../../../../../../models/'; +import { type AttachmentSessionCollectionResponse } from '../../../../../../../../models'; import { createAttachmentSessionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/attachmentSessionCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { AttachmentSessionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { AttachmentSessionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentSessionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/attachmentSessions/item/content/index.ts b/src/users/item/todo/lists/item/tasks/item/attachmentSessions/item/content/index.ts index a217b9566ae..0798aa5166b 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachmentSessions/item/content/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachmentSessions/item/content/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentSession } from '../../../../../../../../../../models/'; +import { type AttachmentSession } from '../../../../../../../../../../models'; import { createAttachmentSessionFromDiscriminatorValue } from '../../../../../../../../../../models/attachmentSession'; -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/attachmentSessions/item/index.ts b/src/users/item/todo/lists/item/tasks/item/attachmentSessions/item/index.ts index 6f71e3f4276..1f0140ebad2 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachmentSessions/item/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachmentSessions/item/index.ts @@ -2,9 +2,9 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentSessionFromDiscriminatorValue, deserializeIntoAttachmentSession, serializeAttachmentSession, type AttachmentSession } from '../../../../../../../../../models/attachmentSession'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './content/'; +import { ContentRequestBuilder } from './content'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentSessionItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/attachments/count/index.ts b/src/users/item/todo/lists/item/tasks/item/attachments/count/index.ts index 5ba0f5a7038..3ae1091b4c2 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachments/count/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachments/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/attachments/createUploadSession/index.ts b/src/users/item/todo/lists/item/tasks/item/attachments/createUploadSession/index.ts index 51eb5821110..6734a32e001 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachments/createUploadSession/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachments/createUploadSession/index.ts @@ -2,10 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createAttachmentInfoFromDiscriminatorValue, serializeAttachmentInfo, type AttachmentInfo } from '../../../../../../../../../models/attachmentInfo'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { createUploadSessionFromDiscriminatorValue, deserializeIntoUploadSession, serializeUploadSession, type UploadSession } from '../../../../../../../../../models/uploadSession'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; export function createCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { if(!parseNode) throw new Error("parseNode cannot be undefined"); @@ -30,58 +27,5 @@ export function serializeCreateUploadSessionPostRequestBody(writer: Serializatio writer.writeObjectValue("attachmentInfo", createUploadSessionPostRequestBody.attachmentInfo, serializeAttachmentInfo); writer.writeAdditionalData(createUploadSessionPostRequestBody.additionalData); } -/** - * Provides operations to call the createUploadSession method. - */ -export class CreateUploadSessionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new CreateUploadSessionRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/attachments/createUploadSession"); - }; - /** - * Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of UploadSession - * @see {@link https://learn.microsoft.com/graph/api/taskfileattachment-createuploadsession?view=graph-rest-1.0|Find more info here} - */ - public post(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, errorMapping); - }; - /** - * Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: CreateUploadSessionPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateUploadSessionPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a createUploadSessionRequestBuilder - */ - public withUrl(rawUrl: string) : CreateUploadSessionRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new CreateUploadSessionRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable diff --git a/src/users/item/todo/lists/item/tasks/item/attachments/index.ts b/src/users/item/todo/lists/item/tasks/item/attachments/index.ts index 96cb19e7628..71a70cedb33 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachments/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachments/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentBaseCollectionResponse } from '../../../../../../../../models/'; +import { type AttachmentBaseCollectionResponse } from '../../../../../../../../models'; import { createAttachmentBaseFromDiscriminatorValue, deserializeIntoAttachmentBase, serializeAttachmentBase, type AttachmentBase } from '../../../../../../../../models/attachmentBase'; import { createAttachmentBaseCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/attachmentBaseCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { CreateUploadSessionRequestBuilder } from './createUploadSession/'; -import { AttachmentBaseItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { CreateUploadSessionRequestBuilder } from './createUploadSession'; +import { AttachmentBaseItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/attachments/item/index.ts b/src/users/item/todo/lists/item/tasks/item/attachments/item/index.ts index 303aadccf78..083d0065642 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachments/item/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachments/item/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AttachmentBase } from '../../../../../../../../../models/'; +import { type AttachmentBase } from '../../../../../../../../../models'; import { createAttachmentBaseFromDiscriminatorValue } from '../../../../../../../../../models/attachmentBase'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; -import { ContentRequestBuilder } from './value/'; +import { ContentRequestBuilder } from './value'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface AttachmentBaseItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/attachments/item/value/index.ts b/src/users/item/todo/lists/item/tasks/item/attachments/item/value/index.ts index 31f8d809cc2..7f06fcbb2d1 100644 --- a/src/users/item/todo/lists/item/tasks/item/attachments/item/value/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/attachments/item/value/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/checklistItems/count/index.ts b/src/users/item/todo/lists/item/tasks/item/checklistItems/count/index.ts index 3a147cbb174..b39e5ded8de 100644 --- a/src/users/item/todo/lists/item/tasks/item/checklistItems/count/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/checklistItems/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/checklistItems/index.ts b/src/users/item/todo/lists/item/tasks/item/checklistItems/index.ts index e8a7fddf67c..06a88f3c6a6 100644 --- a/src/users/item/todo/lists/item/tasks/item/checklistItems/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/checklistItems/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ChecklistItemCollectionResponse } from '../../../../../../../../models/'; +import { type ChecklistItemCollectionResponse } from '../../../../../../../../models'; import { createChecklistItemFromDiscriminatorValue, deserializeIntoChecklistItem, serializeChecklistItem, type ChecklistItem } from '../../../../../../../../models/checklistItem'; import { createChecklistItemCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/checklistItemCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ChecklistItemItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ChecklistItemItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ChecklistItemsRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/checklistItems/item/index.ts b/src/users/item/todo/lists/item/tasks/item/checklistItems/item/index.ts index 6f6b921c33e..62e447000d0 100644 --- a/src/users/item/todo/lists/item/tasks/item/checklistItems/item/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/checklistItems/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createChecklistItemFromDiscriminatorValue, deserializeIntoChecklistItem, serializeChecklistItem, type ChecklistItem } from '../../../../../../../../../models/checklistItem'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/extensions/count/index.ts b/src/users/item/todo/lists/item/tasks/item/extensions/count/index.ts index 57684ef643d..6f1619d45b6 100644 --- a/src/users/item/todo/lists/item/tasks/item/extensions/count/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/extensions/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/extensions/index.ts b/src/users/item/todo/lists/item/tasks/item/extensions/index.ts index 4d433cc14b5..d96825f1058 100644 --- a/src/users/item/todo/lists/item/tasks/item/extensions/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/extensions/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ExtensionCollectionResponse } from '../../../../../../../../models/'; +import { type ExtensionCollectionResponse } from '../../../../../../../../models'; import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../models/extension'; import { createExtensionCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/extensionCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { ExtensionItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { ExtensionItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface ExtensionsRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/extensions/item/index.ts b/src/users/item/todo/lists/item/tasks/item/extensions/item/index.ts index c2359845a1f..b16ad691a59 100644 --- a/src/users/item/todo/lists/item/tasks/item/extensions/item/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/extensions/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createExtensionFromDiscriminatorValue, deserializeIntoExtension, serializeExtension, type Extension } from '../../../../../../../../../models/extension'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/index.ts b/src/users/item/todo/lists/item/tasks/item/index.ts index 11a71f8b48b..d09b549ccea 100644 --- a/src/users/item/todo/lists/item/tasks/item/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/index.ts @@ -1,14 +1,14 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError'; import { createTodoTaskFromDiscriminatorValue, deserializeIntoTodoTask, serializeTodoTask, type TodoTask } from '../../../../../../../models/todoTask'; -import { AttachmentsRequestBuilder } from './attachments/'; -import { AttachmentSessionsRequestBuilder } from './attachmentSessions/'; -import { ChecklistItemsRequestBuilder } from './checklistItems/'; -import { ExtensionsRequestBuilder } from './extensions/'; -import { LinkedResourcesRequestBuilder } from './linkedResources/'; +import { AttachmentsRequestBuilder } from './attachments'; +import { AttachmentSessionsRequestBuilder } from './attachmentSessions'; +import { ChecklistItemsRequestBuilder } from './checklistItems'; +import { ExtensionsRequestBuilder } from './extensions'; +import { LinkedResourcesRequestBuilder } from './linkedResources'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TodoTaskItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/linkedResources/count/index.ts b/src/users/item/todo/lists/item/tasks/item/linkedResources/count/index.ts index d1daa6d1614..5049bffb15f 100644 --- a/src/users/item/todo/lists/item/tasks/item/linkedResources/count/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/linkedResources/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/todo/lists/item/tasks/item/linkedResources/index.ts b/src/users/item/todo/lists/item/tasks/item/linkedResources/index.ts index 2419e5911b4..43777f1de07 100644 --- a/src/users/item/todo/lists/item/tasks/item/linkedResources/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/linkedResources/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type LinkedResourceCollectionResponse } from '../../../../../../../../models/'; +import { type LinkedResourceCollectionResponse } from '../../../../../../../../models'; import { createLinkedResourceFromDiscriminatorValue, deserializeIntoLinkedResource, serializeLinkedResource, type LinkedResource } from '../../../../../../../../models/linkedResource'; import { createLinkedResourceCollectionResponseFromDiscriminatorValue } from '../../../../../../../../models/linkedResourceCollectionResponse'; -import { type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { LinkedResourceItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { LinkedResourceItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LinkedResourcesRequestBuilderGetQueryParameters { diff --git a/src/users/item/todo/lists/item/tasks/item/linkedResources/item/index.ts b/src/users/item/todo/lists/item/tasks/item/linkedResources/item/index.ts index 92f586696a9..9004ace4bde 100644 --- a/src/users/item/todo/lists/item/tasks/item/linkedResources/item/index.ts +++ b/src/users/item/todo/lists/item/tasks/item/linkedResources/item/index.ts @@ -2,7 +2,7 @@ // eslint-disable // Generated by Microsoft Kiota import { createLinkedResourceFromDiscriminatorValue, deserializeIntoLinkedResource, serializeLinkedResource, type LinkedResource } from '../../../../../../../../../models/linkedResource'; -import { type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/transitiveMemberOf/count/index.ts b/src/users/item/transitiveMemberOf/count/index.ts index 0548b349b6f..a4d645b8e57 100644 --- a/src/users/item/transitiveMemberOf/count/index.ts +++ b/src/users/item/transitiveMemberOf/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts b/src/users/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts index afe8ea49e6a..c4ca06ab90a 100644 --- a/src/users/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts +++ b/src/users/item/transitiveMemberOf/graphAdministrativeUnit/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/transitiveMemberOf/graphAdministrativeUnit/index.ts b/src/users/item/transitiveMemberOf/graphAdministrativeUnit/index.ts index 9bf865f8f1b..76467dd805c 100644 --- a/src/users/item/transitiveMemberOf/graphAdministrativeUnit/index.ts +++ b/src/users/item/transitiveMemberOf/graphAdministrativeUnit/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnitCollectionResponse } from '../../../../models/'; +import { type AdministrativeUnitCollectionResponse } from '../../../../models'; import { createAdministrativeUnitCollectionResponseFromDiscriminatorValue } from '../../../../models/administrativeUnitCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphAdministrativeUnitRequestBuilderGetQueryParameters { diff --git a/src/users/item/transitiveMemberOf/graphDirectoryRole/count/index.ts b/src/users/item/transitiveMemberOf/graphDirectoryRole/count/index.ts index f1593c10799..0a1507f6384 100644 --- a/src/users/item/transitiveMemberOf/graphDirectoryRole/count/index.ts +++ b/src/users/item/transitiveMemberOf/graphDirectoryRole/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/transitiveMemberOf/graphDirectoryRole/index.ts b/src/users/item/transitiveMemberOf/graphDirectoryRole/index.ts index 728283f4700..25c58a2eafb 100644 --- a/src/users/item/transitiveMemberOf/graphDirectoryRole/index.ts +++ b/src/users/item/transitiveMemberOf/graphDirectoryRole/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRoleCollectionResponse } from '../../../../models/'; +import { type DirectoryRoleCollectionResponse } from '../../../../models'; import { createDirectoryRoleCollectionResponseFromDiscriminatorValue } from '../../../../models/directoryRoleCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphDirectoryRoleRequestBuilderGetQueryParameters { diff --git a/src/users/item/transitiveMemberOf/graphGroup/count/index.ts b/src/users/item/transitiveMemberOf/graphGroup/count/index.ts index 0cb397feecb..21debc7755d 100644 --- a/src/users/item/transitiveMemberOf/graphGroup/count/index.ts +++ b/src/users/item/transitiveMemberOf/graphGroup/count/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/transitiveMemberOf/graphGroup/index.ts b/src/users/item/transitiveMemberOf/graphGroup/index.ts index 7f00b241096..0f6c3ac8dd7 100644 --- a/src/users/item/transitiveMemberOf/graphGroup/index.ts +++ b/src/users/item/transitiveMemberOf/graphGroup/index.ts @@ -1,11 +1,11 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type GroupCollectionResponse } from '../../../../models/'; +import { type GroupCollectionResponse } from '../../../../models'; import { createGroupCollectionResponseFromDiscriminatorValue } from '../../../../models/groupCollectionResponse'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; +import { CountRequestBuilder } from './count'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/users/item/transitiveMemberOf/index.ts b/src/users/item/transitiveMemberOf/index.ts index 5aee16d6e75..1e42566086e 100644 --- a/src/users/item/transitiveMemberOf/index.ts +++ b/src/users/item/transitiveMemberOf/index.ts @@ -1,15 +1,15 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObjectCollectionResponse } from '../../../models/'; +import { type DirectoryObjectCollectionResponse } from '../../../models'; import { createDirectoryObjectCollectionResponseFromDiscriminatorValue } from '../../../models/directoryObjectCollectionResponse'; -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { CountRequestBuilder } from './count/'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; -import { DirectoryObjectItemRequestBuilder } from './item/'; +import { CountRequestBuilder } from './count'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole'; +import { GraphGroupRequestBuilder } from './graphGroup'; +import { DirectoryObjectItemRequestBuilder } from './item'; import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface TransitiveMemberOfRequestBuilderGetQueryParameters { diff --git a/src/users/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts b/src/users/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts index 2867cf420f0..b8edaa6b132 100644 --- a/src/users/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts +++ b/src/users/item/transitiveMemberOf/item/graphAdministrativeUnit/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type AdministrativeUnit } from '../../../../../models/'; +import { type AdministrativeUnit } from '../../../../../models'; import { createAdministrativeUnitFromDiscriminatorValue } from '../../../../../models/administrativeUnit'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/transitiveMemberOf/item/graphDirectoryRole/index.ts b/src/users/item/transitiveMemberOf/item/graphDirectoryRole/index.ts index f81e8334afa..aa2cf513523 100644 --- a/src/users/item/transitiveMemberOf/item/graphDirectoryRole/index.ts +++ b/src/users/item/transitiveMemberOf/item/graphDirectoryRole/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryRole } from '../../../../../models/'; +import { type DirectoryRole } from '../../../../../models'; import { createDirectoryRoleFromDiscriminatorValue } from '../../../../../models/directoryRole'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/transitiveMemberOf/item/graphGroup/index.ts b/src/users/item/transitiveMemberOf/item/graphGroup/index.ts index 8d63297aec1..ab255ddc18b 100644 --- a/src/users/item/transitiveMemberOf/item/graphGroup/index.ts +++ b/src/users/item/transitiveMemberOf/item/graphGroup/index.ts @@ -1,9 +1,9 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type Group } from '../../../../../models/'; +import { type Group } from '../../../../../models'; import { createGroupFromDiscriminatorValue } from '../../../../../models/group'; -import { type ODataError } from '../../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; diff --git a/src/users/item/transitiveMemberOf/item/index.ts b/src/users/item/transitiveMemberOf/item/index.ts index 9e0f8e9ce1d..a43c528ea46 100644 --- a/src/users/item/transitiveMemberOf/item/index.ts +++ b/src/users/item/transitiveMemberOf/item/index.ts @@ -1,13 +1,13 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type DirectoryObject } from '../../../../models/'; +import { type DirectoryObject } from '../../../../models'; import { createDirectoryObjectFromDiscriminatorValue } from '../../../../models/directoryObject'; -import { type ODataError } from '../../../../models/oDataErrors/'; +import { type ODataError } from '../../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError'; -import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit/'; -import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole/'; -import { GraphGroupRequestBuilder } from './graphGroup/'; +import { GraphAdministrativeUnitRequestBuilder } from './graphAdministrativeUnit'; +import { GraphDirectoryRoleRequestBuilder } from './graphDirectoryRole'; +import { GraphGroupRequestBuilder } from './graphGroup'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/users/item/translateExchangeIds/index.ts b/src/users/item/translateExchangeIds/index.ts index 3a489237560..b34c563e813 100644 --- a/src/users/item/translateExchangeIds/index.ts +++ b/src/users/item/translateExchangeIds/index.ts @@ -1,11 +1,68 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; +import { createConvertIdResultFromDiscriminatorValue, serializeConvertIdResult, type ConvertIdResult } from '../../../models/convertIdResult'; +import { ExchangeIdFormat } from '../../../models/exchangeIdFormat'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { createTranslateExchangeIdsPostResponseFromDiscriminatorValue, deserializeIntoTranslateExchangeIdsPostRequestBody, deserializeIntoTranslateExchangeIdsPostResponse, serializeTranslateExchangeIdsPostRequestBody, serializeTranslateExchangeIdsPostResponse, type TranslateExchangeIdsPostRequestBody, type TranslateExchangeIdsPostResponse } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createTranslateExchangeIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTranslateExchangeIdsPostRequestBody; +} +export function createTranslateExchangeIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoTranslateExchangeIdsPostResponse; +} +export function deserializeIntoTranslateExchangeIdsPostRequestBody(translateExchangeIdsPostRequestBody: TranslateExchangeIdsPostRequestBody | undefined = {} as TranslateExchangeIdsPostRequestBody) : Record void> { + return { + "inputIds": n => { translateExchangeIdsPostRequestBody.inputIds = n.getCollectionOfPrimitiveValues(); }, + "sourceIdType": n => { translateExchangeIdsPostRequestBody.sourceIdType = n.getEnumValue(ExchangeIdFormat); }, + "targetIdType": n => { translateExchangeIdsPostRequestBody.targetIdType = n.getEnumValue(ExchangeIdFormat); }, + } +} +export function deserializeIntoTranslateExchangeIdsPostResponse(translateExchangeIdsPostResponse: TranslateExchangeIdsPostResponse | undefined = {} as TranslateExchangeIdsPostResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(translateExchangeIdsPostResponse), + "value": n => { translateExchangeIdsPostResponse.value = n.getCollectionOfObjectValues(createConvertIdResultFromDiscriminatorValue); }, + } +} +export function serializeTranslateExchangeIdsPostRequestBody(writer: SerializationWriter, translateExchangeIdsPostRequestBody: TranslateExchangeIdsPostRequestBody | undefined = {} as TranslateExchangeIdsPostRequestBody) : void { + writer.writeCollectionOfPrimitiveValues("InputIds", translateExchangeIdsPostRequestBody.inputIds); + writer.writeEnumValue("SourceIdType", translateExchangeIdsPostRequestBody.sourceIdType); + writer.writeEnumValue("TargetIdType", translateExchangeIdsPostRequestBody.targetIdType); + writer.writeAdditionalData(translateExchangeIdsPostRequestBody.additionalData); +} +export function serializeTranslateExchangeIdsPostResponse(writer: SerializationWriter, translateExchangeIdsPostResponse: TranslateExchangeIdsPostResponse | undefined = {} as TranslateExchangeIdsPostResponse) : void { + serializeBaseCollectionPaginationCountResponse(writer, translateExchangeIdsPostResponse) + writer.writeCollectionOfObjectValues("value", translateExchangeIdsPostResponse.value, serializeConvertIdResult); +} +export interface TranslateExchangeIdsPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The InputIds property + */ + inputIds?: string[]; + /** + * The SourceIdType property + */ + sourceIdType?: ExchangeIdFormat; + /** + * The TargetIdType property + */ + targetIdType?: ExchangeIdFormat; +} +export interface TranslateExchangeIdsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ConvertIdResult[]; +} /** * Provides operations to call the translateExchangeIds method. */ diff --git a/src/users/item/translateExchangeIds/translateExchangeIdsPostRequestBody.ts b/src/users/item/translateExchangeIds/translateExchangeIdsPostRequestBody.ts deleted file mode 100644 index 2c1cf6b6235..00000000000 --- a/src/users/item/translateExchangeIds/translateExchangeIdsPostRequestBody.ts +++ /dev/null @@ -1,43 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { ExchangeIdFormat } from '../../../models/exchangeIdFormat'; -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTranslateExchangeIdsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTranslateExchangeIdsPostRequestBody; -} -export function deserializeIntoTranslateExchangeIdsPostRequestBody(translateExchangeIdsPostRequestBody: TranslateExchangeIdsPostRequestBody | undefined = {} as TranslateExchangeIdsPostRequestBody) : Record void> { - return { - "inputIds": n => { translateExchangeIdsPostRequestBody.inputIds = n.getCollectionOfPrimitiveValues(); }, - "sourceIdType": n => { translateExchangeIdsPostRequestBody.sourceIdType = n.getEnumValue(ExchangeIdFormat); }, - "targetIdType": n => { translateExchangeIdsPostRequestBody.targetIdType = n.getEnumValue(ExchangeIdFormat); }, - } -} -export function serializeTranslateExchangeIdsPostRequestBody(writer: SerializationWriter, translateExchangeIdsPostRequestBody: TranslateExchangeIdsPostRequestBody | undefined = {} as TranslateExchangeIdsPostRequestBody) : void { - writer.writeCollectionOfPrimitiveValues("InputIds", translateExchangeIdsPostRequestBody.inputIds); - writer.writeEnumValue("SourceIdType", translateExchangeIdsPostRequestBody.sourceIdType); - writer.writeEnumValue("TargetIdType", translateExchangeIdsPostRequestBody.targetIdType); - writer.writeAdditionalData(translateExchangeIdsPostRequestBody.additionalData); -} -export interface TranslateExchangeIdsPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The InputIds property - */ - inputIds?: string[]; - /** - * The SourceIdType property - */ - sourceIdType?: ExchangeIdFormat; - /** - * The TargetIdType property - */ - targetIdType?: ExchangeIdFormat; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/translateExchangeIds/translateExchangeIdsPostResponse.ts b/src/users/item/translateExchangeIds/translateExchangeIdsPostResponse.ts deleted file mode 100644 index e8c148f9525..00000000000 --- a/src/users/item/translateExchangeIds/translateExchangeIdsPostResponse.ts +++ /dev/null @@ -1,29 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, type BaseCollectionPaginationCountResponse } from '../../../models/baseCollectionPaginationCountResponse'; -import { createConvertIdResultFromDiscriminatorValue, serializeConvertIdResult, type ConvertIdResult } from '../../../models/convertIdResult'; -import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createTranslateExchangeIdsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoTranslateExchangeIdsPostResponse; -} -export function deserializeIntoTranslateExchangeIdsPostResponse(translateExchangeIdsPostResponse: TranslateExchangeIdsPostResponse | undefined = {} as TranslateExchangeIdsPostResponse) : Record void> { - return { - ...deserializeIntoBaseCollectionPaginationCountResponse(translateExchangeIdsPostResponse), - "value": n => { translateExchangeIdsPostResponse.value = n.getCollectionOfObjectValues(createConvertIdResultFromDiscriminatorValue); }, - } -} -export function serializeTranslateExchangeIdsPostResponse(writer: SerializationWriter, translateExchangeIdsPostResponse: TranslateExchangeIdsPostResponse | undefined = {} as TranslateExchangeIdsPostResponse) : void { - serializeBaseCollectionPaginationCountResponse(writer, translateExchangeIdsPostResponse) - writer.writeCollectionOfObjectValues("value", translateExchangeIdsPostResponse.value, serializeConvertIdResult); -} -export interface TranslateExchangeIdsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { - /** - * The value property - */ - value?: ConvertIdResult[]; -} -// tslint:enable -// eslint-enable diff --git a/src/users/item/wipeManagedAppRegistrationsByDeviceTag/index.ts b/src/users/item/wipeManagedAppRegistrationsByDeviceTag/index.ts index 5fc3b5ddaeb..faf2f1886e2 100644 --- a/src/users/item/wipeManagedAppRegistrationsByDeviceTag/index.ts +++ b/src/users/item/wipeManagedAppRegistrationsByDeviceTag/index.ts @@ -1,11 +1,33 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../../models/oDataErrors/'; +import { type ODataError } from '../../../models/oDataErrors'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError'; -import { deserializeIntoWipeManagedAppRegistrationsByDeviceTagPostRequestBody, serializeWipeManagedAppRegistrationsByDeviceTagPostRequestBody, type WipeManagedAppRegistrationsByDeviceTagPostRequestBody } from './'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createWipeManagedAppRegistrationsByDeviceTagPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + return deserializeIntoWipeManagedAppRegistrationsByDeviceTagPostRequestBody; +} +export function deserializeIntoWipeManagedAppRegistrationsByDeviceTagPostRequestBody(wipeManagedAppRegistrationsByDeviceTagPostRequestBody: WipeManagedAppRegistrationsByDeviceTagPostRequestBody | undefined = {} as WipeManagedAppRegistrationsByDeviceTagPostRequestBody) : Record void> { + return { + "deviceTag": n => { wipeManagedAppRegistrationsByDeviceTagPostRequestBody.deviceTag = n.getStringValue(); }, + } +} +export function serializeWipeManagedAppRegistrationsByDeviceTagPostRequestBody(writer: SerializationWriter, wipeManagedAppRegistrationsByDeviceTagPostRequestBody: WipeManagedAppRegistrationsByDeviceTagPostRequestBody | undefined = {} as WipeManagedAppRegistrationsByDeviceTagPostRequestBody) : void { + writer.writeStringValue("deviceTag", wipeManagedAppRegistrationsByDeviceTagPostRequestBody.deviceTag); + writer.writeAdditionalData(wipeManagedAppRegistrationsByDeviceTagPostRequestBody.additionalData); +} +export interface WipeManagedAppRegistrationsByDeviceTagPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The deviceTag property + */ + deviceTag?: string; +} /** * Provides operations to call the wipeManagedAppRegistrationsByDeviceTag method. */ diff --git a/src/users/item/wipeManagedAppRegistrationsByDeviceTag/wipeManagedAppRegistrationsByDeviceTagPostRequestBody.ts b/src/users/item/wipeManagedAppRegistrationsByDeviceTag/wipeManagedAppRegistrationsByDeviceTagPostRequestBody.ts deleted file mode 100644 index acc10b419f1..00000000000 --- a/src/users/item/wipeManagedAppRegistrationsByDeviceTag/wipeManagedAppRegistrationsByDeviceTagPostRequestBody.ts +++ /dev/null @@ -1,30 +0,0 @@ -// tslint:disable -// eslint-disable -// Generated by Microsoft Kiota -import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; - -export function createWipeManagedAppRegistrationsByDeviceTagPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { - if(!parseNode) throw new Error("parseNode cannot be undefined"); - return deserializeIntoWipeManagedAppRegistrationsByDeviceTagPostRequestBody; -} -export function deserializeIntoWipeManagedAppRegistrationsByDeviceTagPostRequestBody(wipeManagedAppRegistrationsByDeviceTagPostRequestBody: WipeManagedAppRegistrationsByDeviceTagPostRequestBody | undefined = {} as WipeManagedAppRegistrationsByDeviceTagPostRequestBody) : Record void> { - return { - "deviceTag": n => { wipeManagedAppRegistrationsByDeviceTagPostRequestBody.deviceTag = n.getStringValue(); }, - } -} -export function serializeWipeManagedAppRegistrationsByDeviceTagPostRequestBody(writer: SerializationWriter, wipeManagedAppRegistrationsByDeviceTagPostRequestBody: WipeManagedAppRegistrationsByDeviceTagPostRequestBody | undefined = {} as WipeManagedAppRegistrationsByDeviceTagPostRequestBody) : void { - writer.writeStringValue("deviceTag", wipeManagedAppRegistrationsByDeviceTagPostRequestBody.deviceTag); - writer.writeAdditionalData(wipeManagedAppRegistrationsByDeviceTagPostRequestBody.additionalData); -} -export interface WipeManagedAppRegistrationsByDeviceTagPostRequestBody extends AdditionalDataHolder, Parsable { - /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ - additionalData?: Record; - /** - * The deviceTag property - */ - deviceTag?: string; -} -// tslint:enable -// eslint-enable diff --git a/src/users/validateProperties/index.ts b/src/users/validateProperties/index.ts index 27a8f3023bd..3c9a114e085 100644 --- a/src/users/validateProperties/index.ts +++ b/src/users/validateProperties/index.ts @@ -1,9 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { type ODataError } from '../../models/oDataErrors/'; -import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; import { type Guid } from 'guid-typescript'; export function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { @@ -47,57 +45,5 @@ export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, */ onBehalfOfUserId?: Guid; } -/** - * Provides operations to call the validateProperties method. - */ -export class ValidatePropertiesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - * @param pathParameters The raw url or the Url template parameters for the request. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { - super(pathParameters, requestAdapter, "{+baseurl}/users/validateProperties"); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here} - */ - public post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPostRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); - }; - /** - * Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a RequestInformation - */ - public toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeValidatePropertiesPostRequestBody); - return requestInfo; - }; - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @returns a validatePropertiesRequestBuilder - */ - public withUrl(rawUrl: string) : ValidatePropertiesRequestBuilder { - if(!rawUrl) throw new Error("rawUrl cannot be undefined"); - return new ValidatePropertiesRequestBuilder(rawUrl, this.requestAdapter); - }; -} // tslint:enable // eslint-enable